2025-07-30 19:56:34,508 - INFO - Domain Default found not creating 2025-07-30 19:56:34,670 - INFO - Project ctest-TestBasicPolicy-35858267 not found, creating it 2025-07-30 19:56:35,119 - INFO - Created Project:ctest-TestBasicPolicy-35858267, ID : 305d9d3c-7e3d-4714-a9f8-823f693e8f5e 2025-07-30 19:56:36,504 - INFO - ================================================================================ 2025-07-30 19:56:36,504 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-07-30 19:56:36,504 - INFO - TEST DESCRIPTION : Create 2 Vns and allow icmp traffic between them and validate with pings Update the policy to deny the same traffic Check that pings fail 2025-07-30 19:56:36,763 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.0.0.38': '0'}} with 2025-07-30 19:56:36,764 - INFO - Initial checks done. Running the testcase now 2025-07-30 19:56:36,764 - INFO - 2025-07-30 19:56:37,548 - DEBUG - Response for create_network : {'network': {'id': 'aa607c51-dcf0-4d5d-a733-5641fdb7a612', 'name': 'ctest-vn-17638930', 'tenant_id': '305d9d3c7e3d4714a9f8823f693e8f5e', 'project_id': '305d9d3c7e3d4714a9f8823f693e8f5e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35858267', 'ctest-vn-17638930'], 'port_security_enabled': True, 'description': ''}} 2025-07-30 19:56:37,702 - DEBUG - Response for create_subnet : {'subnet': {'id': '85217de3-f6b8-4fd2-9dec-b63ac2657e51', 'name': '', 'tenant_id': '305d9d3c7e3d4714a9f8823f693e8f5e', 'network_id': 'aa607c51-dcf0-4d5d-a733-5641fdb7a612', 'ip_version': 4, 'cidr': '117.60.100.128/26', 'allocation_pools': [{'start': '117.60.100.130', 'end': '117.60.100.190'}], 'gateway_ip': '117.60.100.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '117.60.100.130', 'tags': [], 'project_id': '305d9d3c7e3d4714a9f8823f693e8f5e'}} 2025-07-30 19:56:37,722 - INFO - Created VN ctest-vn-17638930 2025-07-30 19:56:37,777 - DEBUG - VN ctest-vn-17638930 UUID is aa607c51-dcf0-4d5d-a733-5641fdb7a612 2025-07-30 19:56:38,103 - DEBUG - Response for create_network : {'network': {'id': '9b43e9ff-5b8e-4d51-8f30-ed6675fff74b', 'name': 'ctest-vn-70645689', 'tenant_id': '305d9d3c7e3d4714a9f8823f693e8f5e', 'project_id': '305d9d3c7e3d4714a9f8823f693e8f5e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35858267', 'ctest-vn-70645689'], 'port_security_enabled': True, 'description': ''}} 2025-07-30 19:56:38,327 - DEBUG - Response for create_subnet : {'subnet': {'id': '84d6620e-0894-4155-846b-357519d02fe6', 'name': '', 'tenant_id': '305d9d3c7e3d4714a9f8823f693e8f5e', 'network_id': '9b43e9ff-5b8e-4d51-8f30-ed6675fff74b', 'ip_version': 4, 'cidr': '166.181.51.128/26', 'allocation_pools': [{'start': '166.181.51.130', 'end': '166.181.51.190'}], 'gateway_ip': '166.181.51.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '166.181.51.130', 'tags': [], 'project_id': '305d9d3c7e3d4714a9f8823f693e8f5e'}} 2025-07-30 19:56:38,343 - INFO - Created VN ctest-vn-70645689 2025-07-30 19:56:38,393 - DEBUG - VN ctest-vn-70645689 UUID is 9b43e9ff-5b8e-4d51-8f30-ed6675fff74b 2025-07-30 19:56:38,545 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-35858267:ctest-vn-17638930, 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-35858267:ctest-vn-70645689, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None] 2025-07-30 19:56:38,839 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'aa607c51-dcf0-4d5d-a733-5641fdb7a612', 'name': 'ctest-vn-17638930', 'tenant_id': '305d9d3c7e3d4714a9f8823f693e8f5e', 'project_id': '305d9d3c7e3d4714a9f8823f693e8f5e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['85217de3-f6b8-4fd2-9dec-b63ac2657e51'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35858267', 'ctest-vn-17638930'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35858267', 'ctest-policy-allow-all-99388268']], 'subnet_ipam': [{'subnet_cidr': '117.60.100.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-30 19:56:39,073 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9b43e9ff-5b8e-4d51-8f30-ed6675fff74b', 'name': 'ctest-vn-70645689', 'tenant_id': '305d9d3c7e3d4714a9f8823f693e8f5e', 'project_id': '305d9d3c7e3d4714a9f8823f693e8f5e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['84d6620e-0894-4155-846b-357519d02fe6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35858267', 'ctest-vn-70645689'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35858267', 'ctest-policy-allow-all-99388268']], 'subnet_ipam': [{'subnet_cidr': '166.181.51.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-30 19:56:39,246 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-07-30 19:56:39,542 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-07-30 19:56:39,569 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ad6c8684-c58c-46f7-87b6-e9c5d8e8668f 2025-07-30 19:56:39,582 - DEBUG - Requesting: http://10.0.0.38:8082/project/305d9d3c-7e3d-4714-a9f8-823f693e8f5e 2025-07-30 19:56:39,658 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/aa607c51-dcf0-4d5d-a733-5641fdb7a612 2025-07-30 19:56:39,668 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/aa607c51-dcf0-4d5d-a733-5641fdb7a612 2025-07-30 19:56:39,677 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cd7dbec2-ef75-432f-aa36-310cdc35a6a0 2025-07-30 19:56:39,683 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cd7dbec2-ef75-432f-aa36-310cdc35a6a0 2025-07-30 19:56:39,689 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d758de7a-cfd5-4bd3-be03-1b889f6eff92 2025-07-30 19:56:39,695 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-30 19:56:39,695 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/aa607c51-dcf0-4d5d-a733-5641fdb7a612 2025-07-30 19:56:39,703 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cd7dbec2-ef75-432f-aa36-310cdc35a6a0 2025-07-30 19:56:39,716 - INFO - Verified VN network id 10 for VN aa607c51-dcf0-4d5d-a733-5641fdb7a612 2025-07-30 19:56:39,716 - INFO - Verifications in API Server for VN ctest-vn-17638930 passed 2025-07-30 19:56:39,716 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/aa607c51-dcf0-4d5d-a733-5641fdb7a612 2025-07-30 19:56:39,726 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cd7dbec2-ef75-432f-aa36-310cdc35a6a0 2025-07-30 19:56:39,733 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cd7dbec2-ef75-432f-aa36-310cdc35a6a0 2025-07-30 19:56:39,740 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d758de7a-cfd5-4bd3-be03-1b889f6eff92 2025-07-30 19:56:39,752 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35858267:ctest-vn-17638930', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35858267', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12276949275252903261', 'uuid-lslong': '12048068269575742994'}, 'enable': 'true', 'created': '2025-07-30T19:56:37', 'last-modified': '2025-07-30T19:56:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.934728'} 2025-07-30 19:56:39,758 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-30 19:56:39,759 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17638930 passed 2025-07-30 19:56:39,759 - DEBUG - ====Verifying policy data for ctest-vn-17638930 in API_Server ====== 2025-07-30 19:56:39,759 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-07-30 19:56:39,764 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ad6c8684-c58c-46f7-87b6-e9c5d8e8668f 2025-07-30 19:56:39,775 - DEBUG - Requesting: http://10.0.0.38:8082/project/305d9d3c-7e3d-4714-a9f8-823f693e8f5e 2025-07-30 19:56:39,844 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/aa607c51-dcf0-4d5d-a733-5641fdb7a612 2025-07-30 19:56:39,853 - DEBUG - ==>Verifying data for policy with id: 38a219fe-cefe-4d1c-ae56-10e88f01666f, fqn: ['default-domain', 'ctest-TestBasicPolicy-35858267', 'ctest-policy-allow-all-99388268'] 2025-07-30 19:56:39,853 - INFO - VN ctest-vn-17638930 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-30 19:56:39,853 - DEBUG - Verifying the vn in opserver 2025-07-30 19:56:39,853 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35858267:ctest-vn-17638930 virtual network link through opserver 10.0.0.38 2025-07-30 19:56:39,853 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-07-30 19:56:40,141 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-07-30 19:56:40,194 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35858267:ctest-vn-17638930', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35858267:ctest-vn-17638930?flat'} 2025-07-30 19:56:40,194 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35858267:ctest-vn-17638930 is found in opserver 2025-07-30 19:56:40,204 - DEBUG - Do not have enough data to verify VN in agent 2025-07-30 19:56:40,209 - DEBUG - VRF ids for VN ctest-vn-17638930: {} 2025-07-30 19:56:40,209 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-07-30 19:56:40,214 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ad6c8684-c58c-46f7-87b6-e9c5d8e8668f 2025-07-30 19:56:40,225 - DEBUG - Requesting: http://10.0.0.38:8082/project/305d9d3c-7e3d-4714-a9f8-823f693e8f5e 2025-07-30 19:56:40,295 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9b43e9ff-5b8e-4d51-8f30-ed6675fff74b 2025-07-30 19:56:40,306 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9b43e9ff-5b8e-4d51-8f30-ed6675fff74b 2025-07-30 19:56:40,317 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/af2c0eb3-8a1f-47eb-bd4e-9dabe24189df 2025-07-30 19:56:40,325 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/af2c0eb3-8a1f-47eb-bd4e-9dabe24189df 2025-07-30 19:56:40,332 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4b2ee600-09e0-4f9d-a2a2-bb51d1062b55 2025-07-30 19:56:40,339 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-30 19:56:40,339 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9b43e9ff-5b8e-4d51-8f30-ed6675fff74b 2025-07-30 19:56:40,349 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/af2c0eb3-8a1f-47eb-bd4e-9dabe24189df 2025-07-30 19:56:40,363 - INFO - Verified VN network id 11 for VN 9b43e9ff-5b8e-4d51-8f30-ed6675fff74b 2025-07-30 19:56:40,363 - INFO - Verifications in API Server for VN ctest-vn-70645689 passed 2025-07-30 19:56:40,363 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9b43e9ff-5b8e-4d51-8f30-ed6675fff74b 2025-07-30 19:56:40,374 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/af2c0eb3-8a1f-47eb-bd4e-9dabe24189df 2025-07-30 19:56:40,380 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/af2c0eb3-8a1f-47eb-bd4e-9dabe24189df 2025-07-30 19:56:40,386 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4b2ee600-09e0-4f9d-a2a2-bb51d1062b55 2025-07-30 19:56:40,397 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35858267:ctest-vn-70645689', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35858267', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11188043182280428881', 'uuid-lslong': '10318007770627962699'}, 'enable': 'true', 'created': '2025-07-30T19:56:38', 'last-modified': '2025-07-30T19:56:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.343220'} 2025-07-30 19:56:40,403 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-30 19:56:40,403 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-70645689 passed 2025-07-30 19:56:40,403 - DEBUG - ====Verifying policy data for ctest-vn-70645689 in API_Server ====== 2025-07-30 19:56:40,403 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-07-30 19:56:40,409 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ad6c8684-c58c-46f7-87b6-e9c5d8e8668f 2025-07-30 19:56:40,420 - DEBUG - Requesting: http://10.0.0.38:8082/project/305d9d3c-7e3d-4714-a9f8-823f693e8f5e 2025-07-30 19:56:40,493 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9b43e9ff-5b8e-4d51-8f30-ed6675fff74b 2025-07-30 19:56:40,503 - DEBUG - ==>Verifying data for policy with id: 38a219fe-cefe-4d1c-ae56-10e88f01666f, fqn: ['default-domain', 'ctest-TestBasicPolicy-35858267', 'ctest-policy-allow-all-99388268'] 2025-07-30 19:56:40,503 - INFO - VN ctest-vn-70645689 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-30 19:56:40,503 - DEBUG - Verifying the vn in opserver 2025-07-30 19:56:40,503 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35858267:ctest-vn-70645689 virtual network link through opserver 10.0.0.38 2025-07-30 19:56:40,503 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-07-30 19:56:40,514 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35858267:ctest-vn-70645689', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35858267:ctest-vn-70645689?flat'} 2025-07-30 19:56:40,514 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35858267:ctest-vn-70645689 is found in opserver 2025-07-30 19:56:40,526 - DEBUG - Do not have enough data to verify VN in agent 2025-07-30 19:56:40,532 - DEBUG - VRF ids for VN ctest-vn-70645689: {} 2025-07-30 19:56:40,587 - DEBUG - Services list from nova: [, , ] 2025-07-30 19:56:41,566 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3725-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3725-1) 2025-07-30 19:56:42,738 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3725-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3725-1) 2025-07-30 19:56:42,739 - INFO - Waiting for VM ctest-TestBasicPolicy-35858267-29471489 to be up.. 2025-07-30 19:56:42,834 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-30 19:56:47,937 - DEBUG - VM is in ACTIVE state now 2025-07-30 19:56:47,937 - INFO - VM name : ctest-TestBasicPolicy-35858267-29471489 2025-07-30 19:56:48,005 - DEBUG - VM ctest-TestBasicPolicy-35858267-29471489 ID is 2a9813a9-bfb1-48d4-86bb-62f56712e020 2025-07-30 19:56:48,023 - DEBUG - VM ctest-TestBasicPolicy-35858267-29471489 launched on Node cn-jenkins-deploy-platform-ansible-os-3725-1. 2025-07-30 19:56:48,090 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/2a9813a9-bfb1-48d4-86bb-62f56712e020 2025-07-30 19:56:48,099 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/01f48f02-a371-4aad-be65-77e8075cbdf4 2025-07-30 19:56:51,335 - 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') 2025-07-30 19:56:51,335 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-35858267-29471489 failed! 2025-07-30 19:56:51,394 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-35858267:ctest-vn-17638930 is 117.60.100.129 and allocation pool is NOT set 2025-07-30 19:56:53,452 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=4.37 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.99 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.988/3.179/4.370/1.191 ms') 2025-07-30 19:56:53,453 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-35858267-29471489 passed 2025-07-30 19:56:53,601 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-30 19:56:53,602 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-35858267-29471489, IP 117.60.100.131, Port 22 2025-07-30 19:56:53,768 - DEBUG - VM ctest-TestBasicPolicy-35858267-29471489 is ready for SSH connections 2025-07-30 19:56:53,768 - INFO - Waiting for VM ctest-TestBasicPolicy-35858267-02631034 to be up.. 2025-07-30 19:56:53,840 - DEBUG - VM is in ACTIVE state now 2025-07-30 19:56:53,840 - INFO - VM name : ctest-TestBasicPolicy-35858267-02631034 2025-07-30 19:56:53,910 - DEBUG - VM ctest-TestBasicPolicy-35858267-02631034 ID is 57decb52-3ccd-431d-9810-93beafd16afc 2025-07-30 19:56:53,910 - DEBUG - VM ctest-TestBasicPolicy-35858267-02631034 launched on Node cn-jenkins-deploy-platform-ansible-os-3725-1. 2025-07-30 19:56:53,988 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/57decb52-3ccd-431d-9810-93beafd16afc 2025-07-30 19:56:53,997 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/2330f370-349d-49b6-be5b-810d272075b5 2025-07-30 19:56:55,245 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=4.05 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.12 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 2.117/3.085/4.053/0.968 ms') 2025-07-30 19:56:55,245 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-35858267-02631034 passed 2025-07-30 19:56:55,398 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-30 19:56:55,398 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-35858267-02631034, IP 166.181.51.131, Port 22 2025-07-30 19:56:55,553 - DEBUG - VM ctest-TestBasicPolicy-35858267-02631034 is ready for SSH connections 2025-07-30 19:56:55,553 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-30 19:56:55,553 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 166.181.51.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-07-30 19:56:55,553 - DEBUG - ping -s 56 -c 3 -W 1 166.181.51.131 2025-07-30 19:56:59,563 - DEBUG - PING 166.181.51.131 (166.181.51.131): 56 data bytes 64 bytes from 166.181.51.131: seq=0 ttl=63 time=4.629 ms 64 bytes from 166.181.51.131: seq=1 ttl=63 time=0.844 ms 64 bytes from 166.181.51.131: seq=2 ttl=63 time=0.842 ms --- 166.181.51.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.842/2.105/4.629 ms 2025-07-30 19:56:59,564 - INFO - Ping to IP 166.181.51.131 from VM ctest-TestBasicPolicy-35858267-29471489 passed 2025-07-30 19:56:59,737 - DEBUG - Policy Update Response {"network-policy": {"uuid": "38a219fe-cefe-4d1c-ae56-10e88f01666f", "href": "http://10.0.0.38:8082/network-policy/38a219fe-cefe-4d1c-ae56-10e88f01666f"}} 2025-07-30 19:56:59,737 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-30 19:56:59,738 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 166.181.51.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-07-30 19:56:59,738 - DEBUG - ping -s 56 -c 3 -W 1 166.181.51.131 2025-07-30 19:57:02,933 - DEBUG - PING 166.181.51.131 (166.181.51.131): 56 data bytes --- 166.181.51.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-07-30 19:57:02,934 - WARNING - Ping to IP 166.181.51.131 from VM ctest-TestBasicPolicy-35858267-29471489 failed 2025-07-30 19:57:02,934 - INFO - Deleting VM ctest-TestBasicPolicy-35858267-02631034 2025-07-30 19:57:03,001 - INFO - Deleting VM ctest-TestBasicPolicy-35858267-29471489 2025-07-30 19:57:03,380 - INFO - Deleted policy ctest-policy-allow-all-99388268 2025-07-30 19:57:03,380 - INFO - Deleting VN ctest-vn-70645689 2025-07-30 19:57:03,413 - DEBUG - VN 9b43e9ff-5b8e-4d51-8f30-ed6675fff74b still in use: Unable to complete operation on network 9b43e9ff-5b8e-4d51-8f30-ed6675fff74b. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-cf48edb5-72a5-48e0-9dc4-c6c5482c8ea4'] 2025-07-30 19:57:03,413 - WARNING - Deleting VN ctest-vn-70645689 failed..Will retry 2025-07-30 19:57:05,505 - DEBUG - Response for deleting network () 2025-07-30 19:57:05,506 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/af2c0eb3-8a1f-47eb-bd4e-9dabe24189df 2025-07-30 19:57:05,512 - DEBUG - Response Code: 404 2025-07-30 19:57:05,512 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-07-30 19:57:05,520 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ad6c8684-c58c-46f7-87b6-e9c5d8e8668f 2025-07-30 19:57:05,575 - DEBUG - Requesting: http://10.0.0.38:8082/project/305d9d3c-7e3d-4714-a9f8-823f693e8f5e 2025-07-30 19:57:05,649 - INFO - Validated that VN ctest-vn-70645689 is not found in API Server 2025-07-30 19:57:05,660 - DEBUG - VN ctest-vn-70645689 is not present in Agent 10.0.0.38 2025-07-30 19:57:05,660 - INFO - Validated that VN ctest-vn-70645689 is not in any agent 2025-07-30 19:57:05,674 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-70645689 info 2025-07-30 19:57:05,674 - INFO - Deleting VN ctest-vn-17638930 2025-07-30 19:57:05,766 - DEBUG - Response for deleting network () 2025-07-30 19:57:05,766 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cd7dbec2-ef75-432f-aa36-310cdc35a6a0 2025-07-30 19:57:05,774 - DEBUG - Response Code: 404 2025-07-30 19:57:05,774 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-07-30 19:57:05,779 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ad6c8684-c58c-46f7-87b6-e9c5d8e8668f 2025-07-30 19:57:05,836 - DEBUG - Requesting: http://10.0.0.38:8082/project/305d9d3c-7e3d-4714-a9f8-823f693e8f5e 2025-07-30 19:57:05,909 - INFO - Validated that VN ctest-vn-17638930 is not found in API Server 2025-07-30 19:57:05,919 - DEBUG - VN ctest-vn-17638930 is not present in Agent 10.0.0.38 2025-07-30 19:57:05,919 - INFO - Validated that VN ctest-vn-17638930 is not in any agent 2025-07-30 19:57:05,934 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-17638930 info 2025-07-30 19:57:06,187 - DEBUG - No XMPP flaps were noticed during the test
2025-07-30 19:57:06,187 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2025-07-30 19:57:06,187 - INFO - -------------------------------------------------------------------------------- 2025-07-30 19:57:06,882 - INFO - Deleted project: ctest-TestBasicPolicy-35858267, ID : 305d9d3c-7e3d-4714-a9f8-823f693e8f5e