2025-04-18 14:22:18,917 - INFO - Domain Default found not creating 2025-04-18 14:22:19,097 - INFO - Project ctest-TestBasicPolicy-40615267 not found, creating it 2025-04-18 14:22:19,606 - INFO - Created Project:ctest-TestBasicPolicy-40615267, ID : 693f2560-aa35-4742-82a4-1fb14fafd459 2025-04-18 14:22:21,188 - INFO - ================================================================================ 2025-04-18 14:22:21,188 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-18 14:22:21,188 - 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-04-18 14:22:21,454 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.0.0.254': '0'}} with 2025-04-18 14:22:21,454 - INFO - Initial checks done. Running the testcase now 2025-04-18 14:22:21,454 - INFO - 2025-04-18 14:22:22,080 - DEBUG - Response for create_network : {'network': {'id': 'cc729da4-dfde-4433-85ef-3a0cddedb73a', 'name': 'ctest-vn-36197448', 'tenant_id': '693f2560aa35474282a41fb14fafd459', 'project_id': '693f2560aa35474282a41fb14fafd459', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40615267', 'ctest-vn-36197448'], 'port_security_enabled': True, 'description': ''}} 2025-04-18 14:22:22,275 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b03e1b01-0e48-447e-b5ca-a8d919f45bc0', 'name': '', 'tenant_id': '693f2560aa35474282a41fb14fafd459', 'network_id': 'cc729da4-dfde-4433-85ef-3a0cddedb73a', 'ip_version': 4, 'cidr': '126.32.112.192/26', 'allocation_pools': [{'start': '126.32.112.194', 'end': '126.32.112.254'}], 'gateway_ip': '126.32.112.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '126.32.112.194', 'tags': [], 'project_id': '693f2560aa35474282a41fb14fafd459'}} 2025-04-18 14:22:22,301 - INFO - Created VN ctest-vn-36197448 2025-04-18 14:22:22,356 - DEBUG - VN ctest-vn-36197448 UUID is cc729da4-dfde-4433-85ef-3a0cddedb73a 2025-04-18 14:22:22,673 - DEBUG - Response for create_network : {'network': {'id': 'b20ebccd-5c98-42b1-b799-ee1d8b0b4840', 'name': 'ctest-vn-35694882', 'tenant_id': '693f2560aa35474282a41fb14fafd459', 'project_id': '693f2560aa35474282a41fb14fafd459', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40615267', 'ctest-vn-35694882'], 'port_security_enabled': True, 'description': ''}} 2025-04-18 14:22:22,872 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c5ac57d9-0540-490f-816f-56343276b731', 'name': '', 'tenant_id': '693f2560aa35474282a41fb14fafd459', 'network_id': 'b20ebccd-5c98-42b1-b799-ee1d8b0b4840', 'ip_version': 4, 'cidr': '222.81.127.64/26', 'allocation_pools': [{'start': '222.81.127.66', 'end': '222.81.127.126'}], 'gateway_ip': '222.81.127.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '222.81.127.66', 'tags': [], 'project_id': '693f2560aa35474282a41fb14fafd459'}} 2025-04-18 14:22:22,892 - INFO - Created VN ctest-vn-35694882 2025-04-18 14:22:22,948 - DEBUG - VN ctest-vn-35694882 UUID is b20ebccd-5c98-42b1-b799-ee1d8b0b4840 2025-04-18 14:22:23,066 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-40615267:ctest-vn-36197448, 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-40615267:ctest-vn-35694882, 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-04-18 14:22:23,381 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cc729da4-dfde-4433-85ef-3a0cddedb73a', 'name': 'ctest-vn-36197448', 'tenant_id': '693f2560aa35474282a41fb14fafd459', 'project_id': '693f2560aa35474282a41fb14fafd459', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b03e1b01-0e48-447e-b5ca-a8d919f45bc0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40615267', 'ctest-vn-36197448'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40615267', 'ctest-policy-allow-all-34966410']], 'subnet_ipam': [{'subnet_cidr': '126.32.112.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-18 14:22:23,644 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b20ebccd-5c98-42b1-b799-ee1d8b0b4840', 'name': 'ctest-vn-35694882', 'tenant_id': '693f2560aa35474282a41fb14fafd459', 'project_id': '693f2560aa35474282a41fb14fafd459', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c5ac57d9-0540-490f-816f-56343276b731'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40615267', 'ctest-vn-35694882'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40615267', 'ctest-policy-allow-all-34966410']], 'subnet_ipam': [{'subnet_cidr': '222.81.127.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-18 14:22:23,817 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-18 14:22:24,138 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-18 14:22:24,172 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d82b7f05-3d9b-49e0-a456-b1cf62e77f98 2025-04-18 14:22:24,185 - DEBUG - Requesting: http://10.0.0.254:8082/project/693f2560-aa35-4742-82a4-1fb14fafd459 2025-04-18 14:22:24,269 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cc729da4-dfde-4433-85ef-3a0cddedb73a 2025-04-18 14:22:24,286 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cc729da4-dfde-4433-85ef-3a0cddedb73a 2025-04-18 14:22:24,298 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/01fd073d-4122-4063-880a-100fe0696009 2025-04-18 14:22:24,306 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/01fd073d-4122-4063-880a-100fe0696009 2025-04-18 14:22:24,315 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/8f374ef9-4906-4418-b965-93c3ade6f8a0 2025-04-18 14:22:24,322 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-18 14:22:24,322 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cc729da4-dfde-4433-85ef-3a0cddedb73a 2025-04-18 14:22:24,332 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/01fd073d-4122-4063-880a-100fe0696009 2025-04-18 14:22:24,350 - INFO - Verified VN network id 7 for VN cc729da4-dfde-4433-85ef-3a0cddedb73a 2025-04-18 14:22:24,350 - INFO - Verifications in API Server for VN ctest-vn-36197448 passed 2025-04-18 14:22:24,350 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cc729da4-dfde-4433-85ef-3a0cddedb73a 2025-04-18 14:22:24,359 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/01fd073d-4122-4063-880a-100fe0696009 2025-04-18 14:22:24,367 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/01fd073d-4122-4063-880a-100fe0696009 2025-04-18 14:22:24,375 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/8f374ef9-4906-4418-b965-93c3ade6f8a0 2025-04-18 14:22:24,389 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40615267:ctest-vn-36197448', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40615267', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14732010662538396723', 'uuid-lslong': '9650996353415624506'}, 'enable': 'true', 'created': '2025-04-18T14:22:22', 'last-modified': '2025-04-18T14:22:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.037631'} 2025-04-18 14:22:24,397 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-18 14:22:24,397 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36197448 passed 2025-04-18 14:22:24,397 - DEBUG - ====Verifying policy data for ctest-vn-36197448 in API_Server ====== 2025-04-18 14:22:24,397 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-18 14:22:24,403 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d82b7f05-3d9b-49e0-a456-b1cf62e77f98 2025-04-18 14:22:24,415 - DEBUG - Requesting: http://10.0.0.254:8082/project/693f2560-aa35-4742-82a4-1fb14fafd459 2025-04-18 14:22:24,505 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cc729da4-dfde-4433-85ef-3a0cddedb73a 2025-04-18 14:22:24,515 - DEBUG - ==>Verifying data for policy with id: 26de6be9-63d5-4785-bcc1-64f9fab62cd3, fqn: ['default-domain', 'ctest-TestBasicPolicy-40615267', 'ctest-policy-allow-all-34966410'] 2025-04-18 14:22:24,515 - INFO - VN ctest-vn-36197448 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-18 14:22:24,515 - DEBUG - Verifying the vn in opserver 2025-04-18 14:22:24,515 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40615267:ctest-vn-36197448 virtual network link through opserver 10.0.0.254 2025-04-18 14:22:24,515 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-04-18 14:22:24,817 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-04-18 14:22:24,877 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40615267:ctest-vn-36197448', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40615267:ctest-vn-36197448?flat'} 2025-04-18 14:22:24,877 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40615267:ctest-vn-36197448 is found in opserver 2025-04-18 14:22:24,889 - DEBUG - Do not have enough data to verify VN in agent 2025-04-18 14:22:24,894 - DEBUG - VRF ids for VN ctest-vn-36197448: {} 2025-04-18 14:22:24,894 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-18 14:22:24,900 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d82b7f05-3d9b-49e0-a456-b1cf62e77f98 2025-04-18 14:22:24,913 - DEBUG - Requesting: http://10.0.0.254:8082/project/693f2560-aa35-4742-82a4-1fb14fafd459 2025-04-18 14:22:24,993 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b20ebccd-5c98-42b1-b799-ee1d8b0b4840 2025-04-18 14:22:25,005 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b20ebccd-5c98-42b1-b799-ee1d8b0b4840 2025-04-18 14:22:25,016 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c09cad71-453a-4e3a-aa0e-b2f11caec300 2025-04-18 14:22:25,024 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c09cad71-453a-4e3a-aa0e-b2f11caec300 2025-04-18 14:22:25,030 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/06d3cc9c-d57c-42e0-802f-0eba642a5ab1 2025-04-18 14:22:25,036 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-18 14:22:25,036 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b20ebccd-5c98-42b1-b799-ee1d8b0b4840 2025-04-18 14:22:25,048 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c09cad71-453a-4e3a-aa0e-b2f11caec300 2025-04-18 14:22:25,131 - INFO - Verified VN network id 8 for VN b20ebccd-5c98-42b1-b799-ee1d8b0b4840 2025-04-18 14:22:25,131 - INFO - Verifications in API Server for VN ctest-vn-35694882 passed 2025-04-18 14:22:25,131 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b20ebccd-5c98-42b1-b799-ee1d8b0b4840 2025-04-18 14:22:25,145 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c09cad71-453a-4e3a-aa0e-b2f11caec300 2025-04-18 14:22:25,153 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c09cad71-453a-4e3a-aa0e-b2f11caec300 2025-04-18 14:22:25,160 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/06d3cc9c-d57c-42e0-802f-0eba642a5ab1 2025-04-18 14:22:25,173 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40615267:ctest-vn-35694882', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40615267', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12830399978632921777', 'uuid-lslong': '13229867191031777344'}, 'enable': 'true', 'created': '2025-04-18T14:22:22', 'last-modified': '2025-04-18T14:22:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.561831'} 2025-04-18 14:22:25,183 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-18 14:22:25,183 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35694882 passed 2025-04-18 14:22:25,184 - DEBUG - ====Verifying policy data for ctest-vn-35694882 in API_Server ====== 2025-04-18 14:22:25,184 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-18 14:22:25,191 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d82b7f05-3d9b-49e0-a456-b1cf62e77f98 2025-04-18 14:22:25,206 - DEBUG - Requesting: http://10.0.0.254:8082/project/693f2560-aa35-4742-82a4-1fb14fafd459 2025-04-18 14:22:25,278 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b20ebccd-5c98-42b1-b799-ee1d8b0b4840 2025-04-18 14:22:25,288 - DEBUG - ==>Verifying data for policy with id: 26de6be9-63d5-4785-bcc1-64f9fab62cd3, fqn: ['default-domain', 'ctest-TestBasicPolicy-40615267', 'ctest-policy-allow-all-34966410'] 2025-04-18 14:22:25,288 - INFO - VN ctest-vn-35694882 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-18 14:22:25,288 - DEBUG - Verifying the vn in opserver 2025-04-18 14:22:25,288 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40615267:ctest-vn-35694882 virtual network link through opserver 10.0.0.254 2025-04-18 14:22:25,288 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-04-18 14:22:25,299 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40615267:ctest-vn-35694882', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40615267:ctest-vn-35694882?flat'} 2025-04-18 14:22:25,299 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40615267:ctest-vn-35694882 is found in opserver 2025-04-18 14:22:25,311 - DEBUG - Do not have enough data to verify VN in agent 2025-04-18 14:22:25,319 - DEBUG - VRF ids for VN ctest-vn-35694882: {} 2025-04-18 14:22:25,386 - DEBUG - Services list from nova: [, , ] 2025-04-18 14:22:26,568 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3140-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3140-1) 2025-04-18 14:22:27,872 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3140-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3140-1) 2025-04-18 14:22:27,872 - INFO - Waiting for VM ctest-TestBasicPolicy-40615267-54752974 to be up.. 2025-04-18 14:22:27,958 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-18 14:22:33,067 - DEBUG - VM is in ACTIVE state now 2025-04-18 14:22:33,067 - INFO - VM name : ctest-TestBasicPolicy-40615267-54752974 2025-04-18 14:22:33,174 - DEBUG - VM ctest-TestBasicPolicy-40615267-54752974 ID is bbcd06db-4a65-40b1-be43-c8f6cc762035 2025-04-18 14:22:33,204 - DEBUG - VM ctest-TestBasicPolicy-40615267-54752974 launched on Node cn-jenkins-deploy-platform-ansible-os-3140-1. 2025-04-18 14:22:33,311 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/bbcd06db-4a65-40b1-be43-c8f6cc762035 2025-04-18 14:22:33,321 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/eed513ad-9e44-4e3d-8201-eae0e10a681f 2025-04-18 14:22:36,550 - 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 1022ms') 2025-04-18 14:22:36,550 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-40615267-54752974 failed! 2025-04-18 14:22:36,604 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-40615267:ctest-vn-36197448 is 126.32.112.193 and allocation pool is NOT set 2025-04-18 14:22:38,674 - 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=11.2 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.30 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 = 2.301/6.756/11.212/4.455 ms') 2025-04-18 14:22:38,674 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-40615267-54752974 passed 2025-04-18 14:22:38,825 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-18 14:22:38,825 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-40615267-54752974, IP 126.32.112.195, Port 22 2025-04-18 14:22:38,980 - DEBUG - VM ctest-TestBasicPolicy-40615267-54752974 is ready for SSH connections 2025-04-18 14:22:38,981 - INFO - Waiting for VM ctest-TestBasicPolicy-40615267-73038302 to be up.. 2025-04-18 14:22:39,083 - DEBUG - VM is in ACTIVE state now 2025-04-18 14:22:39,084 - INFO - VM name : ctest-TestBasicPolicy-40615267-73038302 2025-04-18 14:22:39,169 - DEBUG - VM ctest-TestBasicPolicy-40615267-73038302 ID is 5b889c72-e83e-42d7-8a44-fed14737c96e 2025-04-18 14:22:39,169 - DEBUG - VM ctest-TestBasicPolicy-40615267-73038302 launched on Node cn-jenkins-deploy-platform-ansible-os-3140-1. 2025-04-18 14:22:39,268 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/5b889c72-e83e-42d7-8a44-fed14737c96e 2025-04-18 14:22:39,277 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/0dc9a4c0-d01f-4096-9117-5481f35d60ff 2025-04-18 14:22:40,531 - 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=2.63 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.559 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 = 0.559/1.593/2.628/1.034 ms') 2025-04-18 14:22:40,531 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-40615267-73038302 passed 2025-04-18 14:22:40,689 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-18 14:22:40,689 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-40615267-73038302, IP 222.81.127.67, Port 22 2025-04-18 14:22:40,859 - DEBUG - VM ctest-TestBasicPolicy-40615267-73038302 is ready for SSH connections 2025-04-18 14:22:40,859 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-18 14:22:40,859 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 222.81.127.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-04-18 14:22:40,859 - DEBUG - ping -s 56 -c 3 -W 1 222.81.127.67 2025-04-18 14:22:44,950 - DEBUG - PING 222.81.127.67 (222.81.127.67): 56 data bytes 64 bytes from 222.81.127.67: seq=0 ttl=63 time=3.700 ms 64 bytes from 222.81.127.67: seq=1 ttl=63 time=0.970 ms 64 bytes from 222.81.127.67: seq=2 ttl=63 time=1.186 ms --- 222.81.127.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.970/1.952/3.700 ms 2025-04-18 14:22:44,951 - INFO - Ping to IP 222.81.127.67 from VM ctest-TestBasicPolicy-40615267-54752974 passed 2025-04-18 14:22:45,140 - DEBUG - Policy Update Response {"network-policy": {"uuid": "26de6be9-63d5-4785-bcc1-64f9fab62cd3", "href": "http://10.0.0.254:8082/network-policy/26de6be9-63d5-4785-bcc1-64f9fab62cd3"}} 2025-04-18 14:22:45,140 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-18 14:22:45,141 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 222.81.127.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-04-18 14:22:45,141 - DEBUG - ping -s 56 -c 3 -W 1 222.81.127.67 2025-04-18 14:22:48,357 - DEBUG - PING 222.81.127.67 (222.81.127.67): 56 data bytes --- 222.81.127.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-04-18 14:22:48,357 - WARNING - Ping to IP 222.81.127.67 from VM ctest-TestBasicPolicy-40615267-54752974 failed 2025-04-18 14:22:48,357 - INFO - Deleting VM ctest-TestBasicPolicy-40615267-73038302 2025-04-18 14:22:48,440 - INFO - Deleting VM ctest-TestBasicPolicy-40615267-54752974 2025-04-18 14:22:48,889 - INFO - Deleted policy ctest-policy-allow-all-34966410 2025-04-18 14:22:48,889 - INFO - Deleting VN ctest-vn-35694882 2025-04-18 14:22:48,928 - DEBUG - VN b20ebccd-5c98-42b1-b799-ee1d8b0b4840 still in use: Unable to complete operation on network b20ebccd-5c98-42b1-b799-ee1d8b0b4840. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-69236744-e47d-4cba-ac46-7c4e9dc5ae50'] 2025-04-18 14:22:48,928 - WARNING - Deleting VN ctest-vn-35694882 failed..Will retry 2025-04-18 14:22:51,054 - DEBUG - Response for deleting network () 2025-04-18 14:22:51,054 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c09cad71-453a-4e3a-aa0e-b2f11caec300 2025-04-18 14:22:51,059 - DEBUG - Response Code: 404 2025-04-18 14:22:51,059 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-18 14:22:51,068 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d82b7f05-3d9b-49e0-a456-b1cf62e77f98 2025-04-18 14:22:51,124 - DEBUG - Requesting: http://10.0.0.254:8082/project/693f2560-aa35-4742-82a4-1fb14fafd459 2025-04-18 14:22:51,196 - INFO - Validated that VN ctest-vn-35694882 is not found in API Server 2025-04-18 14:22:51,208 - DEBUG - VN ctest-vn-35694882 is not present in Agent 10.0.0.254 2025-04-18 14:22:51,208 - INFO - Validated that VN ctest-vn-35694882 is not in any agent 2025-04-18 14:22:51,226 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-35694882 info 2025-04-18 14:22:51,226 - INFO - Deleting VN ctest-vn-36197448 2025-04-18 14:22:51,337 - DEBUG - Response for deleting network () 2025-04-18 14:22:51,337 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/01fd073d-4122-4063-880a-100fe0696009 2025-04-18 14:22:51,343 - DEBUG - Response Code: 404 2025-04-18 14:22:51,343 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-18 14:22:51,351 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d82b7f05-3d9b-49e0-a456-b1cf62e77f98 2025-04-18 14:22:51,407 - DEBUG - Requesting: http://10.0.0.254:8082/project/693f2560-aa35-4742-82a4-1fb14fafd459 2025-04-18 14:22:51,483 - INFO - Validated that VN ctest-vn-36197448 is not found in API Server 2025-04-18 14:22:51,493 - DEBUG - VN ctest-vn-36197448 is not present in Agent 10.0.0.254 2025-04-18 14:22:51,493 - INFO - Validated that VN ctest-vn-36197448 is not in any agent 2025-04-18 14:22:51,508 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-36197448 info 2025-04-18 14:22:51,762 - DEBUG - No XMPP flaps were noticed during the test
2025-04-18 14:22:51,762 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2025-04-18 14:22:51,762 - INFO - -------------------------------------------------------------------------------- 2025-04-18 14:22:52,466 - INFO - Deleted project: ctest-TestBasicPolicy-40615267, ID : 693f2560-aa35-4742-82a4-1fb14fafd459