2026-03-16 02:33:43,720 - INFO - Domain Default found not creating 2026-03-16 02:33:43,899 - INFO - Project ctest-TestBasicPolicy-32427889 not found, creating it 2026-03-16 02:33:44,558 - INFO - Created Project:ctest-TestBasicPolicy-32427889, ID : 8b76f22c-737b-4b27-b836-4544597a7040 2026-03-16 02:33:46,189 - INFO - ================================================================================ 2026-03-16 02:33:46,189 - INFO - STARTING TEST : test_basic_policy_allow_deny 2026-03-16 02:33:46,189 - 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-03-16 02:33:47,491 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.193': '0', '10.20.0.129': '0'}, '10.0.0.240': {'10.20.0.193': '0', '10.20.0.129': '0'}} with 2026-03-16 02:33:47,491 - INFO - Initial checks done. Running the testcase now 2026-03-16 02:33:47,491 - INFO - 2026-03-16 02:33:48,218 - DEBUG - Response for create_network : {'network': {'id': '1fa8385a-671a-4fa8-a41c-d49a22f4a2b2', 'name': 'ctest-vn-03982282', 'tenant_id': '8b76f22c737b4b27b8364544597a7040', 'project_id': '8b76f22c737b4b27b8364544597a7040', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32427889', 'ctest-vn-03982282'], 'port_security_enabled': True, 'description': ''}} 2026-03-16 02:33:48,470 - DEBUG - Response for create_subnet : {'subnet': {'id': '597973ae-06a8-44e2-802f-b7a16276e549', 'name': '', 'tenant_id': '8b76f22c737b4b27b8364544597a7040', 'network_id': '1fa8385a-671a-4fa8-a41c-d49a22f4a2b2', 'ip_version': 4, 'cidr': '221.163.104.192/26', 'allocation_pools': [{'start': '221.163.104.194', 'end': '221.163.104.254'}], 'gateway_ip': '221.163.104.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '221.163.104.194', 'tags': [], 'project_id': '8b76f22c737b4b27b8364544597a7040'}} 2026-03-16 02:33:48,497 - INFO - Created VN ctest-vn-03982282 2026-03-16 02:33:48,510 - DEBUG - VN ctest-vn-03982282 UUID is 1fa8385a-671a-4fa8-a41c-d49a22f4a2b2 2026-03-16 02:33:48,891 - DEBUG - Response for create_network : {'network': {'id': '60912ee8-3359-46ff-a6f4-cb917067a9f7', 'name': 'ctest-vn-48224009', 'tenant_id': '8b76f22c737b4b27b8364544597a7040', 'project_id': '8b76f22c737b4b27b8364544597a7040', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32427889', 'ctest-vn-48224009'], 'port_security_enabled': True, 'description': ''}} 2026-03-16 02:33:49,145 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c68b9c0d-0685-447d-b6b7-5b087f31625a', 'name': '', 'tenant_id': '8b76f22c737b4b27b8364544597a7040', 'network_id': '60912ee8-3359-46ff-a6f4-cb917067a9f7', 'ip_version': 4, 'cidr': '211.216.45.64/26', 'allocation_pools': [{'start': '211.216.45.66', 'end': '211.216.45.126'}], 'gateway_ip': '211.216.45.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '211.216.45.66', 'tags': [], 'project_id': '8b76f22c737b4b27b8364544597a7040'}} 2026-03-16 02:33:49,173 - INFO - Created VN ctest-vn-48224009 2026-03-16 02:33:49,188 - DEBUG - VN ctest-vn-48224009 UUID is 60912ee8-3359-46ff-a6f4-cb917067a9f7 2026-03-16 02:33:49,276 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-32427889:ctest-vn-03982282, 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-32427889:ctest-vn-48224009, 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-03-16 02:33:49,663 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1fa8385a-671a-4fa8-a41c-d49a22f4a2b2', 'name': 'ctest-vn-03982282', 'tenant_id': '8b76f22c737b4b27b8364544597a7040', 'project_id': '8b76f22c737b4b27b8364544597a7040', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['597973ae-06a8-44e2-802f-b7a16276e549'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32427889', 'ctest-vn-03982282'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-32427889', 'ctest-policy-allow-all-91301415']], 'subnet_ipam': [{'subnet_cidr': '221.163.104.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-16 02:33:49,870 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '60912ee8-3359-46ff-a6f4-cb917067a9f7', 'name': 'ctest-vn-48224009', 'tenant_id': '8b76f22c737b4b27b8364544597a7040', 'project_id': '8b76f22c737b4b27b8364544597a7040', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c68b9c0d-0685-447d-b6b7-5b087f31625a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32427889', 'ctest-vn-48224009'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-32427889', 'ctest-policy-allow-all-91301415']], 'subnet_ipam': [{'subnet_cidr': '211.216.45.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-16 02:33:49,966 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-16 02:33:50,321 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-16 02:33:50,358 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d1af4696-a589-4518-a8ed-3c39c5e9266b 2026-03-16 02:33:50,374 - DEBUG - Requesting: http://10.0.0.38:8082/project/8b76f22c-737b-4b27-b836-4544597a7040 2026-03-16 02:33:50,498 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1fa8385a-671a-4fa8-a41c-d49a22f4a2b2 2026-03-16 02:33:50,513 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1fa8385a-671a-4fa8-a41c-d49a22f4a2b2 2026-03-16 02:33:50,524 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/18d89064-86ac-41ca-ad35-da8af33eaf06 2026-03-16 02:33:50,533 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/18d89064-86ac-41ca-ad35-da8af33eaf06 2026-03-16 02:33:50,541 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6a4173f2-e99b-41c3-9b64-c785fd9b337b 2026-03-16 02:33:50,551 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-16 02:33:50,551 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1fa8385a-671a-4fa8-a41c-d49a22f4a2b2 2026-03-16 02:33:50,565 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/18d89064-86ac-41ca-ad35-da8af33eaf06 2026-03-16 02:33:50,582 - INFO - Verified VN network id 14 for VN 1fa8385a-671a-4fa8-a41c-d49a22f4a2b2 2026-03-16 02:33:50,582 - INFO - Verifications in API Server for VN ctest-vn-03982282 passed 2026-03-16 02:33:50,582 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1fa8385a-671a-4fa8-a41c-d49a22f4a2b2 2026-03-16 02:33:50,593 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/18d89064-86ac-41ca-ad35-da8af33eaf06 2026-03-16 02:33:50,602 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/18d89064-86ac-41ca-ad35-da8af33eaf06 2026-03-16 02:33:50,610 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6a4173f2-e99b-41c3-9b64-c785fd9b337b 2026-03-16 02:33:50,623 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32427889:ctest-vn-03982282', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32427889', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2281135172191145896', 'uuid-lslong': '11825560480044589746'}, 'enable': 'true', 'created': '2026-03-16T02:33:48', 'last-modified': '2026-03-16T02:33:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.009251'} 2026-03-16 02:33:50,630 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-16 02:33:50,636 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32427889:ctest-vn-03982282', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32427889', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2281135172191145896', 'uuid-lslong': '11825560480044589746'}, 'enable': 'true', 'created': '2026-03-16T02:33:48', 'last-modified': '2026-03-16T02:33:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.028953'} 2026-03-16 02:33:50,643 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-16 02:33:50,649 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32427889:ctest-vn-03982282', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32427889', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2281135172191145896', 'uuid-lslong': '11825560480044589746'}, 'enable': 'true', 'created': '2026-03-16T02:33:48', 'last-modified': '2026-03-16T02:33:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.041363'} 2026-03-16 02:33:50,655 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-16 02:33:50,655 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03982282 passed 2026-03-16 02:33:50,655 - DEBUG - ====Verifying policy data for ctest-vn-03982282 in API_Server ====== 2026-03-16 02:33:50,655 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-16 02:33:50,662 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d1af4696-a589-4518-a8ed-3c39c5e9266b 2026-03-16 02:33:50,683 - DEBUG - Requesting: http://10.0.0.38:8082/project/8b76f22c-737b-4b27-b836-4544597a7040 2026-03-16 02:33:50,806 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1fa8385a-671a-4fa8-a41c-d49a22f4a2b2 2026-03-16 02:33:50,820 - DEBUG - ==>Verifying data for policy with id: 579a25aa-52dd-403f-8cb2-e6ce76bf7376, fqn: ['default-domain', 'ctest-TestBasicPolicy-32427889', 'ctest-policy-allow-all-91301415'] 2026-03-16 02:33:50,820 - INFO - VN ctest-vn-03982282 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-16 02:33:50,821 - DEBUG - Verifying the vn in opserver 2026-03-16 02:33:50,821 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32427889:ctest-vn-03982282 virtual network link through opserver 10.0.0.38 2026-03-16 02:33:50,821 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-03-16 02:33:51,127 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-03-16 02:33:51,202 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32427889:ctest-vn-03982282', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32427889:ctest-vn-03982282?flat'} 2026-03-16 02:33:51,202 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32427889:ctest-vn-03982282 virtual network link through opserver 10.0.0.22 2026-03-16 02:33:51,202 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-03-16 02:33:51,512 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-03-16 02:33:51,592 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32427889:ctest-vn-03982282', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32427889:ctest-vn-03982282?flat'} 2026-03-16 02:33:51,592 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32427889:ctest-vn-03982282 virtual network link through opserver 10.0.0.23 2026-03-16 02:33:51,592 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-03-16 02:33:51,888 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-03-16 02:33:51,952 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32427889:ctest-vn-03982282', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32427889:ctest-vn-03982282?flat'} 2026-03-16 02:33:51,952 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-32427889:ctest-vn-03982282 is found in opserver 2026-03-16 02:33:51,974 - DEBUG - Do not have enough data to verify VN in agent 2026-03-16 02:33:51,984 - DEBUG - VRF ids for VN ctest-vn-03982282: {} 2026-03-16 02:33:51,984 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-16 02:33:51,990 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d1af4696-a589-4518-a8ed-3c39c5e9266b 2026-03-16 02:33:52,002 - DEBUG - Requesting: http://10.0.0.38:8082/project/8b76f22c-737b-4b27-b836-4544597a7040 2026-03-16 02:33:52,096 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/60912ee8-3359-46ff-a6f4-cb917067a9f7 2026-03-16 02:33:52,111 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/60912ee8-3359-46ff-a6f4-cb917067a9f7 2026-03-16 02:33:52,123 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/93817465-594e-4350-96e8-00828bd76513 2026-03-16 02:33:52,135 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/93817465-594e-4350-96e8-00828bd76513 2026-03-16 02:33:52,143 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/03f839c0-0bad-46b7-a812-ab12b4493ea7 2026-03-16 02:33:52,151 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-03-16 02:33:52,151 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/60912ee8-3359-46ff-a6f4-cb917067a9f7 2026-03-16 02:33:52,162 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/93817465-594e-4350-96e8-00828bd76513 2026-03-16 02:33:52,179 - INFO - Verified VN network id 15 for VN 60912ee8-3359-46ff-a6f4-cb917067a9f7 2026-03-16 02:33:52,179 - INFO - Verifications in API Server for VN ctest-vn-48224009 passed 2026-03-16 02:33:52,179 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/60912ee8-3359-46ff-a6f4-cb917067a9f7 2026-03-16 02:33:52,188 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/93817465-594e-4350-96e8-00828bd76513 2026-03-16 02:33:52,195 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/93817465-594e-4350-96e8-00828bd76513 2026-03-16 02:33:52,203 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/03f839c0-0bad-46b7-a812-ab12b4493ea7 2026-03-16 02:33:52,214 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32427889:ctest-vn-48224009', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32427889', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6958394474092906239', 'uuid-lslong': '12030464330129975799'}, 'enable': 'true', 'created': '2026-03-16T02:33:48', 'last-modified': '2026-03-16T02:33:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.386083'} 2026-03-16 02:33:52,220 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-03-16 02:33:52,226 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32427889:ctest-vn-48224009', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32427889', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6958394474092906239', 'uuid-lslong': '12030464330129975799'}, 'enable': 'true', 'created': '2026-03-16T02:33:48', 'last-modified': '2026-03-16T02:33:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.398137'} 2026-03-16 02:33:52,232 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-03-16 02:33:52,238 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32427889:ctest-vn-48224009', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32427889', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6958394474092906239', 'uuid-lslong': '12030464330129975799'}, 'enable': 'true', 'created': '2026-03-16T02:33:48', 'last-modified': '2026-03-16T02:33:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.409990'} 2026-03-16 02:33:52,244 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-03-16 02:33:52,244 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48224009 passed 2026-03-16 02:33:52,244 - DEBUG - ====Verifying policy data for ctest-vn-48224009 in API_Server ====== 2026-03-16 02:33:52,244 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-16 02:33:52,252 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d1af4696-a589-4518-a8ed-3c39c5e9266b 2026-03-16 02:33:52,267 - DEBUG - Requesting: http://10.0.0.38:8082/project/8b76f22c-737b-4b27-b836-4544597a7040 2026-03-16 02:33:52,375 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/60912ee8-3359-46ff-a6f4-cb917067a9f7 2026-03-16 02:33:52,387 - DEBUG - ==>Verifying data for policy with id: 579a25aa-52dd-403f-8cb2-e6ce76bf7376, fqn: ['default-domain', 'ctest-TestBasicPolicy-32427889', 'ctest-policy-allow-all-91301415'] 2026-03-16 02:33:52,387 - INFO - VN ctest-vn-48224009 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-16 02:33:52,387 - DEBUG - Verifying the vn in opserver 2026-03-16 02:33:52,387 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32427889:ctest-vn-48224009 virtual network link through opserver 10.0.0.38 2026-03-16 02:33:52,387 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-03-16 02:33:52,465 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32427889:ctest-vn-48224009', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32427889:ctest-vn-48224009?flat'} 2026-03-16 02:33:52,465 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32427889:ctest-vn-48224009 virtual network link through opserver 10.0.0.22 2026-03-16 02:33:52,465 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-03-16 02:33:52,531 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32427889:ctest-vn-48224009', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32427889:ctest-vn-48224009?flat'} 2026-03-16 02:33:52,531 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32427889:ctest-vn-48224009 virtual network link through opserver 10.0.0.23 2026-03-16 02:33:52,531 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-03-16 02:33:52,593 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32427889:ctest-vn-48224009', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32427889:ctest-vn-48224009?flat'} 2026-03-16 02:33:52,593 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-32427889:ctest-vn-48224009 is found in opserver 2026-03-16 02:33:52,614 - DEBUG - Do not have enough data to verify VN in agent 2026-03-16 02:33:52,624 - DEBUG - VRF ids for VN ctest-vn-48224009: {} 2026-03-16 02:33:52,680 - DEBUG - Services list from nova: [, , , ] 2026-03-16 02:33:53,949 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-5469-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-5469-1) 2026-03-16 02:33:55,351 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-5469-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-5469-2) 2026-03-16 02:33:55,352 - INFO - Waiting for VM ctest-TestBasicPolicy-32427889-65348148 to be up.. 2026-03-16 02:33:55,465 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2026-03-16 02:34:00,567 - DEBUG - VM is in ACTIVE state now 2026-03-16 02:34:00,567 - INFO - VM name : ctest-TestBasicPolicy-32427889-65348148 2026-03-16 02:34:00,666 - DEBUG - VM ctest-TestBasicPolicy-32427889-65348148 ID is d82a10f3-d211-4699-9193-29b11055839e 2026-03-16 02:34:00,695 - DEBUG - VM ctest-TestBasicPolicy-32427889-65348148 launched on Node an-jenkins-deploy-platform-ansible-os-5469-1 2026-03-16 02:34:00,814 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/d82a10f3-d211-4699-9193-29b11055839e 2026-03-16 02:34:01,120 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/d82a10f3-d211-4699-9193-29b11055839e 2026-03-16 02:34:01,187 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/d1392863-390b-4f44-b376-7bb4710d5022 2026-03-16 02:34:04,364 - 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-03-16 02:34:04,365 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-32427889-65348148 failed! 2026-03-16 02:34:04,382 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-32427889:ctest-vn-03982282 is 221.163.104.193 and allocation pool is NOT set 2026-03-16 02:34:08,463 - 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-03-16 02:34:08,463 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-32427889-65348148 failed! 2026-03-16 02:34:08,477 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-32427889:ctest-vn-03982282 is 221.163.104.193 and allocation pool is NOT set 2026-03-16 02:34:12,553 - 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') 2026-03-16 02:34:12,553 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-32427889-65348148 failed! 2026-03-16 02:34:12,567 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-32427889:ctest-vn-03982282 is 221.163.104.193 and allocation pool is NOT set 2026-03-16 02:34:16,655 - 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-03-16 02:34:16,656 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-32427889-65348148 failed! 2026-03-16 02:34:16,670 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-32427889:ctest-vn-03982282 is 221.163.104.193 and allocation pool is NOT set 2026-03-16 02:34:20,751 - 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-03-16 02:34:20,751 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-32427889-65348148 failed! 2026-03-16 02:34:20,773 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-32427889:ctest-vn-03982282 is 221.163.104.193 and allocation pool is NOT set 2026-03-16 02:34:24,877 - 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 1034ms') 2026-03-16 02:34:24,877 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-32427889-65348148 failed! 2026-03-16 02:34:24,895 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-32427889:ctest-vn-03982282 is 221.163.104.193 and allocation pool is NOT set 2026-03-16 02:34:28,966 - 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-03-16 02:34:28,966 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-32427889-65348148 failed! 2026-03-16 02:34:28,983 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-32427889:ctest-vn-03982282 is 221.163.104.193 and allocation pool is NOT set 2026-03-16 02:34:33,069 - 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-03-16 02:34:33,069 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-32427889-65348148 failed! 2026-03-16 02:34:33,085 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-32427889:ctest-vn-03982282 is 221.163.104.193 and allocation pool is NOT set 2026-03-16 02:34:35,150 - 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.44 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.78 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.778/3.609/5.441/1.831 ms') 2026-03-16 02:34:35,150 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-32427889-65348148 passed 2026-03-16 02:34:35,225 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-03-16 02:34:35,225 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-32427889-65348148, IP 221.163.104.195, Port 22 2026-03-16 02:34:35,292 - 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-03-16 02:34:35,385 - DEBUG - VM ctest-TestBasicPolicy-32427889-65348148 is NOT ready for SSH connections, VM status: ACTIVE 2026-03-16 02:34:40,388 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-03-16 02:34:40,388 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-32427889-65348148, IP 221.163.104.195, Port 22 2026-03-16 02:34:40,455 - 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-03-16 02:34:40,548 - DEBUG - VM ctest-TestBasicPolicy-32427889-65348148 is NOT ready for SSH connections, VM status: ACTIVE 2026-03-16 02:34:45,548 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-03-16 02:34:45,549 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-32427889-65348148, IP 221.163.104.195, Port 22 2026-03-16 02:34:45,615 - 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-03-16 02:34:45,713 - DEBUG - VM ctest-TestBasicPolicy-32427889-65348148 is NOT ready for SSH connections, VM status: ACTIVE 2026-03-16 02:34:50,714 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-03-16 02:34:50,714 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-32427889-65348148, IP 221.163.104.195, Port 22 2026-03-16 02:34:50,783 - 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-03-16 02:34:50,873 - DEBUG - VM ctest-TestBasicPolicy-32427889-65348148 is NOT ready for SSH connections, VM status: ACTIVE 2026-03-16 02:34:55,874 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-03-16 02:34:55,874 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-32427889-65348148, IP 221.163.104.195, Port 22 2026-03-16 02:34:56,051 - DEBUG - VM ctest-TestBasicPolicy-32427889-65348148 is ready for SSH connections 2026-03-16 02:34:56,051 - INFO - Waiting for VM ctest-TestBasicPolicy-32427889-25834017 to be up.. 2026-03-16 02:34:56,141 - DEBUG - VM is in ACTIVE state now 2026-03-16 02:34:56,141 - INFO - VM name : ctest-TestBasicPolicy-32427889-25834017 2026-03-16 02:34:56,229 - DEBUG - VM ctest-TestBasicPolicy-32427889-25834017 ID is 0bd1037f-776a-49a7-8ec7-7be78b012d7d 2026-03-16 02:34:56,229 - DEBUG - VM ctest-TestBasicPolicy-32427889-25834017 launched on Node an-jenkins-deploy-platform-ansible-os-5469-2 2026-03-16 02:34:56,319 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/0bd1037f-776a-49a7-8ec7-7be78b012d7d 2026-03-16 02:34:56,337 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/540085f8-1a9a-4b85-9795-08bafa0a0790 2026-03-16 02:34:57,496 - 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=1.89 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.86 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.892/2.376/2.861/0.484 ms') 2026-03-16 02:34:57,497 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-32427889-25834017 passed 2026-03-16 02:34:57,570 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-03-16 02:34:57,570 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-32427889-25834017, IP 211.216.45.67, Port 22 2026-03-16 02:34:57,737 - DEBUG - VM ctest-TestBasicPolicy-32427889-25834017 is ready for SSH connections 2026-03-16 02:34:57,737 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-03-16 02:34:57,737 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 211.216.45.67, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.41, gateway password: c0ntrail123 2026-03-16 02:34:57,737 - DEBUG - ping -s 56 -c 3 -W 1 211.216.45.67 2026-03-16 02:35:18,961 - DEBUG - PING 211.216.45.67 (211.216.45.67) 56(84) bytes of data. 64 bytes from 211.216.45.67: icmp_req=1 ttl=63 time=7.27 ms 64 bytes from 211.216.45.67: icmp_req=2 ttl=63 time=2.94 ms 64 bytes from 211.216.45.67: icmp_req=3 ttl=63 time=1.11 ms --- 211.216.45.67 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2004ms rtt min/avg/max/mdev = 1.111/3.778/7.278/2.585 ms 2026-03-16 02:35:18,961 - INFO - Ping to IP 211.216.45.67 from VM ctest-TestBasicPolicy-32427889-65348148 passed 2026-03-16 02:35:19,217 - DEBUG - Policy Update Response {"network-policy": {"uuid": "579a25aa-52dd-403f-8cb2-e6ce76bf7376", "href": "http://10.0.0.23:8082/network-policy/579a25aa-52dd-403f-8cb2-e6ce76bf7376"}} 2026-03-16 02:35:19,217 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-03-16 02:35:19,217 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 211.216.45.67, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.41, gateway password: c0ntrail123 2026-03-16 02:35:19,217 - DEBUG - ping -s 56 -c 3 -W 1 211.216.45.67 2026-03-16 02:35:22,920 - DEBUG - PING 211.216.45.67 (211.216.45.67) 56(84) bytes of data. --- 211.216.45.67 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 1999ms 2026-03-16 02:35:22,920 - WARNING - Ping to IP 211.216.45.67 from VM ctest-TestBasicPolicy-32427889-65348148 failed 2026-03-16 02:35:22,920 - INFO - Deleting VM ctest-TestBasicPolicy-32427889-25834017 2026-03-16 02:35:22,990 - INFO - Deleting VM ctest-TestBasicPolicy-32427889-65348148 2026-03-16 02:35:23,449 - INFO - Deleted policy ctest-policy-allow-all-91301415 2026-03-16 02:35:23,449 - INFO - Deleting VN ctest-vn-48224009 2026-03-16 02:35:23,510 - DEBUG - VN 60912ee8-3359-46ff-a6f4-cb917067a9f7 still in use: Unable to complete operation on network 60912ee8-3359-46ff-a6f4-cb917067a9f7. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-3cf010c6-eb94-4e90-b005-7e55a87c7ad7'] 2026-03-16 02:35:23,510 - WARNING - Deleting VN ctest-vn-48224009 failed..Will retry 2026-03-16 02:35:25,754 - DEBUG - Response for deleting network () 2026-03-16 02:35:25,754 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/93817465-594e-4350-96e8-00828bd76513 2026-03-16 02:35:25,760 - DEBUG - Response Code: 404 2026-03-16 02:35:25,761 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-16 02:35:25,766 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d1af4696-a589-4518-a8ed-3c39c5e9266b 2026-03-16 02:35:25,831 - DEBUG - Requesting: http://10.0.0.38:8082/project/8b76f22c-737b-4b27-b836-4544597a7040 2026-03-16 02:35:25,934 - INFO - Validated that VN ctest-vn-48224009 is not found in API Server 2026-03-16 02:35:25,945 - DEBUG - VN ctest-vn-48224009 is not present in Agent 10.0.0.41 2026-03-16 02:35:25,955 - DEBUG - VN ctest-vn-48224009 is not present in Agent 10.0.0.240 2026-03-16 02:35:25,955 - INFO - Validated that VN ctest-vn-48224009 is not in any agent 2026-03-16 02:35:25,986 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-48224009 info 2026-03-16 02:35:25,986 - INFO - Deleting VN ctest-vn-03982282 2026-03-16 02:35:26,165 - DEBUG - Response for deleting network () 2026-03-16 02:35:26,165 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/18d89064-86ac-41ca-ad35-da8af33eaf06 2026-03-16 02:35:26,173 - DEBUG - Response Code: 404 2026-03-16 02:35:26,173 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-16 02:35:26,180 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d1af4696-a589-4518-a8ed-3c39c5e9266b 2026-03-16 02:35:26,234 - DEBUG - Requesting: http://10.0.0.38:8082/project/8b76f22c-737b-4b27-b836-4544597a7040 2026-03-16 02:35:26,339 - INFO - Validated that VN ctest-vn-03982282 is not found in API Server 2026-03-16 02:35:26,352 - DEBUG - VN ctest-vn-03982282 is not present in Agent 10.0.0.41 2026-03-16 02:35:26,362 - DEBUG - VN ctest-vn-03982282 is not present in Agent 10.0.0.240 2026-03-16 02:35:26,362 - INFO - Validated that VN ctest-vn-03982282 is not in any agent 2026-03-16 02:35:26,394 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-03982282 info 2026-03-16 02:35:27,679 - DEBUG - No XMPP flaps were noticed during the test
2026-03-16 02:35:27,679 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:01:41]
2026-03-16 02:35:27,679 - INFO - -------------------------------------------------------------------------------- 2026-03-16 02:35:28,454 - INFO - Deleted project: ctest-TestBasicPolicy-32427889, ID : 8b76f22c-737b-4b27-b836-4544597a7040