2025-01-07 11:52:37,255 - INFO - Domain Default found not creating 2025-01-07 11:52:37,411 - INFO - Project ctest-TestRoutersBasic-44474292 not found, creating it 2025-01-07 11:52:37,910 - INFO - Created Project:ctest-TestRoutersBasic-44474292, ID : 82b98c58-0ea3-425f-8903-4b328a75837c 2025-01-07 11:52:39,486 - INFO - ================================================================================ 2025-01-07 11:52:39,486 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-01-07 11:52:39,486 - 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-01-07 11:52:39,745 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.12': '0'}} with 2025-01-07 11:52:39,745 - INFO - Initial checks done. Running the testcase now 2025-01-07 11:52:39,745 - INFO - 2025-01-07 11:52:40,468 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-44474292 2025-01-07 11:52:40,566 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-44474292 2025-01-07 11:52:40,902 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-44474292', 'default']} 2025-01-07 11:52:41,211 - DEBUG - Response for create_network : {'network': {'id': '2a8672a4-e78d-4030-a75f-40f1a77972e8', 'name': 'ctest-vn-64001765', 'tenant_id': '82b98c580ea3425f89034b328a75837c', 'project_id': '82b98c580ea3425f89034b328a75837c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-44474292', 'ctest-vn-64001765'], 'port_security_enabled': True, 'description': ''}} 2025-01-07 11:52:41,408 - DEBUG - Response for create_subnet : {'subnet': {'id': '6ee211c7-ce15-4ff2-939b-53533439e778', 'name': '', 'tenant_id': '82b98c580ea3425f89034b328a75837c', 'network_id': '2a8672a4-e78d-4030-a75f-40f1a77972e8', 'ip_version': 4, 'cidr': '130.180.40.128/26', 'allocation_pools': [{'start': '130.180.40.130', 'end': '130.180.40.190'}], 'gateway_ip': '130.180.40.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '130.180.40.130', 'tags': [], 'project_id': '82b98c580ea3425f89034b328a75837c'}} 2025-01-07 11:52:41,428 - INFO - Created VN ctest-vn-64001765 2025-01-07 11:52:41,482 - DEBUG - VN ctest-vn-64001765 UUID is 2a8672a4-e78d-4030-a75f-40f1a77972e8 2025-01-07 11:52:41,899 - DEBUG - Response for create_network : {'network': {'id': '75a4f0a9-4985-4762-a50c-31126f822820', 'name': 'ctest-ext_vn-99696714', 'tenant_id': '82b98c580ea3425f89034b328a75837c', 'project_id': '82b98c580ea3425f89034b328a75837c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-44474292', 'ctest-ext_vn-99696714'], 'port_security_enabled': True, 'description': ''}} 2025-01-07 11:52:42,112 - DEBUG - Response for create_subnet : {'subnet': {'id': '26c88e9b-8b0a-44c3-9f72-380bf4b93ef2', 'name': '', 'tenant_id': '82b98c580ea3425f89034b328a75837c', 'network_id': '75a4f0a9-4985-4762-a50c-31126f822820', 'ip_version': 4, 'cidr': '49.91.51.64/26', 'allocation_pools': [{'start': '49.91.51.66', 'end': '49.91.51.126'}], 'gateway_ip': '49.91.51.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '49.91.51.66', 'tags': [], 'project_id': '82b98c580ea3425f89034b328a75837c'}} 2025-01-07 11:52:42,131 - INFO - Created VN ctest-ext_vn-99696714 2025-01-07 11:52:42,186 - DEBUG - VN ctest-ext_vn-99696714 UUID is 75a4f0a9-4985-4762-a50c-31126f822820 2025-01-07 11:52:42,384 - DEBUG - Services list from nova: [, , ] 2025-01-07 11:52:43,419 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2549-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2549-1) 2025-01-07 11:52:44,603 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2549-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2549-1) 2025-01-07 11:52:44,689 - INFO - Setting gateway for router 7816aa0e-b494-4163-b736-3ddc1a8d0355 to network 75a4f0a9-4985-4762-a50c-31126f822820 2025-01-07 11:52:44,770 - INFO - Adding interface with subnet_id 6ee211c7-ce15-4ff2-939b-53533439e778, port_id None to router 7816aa0e-b494-4163-b736-3ddc1a8d0355 2025-01-07 11:52:45,160 - INFO - Waiting for VM ctest-TestRoutersBasic-44474292-78832003 to be up.. 2025-01-07 11:52:45,370 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-07 11:52:50,446 - DEBUG - VM is in ACTIVE state now 2025-01-07 11:52:50,446 - INFO - VM name : ctest-TestRoutersBasic-44474292-78832003 2025-01-07 11:52:50,521 - DEBUG - VM ctest-TestRoutersBasic-44474292-78832003 ID is 5a475123-9189-4cb2-af65-cad2542b4566 2025-01-07 11:52:50,540 - DEBUG - VM ctest-TestRoutersBasic-44474292-78832003 launched on Node cn-jenkins-deploy-platform-ansible-os-2549-1 2025-01-07 11:52:50,627 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/5a475123-9189-4cb2-af65-cad2542b4566 2025-01-07 11:52:50,922 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/5a475123-9189-4cb2-af65-cad2542b4566 2025-01-07 11:52:50,962 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/8d7be6ab-e036-4e14-904d-feacdf7b2583 2025-01-07 11:52:54,232 - 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-01-07 11:52:54,232 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-44474292-78832003 failed! 2025-01-07 11:52:54,291 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-44474292:ctest-vn-64001765 is 130.180.40.129 and allocation pool is NOT set 2025-01-07 11:52:56,354 - 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.93 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.363 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.363/1.648/2.934/1.285 ms') 2025-01-07 11:52:56,354 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-44474292-78832003 passed 2025-01-07 11:52:56,506 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-07 11:52:56,506 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-44474292-78832003, IP 130.180.40.131, Port 22 2025-01-07 11:52:56,675 - DEBUG - VM ctest-TestRoutersBasic-44474292-78832003 is ready for SSH connections 2025-01-07 11:52:56,675 - INFO - Waiting for VM ctest-TestRoutersBasic-44474292-17774648 to be up.. 2025-01-07 11:52:56,752 - DEBUG - VM is in ACTIVE state now 2025-01-07 11:52:56,752 - INFO - VM name : ctest-TestRoutersBasic-44474292-17774648 2025-01-07 11:52:56,826 - DEBUG - VM ctest-TestRoutersBasic-44474292-17774648 ID is 68b5d5e5-3f75-4ffd-a028-aca328202704 2025-01-07 11:52:56,827 - DEBUG - VM ctest-TestRoutersBasic-44474292-17774648 launched on Node cn-jenkins-deploy-platform-ansible-os-2549-1 2025-01-07 11:52:56,905 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/68b5d5e5-3f75-4ffd-a028-aca328202704 2025-01-07 11:52:56,914 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/bed2ad4a-52cc-4c26-841b-70bc01dab8ab 2025-01-07 11:52:58,168 - 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.69 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.905 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.905/2.296/3.687/1.391 ms') 2025-01-07 11:52:58,168 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-44474292-17774648 passed 2025-01-07 11:52:58,326 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-07 11:52:58,326 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-44474292-17774648, IP 49.91.51.67, Port 22 2025-01-07 11:52:58,482 - DEBUG - VM ctest-TestRoutersBasic-44474292-17774648 is ready for SSH connections 2025-01-07 11:52:58,482 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-07 11:52:58,482 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 49.91.51.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2025-01-07 11:52:58,482 - DEBUG - ping -s 56 -c 3 -W 1 49.91.51.67 2025-01-07 11:53:02,178 - DEBUG - PING 49.91.51.67 (49.91.51.67): 56 data bytes 64 bytes from 49.91.51.67: seq=0 ttl=62 time=5.791 ms 64 bytes from 49.91.51.67: seq=1 ttl=62 time=0.812 ms 64 bytes from 49.91.51.67: seq=2 ttl=62 time=1.316 ms --- 49.91.51.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.812/2.639/5.791 ms 2025-01-07 11:53:02,178 - INFO - Ping to IP 49.91.51.67 from VM ctest-TestRoutersBasic-44474292-78832003 passed 2025-01-07 11:53:02,179 - INFO - Deleting interface with subnet_id 6ee211c7-ce15-4ff2-939b-53533439e778, port_id None from router 7816aa0e-b494-4163-b736-3ddc1a8d0355 2025-01-07 11:53:02,419 - INFO - Deleting VM ctest-TestRoutersBasic-44474292-17774648 2025-01-07 11:53:02,515 - INFO - Deleting VM ctest-TestRoutersBasic-44474292-78832003 2025-01-07 11:53:02,602 - INFO - Deleting VN ctest-ext_vn-99696714 2025-01-07 11:53:02,671 - DEBUG - VN 75a4f0a9-4985-4762-a50c-31126f822820 still in use: Unable to complete operation on network 75a4f0a9-4985-4762-a50c-31126f822820. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-0e4c7ffd-3f58-44a8-b1f0-b2eb9bc8d339'] 2025-01-07 11:53:02,671 - WARNING - Deleting VN ctest-ext_vn-99696714 failed..Will retry 2025-01-07 11:53:04,786 - DEBUG - Response for deleting network () 2025-01-07 11:53:04,787 - INFO - Deleting VN ctest-vn-64001765 2025-01-07 11:53:04,897 - DEBUG - Response for deleting network () 2025-01-07 11:53:05,155 - DEBUG - No XMPP flaps were noticed during the test 2025-01-07 11:53:05,155 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2025-01-07 11:53:05,155 - INFO - -------------------------------------------------------------------------------- 2025-01-07 11:53:05,855 - INFO - Deleted project: ctest-TestRoutersBasic-44474292, ID : 82b98c58-0ea3-425f-8903-4b328a75837c