2025-04-22 20:46:00,910 - INFO - Domain Default found not creating 2025-04-22 20:46:01,059 - INFO - Project ctest-TestRoutersBasic-71078423 not found, creating it 2025-04-22 20:46:01,523 - INFO - Created Project:ctest-TestRoutersBasic-71078423, ID : 98ed72d8-675e-463e-97b2-89962cedcd47 2025-04-22 20:46:03,121 - INFO - ================================================================================ 2025-04-22 20:46:03,121 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-04-22 20:46:03,121 - 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-04-22 20:46:03,381 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2025-04-22 20:46:03,381 - INFO - Initial checks done. Running the testcase now 2025-04-22 20:46:03,381 - INFO - 2025-04-22 20:46:04,157 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-71078423 2025-04-22 20:46:04,253 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-71078423 2025-04-22 20:46:04,576 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-71078423', 'default']} 2025-04-22 20:46:04,884 - DEBUG - Response for create_network : {'network': {'id': 'eb0c5366-4ea0-4c19-826a-d500476da106', 'name': 'ctest-vn-55922910', 'tenant_id': '98ed72d8675e463e97b289962cedcd47', 'project_id': '98ed72d8675e463e97b289962cedcd47', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-71078423', 'ctest-vn-55922910'], 'port_security_enabled': True, 'description': ''}} 2025-04-22 20:46:05,068 - DEBUG - Response for create_subnet : {'subnet': {'id': '7f274d3e-0213-4224-8e18-0c39061983bd', 'name': '', 'tenant_id': '98ed72d8675e463e97b289962cedcd47', 'network_id': 'eb0c5366-4ea0-4c19-826a-d500476da106', 'ip_version': 4, 'cidr': '102.38.70.64/26', 'allocation_pools': [{'start': '102.38.70.66', 'end': '102.38.70.126'}], 'gateway_ip': '102.38.70.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '102.38.70.66', 'tags': [], 'project_id': '98ed72d8675e463e97b289962cedcd47'}} 2025-04-22 20:46:05,087 - INFO - Created VN ctest-vn-55922910 2025-04-22 20:46:05,140 - DEBUG - VN ctest-vn-55922910 UUID is eb0c5366-4ea0-4c19-826a-d500476da106 2025-04-22 20:46:05,458 - DEBUG - Response for create_network : {'network': {'id': '4e5c16f6-eae9-433b-91bf-5d32955c8ff4', 'name': 'ctest-ext_vn-09373327', 'tenant_id': '98ed72d8675e463e97b289962cedcd47', 'project_id': '98ed72d8675e463e97b289962cedcd47', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-71078423', 'ctest-ext_vn-09373327'], 'port_security_enabled': True, 'description': ''}} 2025-04-22 20:46:05,611 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bcfa1f71-d586-4730-8f60-197bfc2ac027', 'name': '', 'tenant_id': '98ed72d8675e463e97b289962cedcd47', 'network_id': '4e5c16f6-eae9-433b-91bf-5d32955c8ff4', 'ip_version': 4, 'cidr': '40.201.10.128/26', 'allocation_pools': [{'start': '40.201.10.130', 'end': '40.201.10.190'}], 'gateway_ip': '40.201.10.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.201.10.130', 'tags': [], 'project_id': '98ed72d8675e463e97b289962cedcd47'}} 2025-04-22 20:46:05,628 - INFO - Created VN ctest-ext_vn-09373327 2025-04-22 20:46:05,680 - DEBUG - VN ctest-ext_vn-09373327 UUID is 4e5c16f6-eae9-433b-91bf-5d32955c8ff4 2025-04-22 20:46:05,845 - DEBUG - Services list from nova: [, , ] 2025-04-22 20:46:06,945 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3173-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3173-1) 2025-04-22 20:46:08,242 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3173-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3173-1) 2025-04-22 20:46:08,344 - INFO - Setting gateway for router 3e683412-043d-4358-baf3-7759dd7c3a49 to network 4e5c16f6-eae9-433b-91bf-5d32955c8ff4 2025-04-22 20:46:08,415 - INFO - Adding interface with subnet_id 7f274d3e-0213-4224-8e18-0c39061983bd, port_id None to router 3e683412-043d-4358-baf3-7759dd7c3a49 2025-04-22 20:46:08,900 - INFO - Waiting for VM ctest-TestRoutersBasic-71078423-76453200 to be up.. 2025-04-22 20:46:09,051 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-22 20:46:14,136 - DEBUG - VM is in ACTIVE state now 2025-04-22 20:46:14,136 - INFO - VM name : ctest-TestRoutersBasic-71078423-76453200 2025-04-22 20:46:14,218 - DEBUG - VM ctest-TestRoutersBasic-71078423-76453200 ID is 22865868-0928-49b4-97d5-e7c6e7f169c7 2025-04-22 20:46:14,238 - DEBUG - VM ctest-TestRoutersBasic-71078423-76453200 launched on Node cn-jenkins-deploy-platform-ansible-os-3173-1 2025-04-22 20:46:14,329 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/22865868-0928-49b4-97d5-e7c6e7f169c7 2025-04-22 20:46:14,663 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/22865868-0928-49b4-97d5-e7c6e7f169c7 2025-04-22 20:46:14,694 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/491d1b04-8ca3-406a-ba24-6088d668a89f 2025-04-22 20:46:17,948 - 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 1014ms') 2025-04-22 20:46:17,949 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-71078423-76453200 failed! 2025-04-22 20:46:18,004 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-71078423:ctest-vn-55922910 is 102.38.70.65 and allocation pool is NOT set 2025-04-22 20:46:20,071 - 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=3.31 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.426 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 = 0.426/1.869/3.312/1.443 ms') 2025-04-22 20:46:20,071 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-71078423-76453200 passed 2025-04-22 20:46:20,224 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-22 20:46:20,224 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-71078423-76453200, IP 102.38.70.67, Port 22 2025-04-22 20:46:20,384 - DEBUG - VM ctest-TestRoutersBasic-71078423-76453200 is ready for SSH connections 2025-04-22 20:46:20,384 - INFO - Waiting for VM ctest-TestRoutersBasic-71078423-70825430 to be up.. 2025-04-22 20:46:20,463 - DEBUG - VM is in ACTIVE state now 2025-04-22 20:46:20,464 - INFO - VM name : ctest-TestRoutersBasic-71078423-70825430 2025-04-22 20:46:20,541 - DEBUG - VM ctest-TestRoutersBasic-71078423-70825430 ID is 18eb8bdb-ddb6-432f-b3d5-18242c218212 2025-04-22 20:46:20,542 - DEBUG - VM ctest-TestRoutersBasic-71078423-70825430 launched on Node cn-jenkins-deploy-platform-ansible-os-3173-1 2025-04-22 20:46:20,614 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/18eb8bdb-ddb6-432f-b3d5-18242c218212 2025-04-22 20:46:20,622 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/501bb398-d0d2-4a27-808d-2034eb5fae53 2025-04-22 20:46:21,867 - 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.53 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.308 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.308/1.920/3.533/1.612 ms') 2025-04-22 20:46:21,867 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-71078423-70825430 passed 2025-04-22 20:46:22,024 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-22 20:46:22,024 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-71078423-70825430, IP 40.201.10.131, Port 22 2025-04-22 20:46:22,192 - DEBUG - VM ctest-TestRoutersBasic-71078423-70825430 is ready for SSH connections 2025-04-22 20:46:22,192 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-22 20:46:22,192 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 40.201.10.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-04-22 20:46:22,192 - DEBUG - ping -s 56 -c 3 -W 1 40.201.10.131 2025-04-22 20:46:26,282 - DEBUG - PING 40.201.10.131 (40.201.10.131): 56 data bytes 64 bytes from 40.201.10.131: seq=0 ttl=62 time=7.197 ms 64 bytes from 40.201.10.131: seq=1 ttl=62 time=1.131 ms 64 bytes from 40.201.10.131: seq=2 ttl=62 time=0.787 ms --- 40.201.10.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.787/3.038/7.197 ms 2025-04-22 20:46:26,282 - INFO - Ping to IP 40.201.10.131 from VM ctest-TestRoutersBasic-71078423-76453200 passed 2025-04-22 20:46:26,282 - INFO - Deleting interface with subnet_id 7f274d3e-0213-4224-8e18-0c39061983bd, port_id None from router 3e683412-043d-4358-baf3-7759dd7c3a49 2025-04-22 20:46:26,492 - INFO - Deleting VM ctest-TestRoutersBasic-71078423-70825430 2025-04-22 20:46:26,558 - INFO - Deleting VM ctest-TestRoutersBasic-71078423-76453200 2025-04-22 20:46:26,640 - INFO - Deleting VN ctest-ext_vn-09373327 2025-04-22 20:46:26,717 - DEBUG - VN 4e5c16f6-eae9-433b-91bf-5d32955c8ff4 still in use: Unable to complete operation on network 4e5c16f6-eae9-433b-91bf-5d32955c8ff4. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-1424b915-05f5-4cd7-a6e0-55a5c9999b54'] 2025-04-22 20:46:26,718 - WARNING - Deleting VN ctest-ext_vn-09373327 failed..Will retry 2025-04-22 20:46:28,844 - DEBUG - Response for deleting network () 2025-04-22 20:46:28,845 - INFO - Deleting VN ctest-vn-55922910 2025-04-22 20:46:28,976 - DEBUG - Response for deleting network () 2025-04-22 20:46:29,230 - DEBUG - No XMPP flaps were noticed during the test 2025-04-22 20:46:29,230 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2025-04-22 20:46:29,230 - INFO - -------------------------------------------------------------------------------- 2025-04-22 20:46:29,963 - INFO - Deleted project: ctest-TestRoutersBasic-71078423, ID : 98ed72d8-675e-463e-97b2-89962cedcd47