2025-03-22 09:15:21,746 - INFO - Domain Default found not creating 2025-03-22 09:15:21,929 - INFO - Project ctest-TestRoutersBasic-33102366 not found, creating it 2025-03-22 09:15:22,447 - INFO - Created Project:ctest-TestRoutersBasic-33102366, ID : ffba9410-ddf0-4a0f-a104-b392d72d5e0a 2025-03-22 09:15:24,644 - INFO - ================================================================================ 2025-03-22 09:15:24,644 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-03-22 09:15:24,644 - 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-22 09:15:24,901 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.6': '0'}} with 2025-03-22 09:15:24,901 - INFO - Initial checks done. Running the testcase now 2025-03-22 09:15:24,901 - INFO - 2025-03-22 09:15:25,601 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-33102366 2025-03-22 09:15:25,701 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-33102366 2025-03-22 09:15:26,041 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-33102366', 'default']} 2025-03-22 09:15:26,383 - DEBUG - Response for create_network : {'network': {'id': '757d4f15-d183-4b61-98fa-a0df24590831', 'name': 'ctest-vn-74455629', 'tenant_id': 'ffba9410ddf04a0fa104b392d72d5e0a', 'project_id': 'ffba9410ddf04a0fa104b392d72d5e0a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-33102366', 'ctest-vn-74455629'], 'port_security_enabled': True, 'description': ''}} 2025-03-22 09:15:26,581 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e003e6b0-cf8c-4d11-a924-c14fe83ac816', 'name': '', 'tenant_id': 'ffba9410ddf04a0fa104b392d72d5e0a', 'network_id': '757d4f15-d183-4b61-98fa-a0df24590831', 'ip_version': 4, 'cidr': '204.30.106.0/26', 'allocation_pools': [{'start': '204.30.106.2', 'end': '204.30.106.62'}], 'gateway_ip': '204.30.106.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '204.30.106.2', 'tags': [], 'project_id': 'ffba9410ddf04a0fa104b392d72d5e0a'}} 2025-03-22 09:15:26,600 - INFO - Created VN ctest-vn-74455629 2025-03-22 09:15:26,657 - DEBUG - VN ctest-vn-74455629 UUID is 757d4f15-d183-4b61-98fa-a0df24590831 2025-03-22 09:15:27,035 - DEBUG - Response for create_network : {'network': {'id': '6a3f9121-b67a-4484-b776-3ed34e4f5a6a', 'name': 'ctest-ext_vn-32916393', 'tenant_id': 'ffba9410ddf04a0fa104b392d72d5e0a', 'project_id': 'ffba9410ddf04a0fa104b392d72d5e0a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-33102366', 'ctest-ext_vn-32916393'], 'port_security_enabled': True, 'description': ''}} 2025-03-22 09:15:27,276 - DEBUG - Response for create_subnet : {'subnet': {'id': '791f4925-dcc9-4ce1-a162-02fa9ef9e1d9', 'name': '', 'tenant_id': 'ffba9410ddf04a0fa104b392d72d5e0a', 'network_id': '6a3f9121-b67a-4484-b776-3ed34e4f5a6a', 'ip_version': 4, 'cidr': '62.95.44.192/26', 'allocation_pools': [{'start': '62.95.44.194', 'end': '62.95.44.254'}], 'gateway_ip': '62.95.44.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.95.44.194', 'tags': [], 'project_id': 'ffba9410ddf04a0fa104b392d72d5e0a'}} 2025-03-22 09:15:27,296 - INFO - Created VN ctest-ext_vn-32916393 2025-03-22 09:15:27,349 - DEBUG - VN ctest-ext_vn-32916393 UUID is 6a3f9121-b67a-4484-b776-3ed34e4f5a6a 2025-03-22 09:15:27,539 - DEBUG - Services list from nova: [, , ] 2025-03-22 09:15:28,651 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2934-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2934-1) 2025-03-22 09:15:29,891 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2934-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2934-1) 2025-03-22 09:15:29,996 - INFO - Setting gateway for router ae939c0f-540d-4b41-bfbd-f72e2a8a6ea1 to network 6a3f9121-b67a-4484-b776-3ed34e4f5a6a 2025-03-22 09:15:30,083 - INFO - Adding interface with subnet_id e003e6b0-cf8c-4d11-a924-c14fe83ac816, port_id None to router ae939c0f-540d-4b41-bfbd-f72e2a8a6ea1 2025-03-22 09:15:30,514 - INFO - Waiting for VM ctest-TestRoutersBasic-33102366-90538565 to be up.. 2025-03-22 09:15:30,697 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-22 09:15:35,795 - DEBUG - VM is in ACTIVE state now 2025-03-22 09:15:35,795 - INFO - VM name : ctest-TestRoutersBasic-33102366-90538565 2025-03-22 09:15:35,896 - DEBUG - VM ctest-TestRoutersBasic-33102366-90538565 ID is 8143b215-50fa-47b5-b550-d34b2f1f4e02 2025-03-22 09:15:35,921 - DEBUG - VM ctest-TestRoutersBasic-33102366-90538565 launched on Node cn-jenkins-deploy-platform-ansible-os-2934-1 2025-03-22 09:15:36,027 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/8143b215-50fa-47b5-b550-d34b2f1f4e02 2025-03-22 09:15:36,330 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/8143b215-50fa-47b5-b550-d34b2f1f4e02 2025-03-22 09:15:36,374 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/b3082452-a71b-487d-b3c8-477770abcfc0 2025-03-22 09:15:39,655 - 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 1027ms') 2025-03-22 09:15:39,655 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-33102366-90538565 failed! 2025-03-22 09:15:39,713 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-33102366:ctest-vn-74455629 is 204.30.106.1 and allocation pool is NOT set 2025-03-22 09:15:41,777 - 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.22 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.580 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.580/1.899/3.219/1.319 ms') 2025-03-22 09:15:41,777 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-33102366-90538565 passed 2025-03-22 09:15:41,933 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-22 09:15:41,933 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-33102366-90538565, IP 204.30.106.3, Port 22 2025-03-22 09:15:42,099 - DEBUG - VM ctest-TestRoutersBasic-33102366-90538565 is ready for SSH connections 2025-03-22 09:15:42,099 - INFO - Waiting for VM ctest-TestRoutersBasic-33102366-18020201 to be up.. 2025-03-22 09:15:42,189 - DEBUG - VM is in ACTIVE state now 2025-03-22 09:15:42,189 - INFO - VM name : ctest-TestRoutersBasic-33102366-18020201 2025-03-22 09:15:42,271 - DEBUG - VM ctest-TestRoutersBasic-33102366-18020201 ID is 01b0b334-6b18-4358-aa48-32fc2e5b0b85 2025-03-22 09:15:42,272 - DEBUG - VM ctest-TestRoutersBasic-33102366-18020201 launched on Node cn-jenkins-deploy-platform-ansible-os-2934-1 2025-03-22 09:15:42,354 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/01b0b334-6b18-4358-aa48-32fc2e5b0b85 2025-03-22 09:15:42,364 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/c4604c45-19c0-41ed-b080-77b973f824f9 2025-03-22 09:15:43,612 - 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.96 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=3.03 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 = 3.034/3.996/4.958/0.962 ms') 2025-03-22 09:15:43,612 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-33102366-18020201 passed 2025-03-22 09:15:43,769 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-22 09:15:43,769 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-33102366-18020201, IP 62.95.44.195, Port 22 2025-03-22 09:15:43,924 - DEBUG - VM ctest-TestRoutersBasic-33102366-18020201 is ready for SSH connections 2025-03-22 09:15:43,924 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-22 09:15:43,924 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 62.95.44.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-03-22 09:15:43,925 - DEBUG - ping -s 56 -c 3 -W 1 62.95.44.195 2025-03-22 09:15:47,667 - DEBUG - PING 62.95.44.195 (62.95.44.195): 56 data bytes 64 bytes from 62.95.44.195: seq=0 ttl=62 time=6.624 ms 64 bytes from 62.95.44.195: seq=1 ttl=62 time=1.090 ms 64 bytes from 62.95.44.195: seq=2 ttl=62 time=0.901 ms --- 62.95.44.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.901/2.871/6.624 ms 2025-03-22 09:15:47,667 - INFO - Ping to IP 62.95.44.195 from VM ctest-TestRoutersBasic-33102366-90538565 passed 2025-03-22 09:15:47,667 - INFO - Deleting interface with subnet_id e003e6b0-cf8c-4d11-a924-c14fe83ac816, port_id None from router ae939c0f-540d-4b41-bfbd-f72e2a8a6ea1 2025-03-22 09:15:47,921 - INFO - Deleting VM ctest-TestRoutersBasic-33102366-18020201 2025-03-22 09:15:47,998 - INFO - Deleting VM ctest-TestRoutersBasic-33102366-90538565 2025-03-22 09:15:48,089 - INFO - Deleting VN ctest-ext_vn-32916393 2025-03-22 09:15:48,180 - DEBUG - VN 6a3f9121-b67a-4484-b776-3ed34e4f5a6a still in use: Unable to complete operation on network 6a3f9121-b67a-4484-b776-3ed34e4f5a6a. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-3c382506-a074-45c0-9b87-0d48d28f864e'] 2025-03-22 09:15:48,180 - WARNING - Deleting VN ctest-ext_vn-32916393 failed..Will retry 2025-03-22 09:15:50,334 - DEBUG - Response for deleting network () 2025-03-22 09:15:50,334 - INFO - Deleting VN ctest-vn-74455629 2025-03-22 09:15:50,525 - DEBUG - Response for deleting network () 2025-03-22 09:15:50,794 - DEBUG - No XMPP flaps were noticed during the test 2025-03-22 09:15:50,794 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2025-03-22 09:15:50,794 - INFO - -------------------------------------------------------------------------------- 2025-03-22 09:15:51,628 - INFO - Deleted project: ctest-TestRoutersBasic-33102366, ID : ffba9410-ddf0-4a0f-a104-b392d72d5e0a