2025-01-09 02:16:26,915 - INFO - Domain Default found not creating 2025-01-09 02:16:27,084 - INFO - Project ctest-TestRoutersBasic-22210124 not found, creating it 2025-01-09 02:16:27,584 - INFO - Created Project:ctest-TestRoutersBasic-22210124, ID : 6fcda140-ac1f-4b3c-b5db-fe52f0969c20 2025-01-09 02:16:29,031 - INFO - ================================================================================ 2025-01-09 02:16:29,031 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-01-09 02:16:29,031 - 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-09 02:16:29,290 - DEBUG - Nothing to compare xmpp stats {'10.0.0.53': {'10.0.0.53': '0'}} with 2025-01-09 02:16:29,290 - INFO - Initial checks done. Running the testcase now 2025-01-09 02:16:29,290 - INFO - 2025-01-09 02:16:30,015 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-22210124 2025-01-09 02:16:30,115 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-22210124 2025-01-09 02:16:30,450 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-22210124', 'default']} 2025-01-09 02:16:30,746 - DEBUG - Response for create_network : {'network': {'id': '778ec837-61ef-4ff1-b837-3cc8af2bbb28', 'name': 'ctest-vn-93670913', 'tenant_id': '6fcda140ac1f4b3cb5dbfe52f0969c20', 'project_id': '6fcda140ac1f4b3cb5dbfe52f0969c20', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-22210124', 'ctest-vn-93670913'], 'port_security_enabled': True, 'description': ''}} 2025-01-09 02:16:30,975 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a72dc981-0c3a-4351-a3ae-a2fb6807aecc', 'name': '', 'tenant_id': '6fcda140ac1f4b3cb5dbfe52f0969c20', 'network_id': '778ec837-61ef-4ff1-b837-3cc8af2bbb28', 'ip_version': 4, 'cidr': '128.208.82.192/26', 'allocation_pools': [{'start': '128.208.82.194', 'end': '128.208.82.254'}], 'gateway_ip': '128.208.82.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '128.208.82.194', 'tags': [], 'project_id': '6fcda140ac1f4b3cb5dbfe52f0969c20'}} 2025-01-09 02:16:30,995 - INFO - Created VN ctest-vn-93670913 2025-01-09 02:16:31,051 - DEBUG - VN ctest-vn-93670913 UUID is 778ec837-61ef-4ff1-b837-3cc8af2bbb28 2025-01-09 02:16:31,400 - DEBUG - Response for create_network : {'network': {'id': '01711c79-a4b2-4867-9534-9efbed1c7503', 'name': 'ctest-ext_vn-81901881', 'tenant_id': '6fcda140ac1f4b3cb5dbfe52f0969c20', 'project_id': '6fcda140ac1f4b3cb5dbfe52f0969c20', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-22210124', 'ctest-ext_vn-81901881'], 'port_security_enabled': True, 'description': ''}} 2025-01-09 02:16:31,624 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e0cb92a8-4eaa-41a2-a7db-5469d0da1fde', 'name': '', 'tenant_id': '6fcda140ac1f4b3cb5dbfe52f0969c20', 'network_id': '01711c79-a4b2-4867-9534-9efbed1c7503', 'ip_version': 4, 'cidr': '71.26.113.128/26', 'allocation_pools': [{'start': '71.26.113.130', 'end': '71.26.113.190'}], 'gateway_ip': '71.26.113.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '71.26.113.130', 'tags': [], 'project_id': '6fcda140ac1f4b3cb5dbfe52f0969c20'}} 2025-01-09 02:16:31,648 - INFO - Created VN ctest-ext_vn-81901881 2025-01-09 02:16:31,702 - DEBUG - VN ctest-ext_vn-81901881 UUID is 01711c79-a4b2-4867-9534-9efbed1c7503 2025-01-09 02:16:31,871 - DEBUG - Services list from nova: [, , ] 2025-01-09 02:16:33,015 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2573-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2573-1) 2025-01-09 02:16:34,282 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2573-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2573-1) 2025-01-09 02:16:34,368 - INFO - Setting gateway for router 62e6ffb7-faf6-44e0-a555-a4dfd6c7b0a7 to network 01711c79-a4b2-4867-9534-9efbed1c7503 2025-01-09 02:16:34,427 - INFO - Adding interface with subnet_id a72dc981-0c3a-4351-a3ae-a2fb6807aecc, port_id None to router 62e6ffb7-faf6-44e0-a555-a4dfd6c7b0a7 2025-01-09 02:16:34,923 - INFO - Waiting for VM ctest-TestRoutersBasic-22210124-18776362 to be up.. 2025-01-09 02:16:35,081 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-09 02:16:40,189 - DEBUG - VM is in ACTIVE state now 2025-01-09 02:16:40,189 - INFO - VM name : ctest-TestRoutersBasic-22210124-18776362 2025-01-09 02:16:40,276 - DEBUG - VM ctest-TestRoutersBasic-22210124-18776362 ID is 74e3130d-59d2-4d83-8468-56244811b171 2025-01-09 02:16:40,301 - DEBUG - VM ctest-TestRoutersBasic-22210124-18776362 launched on Node cn-jenkins-deploy-platform-ansible-os-2573-1. 2025-01-09 02:16:40,388 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-machine/74e3130d-59d2-4d83-8468-56244811b171 2025-01-09 02:16:40,687 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-machine/74e3130d-59d2-4d83-8468-56244811b171 2025-01-09 02:16:40,722 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-machine-interface/1919a1fc-f577-4114-9a9d-d2d3d8aca662 2025-01-09 02:16:43,979 - 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 1014ms') 2025-01-09 02:16:43,979 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-22210124-18776362 failed! 2025-01-09 02:16:44,039 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-22210124:ctest-vn-93670913 is 128.208.82.193 and allocation pool is NOT set 2025-01-09 02:16:46,097 - 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.95 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.473 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.473/1.713/2.954/1.240 ms') 2025-01-09 02:16:46,097 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-22210124-18776362 passed 2025-01-09 02:16:46,255 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-09 02:16:46,255 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-22210124-18776362, IP 128.208.82.195, Port 22 2025-01-09 02:16:46,418 - DEBUG - VM ctest-TestRoutersBasic-22210124-18776362 is ready for SSH connections 2025-01-09 02:16:46,419 - INFO - Waiting for VM ctest-TestRoutersBasic-22210124-07449197 to be up.. 2025-01-09 02:16:46,504 - DEBUG - VM is in ACTIVE state now 2025-01-09 02:16:46,504 - INFO - VM name : ctest-TestRoutersBasic-22210124-07449197 2025-01-09 02:16:46,588 - DEBUG - VM ctest-TestRoutersBasic-22210124-07449197 ID is 8ff2899b-6685-4073-ad1d-303cbe9b4c99 2025-01-09 02:16:46,588 - DEBUG - VM ctest-TestRoutersBasic-22210124-07449197 launched on Node cn-jenkins-deploy-platform-ansible-os-2573-1. 2025-01-09 02:16:46,673 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-machine/8ff2899b-6685-4073-ad1d-303cbe9b4c99 2025-01-09 02:16:46,683 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-machine-interface/a4c19e16-ec91-479b-9941-ed350da62504 2025-01-09 02:16:47,932 - 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.93 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.507 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.507/1.717/2.927/1.210 ms') 2025-01-09 02:16:47,932 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-22210124-07449197 passed 2025-01-09 02:16:48,087 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-09 02:16:48,087 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-22210124-07449197, IP 71.26.113.131, Port 22 2025-01-09 02:16:48,253 - DEBUG - VM ctest-TestRoutersBasic-22210124-07449197 is ready for SSH connections 2025-01-09 02:16:48,253 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-09 02:16:48,253 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 71.26.113.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.53, gateway password: c0ntrail123 2025-01-09 02:16:48,253 - DEBUG - ping -s 56 -c 3 -W 1 71.26.113.131 2025-01-09 02:16:51,931 - DEBUG - PING 71.26.113.131 (71.26.113.131): 56 data bytes 64 bytes from 71.26.113.131: seq=0 ttl=62 time=6.057 ms 64 bytes from 71.26.113.131: seq=1 ttl=62 time=0.838 ms 64 bytes from 71.26.113.131: seq=2 ttl=62 time=1.391 ms --- 71.26.113.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.838/2.762/6.057 ms 2025-01-09 02:16:51,931 - INFO - Ping to IP 71.26.113.131 from VM ctest-TestRoutersBasic-22210124-18776362 passed 2025-01-09 02:16:51,931 - INFO - Deleting interface with subnet_id a72dc981-0c3a-4351-a3ae-a2fb6807aecc, port_id None from router 62e6ffb7-faf6-44e0-a555-a4dfd6c7b0a7 2025-01-09 02:16:52,144 - INFO - Deleting VM ctest-TestRoutersBasic-22210124-07449197 2025-01-09 02:16:52,232 - INFO - Deleting VM ctest-TestRoutersBasic-22210124-18776362 2025-01-09 02:16:52,313 - INFO - Deleting VN ctest-ext_vn-81901881 2025-01-09 02:16:52,400 - DEBUG - VN 01711c79-a4b2-4867-9534-9efbed1c7503 still in use: Unable to complete operation on network 01711c79-a4b2-4867-9534-9efbed1c7503. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-fc156b22-b20c-4cfe-8b85-2aea0d1e06b4'] 2025-01-09 02:16:52,400 - WARNING - Deleting VN ctest-ext_vn-81901881 failed..Will retry 2025-01-09 02:16:54,531 - DEBUG - Response for deleting network () 2025-01-09 02:16:54,531 - INFO - Deleting VN ctest-vn-93670913 2025-01-09 02:16:54,653 - DEBUG - Response for deleting network () 2025-01-09 02:16:54,908 - DEBUG - No XMPP flaps were noticed during the test
2025-01-09 02:16:54,909 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:25]
2025-01-09 02:16:54,909 - INFO - -------------------------------------------------------------------------------- 2025-01-09 02:16:55,570 - INFO - Deleted project: ctest-TestRoutersBasic-22210124, ID : 6fcda140-ac1f-4b3c-b5db-fe52f0969c20