2024-09-17 10:31:38,117 - INFO - Domain Default found not creating 2024-09-17 10:31:38,300 - INFO - Project ctest-TestRoutersBasic-57191441 not found, creating it 2024-09-17 10:31:38,798 - INFO - Created Project:ctest-TestRoutersBasic-57191441, ID : 7aa9fa8b-69be-432d-a01f-63229980aeb8 2024-09-17 10:31:40,462 - INFO - ================================================================================ 2024-09-17 10:31:40,462 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-17 10:31:40,462 - INFO - TEST DESCRIPTION : Create an external network, a router set router-gateway to external network launch a private network and attach it to router validate left vm pinging right vm through Snat 2024-09-17 10:31:40,729 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.13': '0'}} with 2024-09-17 10:31:40,729 - INFO - Initial checks done. Running the testcase now 2024-09-17 10:31:40,729 - INFO - 2024-09-17 10:31:41,544 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-57191441 2024-09-17 10:31:41,730 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-57191441 2024-09-17 10:31:42,194 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-57191441', 'default']} 2024-09-17 10:31:42,591 - DEBUG - Response for create_network : {'network': {'id': 'aacd0240-0b81-47be-ba97-a524fc3d38d1', 'name': 'ctest-vn-24184120', 'tenant_id': '7aa9fa8b69be432da01f63229980aeb8', 'project_id': '7aa9fa8b69be432da01f63229980aeb8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-57191441', 'ctest-vn-24184120'], 'port_security_enabled': True, 'description': ''}} 2024-09-17 10:31:42,766 - DEBUG - Response for create_subnet : {'subnet': {'id': '8a01c9eb-8893-4a90-be0a-47d808cd1187', 'name': '', 'tenant_id': '7aa9fa8b69be432da01f63229980aeb8', 'network_id': 'aacd0240-0b81-47be-ba97-a524fc3d38d1', 'ip_version': 4, 'cidr': '152.238.222.64/26', 'allocation_pools': [{'start': '152.238.222.66', 'end': '152.238.222.126'}], 'gateway_ip': '152.238.222.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '152.238.222.66', 'tags': [], 'project_id': '7aa9fa8b69be432da01f63229980aeb8'}} 2024-09-17 10:31:42,789 - INFO - Created VN ctest-vn-24184120 2024-09-17 10:31:42,850 - DEBUG - VN ctest-vn-24184120 UUID is aacd0240-0b81-47be-ba97-a524fc3d38d1 2024-09-17 10:31:43,252 - DEBUG - Response for create_network : {'network': {'id': '19e61607-2511-4b19-b0b1-f78923050559', 'name': 'ctest-ext_vn-52418684', 'tenant_id': '7aa9fa8b69be432da01f63229980aeb8', 'project_id': '7aa9fa8b69be432da01f63229980aeb8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-57191441', 'ctest-ext_vn-52418684'], 'port_security_enabled': True, 'description': ''}} 2024-09-17 10:31:43,413 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ad4b8741-59ee-4522-9d84-61e0ad32c5ad', 'name': '', 'tenant_id': '7aa9fa8b69be432da01f63229980aeb8', 'network_id': '19e61607-2511-4b19-b0b1-f78923050559', 'ip_version': 4, 'cidr': '158.84.5.0/26', 'allocation_pools': [{'start': '158.84.5.2', 'end': '158.84.5.62'}], 'gateway_ip': '158.84.5.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '158.84.5.2', 'tags': [], 'project_id': '7aa9fa8b69be432da01f63229980aeb8'}} 2024-09-17 10:31:43,436 - INFO - Created VN ctest-ext_vn-52418684 2024-09-17 10:31:43,494 - DEBUG - VN ctest-ext_vn-52418684 UUID is 19e61607-2511-4b19-b0b1-f78923050559 2024-09-17 10:31:43,690 - DEBUG - Services list from nova: [, , ] 2024-09-17 10:31:44,794 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1959-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1959-1) 2024-09-17 10:31:46,018 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1959-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1959-1) 2024-09-17 10:31:46,106 - INFO - Setting gateway for router 8a235e22-767b-42dc-89b3-c21bea822c8a to network 19e61607-2511-4b19-b0b1-f78923050559 2024-09-17 10:31:46,188 - INFO - Adding interface with subnet_id 8a01c9eb-8893-4a90-be0a-47d808cd1187, port_id None to router 8a235e22-767b-42dc-89b3-c21bea822c8a 2024-09-17 10:31:46,580 - INFO - Waiting for VM ctest-TestRoutersBasic-57191441-21398536 to be up.. 2024-09-17 10:31:46,767 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-17 10:31:51,857 - DEBUG - VM is in ACTIVE state now 2024-09-17 10:31:51,857 - INFO - VM name : ctest-TestRoutersBasic-57191441-21398536 2024-09-17 10:31:51,954 - DEBUG - VM ctest-TestRoutersBasic-57191441-21398536 ID is 6fa43a6a-7dd2-4882-a6fe-a93aa6ed555e 2024-09-17 10:31:51,977 - DEBUG - VM ctest-TestRoutersBasic-57191441-21398536 launched on Node cn-jenkins-deploy-platform-ansible-os-1959-1 2024-09-17 10:31:52,062 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/6fa43a6a-7dd2-4882-a6fe-a93aa6ed555e 2024-09-17 10:31:52,369 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/6fa43a6a-7dd2-4882-a6fe-a93aa6ed555e 2024-09-17 10:31:52,413 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/6ff314ea-5046-49d6-9a1d-00b0bde000e6 2024-09-17 10:31:55,736 - 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 1033ms') 2024-09-17 10:31:55,736 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-57191441-21398536 failed! 2024-09-17 10:31:55,798 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-57191441:ctest-vn-24184120 is 152.238.222.65 and allocation pool is NOT set 2024-09-17 10:31:57,864 - 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.63 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.14 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 = 2.135/3.383/4.632/1.248 ms') 2024-09-17 10:31:57,864 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-57191441-21398536 passed 2024-09-17 10:31:58,022 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 10:31:58,022 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-57191441-21398536, IP 152.238.222.67, Port 22 2024-09-17 10:31:58,179 - DEBUG - VM ctest-TestRoutersBasic-57191441-21398536 is ready for SSH connections 2024-09-17 10:31:58,179 - INFO - Waiting for VM ctest-TestRoutersBasic-57191441-69259385 to be up.. 2024-09-17 10:31:58,270 - DEBUG - VM is in ACTIVE state now 2024-09-17 10:31:58,270 - INFO - VM name : ctest-TestRoutersBasic-57191441-69259385 2024-09-17 10:31:58,361 - DEBUG - VM ctest-TestRoutersBasic-57191441-69259385 ID is 43e92ab9-1a20-4170-92df-6953fdf3a828 2024-09-17 10:31:58,361 - DEBUG - VM ctest-TestRoutersBasic-57191441-69259385 launched on Node cn-jenkins-deploy-platform-ansible-os-1959-1 2024-09-17 10:31:58,455 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/43e92ab9-1a20-4170-92df-6953fdf3a828 2024-09-17 10:31:58,467 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/d42e07f0-0378-4a1e-a57d-3944941c4ab0 2024-09-17 10:31:59,746 - 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.92 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.562 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.562/1.743/2.924/1.181 ms') 2024-09-17 10:31:59,746 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-57191441-69259385 passed 2024-09-17 10:31:59,906 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 10:31:59,907 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-57191441-69259385, IP 158.84.5.3, Port 22 2024-09-17 10:32:00,073 - DEBUG - VM ctest-TestRoutersBasic-57191441-69259385 is ready for SSH connections 2024-09-17 10:32:00,073 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 10:32:00,073 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 158.84.5.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.29, gateway password: c0ntrail123 2024-09-17 10:32:00,073 - DEBUG - ping -s 56 -c 3 -W 1 158.84.5.3 2024-09-17 10:32:03,795 - DEBUG - PING 158.84.5.3 (158.84.5.3): 56 data bytes 64 bytes from 158.84.5.3: seq=0 ttl=62 time=4.313 ms 64 bytes from 158.84.5.3: seq=1 ttl=62 time=1.080 ms 64 bytes from 158.84.5.3: seq=2 ttl=62 time=1.355 ms --- 158.84.5.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.080/2.249/4.313 ms 2024-09-17 10:32:03,795 - INFO - Ping to IP 158.84.5.3 from VM ctest-TestRoutersBasic-57191441-21398536 passed 2024-09-17 10:32:03,796 - INFO - Deleting interface with subnet_id 8a01c9eb-8893-4a90-be0a-47d808cd1187, port_id None from router 8a235e22-767b-42dc-89b3-c21bea822c8a 2024-09-17 10:32:04,071 - INFO - Deleting VM ctest-TestRoutersBasic-57191441-69259385 2024-09-17 10:32:04,149 - INFO - Deleting VM ctest-TestRoutersBasic-57191441-21398536 2024-09-17 10:32:04,244 - INFO - Deleting VN ctest-ext_vn-52418684 2024-09-17 10:32:04,336 - DEBUG - VN 19e61607-2511-4b19-b0b1-f78923050559 still in use: Unable to complete operation on network 19e61607-2511-4b19-b0b1-f78923050559. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-6f033e1a-b498-4ac4-9afe-a171a2e78406'] 2024-09-17 10:32:04,336 - WARNING - Deleting VN ctest-ext_vn-52418684 failed..Will retry 2024-09-17 10:32:06,473 - DEBUG - Response for deleting network () 2024-09-17 10:32:06,473 - INFO - Deleting VN ctest-vn-24184120 2024-09-17 10:32:06,593 - DEBUG - Response for deleting network () 2024-09-17 10:32:06,853 - DEBUG - No XMPP flaps were noticed during the test 2024-09-17 10:32:06,853 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2024-09-17 10:32:06,854 - INFO - -------------------------------------------------------------------------------- 2024-09-17 10:32:07,592 - INFO - Deleted project: ctest-TestRoutersBasic-57191441, ID : 7aa9fa8b-69be-432d-a01f-63229980aeb8