2026-04-20 17:10:38,172 - INFO - Domain Default found not creating 2026-04-20 17:10:38,381 - INFO - Project ctest-TestBasicPolicy-38047305 not found, creating it 2026-04-20 17:10:39,027 - INFO - Created Project:ctest-TestBasicPolicy-38047305, ID : 10342cda-9f51-46bd-a807-65f3ab172717 2026-04-20 17:10:40,781 - INFO - ================================================================================ 2026-04-20 17:10:40,781 - INFO - STARTING TEST : test_basic_policy_allow_deny 2026-04-20 17:10:40,781 - 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-04-20 17:10:42,073 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.193': '0', '10.20.0.25': '0'}, '10.0.0.130': {'10.20.0.193': '0', '10.20.0.25': '0'}} with 2026-04-20 17:10:42,073 - INFO - Initial checks done. Running the testcase now 2026-04-20 17:10:42,073 - INFO - 2026-04-20 17:10:42,926 - DEBUG - Response for create_network : {'network': {'id': '75c01446-52b1-472c-8254-14996f81151e', 'name': 'ctest-vn-90756050', 'tenant_id': '10342cda9f5146bda80765f3ab172717', 'project_id': '10342cda9f5146bda80765f3ab172717', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38047305', 'ctest-vn-90756050'], 'port_security_enabled': True, 'description': ''}} 2026-04-20 17:10:43,342 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eb499616-4f6a-40b9-b8be-2064814b6bab', 'name': '', 'tenant_id': '10342cda9f5146bda80765f3ab172717', 'network_id': '75c01446-52b1-472c-8254-14996f81151e', 'ip_version': 4, 'cidr': '151.250.107.128/26', 'allocation_pools': [{'start': '151.250.107.130', 'end': '151.250.107.190'}], 'gateway_ip': '151.250.107.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '151.250.107.130', 'tags': [], 'project_id': '10342cda9f5146bda80765f3ab172717'}} 2026-04-20 17:10:43,395 - INFO - Created VN ctest-vn-90756050 2026-04-20 17:10:43,412 - DEBUG - VN ctest-vn-90756050 UUID is 75c01446-52b1-472c-8254-14996f81151e 2026-04-20 17:10:43,856 - DEBUG - Response for create_network : {'network': {'id': '9bfba7c5-43b9-439b-bb21-f7622cd18640', 'name': 'ctest-vn-54774152', 'tenant_id': '10342cda9f5146bda80765f3ab172717', 'project_id': '10342cda9f5146bda80765f3ab172717', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38047305', 'ctest-vn-54774152'], 'port_security_enabled': True, 'description': ''}} 2026-04-20 17:10:44,152 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c0a72411-0597-4efa-bc96-e4b586a438e4', 'name': '', 'tenant_id': '10342cda9f5146bda80765f3ab172717', 'network_id': '9bfba7c5-43b9-439b-bb21-f7622cd18640', 'ip_version': 4, 'cidr': '95.33.79.192/26', 'allocation_pools': [{'start': '95.33.79.194', 'end': '95.33.79.254'}], 'gateway_ip': '95.33.79.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '95.33.79.194', 'tags': [], 'project_id': '10342cda9f5146bda80765f3ab172717'}} 2026-04-20 17:10:44,209 - INFO - Created VN ctest-vn-54774152 2026-04-20 17:10:44,226 - DEBUG - VN ctest-vn-54774152 UUID is 9bfba7c5-43b9-439b-bb21-f7622cd18640 2026-04-20 17:10:44,349 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-38047305:ctest-vn-90756050, 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-38047305:ctest-vn-54774152, 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-04-20 17:10:44,705 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '75c01446-52b1-472c-8254-14996f81151e', 'name': 'ctest-vn-90756050', 'tenant_id': '10342cda9f5146bda80765f3ab172717', 'project_id': '10342cda9f5146bda80765f3ab172717', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['eb499616-4f6a-40b9-b8be-2064814b6bab'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38047305', 'ctest-vn-90756050'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38047305', 'ctest-policy-allow-all-10297914']], 'subnet_ipam': [{'subnet_cidr': '151.250.107.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-20 17:10:44,981 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9bfba7c5-43b9-439b-bb21-f7622cd18640', 'name': 'ctest-vn-54774152', 'tenant_id': '10342cda9f5146bda80765f3ab172717', 'project_id': '10342cda9f5146bda80765f3ab172717', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c0a72411-0597-4efa-bc96-e4b586a438e4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38047305', 'ctest-vn-54774152'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38047305', 'ctest-policy-allow-all-10297914']], 'subnet_ipam': [{'subnet_cidr': '95.33.79.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-20 17:10:45,131 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-04-20 17:10:45,462 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-04-20 17:10:45,503 - DEBUG - Requesting: http://10.0.0.23:8082/domain/40643203-20f6-446b-8c17-54dd9444dd19 2026-04-20 17:10:45,525 - DEBUG - Requesting: http://10.0.0.23:8082/project/10342cda-9f51-46bd-a807-65f3ab172717 2026-04-20 17:10:45,638 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/75c01446-52b1-472c-8254-14996f81151e 2026-04-20 17:10:45,656 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/75c01446-52b1-472c-8254-14996f81151e 2026-04-20 17:10:45,669 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/ce3ce206-0f5b-4e5c-a116-460c3ec269c3 2026-04-20 17:10:45,678 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/ce3ce206-0f5b-4e5c-a116-460c3ec269c3 2026-04-20 17:10:45,689 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/89394338-bf09-45e4-b02e-19856b07d1f3 2026-04-20 17:10:45,698 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-20 17:10:45,698 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/75c01446-52b1-472c-8254-14996f81151e 2026-04-20 17:10:45,709 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/ce3ce206-0f5b-4e5c-a116-460c3ec269c3 2026-04-20 17:10:45,729 - INFO - Verified VN network id 12 for VN 75c01446-52b1-472c-8254-14996f81151e 2026-04-20 17:10:45,729 - INFO - Verifications in API Server for VN ctest-vn-90756050 passed 2026-04-20 17:10:45,729 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/75c01446-52b1-472c-8254-14996f81151e 2026-04-20 17:10:45,742 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/ce3ce206-0f5b-4e5c-a116-460c3ec269c3 2026-04-20 17:10:45,752 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/ce3ce206-0f5b-4e5c-a116-460c3ec269c3 2026-04-20 17:10:45,762 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/89394338-bf09-45e4-b02e-19856b07d1f3 2026-04-20 17:10:45,779 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38047305:ctest-vn-90756050', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38047305', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8484803990233630508', 'uuid-lslong': '9391153772207609118'}, 'enable': 'true', 'created': '2026-04-20T17:10:42', 'last-modified': '2026-04-20T17:10:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.104372'} 2026-04-20 17:10:45,786 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-20 17:10:45,792 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38047305:ctest-vn-90756050', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38047305', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8484803990233630508', 'uuid-lslong': '9391153772207609118'}, 'enable': 'true', 'created': '2026-04-20T17:10:42', 'last-modified': '2026-04-20T17:10:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.122924'} 2026-04-20 17:10:45,800 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-20 17:10:45,810 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38047305:ctest-vn-90756050', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38047305', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8484803990233630508', 'uuid-lslong': '9391153772207609118'}, 'enable': 'true', 'created': '2026-04-20T17:10:42', 'last-modified': '2026-04-20T17:10:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.131145'} 2026-04-20 17:10:45,821 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-20 17:10:45,821 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90756050 passed 2026-04-20 17:10:45,822 - DEBUG - ====Verifying policy data for ctest-vn-90756050 in API_Server ====== 2026-04-20 17:10:45,822 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-04-20 17:10:45,831 - DEBUG - Requesting: http://10.0.0.23:8082/domain/40643203-20f6-446b-8c17-54dd9444dd19 2026-04-20 17:10:45,851 - DEBUG - Requesting: http://10.0.0.23:8082/project/10342cda-9f51-46bd-a807-65f3ab172717 2026-04-20 17:10:45,963 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/75c01446-52b1-472c-8254-14996f81151e 2026-04-20 17:10:45,976 - DEBUG - ==>Verifying data for policy with id: c3f2d867-45bf-4e5c-8b5d-7b1e8f4ab030, fqn: ['default-domain', 'ctest-TestBasicPolicy-38047305', 'ctest-policy-allow-all-10297914'] 2026-04-20 17:10:45,976 - INFO - VN ctest-vn-90756050 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-20 17:10:45,976 - DEBUG - Verifying the vn in opserver 2026-04-20 17:10:45,976 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38047305:ctest-vn-90756050 virtual network link through opserver 10.0.0.23 2026-04-20 17:10:45,976 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-04-20 17:10:46,291 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-04-20 17:10:46,375 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38047305:ctest-vn-90756050', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38047305:ctest-vn-90756050?flat'} 2026-04-20 17:10:46,375 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38047305:ctest-vn-90756050 virtual network link through opserver 10.0.0.249 2026-04-20 17:10:46,375 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-04-20 17:10:46,700 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-04-20 17:10:46,797 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38047305:ctest-vn-90756050', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38047305:ctest-vn-90756050?flat'} 2026-04-20 17:10:46,797 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38047305:ctest-vn-90756050 virtual network link through opserver 10.0.0.65 2026-04-20 17:10:46,797 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2026-04-20 17:10:47,112 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2026-04-20 17:10:47,195 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38047305:ctest-vn-90756050', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38047305:ctest-vn-90756050?flat'} 2026-04-20 17:10:47,195 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38047305:ctest-vn-90756050 is found in opserver 2026-04-20 17:10:47,220 - DEBUG - Do not have enough data to verify VN in agent 2026-04-20 17:10:47,233 - DEBUG - VRF ids for VN ctest-vn-90756050: {} 2026-04-20 17:10:47,233 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-04-20 17:10:47,241 - DEBUG - Requesting: http://10.0.0.23:8082/domain/40643203-20f6-446b-8c17-54dd9444dd19 2026-04-20 17:10:47,257 - DEBUG - Requesting: http://10.0.0.23:8082/project/10342cda-9f51-46bd-a807-65f3ab172717 2026-04-20 17:10:47,375 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/9bfba7c5-43b9-439b-bb21-f7622cd18640 2026-04-20 17:10:47,397 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/9bfba7c5-43b9-439b-bb21-f7622cd18640 2026-04-20 17:10:47,411 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/91189a16-3590-4ecb-8e02-ef3bcf0039af 2026-04-20 17:10:47,421 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/91189a16-3590-4ecb-8e02-ef3bcf0039af 2026-04-20 17:10:47,432 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/23cbf4f6-8ff0-41e8-b74c-d5999c7b248e 2026-04-20 17:10:47,443 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-04-20 17:10:47,443 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/9bfba7c5-43b9-439b-bb21-f7622cd18640 2026-04-20 17:10:47,458 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/91189a16-3590-4ecb-8e02-ef3bcf0039af 2026-04-20 17:10:47,482 - INFO - Verified VN network id 13 for VN 9bfba7c5-43b9-439b-bb21-f7622cd18640 2026-04-20 17:10:47,482 - INFO - Verifications in API Server for VN ctest-vn-54774152 passed 2026-04-20 17:10:47,482 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/9bfba7c5-43b9-439b-bb21-f7622cd18640 2026-04-20 17:10:47,496 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/91189a16-3590-4ecb-8e02-ef3bcf0039af 2026-04-20 17:10:47,507 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/91189a16-3590-4ecb-8e02-ef3bcf0039af 2026-04-20 17:10:47,518 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/23cbf4f6-8ff0-41e8-b74c-d5999c7b248e 2026-04-20 17:10:47,536 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38047305:ctest-vn-54774152', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38047305', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11239761760719815579', 'uuid-lslong': '13484330760354760256'}, 'enable': 'true', 'created': '2026-04-20T17:10:43', 'last-modified': '2026-04-20T17:10:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.594299'} 2026-04-20 17:10:47,544 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-04-20 17:10:47,552 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38047305:ctest-vn-54774152', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38047305', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11239761760719815579', 'uuid-lslong': '13484330760354760256'}, 'enable': 'true', 'created': '2026-04-20T17:10:43', 'last-modified': '2026-04-20T17:10:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.617093'} 2026-04-20 17:10:47,560 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-04-20 17:10:47,569 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38047305:ctest-vn-54774152', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38047305', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11239761760719815579', 'uuid-lslong': '13484330760354760256'}, 'enable': 'true', 'created': '2026-04-20T17:10:43', 'last-modified': '2026-04-20T17:10:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.623303'} 2026-04-20 17:10:47,578 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-04-20 17:10:47,578 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54774152 passed 2026-04-20 17:10:47,579 - DEBUG - ====Verifying policy data for ctest-vn-54774152 in API_Server ====== 2026-04-20 17:10:47,579 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-04-20 17:10:47,588 - DEBUG - Requesting: http://10.0.0.23:8082/domain/40643203-20f6-446b-8c17-54dd9444dd19 2026-04-20 17:10:47,611 - DEBUG - Requesting: http://10.0.0.23:8082/project/10342cda-9f51-46bd-a807-65f3ab172717 2026-04-20 17:10:47,741 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/9bfba7c5-43b9-439b-bb21-f7622cd18640 2026-04-20 17:10:47,758 - DEBUG - ==>Verifying data for policy with id: c3f2d867-45bf-4e5c-8b5d-7b1e8f4ab030, fqn: ['default-domain', 'ctest-TestBasicPolicy-38047305', 'ctest-policy-allow-all-10297914'] 2026-04-20 17:10:47,758 - INFO - VN ctest-vn-54774152 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-20 17:10:47,758 - DEBUG - Verifying the vn in opserver 2026-04-20 17:10:47,758 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38047305:ctest-vn-54774152 virtual network link through opserver 10.0.0.23 2026-04-20 17:10:47,758 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-04-20 17:10:47,874 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38047305:ctest-vn-54774152', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38047305:ctest-vn-54774152?flat'} 2026-04-20 17:10:47,874 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38047305:ctest-vn-54774152 virtual network link through opserver 10.0.0.249 2026-04-20 17:10:47,874 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-04-20 17:10:47,983 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38047305:ctest-vn-54774152', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38047305:ctest-vn-54774152?flat'} 2026-04-20 17:10:47,983 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38047305:ctest-vn-54774152 virtual network link through opserver 10.0.0.65 2026-04-20 17:10:47,983 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2026-04-20 17:10:48,090 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38047305:ctest-vn-54774152', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38047305:ctest-vn-54774152?flat'} 2026-04-20 17:10:48,090 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38047305:ctest-vn-54774152 is found in opserver 2026-04-20 17:10:48,117 - DEBUG - Do not have enough data to verify VN in agent 2026-04-20 17:10:48,130 - DEBUG - VRF ids for VN ctest-vn-54774152: {} 2026-04-20 17:10:48,209 - DEBUG - Services list from nova: [, , , ] 2026-04-20 17:10:49,567 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-5654-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-5654-2) 2026-04-20 17:10:51,807 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-5654-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-5654-1) 2026-04-20 17:10:51,808 - INFO - Waiting for VM ctest-TestBasicPolicy-38047305-36778587 to be up.. 2026-04-20 17:10:51,938 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2026-04-20 17:10:57,054 - DEBUG - VM is in ACTIVE state now 2026-04-20 17:10:57,054 - INFO - VM name : ctest-TestBasicPolicy-38047305-36778587 2026-04-20 17:10:57,178 - DEBUG - VM ctest-TestBasicPolicy-38047305-36778587 ID is 7233be2f-f8d7-4019-8340-f0980bf3ce0f 2026-04-20 17:10:57,219 - DEBUG - VM ctest-TestBasicPolicy-38047305-36778587 launched on Node an-jenkins-deploy-platform-ansible-os-5654-2 2026-04-20 17:10:57,334 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/7233be2f-f8d7-4019-8340-f0980bf3ce0f 2026-04-20 17:10:57,657 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/7233be2f-f8d7-4019-8340-f0980bf3ce0f 2026-04-20 17:10:57,705 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine-interface/afc465e4-3398-40fd-8e35-fea3c7bc5d98 2026-04-20 17:11:00,917 - 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 1030ms') 2026-04-20 17:11:00,917 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38047305-36778587 failed! 2026-04-20 17:11:00,938 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-38047305:ctest-vn-90756050 is 151.250.107.129 and allocation pool is NOT set 2026-04-20 17:11:05,013 - 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-04-20 17:11:05,013 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38047305-36778587 failed! 2026-04-20 17:11:05,034 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-38047305:ctest-vn-90756050 is 151.250.107.129 and allocation pool is NOT set 2026-04-20 17:11:09,116 - 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 1014ms') 2026-04-20 17:11:09,116 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38047305-36778587 failed! 2026-04-20 17:11:09,143 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-38047305:ctest-vn-90756050 is 151.250.107.129 and allocation pool is NOT set 2026-04-20 17:11:13,236 - 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 1030ms') 2026-04-20 17:11:13,236 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38047305-36778587 failed! 2026-04-20 17:11:13,255 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-38047305:ctest-vn-90756050 is 151.250.107.129 and allocation pool is NOT set 2026-04-20 17:11:17,338 - 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 1018ms') 2026-04-20 17:11:17,339 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38047305-36778587 failed! 2026-04-20 17:11:17,359 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-38047305:ctest-vn-90756050 is 151.250.107.129 and allocation pool is NOT set 2026-04-20 17:11:21,427 - 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 1003ms') 2026-04-20 17:11:21,427 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38047305-36778587 failed! 2026-04-20 17:11:21,449 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-38047305:ctest-vn-90756050 is 151.250.107.129 and allocation pool is NOT set 2026-04-20 17:11:25,532 - 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-04-20 17:11:25,532 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38047305-36778587 failed! 2026-04-20 17:11:25,552 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-38047305:ctest-vn-90756050 is 151.250.107.129 and allocation pool is NOT set 2026-04-20 17:11:29,624 - 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 1005ms') 2026-04-20 17:11:29,624 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38047305-36778587 failed! 2026-04-20 17:11:29,642 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-38047305:ctest-vn-90756050 is 151.250.107.129 and allocation pool is NOT set 2026-04-20 17:11:33,720 - 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-04-20 17:11:33,720 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38047305-36778587 failed! 2026-04-20 17:11:33,741 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-38047305:ctest-vn-90756050 is 151.250.107.129 and allocation pool is NOT set 2026-04-20 17:11:35,810 - 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=6.66 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.65 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.652/4.157/6.663/2.505 ms') 2026-04-20 17:11:35,810 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38047305-36778587 passed 2026-04-20 17:11:35,890 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-04-20 17:11:35,890 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-38047305-36778587, IP 151.250.107.131, Port 22 2026-04-20 17:11:35,947 - 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-04-20 17:11:36,067 - DEBUG - VM ctest-TestBasicPolicy-38047305-36778587 is NOT ready for SSH connections, VM status: ACTIVE 2026-04-20 17:11:41,068 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-04-20 17:11:41,068 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-38047305-36778587, IP 151.250.107.131, Port 22 2026-04-20 17:11:41,126 - 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-04-20 17:11:41,239 - DEBUG - VM ctest-TestBasicPolicy-38047305-36778587 is NOT ready for SSH connections, VM status: ACTIVE 2026-04-20 17:11:46,240 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-04-20 17:11:46,240 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-38047305-36778587, IP 151.250.107.131, Port 22 2026-04-20 17:11:46,308 - 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-04-20 17:11:46,431 - DEBUG - VM ctest-TestBasicPolicy-38047305-36778587 is NOT ready for SSH connections, VM status: ACTIVE 2026-04-20 17:11:51,432 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-04-20 17:11:51,433 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-38047305-36778587, IP 151.250.107.131, Port 22 2026-04-20 17:11:51,501 - 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-04-20 17:11:51,629 - DEBUG - VM ctest-TestBasicPolicy-38047305-36778587 is NOT ready for SSH connections, VM status: ACTIVE 2026-04-20 17:11:56,630 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-04-20 17:11:56,630 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-38047305-36778587, IP 151.250.107.131, Port 22 2026-04-20 17:11:56,800 - DEBUG - VM ctest-TestBasicPolicy-38047305-36778587 is ready for SSH connections 2026-04-20 17:11:56,800 - INFO - Waiting for VM ctest-TestBasicPolicy-38047305-97491051 to be up.. 2026-04-20 17:11:56,912 - DEBUG - VM is in ACTIVE state now 2026-04-20 17:11:56,912 - INFO - VM name : ctest-TestBasicPolicy-38047305-97491051 2026-04-20 17:11:57,027 - DEBUG - VM ctest-TestBasicPolicy-38047305-97491051 ID is 81737f0c-b923-4439-a4fd-1cdbf6b3cea2 2026-04-20 17:11:57,028 - DEBUG - VM ctest-TestBasicPolicy-38047305-97491051 launched on Node an-jenkins-deploy-platform-ansible-os-5654-1 2026-04-20 17:11:57,167 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/81737f0c-b923-4439-a4fd-1cdbf6b3cea2 2026-04-20 17:11:57,181 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine-interface/f8a1ce30-dd3a-4c90-9df9-f2c38d694bf8 2026-04-20 17:11:58,357 - 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.37 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.47 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.465/4.915/8.366/3.450 ms') 2026-04-20 17:11:58,357 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38047305-97491051 passed 2026-04-20 17:11:58,443 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-04-20 17:11:58,443 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-38047305-97491051, IP 95.33.79.195, Port 22 2026-04-20 17:11:58,601 - DEBUG - VM ctest-TestBasicPolicy-38047305-97491051 is ready for SSH connections 2026-04-20 17:11:58,601 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-04-20 17:11:58,601 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 95.33.79.195, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.130, gateway password: c0ntrail123 2026-04-20 17:11:58,601 - DEBUG - ping -s 56 -c 3 -W 1 95.33.79.195 2026-04-20 17:12:24,027 - DEBUG - PING 95.33.79.195 (95.33.79.195) 56(84) bytes of data. 64 bytes from 95.33.79.195: icmp_req=1 ttl=63 time=6.62 ms 64 bytes from 95.33.79.195: icmp_req=2 ttl=63 time=1.29 ms 64 bytes from 95.33.79.195: icmp_req=3 ttl=63 time=1.44 ms --- 95.33.79.195 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2002ms rtt min/avg/max/mdev = 1.293/3.120/6.626/2.480 ms 2026-04-20 17:12:24,028 - INFO - Ping to IP 95.33.79.195 from VM ctest-TestBasicPolicy-38047305-36778587 passed 2026-04-20 17:12:24,325 - DEBUG - Policy Update Response {"network-policy": {"uuid": "c3f2d867-45bf-4e5c-8b5d-7b1e8f4ab030", "href": "http://10.0.0.65:8082/network-policy/c3f2d867-45bf-4e5c-8b5d-7b1e8f4ab030"}} 2026-04-20 17:12:24,325 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-04-20 17:12:24,326 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 95.33.79.195, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.130, gateway password: c0ntrail123 2026-04-20 17:12:24,326 - DEBUG - ping -s 56 -c 3 -W 1 95.33.79.195 2026-04-20 17:12:28,252 - DEBUG - PING 95.33.79.195 (95.33.79.195) 56(84) bytes of data. 64 bytes from 95.33.79.195: icmp_req=1 ttl=63 time=4.52 ms --- 95.33.79.195 ping statistics --- 3 packets transmitted, 1 received, 66% packet loss, time 2001ms rtt min/avg/max/mdev = 4.525/4.525/4.525/0.000 ms 2026-04-20 17:12:28,252 - WARNING - Ping to IP 95.33.79.195 from VM ctest-TestBasicPolicy-38047305-36778587 failed 2026-04-20 17:12:28,253 - INFO - Deleting VM ctest-TestBasicPolicy-38047305-97491051 2026-04-20 17:12:28,373 - INFO - Deleting VM ctest-TestBasicPolicy-38047305-36778587 2026-04-20 17:12:29,017 - INFO - Deleted policy ctest-policy-allow-all-10297914 2026-04-20 17:12:29,017 - INFO - Deleting VN ctest-vn-54774152 2026-04-20 17:12:29,095 - DEBUG - VN 9bfba7c5-43b9-439b-bb21-f7622cd18640 still in use: Unable to complete operation on network 9bfba7c5-43b9-439b-bb21-f7622cd18640. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-86ee8dde-12c9-4630-af2b-4438aebb3273'] 2026-04-20 17:12:29,095 - WARNING - Deleting VN ctest-vn-54774152 failed..Will retry 2026-04-20 17:12:31,320 - DEBUG - Response for deleting network () 2026-04-20 17:12:31,320 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/91189a16-3590-4ecb-8e02-ef3bcf0039af 2026-04-20 17:12:31,334 - DEBUG - Response Code: 404 2026-04-20 17:12:31,335 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-04-20 17:12:31,352 - DEBUG - Requesting: http://10.0.0.23:8082/domain/40643203-20f6-446b-8c17-54dd9444dd19 2026-04-20 17:12:31,384 - DEBUG - Requesting: http://10.0.0.23:8082/project/10342cda-9f51-46bd-a807-65f3ab172717 2026-04-20 17:12:31,497 - INFO - Validated that VN ctest-vn-54774152 is not found in API Server 2026-04-20 17:12:31,514 - DEBUG - VN ctest-vn-54774152 is not present in Agent 10.0.0.50 2026-04-20 17:12:31,527 - DEBUG - VN ctest-vn-54774152 is not present in Agent 10.0.0.130 2026-04-20 17:12:31,527 - INFO - Validated that VN ctest-vn-54774152 is not in any agent 2026-04-20 17:12:31,565 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-54774152 info 2026-04-20 17:12:31,565 - INFO - Deleting VN ctest-vn-90756050 2026-04-20 17:12:31,776 - DEBUG - Response for deleting network () 2026-04-20 17:12:31,776 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/ce3ce206-0f5b-4e5c-a116-460c3ec269c3 2026-04-20 17:12:31,790 - DEBUG - Response Code: 404 2026-04-20 17:12:31,790 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-04-20 17:12:31,800 - DEBUG - Requesting: http://10.0.0.23:8082/domain/40643203-20f6-446b-8c17-54dd9444dd19 2026-04-20 17:12:31,815 - DEBUG - Requesting: http://10.0.0.23:8082/project/10342cda-9f51-46bd-a807-65f3ab172717 2026-04-20 17:12:31,924 - INFO - Validated that VN ctest-vn-90756050 is not found in API Server 2026-04-20 17:12:31,938 - DEBUG - VN ctest-vn-90756050 is not present in Agent 10.0.0.50 2026-04-20 17:12:31,953 - DEBUG - VN ctest-vn-90756050 is not present in Agent 10.0.0.130 2026-04-20 17:12:31,953 - INFO - Validated that VN ctest-vn-90756050 is not in any agent 2026-04-20 17:12:31,989 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-90756050 info 2026-04-20 17:12:33,274 - DEBUG - No XMPP flaps were noticed during the test 2026-04-20 17:12:33,274 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:01:53] 2026-04-20 17:12:33,274 - INFO - -------------------------------------------------------------------------------- 2026-04-20 17:12:34,153 - INFO - Deleted project: ctest-TestBasicPolicy-38047305, ID : 10342cda-9f51-46bd-a807-65f3ab172717