2026-01-01 02:29:59,240 - INFO - Domain Default found not creating 2026-01-01 02:29:59,441 - INFO - Project ctest-TestBasicPolicy-72499133 not found, creating it 2026-01-01 02:30:00,090 - INFO - Created Project:ctest-TestBasicPolicy-72499133, ID : 3e3e3488-d84f-41f7-bf93-897343a3150c 2026-01-01 02:30:01,911 - INFO - ================================================================================ 2026-01-01 02:30:01,912 - INFO - STARTING TEST : test_basic_policy_allow_deny 2026-01-01 02:30:01,912 - 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 2026-01-01 02:30:03,198 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.14': '0', '10.20.0.18': '0'}, '10.0.0.23': {'10.20.0.14': '0', '10.20.0.18': '0'}} with 2026-01-01 02:30:03,198 - INFO - Initial checks done. Running the testcase now 2026-01-01 02:30:03,198 - INFO - 2026-01-01 02:30:04,053 - DEBUG - Response for create_network : {'network': {'id': 'af1dd36e-1ad4-4411-a864-36e8ca388462', 'name': 'ctest-vn-65831789', 'tenant_id': '3e3e3488d84f41f7bf93897343a3150c', 'project_id': '3e3e3488d84f41f7bf93897343a3150c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72499133', 'ctest-vn-65831789'], 'port_security_enabled': True, 'description': ''}} 2026-01-01 02:30:04,387 - DEBUG - Response for create_subnet : {'subnet': {'id': '368a57dc-1c8c-4509-9209-1e0cd3d209db', 'name': '', 'tenant_id': '3e3e3488d84f41f7bf93897343a3150c', 'network_id': 'af1dd36e-1ad4-4411-a864-36e8ca388462', 'ip_version': 4, 'cidr': '145.141.115.0/26', 'allocation_pools': [{'start': '145.141.115.2', 'end': '145.141.115.62'}], 'gateway_ip': '145.141.115.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '145.141.115.2', 'tags': [], 'project_id': '3e3e3488d84f41f7bf93897343a3150c'}} 2026-01-01 02:30:04,414 - INFO - Created VN ctest-vn-65831789 2026-01-01 02:30:04,426 - DEBUG - VN ctest-vn-65831789 UUID is af1dd36e-1ad4-4411-a864-36e8ca388462 2026-01-01 02:30:04,801 - DEBUG - Response for create_network : {'network': {'id': '1ae6d30b-a47e-47e2-8a9f-b32f0271cb4b', 'name': 'ctest-vn-85943918', 'tenant_id': '3e3e3488d84f41f7bf93897343a3150c', 'project_id': '3e3e3488d84f41f7bf93897343a3150c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72499133', 'ctest-vn-85943918'], 'port_security_enabled': True, 'description': ''}} 2026-01-01 02:30:05,060 - DEBUG - Response for create_subnet : {'subnet': {'id': '789fbf2c-4786-4af2-acb0-680806236cca', 'name': '', 'tenant_id': '3e3e3488d84f41f7bf93897343a3150c', 'network_id': '1ae6d30b-a47e-47e2-8a9f-b32f0271cb4b', 'ip_version': 4, 'cidr': '28.29.100.128/26', 'allocation_pools': [{'start': '28.29.100.130', 'end': '28.29.100.190'}], 'gateway_ip': '28.29.100.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '28.29.100.130', 'tags': [], 'project_id': '3e3e3488d84f41f7bf93897343a3150c'}} 2026-01-01 02:30:05,085 - INFO - Created VN ctest-vn-85943918 2026-01-01 02:30:05,098 - DEBUG - VN ctest-vn-85943918 UUID is 1ae6d30b-a47e-47e2-8a9f-b32f0271cb4b 2026-01-01 02:30:05,192 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-72499133:ctest-vn-65831789, 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-72499133:ctest-vn-85943918, 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] 2026-01-01 02:30:05,547 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'af1dd36e-1ad4-4411-a864-36e8ca388462', 'name': 'ctest-vn-65831789', 'tenant_id': '3e3e3488d84f41f7bf93897343a3150c', 'project_id': '3e3e3488d84f41f7bf93897343a3150c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['368a57dc-1c8c-4509-9209-1e0cd3d209db'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72499133', 'ctest-vn-65831789'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-72499133', 'ctest-policy-allow-all-03105312']], 'subnet_ipam': [{'subnet_cidr': '145.141.115.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-01 02:30:05,758 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1ae6d30b-a47e-47e2-8a9f-b32f0271cb4b', 'name': 'ctest-vn-85943918', 'tenant_id': '3e3e3488d84f41f7bf93897343a3150c', 'project_id': '3e3e3488d84f41f7bf93897343a3150c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['789fbf2c-4786-4af2-acb0-680806236cca'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72499133', 'ctest-vn-85943918'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-72499133', 'ctest-policy-allow-all-03105312']], 'subnet_ipam': [{'subnet_cidr': '28.29.100.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-01 02:30:05,855 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-01 02:30:06,195 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-01 02:30:06,235 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b5800509-dc40-4626-b491-badce4b95394 2026-01-01 02:30:06,253 - DEBUG - Requesting: http://10.0.0.38:8082/project/3e3e3488-d84f-41f7-bf93-897343a3150c 2026-01-01 02:30:06,370 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/af1dd36e-1ad4-4411-a864-36e8ca388462 2026-01-01 02:30:06,389 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/af1dd36e-1ad4-4411-a864-36e8ca388462 2026-01-01 02:30:06,400 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9a792896-b6f4-4f1f-92a5-db32f2a8e84a 2026-01-01 02:30:06,410 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9a792896-b6f4-4f1f-92a5-db32f2a8e84a 2026-01-01 02:30:06,422 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/cc1b6277-3e7e-46cc-bbb2-4e22badcd2eb 2026-01-01 02:30:06,432 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-01 02:30:06,433 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/af1dd36e-1ad4-4411-a864-36e8ca388462 2026-01-01 02:30:06,448 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9a792896-b6f4-4f1f-92a5-db32f2a8e84a 2026-01-01 02:30:06,471 - INFO - Verified VN network id 14 for VN af1dd36e-1ad4-4411-a864-36e8ca388462 2026-01-01 02:30:06,471 - INFO - Verifications in API Server for VN ctest-vn-65831789 passed 2026-01-01 02:30:06,471 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/af1dd36e-1ad4-4411-a864-36e8ca388462 2026-01-01 02:30:06,484 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9a792896-b6f4-4f1f-92a5-db32f2a8e84a 2026-01-01 02:30:06,495 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9a792896-b6f4-4f1f-92a5-db32f2a8e84a 2026-01-01 02:30:06,507 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/cc1b6277-3e7e-46cc-bbb2-4e22badcd2eb 2026-01-01 02:30:06,526 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-72499133:ctest-vn-65831789', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-72499133', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12618474200811979793', 'uuid-lslong': '12133883669495972962'}, 'enable': 'true', 'created': '2026-01-01T02:30:03', 'last-modified': '2026-01-01T02:30:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.030769'} 2026-01-01 02:30:06,535 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-01 02:30:06,544 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-72499133:ctest-vn-65831789', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-72499133', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12618474200811979793', 'uuid-lslong': '12133883669495972962'}, 'enable': 'true', 'created': '2026-01-01T02:30:03', 'last-modified': '2026-01-01T02:30:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.050308'} 2026-01-01 02:30:06,552 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-01 02:30:06,560 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-72499133:ctest-vn-65831789', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-72499133', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12618474200811979793', 'uuid-lslong': '12133883669495972962'}, 'enable': 'true', 'created': '2026-01-01T02:30:03', 'last-modified': '2026-01-01T02:30:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.057734'} 2026-01-01 02:30:06,569 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-01 02:30:06,569 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65831789 passed 2026-01-01 02:30:06,569 - DEBUG - ====Verifying policy data for ctest-vn-65831789 in API_Server ====== 2026-01-01 02:30:06,570 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-01 02:30:06,579 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b5800509-dc40-4626-b491-badce4b95394 2026-01-01 02:30:06,595 - DEBUG - Requesting: http://10.0.0.38:8082/project/3e3e3488-d84f-41f7-bf93-897343a3150c 2026-01-01 02:30:06,707 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/af1dd36e-1ad4-4411-a864-36e8ca388462 2026-01-01 02:30:06,719 - DEBUG - ==>Verifying data for policy with id: 353b310a-a6ff-4402-9aba-34caf1fd7327, fqn: ['default-domain', 'ctest-TestBasicPolicy-72499133', 'ctest-policy-allow-all-03105312'] 2026-01-01 02:30:06,719 - INFO - VN ctest-vn-65831789 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-01 02:30:06,719 - DEBUG - Verifying the vn in opserver 2026-01-01 02:30:06,719 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-72499133:ctest-vn-65831789 virtual network link through opserver 10.0.0.38 2026-01-01 02:30:06,719 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-01 02:30:07,038 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-01 02:30:07,134 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-72499133:ctest-vn-65831789', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-72499133:ctest-vn-65831789?flat'} 2026-01-01 02:30:07,134 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-72499133:ctest-vn-65831789 virtual network link through opserver 10.0.0.249 2026-01-01 02:30:07,134 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-01-01 02:30:07,442 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-01-01 02:30:07,524 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-72499133:ctest-vn-65831789', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-72499133:ctest-vn-65831789?flat'} 2026-01-01 02:30:07,524 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-72499133:ctest-vn-65831789 virtual network link through opserver 10.0.0.27 2026-01-01 02:30:07,524 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-01-01 02:30:07,831 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-01-01 02:30:07,929 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-72499133:ctest-vn-65831789', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-72499133:ctest-vn-65831789?flat'} 2026-01-01 02:30:07,929 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-72499133:ctest-vn-65831789 is found in opserver 2026-01-01 02:30:07,953 - DEBUG - Do not have enough data to verify VN in agent 2026-01-01 02:30:07,964 - DEBUG - VRF ids for VN ctest-vn-65831789: {} 2026-01-01 02:30:07,965 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-01 02:30:07,972 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b5800509-dc40-4626-b491-badce4b95394 2026-01-01 02:30:07,986 - DEBUG - Requesting: http://10.0.0.38:8082/project/3e3e3488-d84f-41f7-bf93-897343a3150c 2026-01-01 02:30:08,082 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1ae6d30b-a47e-47e2-8a9f-b32f0271cb4b 2026-01-01 02:30:08,098 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1ae6d30b-a47e-47e2-8a9f-b32f0271cb4b 2026-01-01 02:30:08,111 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a2c7d321-a1da-4f50-9fd5-b405b2fc49e7 2026-01-01 02:30:08,124 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a2c7d321-a1da-4f50-9fd5-b405b2fc49e7 2026-01-01 02:30:08,135 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b1363194-1afd-4c02-8e6d-555970f9164d 2026-01-01 02:30:08,143 - DEBUG - Route Targets: ['target:64512:8000006'] 2026-01-01 02:30:08,143 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1ae6d30b-a47e-47e2-8a9f-b32f0271cb4b 2026-01-01 02:30:08,156 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a2c7d321-a1da-4f50-9fd5-b405b2fc49e7 2026-01-01 02:30:08,179 - INFO - Verified VN network id 15 for VN 1ae6d30b-a47e-47e2-8a9f-b32f0271cb4b 2026-01-01 02:30:08,180 - INFO - Verifications in API Server for VN ctest-vn-85943918 passed 2026-01-01 02:30:08,180 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1ae6d30b-a47e-47e2-8a9f-b32f0271cb4b 2026-01-01 02:30:08,192 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a2c7d321-a1da-4f50-9fd5-b405b2fc49e7 2026-01-01 02:30:08,201 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a2c7d321-a1da-4f50-9fd5-b405b2fc49e7 2026-01-01 02:30:08,213 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b1363194-1afd-4c02-8e6d-555970f9164d 2026-01-01 02:30:08,233 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-72499133:ctest-vn-85943918', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-72499133', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1938468736587417570', 'uuid-lslong': '9988899513016896331'}, 'enable': 'true', 'created': '2026-01-01T02:30:04', 'last-modified': '2026-01-01T02:30:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.512639'} 2026-01-01 02:30:08,241 - DEBUG - Route Targets: ['target:64512:8000006'] 2026-01-01 02:30:08,248 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-72499133:ctest-vn-85943918', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-72499133', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1938468736587417570', 'uuid-lslong': '9988899513016896331'}, 'enable': 'true', 'created': '2026-01-01T02:30:04', 'last-modified': '2026-01-01T02:30:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.529894'} 2026-01-01 02:30:08,256 - DEBUG - Route Targets: ['target:64512:8000006'] 2026-01-01 02:30:08,264 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-72499133:ctest-vn-85943918', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-72499133', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1938468736587417570', 'uuid-lslong': '9988899513016896331'}, 'enable': 'true', 'created': '2026-01-01T02:30:04', 'last-modified': '2026-01-01T02:30:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.551810'} 2026-01-01 02:30:08,271 - DEBUG - Route Targets: ['target:64512:8000006'] 2026-01-01 02:30:08,271 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-85943918 passed 2026-01-01 02:30:08,272 - DEBUG - ====Verifying policy data for ctest-vn-85943918 in API_Server ====== 2026-01-01 02:30:08,272 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-01 02:30:08,280 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b5800509-dc40-4626-b491-badce4b95394 2026-01-01 02:30:08,295 - DEBUG - Requesting: http://10.0.0.38:8082/project/3e3e3488-d84f-41f7-bf93-897343a3150c 2026-01-01 02:30:08,415 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1ae6d30b-a47e-47e2-8a9f-b32f0271cb4b 2026-01-01 02:30:08,428 - DEBUG - ==>Verifying data for policy with id: 353b310a-a6ff-4402-9aba-34caf1fd7327, fqn: ['default-domain', 'ctest-TestBasicPolicy-72499133', 'ctest-policy-allow-all-03105312'] 2026-01-01 02:30:08,428 - INFO - VN ctest-vn-85943918 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-01 02:30:08,428 - DEBUG - Verifying the vn in opserver 2026-01-01 02:30:08,428 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-72499133:ctest-vn-85943918 virtual network link through opserver 10.0.0.38 2026-01-01 02:30:08,428 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-01 02:30:08,511 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-72499133:ctest-vn-85943918', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-72499133:ctest-vn-85943918?flat'} 2026-01-01 02:30:08,512 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-72499133:ctest-vn-85943918 virtual network link through opserver 10.0.0.249 2026-01-01 02:30:08,512 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-01-01 02:30:08,597 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-72499133:ctest-vn-85943918', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-72499133:ctest-vn-85943918?flat'} 2026-01-01 02:30:08,597 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-72499133:ctest-vn-85943918 virtual network link through opserver 10.0.0.27 2026-01-01 02:30:08,597 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-01-01 02:30:08,670 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-72499133:ctest-vn-85943918', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-72499133:ctest-vn-85943918?flat'} 2026-01-01 02:30:08,671 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-72499133:ctest-vn-85943918 is found in opserver 2026-01-01 02:30:08,695 - DEBUG - Do not have enough data to verify VN in agent 2026-01-01 02:30:08,709 - DEBUG - VRF ids for VN ctest-vn-85943918: {} 2026-01-01 02:30:08,778 - DEBUG - Services list from nova: [, , , ] 2026-01-01 02:30:10,142 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4945-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4945-1) 2026-01-01 02:30:11,649 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4945-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4945-2) 2026-01-01 02:30:11,650 - INFO - Waiting for VM ctest-TestBasicPolicy-72499133-42397569 to be up.. 2026-01-01 02:30:11,774 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2026-01-01 02:30:16,880 - DEBUG - VM is in ACTIVE state now 2026-01-01 02:30:16,881 - INFO - VM name : ctest-TestBasicPolicy-72499133-42397569 2026-01-01 02:30:16,989 - DEBUG - VM ctest-TestBasicPolicy-72499133-42397569 ID is 9d40710b-7dc0-4c38-9e86-9cebd62274f9 2026-01-01 02:30:17,020 - DEBUG - VM ctest-TestBasicPolicy-72499133-42397569 launched on Node an-jenkins-deploy-platform-ansible-os-4945-1 2026-01-01 02:30:17,130 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/9d40710b-7dc0-4c38-9e86-9cebd62274f9 2026-01-01 02:30:17,448 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/9d40710b-7dc0-4c38-9e86-9cebd62274f9 2026-01-01 02:30:17,487 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/0868a058-1fd5-4edc-a66b-767e545d0424 2026-01-01 02:30:20,654 - 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 1010ms') 2026-01-01 02:30:20,655 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-72499133-42397569 failed! 2026-01-01 02:30:20,671 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-72499133:ctest-vn-65831789 is 145.141.115.1 and allocation pool is NOT set 2026-01-01 02:30:24,752 - 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 1023ms') 2026-01-01 02:30:24,752 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-72499133-42397569 failed! 2026-01-01 02:30:24,767 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-72499133:ctest-vn-65831789 is 145.141.115.1 and allocation pool is NOT set 2026-01-01 02:30:28,855 - 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 1023ms') 2026-01-01 02:30:28,855 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-72499133-42397569 failed! 2026-01-01 02:30:28,871 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-72499133:ctest-vn-65831789 is 145.141.115.1 and allocation pool is NOT set 2026-01-01 02:30:32,945 - 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 1019ms') 2026-01-01 02:30:32,946 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-72499133-42397569 failed! 2026-01-01 02:30:32,963 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-72499133:ctest-vn-65831789 is 145.141.115.1 and allocation pool is NOT set 2026-01-01 02:30:37,050 - 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 1023ms') 2026-01-01 02:30:37,050 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-72499133-42397569 failed! 2026-01-01 02:30:37,066 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-72499133:ctest-vn-65831789 is 145.141.115.1 and allocation pool is NOT set 2026-01-01 02:30:41,138 - 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 1007ms') 2026-01-01 02:30:41,138 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-72499133-42397569 failed! 2026-01-01 02:30:41,153 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-72499133:ctest-vn-65831789 is 145.141.115.1 and allocation pool is NOT set 2026-01-01 02:30:45,232 - 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 1019ms') 2026-01-01 02:30:45,233 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-72499133-42397569 failed! 2026-01-01 02:30:45,248 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-72499133:ctest-vn-65831789 is 145.141.115.1 and allocation pool is NOT set 2026-01-01 02:30:47,312 - 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=8.30 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.62 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 = 1.622/4.959/8.297/3.337 ms') 2026-01-01 02:30:47,312 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-72499133-42397569 passed 2026-01-01 02:30:47,383 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-01-01 02:30:47,383 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-72499133-42397569, IP 145.141.115.3, Port 22 2026-01-01 02:30:47,451 - 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': ''} 2026-01-01 02:30:47,538 - DEBUG - VM ctest-TestBasicPolicy-72499133-42397569 is NOT ready for SSH connections, VM status: ACTIVE 2026-01-01 02:30:52,540 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-01-01 02:30:52,540 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-72499133-42397569, IP 145.141.115.3, Port 22 2026-01-01 02:30:52,596 - 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': ''} 2026-01-01 02:30:52,681 - DEBUG - VM ctest-TestBasicPolicy-72499133-42397569 is NOT ready for SSH connections, VM status: ACTIVE 2026-01-01 02:30:57,682 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-01-01 02:30:57,683 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-72499133-42397569, IP 145.141.115.3, Port 22 2026-01-01 02:30:57,740 - 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': ''} 2026-01-01 02:30:57,825 - DEBUG - VM ctest-TestBasicPolicy-72499133-42397569 is NOT ready for SSH connections, VM status: ACTIVE 2026-01-01 02:31:02,826 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-01-01 02:31:02,826 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-72499133-42397569, IP 145.141.115.3, Port 22 2026-01-01 02:31:02,884 - 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': ''} 2026-01-01 02:31:02,981 - DEBUG - VM ctest-TestBasicPolicy-72499133-42397569 is NOT ready for SSH connections, VM status: ACTIVE 2026-01-01 02:31:07,982 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-01-01 02:31:07,982 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-72499133-42397569, IP 145.141.115.3, Port 22 2026-01-01 02:31:08,154 - DEBUG - VM ctest-TestBasicPolicy-72499133-42397569 is ready for SSH connections 2026-01-01 02:31:08,154 - INFO - Waiting for VM ctest-TestBasicPolicy-72499133-34016047 to be up.. 2026-01-01 02:31:08,255 - DEBUG - VM is in ACTIVE state now 2026-01-01 02:31:08,255 - INFO - VM name : ctest-TestBasicPolicy-72499133-34016047 2026-01-01 02:31:08,340 - DEBUG - VM ctest-TestBasicPolicy-72499133-34016047 ID is 180143be-ca17-4370-832e-fe1a74cd7708 2026-01-01 02:31:08,340 - DEBUG - VM ctest-TestBasicPolicy-72499133-34016047 launched on Node an-jenkins-deploy-platform-ansible-os-4945-2 2026-01-01 02:31:08,433 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/180143be-ca17-4370-832e-fe1a74cd7708 2026-01-01 02:31:08,443 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/892796fa-0c99-4bc3-977a-3465f76af86d 2026-01-01 02:31:09,614 - 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=3.02 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.36 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 = 1.356/2.186/3.017/0.830 ms') 2026-01-01 02:31:09,614 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-72499133-34016047 passed 2026-01-01 02:31:09,695 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-01-01 02:31:09,695 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-72499133-34016047, IP 28.29.100.131, Port 22 2026-01-01 02:31:09,852 - DEBUG - VM ctest-TestBasicPolicy-72499133-34016047 is ready for SSH connections 2026-01-01 02:31:09,852 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-01-01 02:31:09,853 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 28.29.100.131, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.242, gateway password: c0ntrail123 2026-01-01 02:31:09,853 - DEBUG - ping -s 56 -c 3 -W 1 28.29.100.131 2026-01-01 02:31:28,446 - DEBUG - PING 28.29.100.131 (28.29.100.131) 56(84) bytes of data. 64 bytes from 28.29.100.131: icmp_req=1 ttl=63 time=9.71 ms 64 bytes from 28.29.100.131: icmp_req=2 ttl=63 time=1.29 ms 64 bytes from 28.29.100.131: icmp_req=3 ttl=63 time=1.02 ms --- 28.29.100.131 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2004ms rtt min/avg/max/mdev = 1.029/4.012/9.713/4.032 ms 2026-01-01 02:31:28,446 - INFO - Ping to IP 28.29.100.131 from VM ctest-TestBasicPolicy-72499133-42397569 passed 2026-01-01 02:31:28,642 - DEBUG - Policy Update Response {"network-policy": {"uuid": "353b310a-a6ff-4402-9aba-34caf1fd7327", "href": "http://10.0.0.27:8082/network-policy/353b310a-a6ff-4402-9aba-34caf1fd7327"}} 2026-01-01 02:31:28,642 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-01-01 02:31:28,642 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 28.29.100.131, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.242, gateway password: c0ntrail123 2026-01-01 02:31:28,642 - DEBUG - ping -s 56 -c 3 -W 1 28.29.100.131 2026-01-01 02:31:32,088 - DEBUG - PING 28.29.100.131 (28.29.100.131) 56(84) bytes of data. 64 bytes from 28.29.100.131: icmp_req=1 ttl=63 time=5.19 ms --- 28.29.100.131 ping statistics --- 3 packets transmitted, 1 received, 66% packet loss, time 2002ms rtt min/avg/max/mdev = 5.191/5.191/5.191/0.000 ms 2026-01-01 02:31:32,088 - WARNING - Ping to IP 28.29.100.131 from VM ctest-TestBasicPolicy-72499133-42397569 failed 2026-01-01 02:31:32,088 - INFO - Deleting VM ctest-TestBasicPolicy-72499133-34016047 2026-01-01 02:31:32,189 - INFO - Deleting VM ctest-TestBasicPolicy-72499133-42397569 2026-01-01 02:31:32,684 - INFO - Deleted policy ctest-policy-allow-all-03105312 2026-01-01 02:31:32,684 - INFO - Deleting VN ctest-vn-85943918 2026-01-01 02:31:32,748 - DEBUG - VN 1ae6d30b-a47e-47e2-8a9f-b32f0271cb4b still in use: Unable to complete operation on network 1ae6d30b-a47e-47e2-8a9f-b32f0271cb4b. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-172df15c-99fa-419a-bc08-92c38116910a'] 2026-01-01 02:31:32,748 - WARNING - Deleting VN ctest-vn-85943918 failed..Will retry 2026-01-01 02:31:34,906 - DEBUG - Response for deleting network () 2026-01-01 02:31:34,906 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a2c7d321-a1da-4f50-9fd5-b405b2fc49e7 2026-01-01 02:31:34,912 - DEBUG - Response Code: 404 2026-01-01 02:31:34,912 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-01 02:31:34,919 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b5800509-dc40-4626-b491-badce4b95394 2026-01-01 02:31:34,938 - DEBUG - Requesting: http://10.0.0.38:8082/project/3e3e3488-d84f-41f7-bf93-897343a3150c 2026-01-01 02:31:35,043 - INFO - Validated that VN ctest-vn-85943918 is not found in API Server 2026-01-01 02:31:35,059 - DEBUG - VN ctest-vn-85943918 is not present in Agent 10.0.0.242 2026-01-01 02:31:35,074 - DEBUG - VN ctest-vn-85943918 is not present in Agent 10.0.0.23 2026-01-01 02:31:35,074 - INFO - Validated that VN ctest-vn-85943918 is not in any agent 2026-01-01 02:31:35,111 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-85943918 info 2026-01-01 02:31:35,111 - INFO - Deleting VN ctest-vn-65831789 2026-01-01 02:31:35,343 - DEBUG - Response for deleting network () 2026-01-01 02:31:35,343 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9a792896-b6f4-4f1f-92a5-db32f2a8e84a 2026-01-01 02:31:35,353 - DEBUG - Response Code: 404 2026-01-01 02:31:35,354 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-01 02:31:35,364 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b5800509-dc40-4626-b491-badce4b95394 2026-01-01 02:31:35,389 - DEBUG - Requesting: http://10.0.0.38:8082/project/3e3e3488-d84f-41f7-bf93-897343a3150c 2026-01-01 02:31:35,482 - INFO - Validated that VN ctest-vn-65831789 is not found in API Server 2026-01-01 02:31:35,493 - DEBUG - VN ctest-vn-65831789 is not present in Agent 10.0.0.242 2026-01-01 02:31:35,504 - DEBUG - VN ctest-vn-65831789 is not present in Agent 10.0.0.23 2026-01-01 02:31:35,504 - INFO - Validated that VN ctest-vn-65831789 is not in any agent 2026-01-01 02:31:35,539 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-65831789 info 2026-01-01 02:31:36,799 - DEBUG - No XMPP flaps were noticed during the test
2026-01-01 02:31:36,799 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:01:35]
2026-01-01 02:31:36,799 - INFO - -------------------------------------------------------------------------------- 2026-01-01 02:31:37,605 - INFO - Deleted project: ctest-TestBasicPolicy-72499133, ID : 3e3e3488-d84f-41f7-bf93-897343a3150c