2024-09-15 11:53:12,603 - INFO - Domain Default found not creating 2024-09-15 11:53:12,792 - INFO - Project ctest-TestRoutersBasic-27304030 not found, creating it 2024-09-15 11:53:13,312 - INFO - Created Project:ctest-TestRoutersBasic-27304030, ID : 0af44000-07c8-4ec9-b88f-695067e17685 2024-09-15 11:53:15,783 - INFO - ================================================================================ 2024-09-15 11:53:15,783 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-15 11:53:15,784 - 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-15 11:53:16,038 - DEBUG - Nothing to compare xmpp stats {'10.0.0.28': {'10.20.0.6': '0'}} with 2024-09-15 11:53:16,038 - INFO - Initial checks done. Running the testcase now 2024-09-15 11:53:16,038 - INFO - 2024-09-15 11:53:16,832 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-27304030 2024-09-15 11:53:16,933 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-27304030 2024-09-15 11:53:17,292 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-27304030', 'default']} 2024-09-15 11:53:17,635 - DEBUG - Response for create_network : {'network': {'id': 'e22033f6-fe12-4709-a2ac-90208071fa2d', 'name': 'ctest-vn-16910137', 'tenant_id': '0af4400007c84ec9b88f695067e17685', 'project_id': '0af4400007c84ec9b88f695067e17685', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-27304030', 'ctest-vn-16910137'], 'port_security_enabled': True, 'description': ''}} 2024-09-15 11:53:17,845 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f110f5b4-47ba-4930-a4f4-99a1c2e0f4c0', 'name': '', 'tenant_id': '0af4400007c84ec9b88f695067e17685', 'network_id': 'e22033f6-fe12-4709-a2ac-90208071fa2d', 'ip_version': 4, 'cidr': '209.156.134.64/26', 'allocation_pools': [{'start': '209.156.134.66', 'end': '209.156.134.126'}], 'gateway_ip': '209.156.134.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '209.156.134.66', 'tags': [], 'project_id': '0af4400007c84ec9b88f695067e17685'}} 2024-09-15 11:53:17,866 - INFO - Created VN ctest-vn-16910137 2024-09-15 11:53:17,932 - DEBUG - VN ctest-vn-16910137 UUID is e22033f6-fe12-4709-a2ac-90208071fa2d 2024-09-15 11:53:18,335 - DEBUG - Response for create_network : {'network': {'id': 'ee9b1d06-4c99-407c-ad55-75e88e1567a3', 'name': 'ctest-ext_vn-73440558', 'tenant_id': '0af4400007c84ec9b88f695067e17685', 'project_id': '0af4400007c84ec9b88f695067e17685', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-27304030', 'ctest-ext_vn-73440558'], 'port_security_enabled': True, 'description': ''}} 2024-09-15 11:53:18,572 - DEBUG - Response for create_subnet : {'subnet': {'id': '70c5747a-9e66-427e-b97f-2a858fb4265c', 'name': '', 'tenant_id': '0af4400007c84ec9b88f695067e17685', 'network_id': 'ee9b1d06-4c99-407c-ad55-75e88e1567a3', 'ip_version': 4, 'cidr': '86.197.12.128/26', 'allocation_pools': [{'start': '86.197.12.130', 'end': '86.197.12.190'}], 'gateway_ip': '86.197.12.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '86.197.12.130', 'tags': [], 'project_id': '0af4400007c84ec9b88f695067e17685'}} 2024-09-15 11:53:18,594 - INFO - Created VN ctest-ext_vn-73440558 2024-09-15 11:53:18,651 - DEBUG - VN ctest-ext_vn-73440558 UUID is ee9b1d06-4c99-407c-ad55-75e88e1567a3 2024-09-15 11:53:18,843 - DEBUG - Services list from nova: [, , ] 2024-09-15 11:53:20,201 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1941-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1941-1) 2024-09-15 11:53:21,584 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1941-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1941-1) 2024-09-15 11:53:21,691 - INFO - Setting gateway for router a3b2db28-6f52-4897-8816-4c73454e9cfb to network ee9b1d06-4c99-407c-ad55-75e88e1567a3 2024-09-15 11:53:21,772 - INFO - Adding interface with subnet_id f110f5b4-47ba-4930-a4f4-99a1c2e0f4c0, port_id None to router a3b2db28-6f52-4897-8816-4c73454e9cfb 2024-09-15 11:53:22,420 - INFO - Waiting for VM ctest-TestRoutersBasic-27304030-23575768 to be up.. 2024-09-15 11:53:22,625 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-15 11:53:27,737 - DEBUG - VM is in ACTIVE state now 2024-09-15 11:53:27,737 - INFO - VM name : ctest-TestRoutersBasic-27304030-23575768 2024-09-15 11:53:27,847 - DEBUG - VM ctest-TestRoutersBasic-27304030-23575768 ID is 7e778c86-bbfc-459e-9855-e9b4fa064b6c 2024-09-15 11:53:27,869 - DEBUG - VM ctest-TestRoutersBasic-27304030-23575768 launched on Node cn-jenkins-deploy-platform-ansible-os-1941-1 2024-09-15 11:53:27,964 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/7e778c86-bbfc-459e-9855-e9b4fa064b6c 2024-09-15 11:53:28,266 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/7e778c86-bbfc-459e-9855-e9b4fa064b6c 2024-09-15 11:53:28,317 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine-interface/ed530332-0d03-44d9-8780-dbffaf8bc2d5 2024-09-15 11:53:31,620 - 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 1029ms') 2024-09-15 11:53:31,620 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-27304030-23575768 failed! 2024-09-15 11:53:31,684 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-27304030:ctest-vn-16910137 is 209.156.134.65 and allocation pool is NOT set 2024-09-15 11:53:33,754 - 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=6.68 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.44 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 = 1.437/4.056/6.675/2.619 ms') 2024-09-15 11:53:33,755 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-27304030-23575768 passed 2024-09-15 11:53:33,917 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-15 11:53:33,917 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-27304030-23575768, IP 209.156.134.67, Port 22 2024-09-15 11:53:34,072 - DEBUG - VM ctest-TestRoutersBasic-27304030-23575768 is ready for SSH connections 2024-09-15 11:53:34,072 - INFO - Waiting for VM ctest-TestRoutersBasic-27304030-07910543 to be up.. 2024-09-15 11:53:34,170 - DEBUG - VM is in ACTIVE state now 2024-09-15 11:53:34,170 - INFO - VM name : ctest-TestRoutersBasic-27304030-07910543 2024-09-15 11:53:34,283 - DEBUG - VM ctest-TestRoutersBasic-27304030-07910543 ID is 4697fba6-a25f-495b-b268-320a212318a3 2024-09-15 11:53:34,284 - DEBUG - VM ctest-TestRoutersBasic-27304030-07910543 launched on Node cn-jenkins-deploy-platform-ansible-os-1941-1 2024-09-15 11:53:34,393 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/4697fba6-a25f-495b-b268-320a212318a3 2024-09-15 11:53:34,409 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine-interface/a4f88217-9a8b-4256-a630-f05131e43ff0 2024-09-15 11:53:35,683 - 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=4.12 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.468 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.468/2.295/4.122/1.827 ms') 2024-09-15 11:53:35,683 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-27304030-07910543 passed 2024-09-15 11:53:35,848 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-15 11:53:35,848 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-27304030-07910543, IP 86.197.12.131, Port 22 2024-09-15 11:53:36,014 - DEBUG - VM ctest-TestRoutersBasic-27304030-07910543 is ready for SSH connections 2024-09-15 11:53:36,014 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-15 11:53:36,014 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 86.197.12.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.28, gateway password: c0ntrail123 2024-09-15 11:53:36,014 - DEBUG - ping -s 56 -c 3 -W 1 86.197.12.131 2024-09-15 11:53:39,973 - DEBUG - PING 86.197.12.131 (86.197.12.131): 56 data bytes 64 bytes from 86.197.12.131: seq=0 ttl=62 time=8.696 ms 64 bytes from 86.197.12.131: seq=1 ttl=62 time=0.929 ms 64 bytes from 86.197.12.131: seq=2 ttl=62 time=1.205 ms --- 86.197.12.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.929/3.610/8.696 ms 2024-09-15 11:53:39,973 - INFO - Ping to IP 86.197.12.131 from VM ctest-TestRoutersBasic-27304030-23575768 passed 2024-09-15 11:53:39,974 - INFO - Deleting interface with subnet_id f110f5b4-47ba-4930-a4f4-99a1c2e0f4c0, port_id None from router a3b2db28-6f52-4897-8816-4c73454e9cfb 2024-09-15 11:53:40,229 - INFO - Deleting VM ctest-TestRoutersBasic-27304030-07910543 2024-09-15 11:53:40,335 - INFO - Deleting VM ctest-TestRoutersBasic-27304030-23575768 2024-09-15 11:53:40,462 - INFO - Deleting VN ctest-ext_vn-73440558 2024-09-15 11:53:40,580 - DEBUG - VN ee9b1d06-4c99-407c-ad55-75e88e1567a3 still in use: Unable to complete operation on network ee9b1d06-4c99-407c-ad55-75e88e1567a3. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-47efa0cf-0cea-4aeb-9381-23659be2f57e'] 2024-09-15 11:53:40,580 - WARNING - Deleting VN ctest-ext_vn-73440558 failed..Will retry 2024-09-15 11:53:42,719 - DEBUG - Response for deleting network () 2024-09-15 11:53:42,719 - INFO - Deleting VN ctest-vn-16910137 2024-09-15 11:53:42,869 - DEBUG - Response for deleting network () 2024-09-15 11:53:43,144 - DEBUG - No XMPP flaps were noticed during the test 2024-09-15 11:53:43,144 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:28] 2024-09-15 11:53:43,144 - INFO - -------------------------------------------------------------------------------- 2024-09-15 11:53:43,874 - INFO - Deleted project: ctest-TestRoutersBasic-27304030, ID : 0af44000-07c8-4ec9-b88f-695067e17685