2025-03-27 13:41:17,378 - INFO - Domain Default found not creating 2025-03-27 13:41:17,546 - INFO - Project ctest-TestRoutersBasic-83037651 not found, creating it 2025-03-27 13:41:18,033 - INFO - Created Project:ctest-TestRoutersBasic-83037651, ID : 97f5b2e3-6351-493a-95e4-49fd61db1476 2025-03-27 13:41:19,464 - INFO - ================================================================================ 2025-03-27 13:41:19,465 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-03-27 13:41:19,465 - 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 2025-03-27 13:41:19,728 - DEBUG - Nothing to compare xmpp stats {'10.0.0.28': {'10.20.0.11': '0'}} with 2025-03-27 13:41:19,728 - INFO - Initial checks done. Running the testcase now 2025-03-27 13:41:19,728 - INFO - 2025-03-27 13:41:20,461 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-83037651 2025-03-27 13:41:20,559 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-83037651 2025-03-27 13:41:20,887 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-83037651', 'default']} 2025-03-27 13:41:21,191 - DEBUG - Response for create_network : {'network': {'id': '136adc27-0bc5-4a31-9ea1-4616d3ed6735', 'name': 'ctest-vn-30392492', 'tenant_id': '97f5b2e36351493a95e449fd61db1476', 'project_id': '97f5b2e36351493a95e449fd61db1476', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-83037651', 'ctest-vn-30392492'], 'port_security_enabled': True, 'description': ''}} 2025-03-27 13:41:21,346 - DEBUG - Response for create_subnet : {'subnet': {'id': '646e534f-1842-4cd6-bdb8-6a6f5a35c704', 'name': '', 'tenant_id': '97f5b2e36351493a95e449fd61db1476', 'network_id': '136adc27-0bc5-4a31-9ea1-4616d3ed6735', 'ip_version': 4, 'cidr': '30.110.166.128/26', 'allocation_pools': [{'start': '30.110.166.130', 'end': '30.110.166.190'}], 'gateway_ip': '30.110.166.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30.110.166.130', 'tags': [], 'project_id': '97f5b2e36351493a95e449fd61db1476'}} 2025-03-27 13:41:21,368 - INFO - Created VN ctest-vn-30392492 2025-03-27 13:41:21,423 - DEBUG - VN ctest-vn-30392492 UUID is 136adc27-0bc5-4a31-9ea1-4616d3ed6735 2025-03-27 13:41:21,797 - DEBUG - Response for create_network : {'network': {'id': 'e0b081ee-94b0-4821-a989-c78b7fd705c1', 'name': 'ctest-ext_vn-82077323', 'tenant_id': '97f5b2e36351493a95e449fd61db1476', 'project_id': '97f5b2e36351493a95e449fd61db1476', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-83037651', 'ctest-ext_vn-82077323'], 'port_security_enabled': True, 'description': ''}} 2025-03-27 13:41:21,970 - DEBUG - Response for create_subnet : {'subnet': {'id': '0d7fda51-94d3-4d1d-80ca-489d88ee5405', 'name': '', 'tenant_id': '97f5b2e36351493a95e449fd61db1476', 'network_id': 'e0b081ee-94b0-4821-a989-c78b7fd705c1', 'ip_version': 4, 'cidr': '101.192.137.192/26', 'allocation_pools': [{'start': '101.192.137.194', 'end': '101.192.137.254'}], 'gateway_ip': '101.192.137.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '101.192.137.194', 'tags': [], 'project_id': '97f5b2e36351493a95e449fd61db1476'}} 2025-03-27 13:41:21,988 - INFO - Created VN ctest-ext_vn-82077323 2025-03-27 13:41:22,043 - DEBUG - VN ctest-ext_vn-82077323 UUID is e0b081ee-94b0-4821-a989-c78b7fd705c1 2025-03-27 13:41:22,209 - DEBUG - Services list from nova: [, , ] 2025-03-27 13:41:23,253 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2972-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2972-1) 2025-03-27 13:41:24,436 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2972-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2972-1) 2025-03-27 13:41:24,529 - INFO - Setting gateway for router 7b77e6b9-fcfa-4ef3-a87b-bb26ceb8f67b to network e0b081ee-94b0-4821-a989-c78b7fd705c1 2025-03-27 13:41:24,609 - INFO - Adding interface with subnet_id 646e534f-1842-4cd6-bdb8-6a6f5a35c704, port_id None to router 7b77e6b9-fcfa-4ef3-a87b-bb26ceb8f67b 2025-03-27 13:41:25,091 - INFO - Waiting for VM ctest-TestRoutersBasic-83037651-61917351 to be up.. 2025-03-27 13:41:25,311 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-27 13:41:30,440 - DEBUG - VM is in ACTIVE state now 2025-03-27 13:41:30,440 - INFO - VM name : ctest-TestRoutersBasic-83037651-61917351 2025-03-27 13:41:30,596 - DEBUG - VM ctest-TestRoutersBasic-83037651-61917351 ID is 8f1f79c5-cf32-4dd5-8a2b-f4dfadfdb96d 2025-03-27 13:41:30,626 - DEBUG - VM ctest-TestRoutersBasic-83037651-61917351 launched on Node cn-jenkins-deploy-platform-ansible-os-2972-1 2025-03-27 13:41:30,810 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/8f1f79c5-cf32-4dd5-8a2b-f4dfadfdb96d 2025-03-27 13:41:31,175 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/8f1f79c5-cf32-4dd5-8a2b-f4dfadfdb96d 2025-03-27 13:41:31,208 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine-interface/ba3411a7-b71a-4964-a963-44d932b14bae 2025-03-27 13:41:34,472 - 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 1023ms') 2025-03-27 13:41:34,473 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-83037651-61917351 failed! 2025-03-27 13:41:34,527 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-83037651:ctest-vn-30392492 is 30.110.166.129 and allocation pool is NOT set 2025-03-27 13:41:36,587 - 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.96 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.366 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.366/1.660/2.955/1.294 ms') 2025-03-27 13:41:36,587 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-83037651-61917351 passed 2025-03-27 13:41:36,739 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 13:41:36,739 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-83037651-61917351, IP 30.110.166.131, Port 22 2025-03-27 13:41:36,898 - DEBUG - VM ctest-TestRoutersBasic-83037651-61917351 is ready for SSH connections 2025-03-27 13:41:36,898 - INFO - Waiting for VM ctest-TestRoutersBasic-83037651-95984243 to be up.. 2025-03-27 13:41:36,990 - DEBUG - VM is in ACTIVE state now 2025-03-27 13:41:36,990 - INFO - VM name : ctest-TestRoutersBasic-83037651-95984243 2025-03-27 13:41:37,098 - DEBUG - VM ctest-TestRoutersBasic-83037651-95984243 ID is 2fe441f9-0638-4d25-ae32-381be6c20550 2025-03-27 13:41:37,098 - DEBUG - VM ctest-TestRoutersBasic-83037651-95984243 launched on Node cn-jenkins-deploy-platform-ansible-os-2972-1 2025-03-27 13:41:37,177 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/2fe441f9-0638-4d25-ae32-381be6c20550 2025-03-27 13:41:37,186 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine-interface/31a4245b-81ce-4e4f-bb19-4197a6a42719 2025-03-27 13:41:38,433 - 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.73 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.437 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.437/2.084/3.731/1.647 ms') 2025-03-27 13:41:38,433 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-83037651-95984243 passed 2025-03-27 13:41:38,587 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 13:41:38,587 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-83037651-95984243, IP 101.192.137.195, Port 22 2025-03-27 13:41:38,751 - DEBUG - VM ctest-TestRoutersBasic-83037651-95984243 is ready for SSH connections 2025-03-27 13:41:38,751 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 13:41:38,751 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 101.192.137.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.28, gateway password: c0ntrail123 2025-03-27 13:41:38,751 - DEBUG - ping -s 56 -c 3 -W 1 101.192.137.195 2025-03-27 13:41:42,784 - DEBUG - PING 101.192.137.195 (101.192.137.195): 56 data bytes 64 bytes from 101.192.137.195: seq=0 ttl=62 time=5.750 ms 64 bytes from 101.192.137.195: seq=1 ttl=62 time=1.052 ms 64 bytes from 101.192.137.195: seq=2 ttl=62 time=0.834 ms --- 101.192.137.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.834/2.545/5.750 ms 2025-03-27 13:41:42,785 - INFO - Ping to IP 101.192.137.195 from VM ctest-TestRoutersBasic-83037651-61917351 passed 2025-03-27 13:41:42,785 - INFO - Deleting interface with subnet_id 646e534f-1842-4cd6-bdb8-6a6f5a35c704, port_id None from router 7b77e6b9-fcfa-4ef3-a87b-bb26ceb8f67b 2025-03-27 13:41:42,992 - INFO - Deleting VM ctest-TestRoutersBasic-83037651-95984243 2025-03-27 13:41:43,064 - INFO - Deleting VM ctest-TestRoutersBasic-83037651-61917351 2025-03-27 13:41:43,153 - INFO - Deleting VN ctest-ext_vn-82077323 2025-03-27 13:41:43,250 - DEBUG - VN e0b081ee-94b0-4821-a989-c78b7fd705c1 still in use: Unable to complete operation on network e0b081ee-94b0-4821-a989-c78b7fd705c1. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-2be9eb2a-bb10-43c7-8caa-61eaa1a1904a'] 2025-03-27 13:41:43,250 - WARNING - Deleting VN ctest-ext_vn-82077323 failed..Will retry 2025-03-27 13:41:45,365 - DEBUG - Response for deleting network () 2025-03-27 13:41:45,365 - INFO - Deleting VN ctest-vn-30392492 2025-03-27 13:41:45,493 - DEBUG - Response for deleting network () 2025-03-27 13:41:45,749 - DEBUG - No XMPP flaps were noticed during the test 2025-03-27 13:41:45,749 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2025-03-27 13:41:45,749 - INFO - -------------------------------------------------------------------------------- 2025-03-27 13:41:46,453 - INFO - Deleted project: ctest-TestRoutersBasic-83037651, ID : 97f5b2e3-6351-493a-95e4-49fd61db1476