2024-08-23 20:26:17,468 - INFO - Domain Default found not creating 2024-08-23 20:26:17,634 - INFO - Project ctest-TestRoutersBasic-37178422 not found, creating it 2024-08-23 20:26:18,098 - INFO - Created Project:ctest-TestRoutersBasic-37178422, ID : 3bf63c58-e102-4216-b3be-4f01026a78ff 2024-08-23 20:26:19,614 - INFO - ================================================================================ 2024-08-23 20:26:19,614 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-08-23 20:26:19,614 - 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-23 20:26:19,869 - DEBUG - Nothing to compare xmpp stats {'10.0.0.36': {'10.20.0.19': '0'}} with 2024-08-23 20:26:19,869 - INFO - Initial checks done. Running the testcase now 2024-08-23 20:26:19,869 - INFO - 2024-08-23 20:26:20,571 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-37178422 2024-08-23 20:26:20,667 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-37178422 2024-08-23 20:26:20,983 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-37178422', 'default']} 2024-08-23 20:26:21,269 - DEBUG - Response for create_network : {'network': {'id': '9ede0373-c46a-4bed-bfc8-a353da4ff984', 'name': 'ctest-vn-41906233', 'tenant_id': '3bf63c58e1024216b3be4f01026a78ff', 'project_id': '3bf63c58e1024216b3be4f01026a78ff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-37178422', 'ctest-vn-41906233'], 'port_security_enabled': True, 'description': ''}} 2024-08-23 20:26:21,485 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c345f61a-52b8-4037-a473-e77c98130728', 'name': '', 'tenant_id': '3bf63c58e1024216b3be4f01026a78ff', 'network_id': '9ede0373-c46a-4bed-bfc8-a353da4ff984', 'ip_version': 4, 'cidr': '144.253.66.64/26', 'allocation_pools': [{'start': '144.253.66.66', 'end': '144.253.66.126'}], 'gateway_ip': '144.253.66.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '144.253.66.66', 'tags': [], 'project_id': '3bf63c58e1024216b3be4f01026a78ff'}} 2024-08-23 20:26:21,504 - INFO - Created VN ctest-vn-41906233 2024-08-23 20:26:21,555 - DEBUG - VN ctest-vn-41906233 UUID is 9ede0373-c46a-4bed-bfc8-a353da4ff984 2024-08-23 20:26:21,870 - DEBUG - Response for create_network : {'network': {'id': '09771fdd-e79f-4aff-bff0-59779d4df5bb', 'name': 'ctest-ext_vn-59299906', 'tenant_id': '3bf63c58e1024216b3be4f01026a78ff', 'project_id': '3bf63c58e1024216b3be4f01026a78ff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-37178422', 'ctest-ext_vn-59299906'], 'port_security_enabled': True, 'description': ''}} 2024-08-23 20:26:22,051 - DEBUG - Response for create_subnet : {'subnet': {'id': '178b30d7-535c-43fb-bb7f-0aa6d96e162a', 'name': '', 'tenant_id': '3bf63c58e1024216b3be4f01026a78ff', 'network_id': '09771fdd-e79f-4aff-bff0-59779d4df5bb', 'ip_version': 4, 'cidr': '56.103.227.0/26', 'allocation_pools': [{'start': '56.103.227.2', 'end': '56.103.227.62'}], 'gateway_ip': '56.103.227.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '56.103.227.2', 'tags': [], 'project_id': '3bf63c58e1024216b3be4f01026a78ff'}} 2024-08-23 20:26:22,069 - INFO - Created VN ctest-ext_vn-59299906 2024-08-23 20:26:22,119 - DEBUG - VN ctest-ext_vn-59299906 UUID is 09771fdd-e79f-4aff-bff0-59779d4df5bb 2024-08-23 20:26:22,330 - DEBUG - Services list from nova: [, , ] 2024-08-23 20:26:23,311 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1728-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1728-1) 2024-08-23 20:26:24,403 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1728-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1728-1) 2024-08-23 20:26:24,485 - INFO - Setting gateway for router e7fe17ae-fced-435f-be9c-60888effe98c to network 09771fdd-e79f-4aff-bff0-59779d4df5bb 2024-08-23 20:26:24,549 - INFO - Adding interface with subnet_id c345f61a-52b8-4037-a473-e77c98130728, port_id None to router e7fe17ae-fced-435f-be9c-60888effe98c 2024-08-23 20:26:24,976 - INFO - Waiting for VM ctest-TestRoutersBasic-37178422-74391743 to be up.. 2024-08-23 20:26:25,156 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-23 20:26:30,230 - DEBUG - VM is in ACTIVE state now 2024-08-23 20:26:30,231 - INFO - VM name : ctest-TestRoutersBasic-37178422-74391743 2024-08-23 20:26:30,304 - DEBUG - VM ctest-TestRoutersBasic-37178422-74391743 ID is 2cf52ed1-78eb-4516-8f49-413cad812b4e 2024-08-23 20:26:30,322 - DEBUG - VM ctest-TestRoutersBasic-37178422-74391743 launched on Node cn-jenkins-deploy-platform-ansible-os-1728-1 2024-08-23 20:26:30,394 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/2cf52ed1-78eb-4516-8f49-413cad812b4e 2024-08-23 20:26:30,686 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/2cf52ed1-78eb-4516-8f49-413cad812b4e 2024-08-23 20:26:30,719 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/97901277-ea18-423d-808b-62f5addc1498 2024-08-23 20:26:33,973 - 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 1015ms') 2024-08-23 20:26:33,973 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-37178422-74391743 failed! 2024-08-23 20:26:34,031 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-37178422:ctest-vn-41906233 is 144.253.66.65 and allocation pool is NOT set 2024-08-23 20:26:36,096 - 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=2.77 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.400 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.400/1.586/2.772/1.186 ms') 2024-08-23 20:26:36,096 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-37178422-74391743 passed 2024-08-23 20:26:36,243 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-23 20:26:36,243 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-37178422-74391743, IP 144.253.66.67, Port 22 2024-08-23 20:26:36,394 - DEBUG - VM ctest-TestRoutersBasic-37178422-74391743 is ready for SSH connections 2024-08-23 20:26:36,394 - INFO - Waiting for VM ctest-TestRoutersBasic-37178422-52150386 to be up.. 2024-08-23 20:26:36,466 - DEBUG - VM is in ACTIVE state now 2024-08-23 20:26:36,466 - INFO - VM name : ctest-TestRoutersBasic-37178422-52150386 2024-08-23 20:26:36,534 - DEBUG - VM ctest-TestRoutersBasic-37178422-52150386 ID is 622d4a5b-5cee-47a9-95a3-e5606876e582 2024-08-23 20:26:36,534 - DEBUG - VM ctest-TestRoutersBasic-37178422-52150386 launched on Node cn-jenkins-deploy-platform-ansible-os-1728-1 2024-08-23 20:26:36,603 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/622d4a5b-5cee-47a9-95a3-e5606876e582 2024-08-23 20:26:36,612 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/64305fb7-a726-4d51-8496-8a71b8673897 2024-08-23 20:26:37,844 - 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=3.18 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.526 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.526/1.855/3.184/1.329 ms') 2024-08-23 20:26:37,844 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-37178422-52150386 passed 2024-08-23 20:26:37,996 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-23 20:26:37,996 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-37178422-52150386, IP 56.103.227.3, Port 22 2024-08-23 20:26:38,147 - DEBUG - VM ctest-TestRoutersBasic-37178422-52150386 is ready for SSH connections 2024-08-23 20:26:38,147 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-23 20:26:38,147 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 56.103.227.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.36, gateway password: c0ntrail123 2024-08-23 20:26:38,147 - DEBUG - ping -s 56 -c 3 -W 1 56.103.227.3 2024-08-23 20:26:41,812 - DEBUG - PING 56.103.227.3 (56.103.227.3): 56 data bytes 64 bytes from 56.103.227.3: seq=0 ttl=62 time=4.285 ms 64 bytes from 56.103.227.3: seq=1 ttl=62 time=0.820 ms 64 bytes from 56.103.227.3: seq=2 ttl=62 time=0.859 ms --- 56.103.227.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.820/1.988/4.285 ms 2024-08-23 20:26:41,812 - INFO - Ping to IP 56.103.227.3 from VM ctest-TestRoutersBasic-37178422-74391743 passed 2024-08-23 20:26:41,812 - INFO - Deleting interface with subnet_id c345f61a-52b8-4037-a473-e77c98130728, port_id None from router e7fe17ae-fced-435f-be9c-60888effe98c 2024-08-23 20:26:42,017 - INFO - Deleting VM ctest-TestRoutersBasic-37178422-52150386 2024-08-23 20:26:42,085 - INFO - Deleting VM ctest-TestRoutersBasic-37178422-74391743 2024-08-23 20:26:42,164 - INFO - Deleting VN ctest-ext_vn-59299906 2024-08-23 20:26:42,225 - DEBUG - VN 09771fdd-e79f-4aff-bff0-59779d4df5bb still in use: Unable to complete operation on network 09771fdd-e79f-4aff-bff0-59779d4df5bb. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-a5ae23ff-fbc3-4398-ad43-56cc3bdd9a3b'] 2024-08-23 20:26:42,225 - WARNING - Deleting VN ctest-ext_vn-59299906 failed..Will retry 2024-08-23 20:26:44,322 - DEBUG - Response for deleting network () 2024-08-23 20:26:44,322 - INFO - Deleting VN ctest-vn-41906233 2024-08-23 20:26:44,796 - DEBUG - Response for deleting network () 2024-08-23 20:26:45,056 - DEBUG - No XMPP flaps were noticed during the test 2024-08-23 20:26:45,057 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2024-08-23 20:26:45,057 - INFO - -------------------------------------------------------------------------------- 2024-08-23 20:26:45,712 - INFO - Deleted project: ctest-TestRoutersBasic-37178422, ID : 3bf63c58-e102-4216-b3be-4f01026a78ff