2024-10-19 18:24:42,090 - INFO - Domain Default found not creating 2024-10-19 18:24:42,279 - INFO - Project ctest-TestRoutersBasic-78988920 not found, creating it 2024-10-19 18:24:44,357 - INFO - Created Project:ctest-TestRoutersBasic-78988920, ID : 541a0a53-fc82-4166-924f-7d6bad5b32fc 2024-10-19 18:24:47,989 - INFO - ================================================================================ 2024-10-19 18:24:47,989 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-10-19 18:24:47,990 - 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 2024-10-19 18:24:48,250 - DEBUG - Nothing to compare xmpp stats {'10.0.0.37': {'10.20.0.8': '0'}} with 2024-10-19 18:24:48,250 - INFO - Initial checks done. Running the testcase now 2024-10-19 18:24:48,250 - INFO - 2024-10-19 18:24:49,156 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-78988920 2024-10-19 18:24:49,266 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-78988920 2024-10-19 18:24:49,622 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-78988920', 'default']} 2024-10-19 18:24:50,110 - DEBUG - Response for create_network : {'network': {'id': 'ab0aa00d-48b0-46a7-81dd-6ac2c1ad6a72', 'name': 'ctest-vn-92434490', 'tenant_id': '541a0a53fc824166924f7d6bad5b32fc', 'project_id': '541a0a53fc824166924f7d6bad5b32fc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-78988920', 'ctest-vn-92434490'], 'port_security_enabled': True, 'description': ''}} 2024-10-19 18:24:50,310 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a493d65d-2336-4286-8f97-007476a544aa', 'name': '', 'tenant_id': '541a0a53fc824166924f7d6bad5b32fc', 'network_id': 'ab0aa00d-48b0-46a7-81dd-6ac2c1ad6a72', 'ip_version': 4, 'cidr': '114.205.229.0/26', 'allocation_pools': [{'start': '114.205.229.2', 'end': '114.205.229.62'}], 'gateway_ip': '114.205.229.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '114.205.229.2', 'tags': [], 'project_id': '541a0a53fc824166924f7d6bad5b32fc'}} 2024-10-19 18:24:50,336 - INFO - Created VN ctest-vn-92434490 2024-10-19 18:24:50,394 - DEBUG - VN ctest-vn-92434490 UUID is ab0aa00d-48b0-46a7-81dd-6ac2c1ad6a72 2024-10-19 18:24:50,795 - DEBUG - Response for create_network : {'network': {'id': 'f1ec0655-8b8a-4db2-85ff-3ec249385fa2', 'name': 'ctest-ext_vn-45833500', 'tenant_id': '541a0a53fc824166924f7d6bad5b32fc', 'project_id': '541a0a53fc824166924f7d6bad5b32fc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-78988920', 'ctest-ext_vn-45833500'], 'port_security_enabled': True, 'description': ''}} 2024-10-19 18:24:51,068 - DEBUG - Response for create_subnet : {'subnet': {'id': '9a06ed64-8067-4e9b-a225-23823f99fbf1', 'name': '', 'tenant_id': '541a0a53fc824166924f7d6bad5b32fc', 'network_id': 'f1ec0655-8b8a-4db2-85ff-3ec249385fa2', 'ip_version': 4, 'cidr': '197.165.63.192/26', 'allocation_pools': [{'start': '197.165.63.194', 'end': '197.165.63.254'}], 'gateway_ip': '197.165.63.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '197.165.63.194', 'tags': [], 'project_id': '541a0a53fc824166924f7d6bad5b32fc'}} 2024-10-19 18:24:51,094 - INFO - Created VN ctest-ext_vn-45833500 2024-10-19 18:24:51,154 - DEBUG - VN ctest-ext_vn-45833500 UUID is f1ec0655-8b8a-4db2-85ff-3ec249385fa2 2024-10-19 18:24:51,371 - DEBUG - Services list from nova: [, , ] 2024-10-19 18:24:54,357 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2119-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2119-1) 2024-10-19 18:24:58,415 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2119-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2119-1) 2024-10-19 18:24:58,504 - INFO - Setting gateway for router 108ca4d2-7951-48a5-8fa5-a77fc3793d11 to network f1ec0655-8b8a-4db2-85ff-3ec249385fa2 2024-10-19 18:24:58,558 - INFO - Adding interface with subnet_id a493d65d-2336-4286-8f97-007476a544aa, port_id None to router 108ca4d2-7951-48a5-8fa5-a77fc3793d11 2024-10-19 18:24:58,916 - INFO - Waiting for VM ctest-TestRoutersBasic-78988920-39951155 to be up.. 2024-10-19 18:24:59,078 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-19 18:25:04,233 - DEBUG - VM is in ACTIVE state now 2024-10-19 18:25:04,233 - INFO - VM name : ctest-TestRoutersBasic-78988920-39951155 2024-10-19 18:25:04,390 - DEBUG - VM ctest-TestRoutersBasic-78988920-39951155 ID is d581d936-4acf-420a-bd37-ff158a3651c6 2024-10-19 18:25:04,449 - DEBUG - VM ctest-TestRoutersBasic-78988920-39951155 launched on Node cn-jenkins-deploy-platform-ansible-os-2119-1 2024-10-19 18:25:04,647 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine/d581d936-4acf-420a-bd37-ff158a3651c6 2024-10-19 18:25:05,010 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine/d581d936-4acf-420a-bd37-ff158a3651c6 2024-10-19 18:25:05,063 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine-interface/9f846928-8e08-4fde-86d8-9f2775d48a63 2024-10-19 18:25:08,346 - 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 1001ms') 2024-10-19 18:25:08,346 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-78988920-39951155 failed! 2024-10-19 18:25:08,410 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-78988920:ctest-vn-92434490 is 114.205.229.1 and allocation pool is NOT set 2024-10-19 18:25:10,483 - 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=15.6 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.43 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 = 2.426/9.021/15.617/6.595 ms') 2024-10-19 18:25:10,483 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-78988920-39951155 passed 2024-10-19 18:25:10,686 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-19 18:25:10,686 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-78988920-39951155, IP 114.205.229.3, Port 22 2024-10-19 18:25:10,756 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2024-10-19 18:25:10,946 - DEBUG - VM ctest-TestRoutersBasic-78988920-39951155 is NOT ready for SSH connections, VM status: ACTIVE 2024-10-19 18:25:15,947 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-19 18:25:15,947 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-78988920-39951155, IP 114.205.229.3, Port 22 2024-10-19 18:25:16,129 - DEBUG - VM ctest-TestRoutersBasic-78988920-39951155 is ready for SSH connections 2024-10-19 18:25:16,129 - INFO - Waiting for VM ctest-TestRoutersBasic-78988920-80697009 to be up.. 2024-10-19 18:25:16,232 - DEBUG - VM is in ACTIVE state now 2024-10-19 18:25:16,232 - INFO - VM name : ctest-TestRoutersBasic-78988920-80697009 2024-10-19 18:25:16,330 - DEBUG - VM ctest-TestRoutersBasic-78988920-80697009 ID is 1deb97d3-26bc-4ef0-9815-6980623d18c2 2024-10-19 18:25:16,330 - DEBUG - VM ctest-TestRoutersBasic-78988920-80697009 launched on Node cn-jenkins-deploy-platform-ansible-os-2119-1 2024-10-19 18:25:16,432 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine/1deb97d3-26bc-4ef0-9815-6980623d18c2 2024-10-19 18:25:16,445 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine-interface/11fe1062-25da-45da-a9a3-61ec92b6ac69 2024-10-19 18:25:17,707 - 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.25 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.573 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.573/1.909/3.246/1.336 ms') 2024-10-19 18:25:17,707 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-78988920-80697009 passed 2024-10-19 18:25:17,870 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-19 18:25:17,870 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-78988920-80697009, IP 197.165.63.195, Port 22 2024-10-19 18:25:18,040 - DEBUG - VM ctest-TestRoutersBasic-78988920-80697009 is ready for SSH connections 2024-10-19 18:25:18,040 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-19 18:25:18,041 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 197.165.63.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.37, gateway password: c0ntrail123 2024-10-19 18:25:18,041 - DEBUG - ping -s 56 -c 3 -W 1 197.165.63.195 2024-10-19 18:25:22,207 - DEBUG - PING 197.165.63.195 (197.165.63.195): 56 data bytes 64 bytes from 197.165.63.195: seq=0 ttl=62 time=8.320 ms 64 bytes from 197.165.63.195: seq=1 ttl=62 time=1.581 ms 64 bytes from 197.165.63.195: seq=2 ttl=62 time=1.144 ms --- 197.165.63.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.144/3.681/8.320 ms 2024-10-19 18:25:22,207 - INFO - Ping to IP 197.165.63.195 from VM ctest-TestRoutersBasic-78988920-39951155 passed 2024-10-19 18:25:22,207 - INFO - Deleting interface with subnet_id a493d65d-2336-4286-8f97-007476a544aa, port_id None from router 108ca4d2-7951-48a5-8fa5-a77fc3793d11 2024-10-19 18:25:22,474 - INFO - Deleting VM ctest-TestRoutersBasic-78988920-80697009 2024-10-19 18:25:22,555 - INFO - Deleting VM ctest-TestRoutersBasic-78988920-39951155 2024-10-19 18:25:22,651 - INFO - Deleting VN ctest-ext_vn-45833500 2024-10-19 18:25:22,744 - DEBUG - VN f1ec0655-8b8a-4db2-85ff-3ec249385fa2 still in use: Unable to complete operation on network f1ec0655-8b8a-4db2-85ff-3ec249385fa2. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-f8c455e5-cb46-4bf9-88a4-7c53a038f1f8'] 2024-10-19 18:25:22,744 - WARNING - Deleting VN ctest-ext_vn-45833500 failed..Will retry 2024-10-19 18:25:24,900 - DEBUG - Response for deleting network () 2024-10-19 18:25:24,900 - INFO - Deleting VN ctest-vn-92434490 2024-10-19 18:25:25,037 - DEBUG - Response for deleting network () 2024-10-19 18:25:25,313 - DEBUG - No XMPP flaps were noticed during the test
2024-10-19 18:25:25,313 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:38]
2024-10-19 18:25:25,313 - INFO - -------------------------------------------------------------------------------- 2024-10-19 18:25:26,091 - INFO - Deleted project: ctest-TestRoutersBasic-78988920, ID : 541a0a53-fc82-4166-924f-7d6bad5b32fc