2024-08-29 17:11:23,977 - INFO - Domain Default found not creating 2024-08-29 17:11:24,293 - INFO - Project ctest-TestRoutersBasic-16969898 not found, creating it 2024-08-29 17:11:24,929 - INFO - Created Project:ctest-TestRoutersBasic-16969898, ID : 426aeb3d-9e08-4c9a-acb0-e7e5b32b6604 2024-08-29 17:11:27,597 - INFO - ================================================================================ 2024-08-29 17:11:27,597 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-08-29 17:11:27,598 - 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-08-29 17:11:27,950 - DEBUG - Nothing to compare xmpp stats {'10.0.0.76': {'10.20.0.6': '0'}} with 2024-08-29 17:11:27,950 - INFO - Initial checks done. Running the testcase now 2024-08-29 17:11:27,950 - INFO - 2024-08-29 17:11:28,946 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-16969898 2024-08-29 17:11:29,066 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-16969898 2024-08-29 17:11:29,517 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-16969898', 'default']} 2024-08-29 17:11:30,151 - DEBUG - Response for create_network : {'network': {'id': 'cf0c2814-1eb7-4eec-a4a4-3cee485ef13f', 'name': 'ctest-vn-40559888', 'tenant_id': '426aeb3d9e084c9aacb0e7e5b32b6604', 'project_id': '426aeb3d9e084c9aacb0e7e5b32b6604', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-16969898', 'ctest-vn-40559888'], 'port_security_enabled': True, 'description': ''}} 2024-08-29 17:11:30,417 - DEBUG - Response for create_subnet : {'subnet': {'id': '0011ddab-d1e4-4427-a729-dde5f6bb62ab', 'name': '', 'tenant_id': '426aeb3d9e084c9aacb0e7e5b32b6604', 'network_id': 'cf0c2814-1eb7-4eec-a4a4-3cee485ef13f', 'ip_version': 4, 'cidr': '172.7.77.128/26', 'allocation_pools': [{'start': '172.7.77.130', 'end': '172.7.77.190'}], 'gateway_ip': '172.7.77.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '172.7.77.130', 'tags': [], 'project_id': '426aeb3d9e084c9aacb0e7e5b32b6604'}} 2024-08-29 17:11:30,440 - INFO - Created VN ctest-vn-40559888 2024-08-29 17:11:30,497 - DEBUG - VN ctest-vn-40559888 UUID is cf0c2814-1eb7-4eec-a4a4-3cee485ef13f 2024-08-29 17:11:31,065 - DEBUG - Response for create_network : {'network': {'id': '98bbfa26-e4e2-46ff-8d98-3d528c4a1d57', 'name': 'ctest-ext_vn-97371405', 'tenant_id': '426aeb3d9e084c9aacb0e7e5b32b6604', 'project_id': '426aeb3d9e084c9aacb0e7e5b32b6604', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-16969898', 'ctest-ext_vn-97371405'], 'port_security_enabled': True, 'description': ''}} 2024-08-29 17:11:31,352 - DEBUG - Response for create_subnet : {'subnet': {'id': '892fd4d1-acff-4479-8b93-4b50f1fc2bbe', 'name': '', 'tenant_id': '426aeb3d9e084c9aacb0e7e5b32b6604', 'network_id': '98bbfa26-e4e2-46ff-8d98-3d528c4a1d57', 'ip_version': 4, 'cidr': '217.120.209.64/26', 'allocation_pools': [{'start': '217.120.209.66', 'end': '217.120.209.126'}], 'gateway_ip': '217.120.209.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '217.120.209.66', 'tags': [], 'project_id': '426aeb3d9e084c9aacb0e7e5b32b6604'}} 2024-08-29 17:11:31,392 - INFO - Created VN ctest-ext_vn-97371405 2024-08-29 17:11:31,453 - DEBUG - VN ctest-ext_vn-97371405 UUID is 98bbfa26-e4e2-46ff-8d98-3d528c4a1d57 2024-08-29 17:11:31,706 - DEBUG - Services list from nova: [, , ] 2024-08-29 17:11:33,422 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1811-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1811-1) 2024-08-29 17:11:35,066 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1811-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1811-1) 2024-08-29 17:11:35,184 - INFO - Setting gateway for router 56787354-1094-4549-a823-6da678121d1d to network 98bbfa26-e4e2-46ff-8d98-3d528c4a1d57 2024-08-29 17:11:35,253 - INFO - Adding interface with subnet_id 0011ddab-d1e4-4427-a729-dde5f6bb62ab, port_id None to router 56787354-1094-4549-a823-6da678121d1d 2024-08-29 17:11:35,636 - INFO - Waiting for VM ctest-TestRoutersBasic-16969898-49580080 to be up.. 2024-08-29 17:11:35,822 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-29 17:11:40,913 - DEBUG - VM is in ACTIVE state now 2024-08-29 17:11:40,913 - INFO - VM name : ctest-TestRoutersBasic-16969898-49580080 2024-08-29 17:11:41,016 - DEBUG - VM ctest-TestRoutersBasic-16969898-49580080 ID is 68dd6372-d1be-492d-8b46-f22400113d63 2024-08-29 17:11:41,045 - DEBUG - VM ctest-TestRoutersBasic-16969898-49580080 launched on Node cn-jenkins-deploy-platform-ansible-os-1811-1 2024-08-29 17:11:41,146 - DEBUG - Requesting: http://10.0.0.76:8082/virtual-machine/68dd6372-d1be-492d-8b46-f22400113d63 2024-08-29 17:11:41,443 - DEBUG - Requesting: http://10.0.0.76:8082/virtual-machine/68dd6372-d1be-492d-8b46-f22400113d63 2024-08-29 17:11:41,536 - DEBUG - Requesting: http://10.0.0.76:8082/virtual-machine-interface/dc7018d9-306b-4f8e-ab7d-d6d94bbb2581 2024-08-29 17:11:44,840 - 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 1012ms') 2024-08-29 17:11:44,841 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-16969898-49580080 failed! 2024-08-29 17:11:44,969 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-16969898:ctest-vn-40559888 is 172.7.77.129 and allocation pool is NOT set 2024-08-29 17:11:47,050 - 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.16 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.82 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.824/3.993/5.163/1.169 ms') 2024-08-29 17:11:47,050 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-16969898-49580080 passed 2024-08-29 17:11:47,221 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 17:11:47,221 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-16969898-49580080, IP 172.7.77.131, Port 22 2024-08-29 17:11:47,412 - DEBUG - VM ctest-TestRoutersBasic-16969898-49580080 is ready for SSH connections 2024-08-29 17:11:47,412 - INFO - Waiting for VM ctest-TestRoutersBasic-16969898-87609088 to be up.. 2024-08-29 17:11:47,554 - DEBUG - VM is in ACTIVE state now 2024-08-29 17:11:47,554 - INFO - VM name : ctest-TestRoutersBasic-16969898-87609088 2024-08-29 17:11:47,715 - DEBUG - VM ctest-TestRoutersBasic-16969898-87609088 ID is 1bb9941a-849d-43d2-88d2-97ad79daef2a 2024-08-29 17:11:47,716 - DEBUG - VM ctest-TestRoutersBasic-16969898-87609088 launched on Node cn-jenkins-deploy-platform-ansible-os-1811-1 2024-08-29 17:11:47,853 - DEBUG - Requesting: http://10.0.0.76:8082/virtual-machine/1bb9941a-849d-43d2-88d2-97ad79daef2a 2024-08-29 17:11:47,869 - DEBUG - Requesting: http://10.0.0.76:8082/virtual-machine-interface/6d3dc910-b0fb-4451-890a-e701c59f255c 2024-08-29 17:11:49,173 - 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=5.68 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.905 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.905/3.290/5.676/2.385 ms') 2024-08-29 17:11:49,174 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-16969898-87609088 passed 2024-08-29 17:11:49,388 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 17:11:49,389 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-16969898-87609088, IP 217.120.209.67, Port 22 2024-08-29 17:11:49,554 - DEBUG - VM ctest-TestRoutersBasic-16969898-87609088 is ready for SSH connections 2024-08-29 17:11:49,555 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 17:11:49,555 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 217.120.209.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.76, gateway password: c0ntrail123 2024-08-29 17:11:49,555 - DEBUG - ping -s 56 -c 3 -W 1 217.120.209.67 2024-08-29 17:11:53,740 - DEBUG - PING 217.120.209.67 (217.120.209.67): 56 data bytes 64 bytes from 217.120.209.67: seq=0 ttl=62 time=7.544 ms 64 bytes from 217.120.209.67: seq=1 ttl=62 time=3.129 ms 64 bytes from 217.120.209.67: seq=2 ttl=62 time=1.596 ms --- 217.120.209.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.596/4.089/7.544 ms 2024-08-29 17:11:53,740 - INFO - Ping to IP 217.120.209.67 from VM ctest-TestRoutersBasic-16969898-49580080 passed 2024-08-29 17:11:53,740 - INFO - Deleting interface with subnet_id 0011ddab-d1e4-4427-a729-dde5f6bb62ab, port_id None from router 56787354-1094-4549-a823-6da678121d1d 2024-08-29 17:11:54,054 - INFO - Deleting VM ctest-TestRoutersBasic-16969898-87609088 2024-08-29 17:11:54,161 - INFO - Deleting VM ctest-TestRoutersBasic-16969898-49580080 2024-08-29 17:11:54,247 - INFO - Deleting VN ctest-ext_vn-97371405 2024-08-29 17:11:54,325 - DEBUG - VN 98bbfa26-e4e2-46ff-8d98-3d528c4a1d57 still in use: Unable to complete operation on network 98bbfa26-e4e2-46ff-8d98-3d528c4a1d57. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-01695231-06f8-4349-9849-a3876ab47b48'] 2024-08-29 17:11:54,326 - WARNING - Deleting VN ctest-ext_vn-97371405 failed..Will retry 2024-08-29 17:11:56,571 - DEBUG - Response for deleting network () 2024-08-29 17:11:56,571 - INFO - Deleting VN ctest-vn-40559888 2024-08-29 17:11:56,771 - DEBUG - Response for deleting network () 2024-08-29 17:11:57,060 - DEBUG - No XMPP flaps were noticed during the test 2024-08-29 17:11:57,060 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:30] 2024-08-29 17:11:57,060 - INFO - -------------------------------------------------------------------------------- 2024-08-29 17:11:57,952 - INFO - Deleted project: ctest-TestRoutersBasic-16969898, ID : 426aeb3d-9e08-4c9a-acb0-e7e5b32b6604