2024-09-10 21:11:44,658 - INFO - Domain Default found not creating 2024-09-10 21:11:44,826 - INFO - Project ctest-TestBasicPolicy-74110988 not found, creating it 2024-09-10 21:11:45,310 - INFO - Created Project:ctest-TestBasicPolicy-74110988, ID : 940fc257-a8b2-4d57-8891-ac06230e16c3 2024-09-10 21:11:46,860 - INFO - ================================================================================ 2024-09-10 21:11:46,860 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-10 21:11:46,860 - 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 2024-09-10 21:11:47,113 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.20.0.7': '0'}} with 2024-09-10 21:11:47,113 - INFO - Initial checks done. Running the testcase now 2024-09-10 21:11:47,113 - INFO - 2024-09-10 21:11:47,676 - DEBUG - Response for create_network : {'network': {'id': '7d398c80-ddd3-4cc7-ad9e-b2adb625067b', 'name': 'ctest-vn-37452129', 'tenant_id': '940fc257a8b24d578891ac06230e16c3', 'project_id': '940fc257a8b24d578891ac06230e16c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74110988', 'ctest-vn-37452129'], 'port_security_enabled': True, 'description': ''}} 2024-09-10 21:11:47,852 - DEBUG - Response for create_subnet : {'subnet': {'id': '477b0940-85dc-46a0-8758-0be2c0f9105c', 'name': '', 'tenant_id': '940fc257a8b24d578891ac06230e16c3', 'network_id': '7d398c80-ddd3-4cc7-ad9e-b2adb625067b', 'ip_version': 4, 'cidr': '57.205.35.192/26', 'allocation_pools': [{'start': '57.205.35.194', 'end': '57.205.35.254'}], 'gateway_ip': '57.205.35.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '57.205.35.194', 'tags': [], 'project_id': '940fc257a8b24d578891ac06230e16c3'}} 2024-09-10 21:11:47,877 - INFO - Created VN ctest-vn-37452129 2024-09-10 21:11:47,932 - DEBUG - VN ctest-vn-37452129 UUID is 7d398c80-ddd3-4cc7-ad9e-b2adb625067b 2024-09-10 21:11:48,231 - DEBUG - Response for create_network : {'network': {'id': 'dfa625b5-61b6-40e3-ab6a-ff6bcccbba18', 'name': 'ctest-vn-19533216', 'tenant_id': '940fc257a8b24d578891ac06230e16c3', 'project_id': '940fc257a8b24d578891ac06230e16c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74110988', 'ctest-vn-19533216'], 'port_security_enabled': True, 'description': ''}} 2024-09-10 21:11:48,448 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd8ab8cd4-c203-4f91-9453-9fb6bbfc4559', 'name': '', 'tenant_id': '940fc257a8b24d578891ac06230e16c3', 'network_id': 'dfa625b5-61b6-40e3-ab6a-ff6bcccbba18', 'ip_version': 4, 'cidr': '3.89.227.0/26', 'allocation_pools': [{'start': '3.89.227.2', 'end': '3.89.227.62'}], 'gateway_ip': '3.89.227.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3.89.227.2', 'tags': [], 'project_id': '940fc257a8b24d578891ac06230e16c3'}} 2024-09-10 21:11:48,469 - INFO - Created VN ctest-vn-19533216 2024-09-10 21:11:48,519 - DEBUG - VN ctest-vn-19533216 UUID is dfa625b5-61b6-40e3-ab6a-ff6bcccbba18 2024-09-10 21:11:48,639 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-74110988:ctest-vn-37452129, 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-74110988:ctest-vn-19533216, 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] 2024-09-10 21:11:48,959 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7d398c80-ddd3-4cc7-ad9e-b2adb625067b', 'name': 'ctest-vn-37452129', 'tenant_id': '940fc257a8b24d578891ac06230e16c3', 'project_id': '940fc257a8b24d578891ac06230e16c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['477b0940-85dc-46a0-8758-0be2c0f9105c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74110988', 'ctest-vn-37452129'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-74110988', 'ctest-policy-allow-all-63098985']], 'subnet_ipam': [{'subnet_cidr': '57.205.35.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-10 21:11:49,194 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dfa625b5-61b6-40e3-ab6a-ff6bcccbba18', 'name': 'ctest-vn-19533216', 'tenant_id': '940fc257a8b24d578891ac06230e16c3', 'project_id': '940fc257a8b24d578891ac06230e16c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d8ab8cd4-c203-4f91-9453-9fb6bbfc4559'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74110988', 'ctest-vn-19533216'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-74110988', 'ctest-policy-allow-all-63098985']], 'subnet_ipam': [{'subnet_cidr': '3.89.227.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-10 21:11:49,368 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2024-09-10 21:11:49,664 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2024-09-10 21:11:49,696 - DEBUG - Requesting: http://10.0.0.17:8082/domain/8a462fbc-7795-4f42-b9a7-d0d8f8962dac 2024-09-10 21:11:49,718 - DEBUG - Requesting: http://10.0.0.17:8082/project/940fc257-a8b2-4d57-8891-ac06230e16c3 2024-09-10 21:11:49,791 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/7d398c80-ddd3-4cc7-ad9e-b2adb625067b 2024-09-10 21:11:49,800 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/7d398c80-ddd3-4cc7-ad9e-b2adb625067b 2024-09-10 21:11:49,808 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/bf32b1ad-1192-408e-9f51-7f832ddfe438 2024-09-10 21:11:49,814 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/bf32b1ad-1192-408e-9f51-7f832ddfe438 2024-09-10 21:11:49,820 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/cb06717a-ff96-4b67-82e3-0d457de9e4ab 2024-09-10 21:11:49,826 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-10 21:11:49,826 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/7d398c80-ddd3-4cc7-ad9e-b2adb625067b 2024-09-10 21:11:49,833 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/bf32b1ad-1192-408e-9f51-7f832ddfe438 2024-09-10 21:11:49,846 - INFO - Verified VN network id 8 for VN 7d398c80-ddd3-4cc7-ad9e-b2adb625067b 2024-09-10 21:11:49,846 - INFO - Verifications in API Server for VN ctest-vn-37452129 passed 2024-09-10 21:11:49,846 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/7d398c80-ddd3-4cc7-ad9e-b2adb625067b 2024-09-10 21:11:49,854 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/bf32b1ad-1192-408e-9f51-7f832ddfe438 2024-09-10 21:11:49,861 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/bf32b1ad-1192-408e-9f51-7f832ddfe438 2024-09-10 21:11:49,867 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/cb06717a-ff96-4b67-82e3-0d457de9e4ab 2024-09-10 21:11:49,879 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74110988:ctest-vn-37452129', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74110988', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9023397813518814407', 'uuid-lslong': '12510633274036782715'}, 'enable': 'true', 'created': '2024-09-10T21:11:47', 'last-modified': '2024-09-10T21:11:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.952809'} 2024-09-10 21:11:49,885 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-10 21:11:49,885 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-37452129 passed 2024-09-10 21:11:49,885 - DEBUG - ====Verifying policy data for ctest-vn-37452129 in API_Server ====== 2024-09-10 21:11:49,885 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2024-09-10 21:11:49,891 - DEBUG - Requesting: http://10.0.0.17:8082/domain/8a462fbc-7795-4f42-b9a7-d0d8f8962dac 2024-09-10 21:11:49,903 - DEBUG - Requesting: http://10.0.0.17:8082/project/940fc257-a8b2-4d57-8891-ac06230e16c3 2024-09-10 21:11:49,981 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/7d398c80-ddd3-4cc7-ad9e-b2adb625067b 2024-09-10 21:11:50,000 - DEBUG - ==>Verifying data for policy with id: 6ba6135d-07b1-4f54-9a98-1246699349fa, fqn: ['default-domain', 'ctest-TestBasicPolicy-74110988', 'ctest-policy-allow-all-63098985'] 2024-09-10 21:11:50,000 - INFO - VN ctest-vn-37452129 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-10 21:11:50,000 - DEBUG - Verifying the vn in opserver 2024-09-10 21:11:50,000 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74110988:ctest-vn-37452129 virtual network link through opserver 10.0.0.17 2024-09-10 21:11:50,000 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks 2024-09-10 21:11:50,296 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks 2024-09-10 21:11:50,358 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74110988:ctest-vn-37452129', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74110988:ctest-vn-37452129?flat'} 2024-09-10 21:11:50,358 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-74110988:ctest-vn-37452129 is found in opserver 2024-09-10 21:11:50,370 - DEBUG - Do not have enough data to verify VN in agent 2024-09-10 21:11:50,376 - DEBUG - VRF ids for VN ctest-vn-37452129: {} 2024-09-10 21:11:50,376 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2024-09-10 21:11:50,382 - DEBUG - Requesting: http://10.0.0.17:8082/domain/8a462fbc-7795-4f42-b9a7-d0d8f8962dac 2024-09-10 21:11:50,394 - DEBUG - Requesting: http://10.0.0.17:8082/project/940fc257-a8b2-4d57-8891-ac06230e16c3 2024-09-10 21:11:50,468 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/dfa625b5-61b6-40e3-ab6a-ff6bcccbba18 2024-09-10 21:11:50,479 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/dfa625b5-61b6-40e3-ab6a-ff6bcccbba18 2024-09-10 21:11:50,487 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/a377af56-cda4-42ed-bcda-2e66291c5370 2024-09-10 21:11:50,494 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/a377af56-cda4-42ed-bcda-2e66291c5370 2024-09-10 21:11:50,502 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/754d53f6-a524-4719-91c7-ff2e7dc8df3b 2024-09-10 21:11:50,511 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-10 21:11:50,511 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/dfa625b5-61b6-40e3-ab6a-ff6bcccbba18 2024-09-10 21:11:50,521 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/a377af56-cda4-42ed-bcda-2e66291c5370 2024-09-10 21:11:50,536 - INFO - Verified VN network id 9 for VN dfa625b5-61b6-40e3-ab6a-ff6bcccbba18 2024-09-10 21:11:50,536 - INFO - Verifications in API Server for VN ctest-vn-19533216 passed 2024-09-10 21:11:50,536 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/dfa625b5-61b6-40e3-ab6a-ff6bcccbba18 2024-09-10 21:11:50,548 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/a377af56-cda4-42ed-bcda-2e66291c5370 2024-09-10 21:11:50,556 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/a377af56-cda4-42ed-bcda-2e66291c5370 2024-09-10 21:11:50,563 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/754d53f6-a524-4719-91c7-ff2e7dc8df3b 2024-09-10 21:11:50,577 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74110988:ctest-vn-19533216', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74110988', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16115609777550541027', 'uuid-lslong': '12351965766479493656'}, 'enable': 'true', 'created': '2024-09-10T21:11:48', 'last-modified': '2024-09-10T21:11:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.407427'} 2024-09-10 21:11:50,583 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-10 21:11:50,583 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-19533216 passed 2024-09-10 21:11:50,584 - DEBUG - ====Verifying policy data for ctest-vn-19533216 in API_Server ====== 2024-09-10 21:11:50,584 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2024-09-10 21:11:50,590 - DEBUG - Requesting: http://10.0.0.17:8082/domain/8a462fbc-7795-4f42-b9a7-d0d8f8962dac 2024-09-10 21:11:50,604 - DEBUG - Requesting: http://10.0.0.17:8082/project/940fc257-a8b2-4d57-8891-ac06230e16c3 2024-09-10 21:11:50,682 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/dfa625b5-61b6-40e3-ab6a-ff6bcccbba18 2024-09-10 21:11:50,691 - DEBUG - ==>Verifying data for policy with id: 6ba6135d-07b1-4f54-9a98-1246699349fa, fqn: ['default-domain', 'ctest-TestBasicPolicy-74110988', 'ctest-policy-allow-all-63098985'] 2024-09-10 21:11:50,691 - INFO - VN ctest-vn-19533216 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-10 21:11:50,691 - DEBUG - Verifying the vn in opserver 2024-09-10 21:11:50,691 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74110988:ctest-vn-19533216 virtual network link through opserver 10.0.0.17 2024-09-10 21:11:50,692 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks 2024-09-10 21:11:50,704 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74110988:ctest-vn-19533216', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74110988:ctest-vn-19533216?flat'} 2024-09-10 21:11:50,704 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-74110988:ctest-vn-19533216 is found in opserver 2024-09-10 21:11:50,717 - DEBUG - Do not have enough data to verify VN in agent 2024-09-10 21:11:50,724 - DEBUG - VRF ids for VN ctest-vn-19533216: {} 2024-09-10 21:11:50,795 - DEBUG - Services list from nova: [, , ] 2024-09-10 21:11:52,214 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1888-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1888-1) 2024-09-10 21:11:53,351 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1888-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1888-1) 2024-09-10 21:11:53,351 - INFO - Waiting for VM ctest-TestBasicPolicy-74110988-63369193 to be up.. 2024-09-10 21:11:53,434 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-10 21:11:58,524 - DEBUG - VM is in ACTIVE state now 2024-09-10 21:11:58,524 - INFO - VM name : ctest-TestBasicPolicy-74110988-63369193 2024-09-10 21:11:58,632 - DEBUG - VM ctest-TestBasicPolicy-74110988-63369193 ID is 3eb088bb-d42d-4425-99da-ab0032100a96 2024-09-10 21:11:58,650 - DEBUG - VM ctest-TestBasicPolicy-74110988-63369193 launched on Node cn-jenkins-deploy-platform-ansible-os-1888-1 2024-09-10 21:11:58,741 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/3eb088bb-d42d-4425-99da-ab0032100a96 2024-09-10 21:11:58,750 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine-interface/c6d743d3-1705-45c4-8d2f-d1664185e669 2024-09-10 21:12:02,006 - 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 1013ms') 2024-09-10 21:12:02,006 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-74110988-63369193 failed! 2024-09-10 21:12:02,064 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-74110988:ctest-vn-37452129 is 57.205.35.193 and allocation pool is NOT set 2024-09-10 21:12:04,127 - 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.95 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.376 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 = 0.376/4.661/8.947/4.285 ms') 2024-09-10 21:12:04,128 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-74110988-63369193 passed 2024-09-10 21:12:04,275 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-10 21:12:04,276 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-74110988-63369193, IP 57.205.35.195, Port 22 2024-09-10 21:12:04,431 - DEBUG - VM ctest-TestBasicPolicy-74110988-63369193 is ready for SSH connections 2024-09-10 21:12:04,432 - INFO - Waiting for VM ctest-TestBasicPolicy-74110988-71721808 to be up.. 2024-09-10 21:12:04,513 - DEBUG - VM is in ACTIVE state now 2024-09-10 21:12:04,513 - INFO - VM name : ctest-TestBasicPolicy-74110988-71721808 2024-09-10 21:12:04,595 - DEBUG - VM ctest-TestBasicPolicy-74110988-71721808 ID is 06efb552-c333-443a-95df-25211b4427c3 2024-09-10 21:12:04,595 - DEBUG - VM ctest-TestBasicPolicy-74110988-71721808 launched on Node cn-jenkins-deploy-platform-ansible-os-1888-1 2024-09-10 21:12:04,677 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/06efb552-c333-443a-95df-25211b4427c3 2024-09-10 21:12:04,685 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine-interface/245d24dc-24c3-489c-ad73-453d807d7961 2024-09-10 21:12:05,924 - 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.88 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.486 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.486/1.685/2.884/1.199 ms') 2024-09-10 21:12:05,924 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-74110988-71721808 passed 2024-09-10 21:12:06,076 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-10 21:12:06,076 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-74110988-71721808, IP 3.89.227.3, Port 22 2024-09-10 21:12:06,235 - DEBUG - VM ctest-TestBasicPolicy-74110988-71721808 is ready for SSH connections 2024-09-10 21:12:06,235 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-10 21:12:06,236 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 3.89.227.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.17, gateway password: c0ntrail123 2024-09-10 21:12:06,236 - DEBUG - ping -s 56 -c 3 -W 1 3.89.227.3 2024-09-10 21:12:10,268 - DEBUG - PING 3.89.227.3 (3.89.227.3): 56 data bytes 64 bytes from 3.89.227.3: seq=0 ttl=63 time=3.888 ms 64 bytes from 3.89.227.3: seq=1 ttl=63 time=1.145 ms 64 bytes from 3.89.227.3: seq=2 ttl=63 time=1.168 ms --- 3.89.227.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.145/2.067/3.888 ms 2024-09-10 21:12:10,268 - INFO - Ping to IP 3.89.227.3 from VM ctest-TestBasicPolicy-74110988-63369193 passed 2024-09-10 21:12:10,455 - DEBUG - Policy Update Response {"network-policy": {"uuid": "6ba6135d-07b1-4f54-9a98-1246699349fa", "href": "http://10.0.0.17:8082/network-policy/6ba6135d-07b1-4f54-9a98-1246699349fa"}} 2024-09-10 21:12:10,456 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-10 21:12:10,456 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 3.89.227.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.17, gateway password: c0ntrail123 2024-09-10 21:12:10,456 - DEBUG - ping -s 56 -c 3 -W 1 3.89.227.3 2024-09-10 21:12:13,709 - DEBUG - PING 3.89.227.3 (3.89.227.3): 56 data bytes 64 bytes from 3.89.227.3: seq=0 ttl=63 time=1.441 ms --- 3.89.227.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.441/1.441/1.441 ms 2024-09-10 21:12:13,709 - WARNING - Ping to IP 3.89.227.3 from VM ctest-TestBasicPolicy-74110988-63369193 failed 2024-09-10 21:12:13,709 - INFO - Deleting VM ctest-TestBasicPolicy-74110988-71721808 2024-09-10 21:12:13,774 - INFO - Deleting VM ctest-TestBasicPolicy-74110988-63369193 2024-09-10 21:12:14,154 - INFO - Deleted policy ctest-policy-allow-all-63098985 2024-09-10 21:12:14,154 - INFO - Deleting VN ctest-vn-19533216 2024-09-10 21:12:14,195 - DEBUG - VN dfa625b5-61b6-40e3-ab6a-ff6bcccbba18 still in use: Unable to complete operation on network dfa625b5-61b6-40e3-ab6a-ff6bcccbba18. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-2f1b749a-bcd0-472c-9049-0e24ae9a318f'] 2024-09-10 21:12:14,196 - WARNING - Deleting VN ctest-vn-19533216 failed..Will retry 2024-09-10 21:12:16,295 - DEBUG - Response for deleting network () 2024-09-10 21:12:16,295 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/a377af56-cda4-42ed-bcda-2e66291c5370 2024-09-10 21:12:16,300 - DEBUG - Response Code: 404 2024-09-10 21:12:16,300 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2024-09-10 21:12:16,308 - DEBUG - Requesting: http://10.0.0.17:8082/domain/8a462fbc-7795-4f42-b9a7-d0d8f8962dac 2024-09-10 21:12:16,361 - DEBUG - Requesting: http://10.0.0.17:8082/project/940fc257-a8b2-4d57-8891-ac06230e16c3 2024-09-10 21:12:16,429 - INFO - Validated that VN ctest-vn-19533216 is not found in API Server 2024-09-10 21:12:16,441 - DEBUG - VN ctest-vn-19533216 is not present in Agent 10.0.0.17 2024-09-10 21:12:16,441 - INFO - Validated that VN ctest-vn-19533216 is not in any agent 2024-09-10 21:12:16,456 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-19533216 info 2024-09-10 21:12:16,456 - INFO - Deleting VN ctest-vn-37452129 2024-09-10 21:12:16,557 - DEBUG - Response for deleting network () 2024-09-10 21:12:16,558 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/bf32b1ad-1192-408e-9f51-7f832ddfe438 2024-09-10 21:12:16,565 - DEBUG - Response Code: 404 2024-09-10 21:12:16,565 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2024-09-10 21:12:16,572 - DEBUG - Requesting: http://10.0.0.17:8082/domain/8a462fbc-7795-4f42-b9a7-d0d8f8962dac 2024-09-10 21:12:16,624 - DEBUG - Requesting: http://10.0.0.17:8082/project/940fc257-a8b2-4d57-8891-ac06230e16c3 2024-09-10 21:12:16,689 - INFO - Validated that VN ctest-vn-37452129 is not found in API Server 2024-09-10 21:12:16,700 - DEBUG - VN ctest-vn-37452129 is not present in Agent 10.0.0.17 2024-09-10 21:12:16,700 - INFO - Validated that VN ctest-vn-37452129 is not in any agent 2024-09-10 21:12:16,717 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-37452129 info 2024-09-10 21:12:16,974 - DEBUG - No XMPP flaps were noticed during the test 2024-09-10 21:12:16,974 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30] 2024-09-10 21:12:16,974 - INFO - -------------------------------------------------------------------------------- 2024-09-10 21:12:17,675 - INFO - Deleted project: ctest-TestBasicPolicy-74110988, ID : 940fc257-a8b2-4d57-8891-ac06230e16c3