2025-10-20 02:36:49,641 - INFO - Domain Default found not creating 2025-10-20 02:36:49,779 - INFO - Project ctest-TestBasicPolicy-87760681 not found, creating it 2025-10-20 02:36:50,283 - INFO - Created Project:ctest-TestBasicPolicy-87760681, ID : 8fb24649-7ad0-485e-b450-be8f2c4c5006 2025-10-20 02:36:51,667 - INFO - ================================================================================ 2025-10-20 02:36:51,667 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-10-20 02:36:51,667 - INFO - TEST DESCRIPTION : Create 2 Vns and allow icmp traffic between them and validate with pings Update the policy to deny the same traffic Check that pings fail 2025-10-20 02:36:52,948 - DEBUG - Nothing to compare xmpp stats {'10.0.0.131': {'10.20.0.25': '0', '10.20.0.193': '0'}, '10.0.0.19': {'10.20.0.193': '0', '10.20.0.14': '0'}} with 2025-10-20 02:36:52,948 - INFO - Initial checks done. Running the testcase now 2025-10-20 02:36:52,948 - INFO - 2025-10-20 02:36:53,608 - DEBUG - Response for create_network : {'network': {'id': '27916dee-d4d7-4992-88f7-a6be8d6bf9de', 'name': 'ctest-vn-28684784', 'tenant_id': '8fb246497ad0485eb450be8f2c4c5006', 'project_id': '8fb246497ad0485eb450be8f2c4c5006', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87760681', 'ctest-vn-28684784'], 'port_security_enabled': True, 'description': ''}} 2025-10-20 02:36:53,897 - DEBUG - Response for create_subnet : {'subnet': {'id': '295484f8-3c6e-4d23-a7d3-48fa6674b3d4', 'name': '', 'tenant_id': '8fb246497ad0485eb450be8f2c4c5006', 'network_id': '27916dee-d4d7-4992-88f7-a6be8d6bf9de', 'ip_version': 4, 'cidr': '88.56.218.0/26', 'allocation_pools': [{'start': '88.56.218.2', 'end': '88.56.218.62'}], 'gateway_ip': '88.56.218.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '88.56.218.2', 'tags': [], 'project_id': '8fb246497ad0485eb450be8f2c4c5006'}} 2025-10-20 02:36:53,920 - INFO - Created VN ctest-vn-28684784 2025-10-20 02:36:53,937 - DEBUG - VN ctest-vn-28684784 UUID is 27916dee-d4d7-4992-88f7-a6be8d6bf9de 2025-10-20 02:36:54,263 - DEBUG - Response for create_network : {'network': {'id': 'be3e9b8f-a796-4739-8f99-a57d15011335', 'name': 'ctest-vn-94560791', 'tenant_id': '8fb246497ad0485eb450be8f2c4c5006', 'project_id': '8fb246497ad0485eb450be8f2c4c5006', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87760681', 'ctest-vn-94560791'], 'port_security_enabled': True, 'description': ''}} 2025-10-20 02:36:54,533 - DEBUG - Response for create_subnet : {'subnet': {'id': '0fcd54fc-92c6-4b67-a5e0-a7fe18d6bdc4', 'name': '', 'tenant_id': '8fb246497ad0485eb450be8f2c4c5006', 'network_id': 'be3e9b8f-a796-4739-8f99-a57d15011335', 'ip_version': 4, 'cidr': '88.252.126.128/26', 'allocation_pools': [{'start': '88.252.126.130', 'end': '88.252.126.190'}], 'gateway_ip': '88.252.126.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '88.252.126.130', 'tags': [], 'project_id': '8fb246497ad0485eb450be8f2c4c5006'}} 2025-10-20 02:36:54,554 - INFO - Created VN ctest-vn-94560791 2025-10-20 02:36:54,566 - DEBUG - VN ctest-vn-94560791 UUID is be3e9b8f-a796-4739-8f99-a57d15011335 2025-10-20 02:36:54,652 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-87760681:ctest-vn-28684784, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-87760681:ctest-vn-94560791, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None] 2025-10-20 02:36:54,965 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '27916dee-d4d7-4992-88f7-a6be8d6bf9de', 'name': 'ctest-vn-28684784', 'tenant_id': '8fb246497ad0485eb450be8f2c4c5006', 'project_id': '8fb246497ad0485eb450be8f2c4c5006', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['295484f8-3c6e-4d23-a7d3-48fa6674b3d4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87760681', 'ctest-vn-28684784'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87760681', 'ctest-policy-allow-all-92425891']], 'subnet_ipam': [{'subnet_cidr': '88.56.218.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-20 02:36:55,179 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'be3e9b8f-a796-4739-8f99-a57d15011335', 'name': 'ctest-vn-94560791', 'tenant_id': '8fb246497ad0485eb450be8f2c4c5006', 'project_id': '8fb246497ad0485eb450be8f2c4c5006', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0fcd54fc-92c6-4b67-a5e0-a7fe18d6bdc4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87760681', 'ctest-vn-94560791'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87760681', 'ctest-policy-allow-all-92425891']], 'subnet_ipam': [{'subnet_cidr': '88.252.126.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-20 02:36:55,263 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-20 02:36:55,592 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-20 02:36:55,617 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9567af48-d216-4b74-bb40-c5fce52cf633 2025-10-20 02:36:55,631 - DEBUG - Requesting: http://10.0.0.22:8082/project/8fb24649-7ad0-485e-b450-be8f2c4c5006 2025-10-20 02:36:55,719 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/27916dee-d4d7-4992-88f7-a6be8d6bf9de 2025-10-20 02:36:55,735 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/27916dee-d4d7-4992-88f7-a6be8d6bf9de 2025-10-20 02:36:55,743 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1ec3a02c-cccf-4a04-b095-6647001e7e7d 2025-10-20 02:36:55,750 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1ec3a02c-cccf-4a04-b095-6647001e7e7d 2025-10-20 02:36:55,756 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/e188dc7a-b96f-4549-ac52-9b55ae0df503 2025-10-20 02:36:55,762 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-20 02:36:55,762 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/27916dee-d4d7-4992-88f7-a6be8d6bf9de 2025-10-20 02:36:55,771 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1ec3a02c-cccf-4a04-b095-6647001e7e7d 2025-10-20 02:36:55,784 - INFO - Verified VN network id 11 for VN 27916dee-d4d7-4992-88f7-a6be8d6bf9de 2025-10-20 02:36:55,784 - INFO - Verifications in API Server for VN ctest-vn-28684784 passed 2025-10-20 02:36:55,785 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/27916dee-d4d7-4992-88f7-a6be8d6bf9de 2025-10-20 02:36:55,794 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1ec3a02c-cccf-4a04-b095-6647001e7e7d 2025-10-20 02:36:55,801 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1ec3a02c-cccf-4a04-b095-6647001e7e7d 2025-10-20 02:36:55,809 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/e188dc7a-b96f-4549-ac52-9b55ae0df503 2025-10-20 02:36:55,820 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87760681:ctest-vn-28684784', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87760681', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2851180911642757522', 'uuid-lslong': '9869540445752392158'}, 'enable': 'true', 'created': '2025-10-20T02:36:53', 'last-modified': '2025-10-20T02:36:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.890463'} 2025-10-20 02:36:55,825 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-20 02:36:55,830 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87760681:ctest-vn-28684784', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87760681', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2851180911642757522', 'uuid-lslong': '9869540445752392158'}, 'enable': 'true', 'created': '2025-10-20T02:36:53', 'last-modified': '2025-10-20T02:36:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.902012'} 2025-10-20 02:36:55,836 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-20 02:36:55,841 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87760681:ctest-vn-28684784', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87760681', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2851180911642757522', 'uuid-lslong': '9869540445752392158'}, 'enable': 'true', 'created': '2025-10-20T02:36:53', 'last-modified': '2025-10-20T02:36:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.904890'} 2025-10-20 02:36:55,846 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-20 02:36:55,846 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-28684784 passed 2025-10-20 02:36:55,847 - DEBUG - ====Verifying policy data for ctest-vn-28684784 in API_Server ====== 2025-10-20 02:36:55,847 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-20 02:36:55,853 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9567af48-d216-4b74-bb40-c5fce52cf633 2025-10-20 02:36:55,864 - DEBUG - Requesting: http://10.0.0.22:8082/project/8fb24649-7ad0-485e-b450-be8f2c4c5006 2025-10-20 02:36:55,954 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/27916dee-d4d7-4992-88f7-a6be8d6bf9de 2025-10-20 02:36:55,964 - DEBUG - ==>Verifying data for policy with id: 85d131a1-2ffd-43c2-804f-0a9586a24d94, fqn: ['default-domain', 'ctest-TestBasicPolicy-87760681', 'ctest-policy-allow-all-92425891'] 2025-10-20 02:36:55,964 - INFO - VN ctest-vn-28684784 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-20 02:36:55,964 - DEBUG - Verifying the vn in opserver 2025-10-20 02:36:55,964 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87760681:ctest-vn-28684784 virtual network link through opserver 10.0.0.22 2025-10-20 02:36:55,964 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-10-20 02:36:56,260 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-10-20 02:36:56,317 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87760681:ctest-vn-28684784', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87760681:ctest-vn-28684784?flat'} 2025-10-20 02:36:56,317 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87760681:ctest-vn-28684784 virtual network link through opserver 10.0.0.254 2025-10-20 02:36:56,318 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-20 02:36:56,617 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-20 02:36:56,675 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87760681:ctest-vn-28684784', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87760681:ctest-vn-28684784?flat'} 2025-10-20 02:36:56,675 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87760681:ctest-vn-28684784 virtual network link through opserver 10.0.0.27 2025-10-20 02:36:56,675 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-10-20 02:36:56,966 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-10-20 02:36:57,027 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87760681:ctest-vn-28684784', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87760681:ctest-vn-28684784?flat'} 2025-10-20 02:36:57,027 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87760681:ctest-vn-28684784 is found in opserver 2025-10-20 02:36:57,046 - DEBUG - Do not have enough data to verify VN in agent 2025-10-20 02:36:57,055 - DEBUG - VRF ids for VN ctest-vn-28684784: {} 2025-10-20 02:36:57,055 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-20 02:36:57,060 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9567af48-d216-4b74-bb40-c5fce52cf633 2025-10-20 02:36:57,071 - DEBUG - Requesting: http://10.0.0.22:8082/project/8fb24649-7ad0-485e-b450-be8f2c4c5006 2025-10-20 02:36:57,160 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/be3e9b8f-a796-4739-8f99-a57d15011335 2025-10-20 02:36:57,172 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/be3e9b8f-a796-4739-8f99-a57d15011335 2025-10-20 02:36:57,181 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c0eca3db-e06d-489c-9202-ae40dcc33e0a 2025-10-20 02:36:57,189 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c0eca3db-e06d-489c-9202-ae40dcc33e0a 2025-10-20 02:36:57,195 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/a3d66c70-edee-4549-86e0-01bfe8b0d4da 2025-10-20 02:36:57,204 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-20 02:36:57,204 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/be3e9b8f-a796-4739-8f99-a57d15011335 2025-10-20 02:36:57,213 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c0eca3db-e06d-489c-9202-ae40dcc33e0a 2025-10-20 02:36:57,226 - INFO - Verified VN network id 12 for VN be3e9b8f-a796-4739-8f99-a57d15011335 2025-10-20 02:36:57,226 - INFO - Verifications in API Server for VN ctest-vn-94560791 passed 2025-10-20 02:36:57,226 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/be3e9b8f-a796-4739-8f99-a57d15011335 2025-10-20 02:36:57,235 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c0eca3db-e06d-489c-9202-ae40dcc33e0a 2025-10-20 02:36:57,242 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c0eca3db-e06d-489c-9202-ae40dcc33e0a 2025-10-20 02:36:57,249 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/a3d66c70-edee-4549-86e0-01bfe8b0d4da 2025-10-20 02:36:57,261 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87760681:ctest-vn-94560791', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87760681', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13708565357056640825', 'uuid-lslong': '10347483575502312245'}, 'enable': 'true', 'created': '2025-10-20T02:36:54', 'last-modified': '2025-10-20T02:36:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.127466'} 2025-10-20 02:36:57,266 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-20 02:36:57,272 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87760681:ctest-vn-94560791', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87760681', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13708565357056640825', 'uuid-lslong': '10347483575502312245'}, 'enable': 'true', 'created': '2025-10-20T02:36:54', 'last-modified': '2025-10-20T02:36:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.134110'} 2025-10-20 02:36:57,280 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-20 02:36:57,285 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87760681:ctest-vn-94560791', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87760681', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13708565357056640825', 'uuid-lslong': '10347483575502312245'}, 'enable': 'true', 'created': '2025-10-20T02:36:54', 'last-modified': '2025-10-20T02:36:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.143223'} 2025-10-20 02:36:57,290 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-20 02:36:57,290 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94560791 passed 2025-10-20 02:36:57,290 - DEBUG - ====Verifying policy data for ctest-vn-94560791 in API_Server ====== 2025-10-20 02:36:57,291 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-20 02:36:57,297 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9567af48-d216-4b74-bb40-c5fce52cf633 2025-10-20 02:36:57,308 - DEBUG - Requesting: http://10.0.0.22:8082/project/8fb24649-7ad0-485e-b450-be8f2c4c5006 2025-10-20 02:36:57,403 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/be3e9b8f-a796-4739-8f99-a57d15011335 2025-10-20 02:36:57,412 - DEBUG - ==>Verifying data for policy with id: 85d131a1-2ffd-43c2-804f-0a9586a24d94, fqn: ['default-domain', 'ctest-TestBasicPolicy-87760681', 'ctest-policy-allow-all-92425891'] 2025-10-20 02:36:57,412 - INFO - VN ctest-vn-94560791 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-20 02:36:57,412 - DEBUG - Verifying the vn in opserver 2025-10-20 02:36:57,412 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87760681:ctest-vn-94560791 virtual network link through opserver 10.0.0.22 2025-10-20 02:36:57,412 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-10-20 02:36:57,466 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87760681:ctest-vn-94560791', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87760681:ctest-vn-94560791?flat'} 2025-10-20 02:36:57,466 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87760681:ctest-vn-94560791 virtual network link through opserver 10.0.0.254 2025-10-20 02:36:57,466 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-20 02:36:57,519 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87760681:ctest-vn-94560791', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87760681:ctest-vn-94560791?flat'} 2025-10-20 02:36:57,519 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87760681:ctest-vn-94560791 virtual network link through opserver 10.0.0.27 2025-10-20 02:36:57,519 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-10-20 02:36:57,573 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87760681:ctest-vn-94560791', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87760681:ctest-vn-94560791?flat'} 2025-10-20 02:36:57,573 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87760681:ctest-vn-94560791 is found in opserver 2025-10-20 02:36:57,591 - DEBUG - Do not have enough data to verify VN in agent 2025-10-20 02:36:57,600 - DEBUG - VRF ids for VN ctest-vn-94560791: {} 2025-10-20 02:36:57,656 - DEBUG - Services list from nova: [, , , ] 2025-10-20 02:36:58,710 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4370-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4370-2) 2025-10-20 02:36:59,951 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4370-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4370-1) 2025-10-20 02:36:59,952 - INFO - Waiting for VM ctest-TestBasicPolicy-87760681-43310460 to be up.. 2025-10-20 02:37:00,038 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-20 02:37:05,120 - DEBUG - VM is in ACTIVE state now 2025-10-20 02:37:05,120 - INFO - VM name : ctest-TestBasicPolicy-87760681-43310460 2025-10-20 02:37:05,195 - DEBUG - VM ctest-TestBasicPolicy-87760681-43310460 ID is ab1a0bfa-4f15-49bb-ae94-5c9444c9948c 2025-10-20 02:37:05,222 - DEBUG - VM ctest-TestBasicPolicy-87760681-43310460 launched on Node an-jenkins-deploy-platform-ansible-os-4370-2 2025-10-20 02:37:05,305 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/ab1a0bfa-4f15-49bb-ae94-5c9444c9948c 2025-10-20 02:37:05,603 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/ab1a0bfa-4f15-49bb-ae94-5c9444c9948c 2025-10-20 02:37:05,658 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/8d27bf69-fab1-4a9b-a1a0-a76ae310d3a9 2025-10-20 02:37:08,831 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1020ms') 2025-10-20 02:37:08,831 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-87760681-43310460 failed! 2025-10-20 02:37:08,843 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-87760681:ctest-vn-28684784 is 88.56.218.1 and allocation pool is NOT set 2025-10-20 02:37:12,934 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1028ms') 2025-10-20 02:37:12,934 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-87760681-43310460 failed! 2025-10-20 02:37:12,947 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-87760681:ctest-vn-28684784 is 88.56.218.1 and allocation pool is NOT set 2025-10-20 02:37:17,029 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1015ms') 2025-10-20 02:37:17,029 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-87760681-43310460 failed! 2025-10-20 02:37:17,043 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-87760681:ctest-vn-28684784 is 88.56.218.1 and allocation pool is NOT set 2025-10-20 02:37:21,126 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1020ms') 2025-10-20 02:37:21,126 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-87760681-43310460 failed! 2025-10-20 02:37:21,139 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-87760681:ctest-vn-28684784 is 88.56.218.1 and allocation pool is NOT set 2025-10-20 02:37:25,215 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1017ms') 2025-10-20 02:37:25,215 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-87760681-43310460 failed! 2025-10-20 02:37:25,229 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-87760681:ctest-vn-28684784 is 88.56.218.1 and allocation pool is NOT set 2025-10-20 02:37:29,313 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1028ms') 2025-10-20 02:37:29,313 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-87760681-43310460 failed! 2025-10-20 02:37:29,326 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-87760681:ctest-vn-28684784 is 88.56.218.1 and allocation pool is NOT set 2025-10-20 02:37:33,409 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1028ms') 2025-10-20 02:37:33,410 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-87760681-43310460 failed! 2025-10-20 02:37:33,424 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-87760681:ctest-vn-28684784 is 88.56.218.1 and allocation pool is NOT set 2025-10-20 02:37:35,484 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=4.39 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.26 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 3.261/3.827/4.393/0.566 ms') 2025-10-20 02:37:35,484 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-87760681-43310460 passed 2025-10-20 02:37:35,555 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-20 02:37:35,555 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-87760681-43310460, IP 88.56.218.3, Port 22 2025-10-20 02:37:35,613 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-10-20 02:37:35,689 - DEBUG - VM ctest-TestBasicPolicy-87760681-43310460 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-20 02:37:40,690 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-20 02:37:40,690 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-87760681-43310460, IP 88.56.218.3, Port 22 2025-10-20 02:37:40,744 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-10-20 02:37:40,820 - DEBUG - VM ctest-TestBasicPolicy-87760681-43310460 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-20 02:37:45,821 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-20 02:37:45,821 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-87760681-43310460, IP 88.56.218.3, Port 22 2025-10-20 02:37:45,877 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-10-20 02:37:45,959 - DEBUG - VM ctest-TestBasicPolicy-87760681-43310460 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-20 02:37:50,961 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-20 02:37:50,961 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-87760681-43310460, IP 88.56.218.3, Port 22 2025-10-20 02:37:51,116 - DEBUG - VM ctest-TestBasicPolicy-87760681-43310460 is ready for SSH connections 2025-10-20 02:37:51,116 - INFO - Waiting for VM ctest-TestBasicPolicy-87760681-06397489 to be up.. 2025-10-20 02:37:51,194 - DEBUG - VM is in ACTIVE state now 2025-10-20 02:37:51,194 - INFO - VM name : ctest-TestBasicPolicy-87760681-06397489 2025-10-20 02:37:51,276 - DEBUG - VM ctest-TestBasicPolicy-87760681-06397489 ID is 608fb893-c211-4e90-8b8a-a23dbe5a4c64 2025-10-20 02:37:51,276 - DEBUG - VM ctest-TestBasicPolicy-87760681-06397489 launched on Node an-jenkins-deploy-platform-ansible-os-4370-1 2025-10-20 02:37:51,349 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/608fb893-c211-4e90-8b8a-a23dbe5a4c64 2025-10-20 02:37:51,358 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/3c4fbb51-bbd1-44b7-aa65-36cba7ab629b 2025-10-20 02:37:52,518 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=5.52 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.69 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 2.692/4.106/5.521/1.414 ms') 2025-10-20 02:37:52,518 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-87760681-06397489 passed 2025-10-20 02:37:52,585 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-20 02:37:52,585 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-87760681-06397489, IP 88.252.126.131, Port 22 2025-10-20 02:37:52,643 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-10-20 02:37:52,730 - DEBUG - VM ctest-TestBasicPolicy-87760681-06397489 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-20 02:37:57,731 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-20 02:37:57,731 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-87760681-06397489, IP 88.252.126.131, Port 22 2025-10-20 02:37:57,886 - DEBUG - VM ctest-TestBasicPolicy-87760681-06397489 is ready for SSH connections 2025-10-20 02:37:57,887 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-20 02:37:57,887 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 88.252.126.131, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.19, gateway password: c0ntrail123 2025-10-20 02:37:57,887 - DEBUG - ping -s 56 -c 3 -W 1 88.252.126.131 2025-10-20 02:38:42,058 - DEBUG - PING 88.252.126.131 (88.252.126.131) 56(84) bytes of data. 64 bytes from 88.252.126.131: icmp_req=1 ttl=63 time=7.12 ms 64 bytes from 88.252.126.131: icmp_req=2 ttl=63 time=1.41 ms 64 bytes from 88.252.126.131: icmp_req=3 ttl=63 time=1.04 ms --- 88.252.126.131 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2004ms rtt min/avg/max/mdev = 1.042/3.196/7.129/2.785 ms 2025-10-20 02:38:42,058 - INFO - Ping to IP 88.252.126.131 from VM ctest-TestBasicPolicy-87760681-43310460 passed 2025-10-20 02:38:42,253 - DEBUG - Policy Update Response {"network-policy": {"uuid": "85d131a1-2ffd-43c2-804f-0a9586a24d94", "href": "http://10.0.0.27:8082/network-policy/85d131a1-2ffd-43c2-804f-0a9586a24d94"}} 2025-10-20 02:38:42,253 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-20 02:38:42,253 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 88.252.126.131, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.19, gateway password: c0ntrail123 2025-10-20 02:38:42,253 - DEBUG - ping -s 56 -c 3 -W 1 88.252.126.131 2025-10-20 02:38:45,667 - DEBUG - PING 88.252.126.131 (88.252.126.131) 56(84) bytes of data. 64 bytes from 88.252.126.131: icmp_req=1 ttl=63 time=1.92 ms --- 88.252.126.131 ping statistics --- 3 packets transmitted, 1 received, 66% packet loss, time 2010ms rtt min/avg/max/mdev = 1.924/1.924/1.924/0.000 ms 2025-10-20 02:38:45,667 - WARNING - Ping to IP 88.252.126.131 from VM ctest-TestBasicPolicy-87760681-43310460 failed 2025-10-20 02:38:45,667 - INFO - Deleting VM ctest-TestBasicPolicy-87760681-06397489 2025-10-20 02:38:45,733 - INFO - Deleting VM ctest-TestBasicPolicy-87760681-43310460 2025-10-20 02:38:46,178 - INFO - Deleted policy ctest-policy-allow-all-92425891 2025-10-20 02:38:46,178 - INFO - Deleting VN ctest-vn-94560791 2025-10-20 02:38:46,222 - DEBUG - VN be3e9b8f-a796-4739-8f99-a57d15011335 still in use: Unable to complete operation on network be3e9b8f-a796-4739-8f99-a57d15011335. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-9ee40ce2-e41f-42ae-ab27-cbd3d7876d2a'] 2025-10-20 02:38:46,223 - WARNING - Deleting VN ctest-vn-94560791 failed..Will retry 2025-10-20 02:38:48,378 - DEBUG - Response for deleting network () 2025-10-20 02:38:48,378 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c0eca3db-e06d-489c-9202-ae40dcc33e0a 2025-10-20 02:38:48,384 - DEBUG - Response Code: 404 2025-10-20 02:38:48,384 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-20 02:38:48,391 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9567af48-d216-4b74-bb40-c5fce52cf633 2025-10-20 02:38:48,412 - DEBUG - Requesting: http://10.0.0.22:8082/project/8fb24649-7ad0-485e-b450-be8f2c4c5006 2025-10-20 02:38:48,496 - INFO - Validated that VN ctest-vn-94560791 is not found in API Server 2025-10-20 02:38:48,511 - DEBUG - VN ctest-vn-94560791 is not present in Agent 10.0.0.131 2025-10-20 02:38:48,520 - DEBUG - VN ctest-vn-94560791 is not present in Agent 10.0.0.19 2025-10-20 02:38:48,520 - INFO - Validated that VN ctest-vn-94560791 is not in any agent 2025-10-20 02:38:48,548 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-94560791 info 2025-10-20 02:38:48,548 - INFO - Deleting VN ctest-vn-28684784 2025-10-20 02:38:48,735 - DEBUG - Response for deleting network () 2025-10-20 02:38:48,736 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1ec3a02c-cccf-4a04-b095-6647001e7e7d 2025-10-20 02:38:48,741 - DEBUG - Response Code: 404 2025-10-20 02:38:48,741 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-20 02:38:48,746 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9567af48-d216-4b74-bb40-c5fce52cf633 2025-10-20 02:38:48,756 - DEBUG - Requesting: http://10.0.0.22:8082/project/8fb24649-7ad0-485e-b450-be8f2c4c5006 2025-10-20 02:38:48,845 - INFO - Validated that VN ctest-vn-28684784 is not found in API Server 2025-10-20 02:38:48,854 - DEBUG - VN ctest-vn-28684784 is not present in Agent 10.0.0.131 2025-10-20 02:38:48,865 - DEBUG - VN ctest-vn-28684784 is not present in Agent 10.0.0.19 2025-10-20 02:38:48,865 - INFO - Validated that VN ctest-vn-28684784 is not in any agent 2025-10-20 02:38:48,904 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-28684784 info 2025-10-20 02:38:50,171 - DEBUG - No XMPP flaps were noticed during the test 2025-10-20 02:38:50,171 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:01:59] 2025-10-20 02:38:50,171 - INFO - -------------------------------------------------------------------------------- 2025-10-20 02:38:50,864 - INFO - Deleted project: ctest-TestBasicPolicy-87760681, ID : 8fb24649-7ad0-485e-b450-be8f2c4c5006