2025-04-23 10:51:05,104 - INFO - Domain Default found not creating 2025-04-23 10:51:05,232 - INFO - Project ctest-TestRoutersBasic-51945909 not found, creating it 2025-04-23 10:51:05,670 - INFO - Created Project:ctest-TestRoutersBasic-51945909, ID : 87694381-e069-48c8-acac-3d6996d3ae73 2025-04-23 10:51:07,006 - INFO - ================================================================================ 2025-04-23 10:51:07,006 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-04-23 10:51:07,006 - 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-23 10:51:07,260 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.17': '0'}} with 2025-04-23 10:51:07,260 - INFO - Initial checks done. Running the testcase now 2025-04-23 10:51:07,260 - INFO - 2025-04-23 10:51:07,971 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-51945909 2025-04-23 10:51:08,070 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-51945909 2025-04-23 10:51:08,386 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-51945909', 'default']} 2025-04-23 10:51:08,672 - DEBUG - Response for create_network : {'network': {'id': '5f60fee1-9889-4f85-ada3-3c18cc0d93e3', 'name': 'ctest-vn-87382738', 'tenant_id': '87694381e06948c8acac3d6996d3ae73', 'project_id': '87694381e06948c8acac3d6996d3ae73', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-51945909', 'ctest-vn-87382738'], 'port_security_enabled': True, 'description': ''}} 2025-04-23 10:51:08,854 - DEBUG - Response for create_subnet : {'subnet': {'id': '17c7498a-e77f-4b88-af02-7b68c012c7ca', 'name': '', 'tenant_id': '87694381e06948c8acac3d6996d3ae73', 'network_id': '5f60fee1-9889-4f85-ada3-3c18cc0d93e3', 'ip_version': 4, 'cidr': '74.187.168.64/26', 'allocation_pools': [{'start': '74.187.168.66', 'end': '74.187.168.126'}], 'gateway_ip': '74.187.168.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '74.187.168.66', 'tags': [], 'project_id': '87694381e06948c8acac3d6996d3ae73'}} 2025-04-23 10:51:08,870 - INFO - Created VN ctest-vn-87382738 2025-04-23 10:51:08,926 - DEBUG - VN ctest-vn-87382738 UUID is 5f60fee1-9889-4f85-ada3-3c18cc0d93e3 2025-04-23 10:51:09,232 - DEBUG - Response for create_network : {'network': {'id': 'b9286c25-f0d7-433a-91c8-4ff7a8757f0a', 'name': 'ctest-ext_vn-57520576', 'tenant_id': '87694381e06948c8acac3d6996d3ae73', 'project_id': '87694381e06948c8acac3d6996d3ae73', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-51945909', 'ctest-ext_vn-57520576'], 'port_security_enabled': True, 'description': ''}} 2025-04-23 10:51:09,410 - DEBUG - Response for create_subnet : {'subnet': {'id': '569da6d0-a804-4486-9525-31953305f1b3', 'name': '', 'tenant_id': '87694381e06948c8acac3d6996d3ae73', 'network_id': 'b9286c25-f0d7-433a-91c8-4ff7a8757f0a', 'ip_version': 4, 'cidr': '148.18.199.192/26', 'allocation_pools': [{'start': '148.18.199.194', 'end': '148.18.199.254'}], 'gateway_ip': '148.18.199.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '148.18.199.194', 'tags': [], 'project_id': '87694381e06948c8acac3d6996d3ae73'}} 2025-04-23 10:51:09,428 - INFO - Created VN ctest-ext_vn-57520576 2025-04-23 10:51:09,478 - DEBUG - VN ctest-ext_vn-57520576 UUID is b9286c25-f0d7-433a-91c8-4ff7a8757f0a 2025-04-23 10:51:09,679 - DEBUG - Services list from nova: [, , ] 2025-04-23 10:51:10,642 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3180-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3180-1) 2025-04-23 10:51:11,748 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3180-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3180-1) 2025-04-23 10:51:11,812 - INFO - Setting gateway for router 3c547445-19ab-4875-8c5c-364f66cd7c3a to network b9286c25-f0d7-433a-91c8-4ff7a8757f0a 2025-04-23 10:51:11,875 - INFO - Adding interface with subnet_id 17c7498a-e77f-4b88-af02-7b68c012c7ca, port_id None to router 3c547445-19ab-4875-8c5c-364f66cd7c3a 2025-04-23 10:51:12,198 - INFO - Waiting for VM ctest-TestRoutersBasic-51945909-65987677 to be up.. 2025-04-23 10:51:12,353 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-23 10:51:17,438 - DEBUG - VM is in ACTIVE state now 2025-04-23 10:51:17,439 - INFO - VM name : ctest-TestRoutersBasic-51945909-65987677 2025-04-23 10:51:17,529 - DEBUG - VM ctest-TestRoutersBasic-51945909-65987677 ID is f64ba96f-42b7-4fb9-9680-5e5f54cd9e2b 2025-04-23 10:51:17,548 - DEBUG - VM ctest-TestRoutersBasic-51945909-65987677 launched on Node cn-jenkins-deploy-platform-ansible-os-3180-1 2025-04-23 10:51:17,625 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/f64ba96f-42b7-4fb9-9680-5e5f54cd9e2b 2025-04-23 10:51:17,924 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/f64ba96f-42b7-4fb9-9680-5e5f54cd9e2b 2025-04-23 10:51:17,955 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine-interface/3af298a3-8b31-4739-bdac-ad87ccef71ad 2025-04-23 10:51:21,212 - 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 1011ms') 2025-04-23 10:51:21,212 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-51945909-65987677 failed! 2025-04-23 10:51:21,274 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-51945909:ctest-vn-87382738 is 74.187.168.65 and allocation pool is NOT set 2025-04-23 10:51:23,340 - 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.85 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.401 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.401/1.623/2.845/1.222 ms') 2025-04-23 10:51:23,341 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-51945909-65987677 passed 2025-04-23 10:51:23,494 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-23 10:51:23,495 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-51945909-65987677, IP 74.187.168.67, Port 22 2025-04-23 10:51:23,646 - DEBUG - VM ctest-TestRoutersBasic-51945909-65987677 is ready for SSH connections 2025-04-23 10:51:23,646 - INFO - Waiting for VM ctest-TestRoutersBasic-51945909-97995424 to be up.. 2025-04-23 10:51:23,722 - DEBUG - VM is in ACTIVE state now 2025-04-23 10:51:23,722 - INFO - VM name : ctest-TestRoutersBasic-51945909-97995424 2025-04-23 10:51:23,792 - DEBUG - VM ctest-TestRoutersBasic-51945909-97995424 ID is d6068e9a-f79c-484c-8a1d-9a12c52dba60 2025-04-23 10:51:23,792 - DEBUG - VM ctest-TestRoutersBasic-51945909-97995424 launched on Node cn-jenkins-deploy-platform-ansible-os-3180-1 2025-04-23 10:51:23,862 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/d6068e9a-f79c-484c-8a1d-9a12c52dba60 2025-04-23 10:51:23,870 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine-interface/09641448-3eb5-4537-85a1-86d3c111a0a3 2025-04-23 10:51:25,103 - 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=2.96 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.294 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.294/1.627/2.961/1.333 ms') 2025-04-23 10:51:25,103 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-51945909-97995424 passed 2025-04-23 10:51:25,262 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-23 10:51:25,263 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-51945909-97995424, IP 148.18.199.195, Port 22 2025-04-23 10:51:25,422 - DEBUG - VM ctest-TestRoutersBasic-51945909-97995424 is ready for SSH connections 2025-04-23 10:51:25,422 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-23 10:51:25,422 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 148.18.199.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.49, gateway password: c0ntrail123 2025-04-23 10:51:25,422 - DEBUG - ping -s 56 -c 3 -W 1 148.18.199.195 2025-04-23 10:51:29,089 - DEBUG - PING 148.18.199.195 (148.18.199.195): 56 data bytes 64 bytes from 148.18.199.195: seq=0 ttl=62 time=7.233 ms 64 bytes from 148.18.199.195: seq=1 ttl=62 time=0.793 ms 64 bytes from 148.18.199.195: seq=2 ttl=62 time=0.804 ms --- 148.18.199.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.793/2.943/7.233 ms 2025-04-23 10:51:29,089 - INFO - Ping to IP 148.18.199.195 from VM ctest-TestRoutersBasic-51945909-65987677 passed 2025-04-23 10:51:29,089 - INFO - Deleting interface with subnet_id 17c7498a-e77f-4b88-af02-7b68c012c7ca, port_id None from router 3c547445-19ab-4875-8c5c-364f66cd7c3a 2025-04-23 10:51:29,264 - INFO - Deleting VM ctest-TestRoutersBasic-51945909-97995424 2025-04-23 10:51:29,326 - INFO - Deleting VM ctest-TestRoutersBasic-51945909-65987677 2025-04-23 10:51:29,405 - INFO - Deleting VN ctest-ext_vn-57520576 2025-04-23 10:51:29,478 - DEBUG - VN b9286c25-f0d7-433a-91c8-4ff7a8757f0a still in use: Unable to complete operation on network b9286c25-f0d7-433a-91c8-4ff7a8757f0a. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-f27c91e3-f5bf-4591-a3ce-e804b1579c3f'] 2025-04-23 10:51:29,479 - WARNING - Deleting VN ctest-ext_vn-57520576 failed..Will retry 2025-04-23 10:51:31,571 - DEBUG - Response for deleting network () 2025-04-23 10:51:31,571 - INFO - Deleting VN ctest-vn-87382738 2025-04-23 10:51:31,660 - DEBUG - Response for deleting network () 2025-04-23 10:51:31,916 - DEBUG - No XMPP flaps were noticed during the test 2025-04-23 10:51:31,916 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:24] 2025-04-23 10:51:31,916 - INFO - -------------------------------------------------------------------------------- 2025-04-23 10:51:32,560 - INFO - Deleted project: ctest-TestRoutersBasic-51945909, ID : 87694381-e069-48c8-acac-3d6996d3ae73