2025-07-31 12:50:42,982 - INFO - Domain Default found not creating 2025-07-31 12:50:43,143 - INFO - Project ctest-TestRoutersBasic-95523450 not found, creating it 2025-07-31 12:50:43,609 - INFO - Created Project:ctest-TestRoutersBasic-95523450, ID : 68fd1af7-0eff-4e3f-a8fe-292290e39c70 2025-07-31 12:50:45,091 - INFO - ================================================================================ 2025-07-31 12:50:45,091 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-07-31 12:50:45,091 - 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-07-31 12:50:45,349 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-07-31 12:50:45,349 - INFO - Initial checks done. Running the testcase now 2025-07-31 12:50:45,349 - INFO - 2025-07-31 12:50:46,071 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-95523450 2025-07-31 12:50:46,171 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-95523450 2025-07-31 12:50:46,502 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-95523450', 'default']} 2025-07-31 12:50:46,813 - DEBUG - Response for create_network : {'network': {'id': 'ee4f4140-ae2d-4eeb-ad23-d214f4dc8eec', 'name': 'ctest-vn-96752368', 'tenant_id': '68fd1af70eff4e3fa8fe292290e39c70', 'project_id': '68fd1af70eff4e3fa8fe292290e39c70', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-95523450', 'ctest-vn-96752368'], 'port_security_enabled': True, 'description': ''}} 2025-07-31 12:50:47,031 - DEBUG - Response for create_subnet : {'subnet': {'id': '118bcd7a-f685-4913-8a2f-3ffe3eae0040', 'name': '', 'tenant_id': '68fd1af70eff4e3fa8fe292290e39c70', 'network_id': 'ee4f4140-ae2d-4eeb-ad23-d214f4dc8eec', 'ip_version': 4, 'cidr': '40.148.86.192/26', 'allocation_pools': [{'start': '40.148.86.194', 'end': '40.148.86.254'}], 'gateway_ip': '40.148.86.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.148.86.194', 'tags': [], 'project_id': '68fd1af70eff4e3fa8fe292290e39c70'}} 2025-07-31 12:50:47,054 - INFO - Created VN ctest-vn-96752368 2025-07-31 12:50:47,106 - DEBUG - VN ctest-vn-96752368 UUID is ee4f4140-ae2d-4eeb-ad23-d214f4dc8eec 2025-07-31 12:50:47,420 - DEBUG - Response for create_network : {'network': {'id': '5b71c19d-2b46-4a95-9320-bd29b523c35e', 'name': 'ctest-ext_vn-77402018', 'tenant_id': '68fd1af70eff4e3fa8fe292290e39c70', 'project_id': '68fd1af70eff4e3fa8fe292290e39c70', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-95523450', 'ctest-ext_vn-77402018'], 'port_security_enabled': True, 'description': ''}} 2025-07-31 12:50:47,593 - DEBUG - Response for create_subnet : {'subnet': {'id': '5ace13de-cb7a-4fcb-8bc7-99d1b1b9dd43', 'name': '', 'tenant_id': '68fd1af70eff4e3fa8fe292290e39c70', 'network_id': '5b71c19d-2b46-4a95-9320-bd29b523c35e', 'ip_version': 4, 'cidr': '121.187.125.128/26', 'allocation_pools': [{'start': '121.187.125.130', 'end': '121.187.125.190'}], 'gateway_ip': '121.187.125.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '121.187.125.130', 'tags': [], 'project_id': '68fd1af70eff4e3fa8fe292290e39c70'}} 2025-07-31 12:50:47,614 - INFO - Created VN ctest-ext_vn-77402018 2025-07-31 12:50:47,670 - DEBUG - VN ctest-ext_vn-77402018 UUID is 5b71c19d-2b46-4a95-9320-bd29b523c35e 2025-07-31 12:50:47,841 - DEBUG - Services list from nova: [, , ] 2025-07-31 12:50:48,868 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3735-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3735-1) 2025-07-31 12:50:50,065 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3735-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3735-1) 2025-07-31 12:50:50,153 - INFO - Setting gateway for router 07ba27fb-7744-4661-863a-f4c9fb16982f to network 5b71c19d-2b46-4a95-9320-bd29b523c35e 2025-07-31 12:50:50,238 - INFO - Adding interface with subnet_id 118bcd7a-f685-4913-8a2f-3ffe3eae0040, port_id None to router 07ba27fb-7744-4661-863a-f4c9fb16982f 2025-07-31 12:50:50,611 - INFO - Waiting for VM ctest-TestRoutersBasic-95523450-88695374 to be up.. 2025-07-31 12:50:50,789 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-31 12:50:55,887 - DEBUG - VM is in ACTIVE state now 2025-07-31 12:50:55,887 - INFO - VM name : ctest-TestRoutersBasic-95523450-88695374 2025-07-31 12:50:55,969 - DEBUG - VM ctest-TestRoutersBasic-95523450-88695374 ID is 605a8af1-186b-4a01-afe9-8fcef292a9ee 2025-07-31 12:50:55,992 - DEBUG - VM ctest-TestRoutersBasic-95523450-88695374 launched on Node cn-jenkins-deploy-platform-ansible-os-3735-1 2025-07-31 12:50:56,086 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/605a8af1-186b-4a01-afe9-8fcef292a9ee 2025-07-31 12:50:56,384 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/605a8af1-186b-4a01-afe9-8fcef292a9ee 2025-07-31 12:50:56,422 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/491ba501-f1ad-4388-bcfc-eef785602210 2025-07-31 12:50:59,678 - 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 1007ms') 2025-07-31 12:50:59,678 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-95523450-88695374 failed! 2025-07-31 12:50:59,735 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-95523450:ctest-vn-96752368 is 40.148.86.193 and allocation pool is NOT set 2025-07-31 12:51:01,804 - 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.34 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.412 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.412/1.875/3.338/1.463 ms') 2025-07-31 12:51:01,805 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-95523450-88695374 passed 2025-07-31 12:51:01,958 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-31 12:51:01,959 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-95523450-88695374, IP 40.148.86.195, Port 22 2025-07-31 12:51:02,133 - DEBUG - VM ctest-TestRoutersBasic-95523450-88695374 is ready for SSH connections 2025-07-31 12:51:02,133 - INFO - Waiting for VM ctest-TestRoutersBasic-95523450-82697605 to be up.. 2025-07-31 12:51:02,219 - DEBUG - VM is in ACTIVE state now 2025-07-31 12:51:02,219 - INFO - VM name : ctest-TestRoutersBasic-95523450-82697605 2025-07-31 12:51:02,291 - DEBUG - VM ctest-TestRoutersBasic-95523450-82697605 ID is 8090bb9f-cefc-4ac4-8bc6-c90e385f94c2 2025-07-31 12:51:02,291 - DEBUG - VM ctest-TestRoutersBasic-95523450-82697605 launched on Node cn-jenkins-deploy-platform-ansible-os-3735-1 2025-07-31 12:51:02,370 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/8090bb9f-cefc-4ac4-8bc6-c90e385f94c2 2025-07-31 12:51:02,379 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/71bfb6b1-948c-42b8-bd4a-e015ef9dcc88 2025-07-31 12:51:03,619 - 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.27 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.496 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.496/1.883/3.270/1.387 ms') 2025-07-31 12:51:03,619 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-95523450-82697605 passed 2025-07-31 12:51:03,774 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-31 12:51:03,774 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-95523450-82697605, IP 121.187.125.131, Port 22 2025-07-31 12:51:03,930 - DEBUG - VM ctest-TestRoutersBasic-95523450-82697605 is ready for SSH connections 2025-07-31 12:51:03,930 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-31 12:51:03,930 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 121.187.125.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-07-31 12:51:03,931 - DEBUG - ping -s 56 -c 3 -W 1 121.187.125.131 2025-07-31 12:51:07,654 - DEBUG - PING 121.187.125.131 (121.187.125.131): 56 data bytes 64 bytes from 121.187.125.131: seq=0 ttl=62 time=5.227 ms 64 bytes from 121.187.125.131: seq=1 ttl=62 time=0.971 ms 64 bytes from 121.187.125.131: seq=2 ttl=62 time=1.027 ms --- 121.187.125.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.971/2.408/5.227 ms 2025-07-31 12:51:07,654 - INFO - Ping to IP 121.187.125.131 from VM ctest-TestRoutersBasic-95523450-88695374 passed 2025-07-31 12:51:07,655 - INFO - Deleting interface with subnet_id 118bcd7a-f685-4913-8a2f-3ffe3eae0040, port_id None from router 07ba27fb-7744-4661-863a-f4c9fb16982f 2025-07-31 12:51:07,882 - INFO - Deleting VM ctest-TestRoutersBasic-95523450-82697605 2025-07-31 12:51:07,965 - INFO - Deleting VM ctest-TestRoutersBasic-95523450-88695374 2025-07-31 12:51:08,052 - INFO - Deleting VN ctest-ext_vn-77402018 2025-07-31 12:51:08,136 - DEBUG - VN 5b71c19d-2b46-4a95-9320-bd29b523c35e still in use: Unable to complete operation on network 5b71c19d-2b46-4a95-9320-bd29b523c35e. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-c3cba3e3-6187-44a3-98cf-9e641513439d'] 2025-07-31 12:51:08,136 - WARNING - Deleting VN ctest-ext_vn-77402018 failed..Will retry 2025-07-31 12:51:10,282 - DEBUG - Response for deleting network () 2025-07-31 12:51:10,282 - INFO - Deleting VN ctest-vn-96752368 2025-07-31 12:51:10,388 - DEBUG - Response for deleting network () 2025-07-31 12:51:10,646 - DEBUG - No XMPP flaps were noticed during the test 2025-07-31 12:51:10,646 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:25] 2025-07-31 12:51:10,647 - INFO - -------------------------------------------------------------------------------- 2025-07-31 12:51:11,347 - INFO - Deleted project: ctest-TestRoutersBasic-95523450, ID : 68fd1af7-0eff-4e3f-a8fe-292290e39c70