2025-09-22 02:14:45,483 - INFO - Domain Default found not creating 2025-09-22 02:14:45,685 - INFO - Project ctest-TestRoutersBasic-63572216 not found, creating it 2025-09-22 02:14:46,273 - INFO - Created Project:ctest-TestRoutersBasic-63572216, ID : db61a961-6eef-4524-95fa-d8172f468067 2025-09-22 02:14:47,767 - INFO - ================================================================================ 2025-09-22 02:14:47,767 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-09-22 02:14:47,767 - 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-09-22 02:14:49,045 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0', '10.20.0.25': '0'}, '10.0.0.23': {'10.20.0.254': '0', '10.20.0.193': '0'}} with 2025-09-22 02:14:49,045 - INFO - Initial checks done. Running the testcase now 2025-09-22 02:14:49,045 - INFO - 2025-09-22 02:14:49,750 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-63572216 2025-09-22 02:14:49,813 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-63572216 2025-09-22 02:14:50,140 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-63572216', 'default']} 2025-09-22 02:14:50,547 - DEBUG - Response for create_network : {'network': {'id': 'f11bdbff-d4a7-4a67-8201-f1c5c10040ea', 'name': 'ctest-vn-98524039', 'tenant_id': 'db61a9616eef452495fad8172f468067', 'project_id': 'db61a9616eef452495fad8172f468067', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-63572216', 'ctest-vn-98524039'], 'port_security_enabled': True, 'description': ''}} 2025-09-22 02:14:50,835 - DEBUG - Response for create_subnet : {'subnet': {'id': '344ed28f-5460-4891-b997-93d9031713bb', 'name': '', 'tenant_id': 'db61a9616eef452495fad8172f468067', 'network_id': 'f11bdbff-d4a7-4a67-8201-f1c5c10040ea', 'ip_version': 4, 'cidr': '77.116.129.0/26', 'allocation_pools': [{'start': '77.116.129.2', 'end': '77.116.129.62'}], 'gateway_ip': '77.116.129.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '77.116.129.2', 'tags': [], 'project_id': 'db61a9616eef452495fad8172f468067'}} 2025-09-22 02:14:50,869 - INFO - Created VN ctest-vn-98524039 2025-09-22 02:14:50,883 - DEBUG - VN ctest-vn-98524039 UUID is f11bdbff-d4a7-4a67-8201-f1c5c10040ea 2025-09-22 02:14:51,332 - DEBUG - Response for create_network : {'network': {'id': '78bcdfc4-b825-4b7f-8e35-c562a266d7ed', 'name': 'ctest-ext_vn-36055520', 'tenant_id': 'db61a9616eef452495fad8172f468067', 'project_id': 'db61a9616eef452495fad8172f468067', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-63572216', 'ctest-ext_vn-36055520'], 'port_security_enabled': True, 'description': ''}} 2025-09-22 02:14:51,619 - DEBUG - Response for create_subnet : {'subnet': {'id': '596aa697-b630-4ee3-a3c5-2a9e91ffb3fc', 'name': '', 'tenant_id': 'db61a9616eef452495fad8172f468067', 'network_id': '78bcdfc4-b825-4b7f-8e35-c562a266d7ed', 'ip_version': 4, 'cidr': '174.71.47.128/26', 'allocation_pools': [{'start': '174.71.47.130', 'end': '174.71.47.190'}], 'gateway_ip': '174.71.47.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '174.71.47.130', 'tags': [], 'project_id': 'db61a9616eef452495fad8172f468067'}} 2025-09-22 02:14:51,642 - INFO - Created VN ctest-ext_vn-36055520 2025-09-22 02:14:51,656 - DEBUG - VN ctest-ext_vn-36055520 UUID is 78bcdfc4-b825-4b7f-8e35-c562a266d7ed 2025-09-22 02:14:51,824 - DEBUG - Services list from nova: [, , , ] 2025-09-22 02:14:52,832 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4159-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4159-2) 2025-09-22 02:14:54,115 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4159-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4159-1) 2025-09-22 02:14:54,224 - INFO - Setting gateway for router 8582ad5b-860e-4d13-ba3f-3c4d8813fe42 to network 78bcdfc4-b825-4b7f-8e35-c562a266d7ed 2025-09-22 02:14:54,291 - INFO - Adding interface with subnet_id 344ed28f-5460-4891-b997-93d9031713bb, port_id None to router 8582ad5b-860e-4d13-ba3f-3c4d8813fe42 2025-09-22 02:14:54,848 - INFO - Waiting for VM ctest-TestRoutersBasic-63572216-50337358 to be up.. 2025-09-22 02:14:55,028 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-09-22 02:15:00,120 - DEBUG - VM is in ACTIVE state now 2025-09-22 02:15:00,120 - INFO - VM name : ctest-TestRoutersBasic-63572216-50337358 2025-09-22 02:15:00,205 - DEBUG - VM ctest-TestRoutersBasic-63572216-50337358 ID is fef3123b-5d3e-4f14-9073-6c0db2fe7dbf 2025-09-22 02:15:00,228 - DEBUG - VM ctest-TestRoutersBasic-63572216-50337358 launched on Node an-jenkins-deploy-platform-ansible-os-4159-2 2025-09-22 02:15:00,307 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/fef3123b-5d3e-4f14-9073-6c0db2fe7dbf 2025-09-22 02:15:00,608 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/fef3123b-5d3e-4f14-9073-6c0db2fe7dbf 2025-09-22 02:15:00,641 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/56c58dee-c746-4ce1-95e2-c82ab57bc5b9 2025-09-22 02:15:03,801 - 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=2 ttl=63 time=4.84 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1009ms\r\nrtt min/avg/max/mdev = 4.840/4.840/4.840/0.000 ms') 2025-09-22 02:15:03,801 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-63572216-50337358 passed 2025-09-22 02:15:03,872 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-22 02:15:03,872 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-63572216-50337358, IP 77.116.129.3, Port 22 2025-09-22 02:15:04,023 - DEBUG - VM ctest-TestRoutersBasic-63572216-50337358 is ready for SSH connections 2025-09-22 02:15:04,023 - INFO - Waiting for VM ctest-TestRoutersBasic-63572216-36155120 to be up.. 2025-09-22 02:15:04,114 - DEBUG - VM is in ACTIVE state now 2025-09-22 02:15:04,114 - INFO - VM name : ctest-TestRoutersBasic-63572216-36155120 2025-09-22 02:15:04,193 - DEBUG - VM ctest-TestRoutersBasic-63572216-36155120 ID is 30c1bd6a-b7f8-45a4-9ada-4de48cc8e4a5 2025-09-22 02:15:04,193 - DEBUG - VM ctest-TestRoutersBasic-63572216-36155120 launched on Node an-jenkins-deploy-platform-ansible-os-4159-1 2025-09-22 02:15:04,267 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/30c1bd6a-b7f8-45a4-9ada-4de48cc8e4a5 2025-09-22 02:15:04,277 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/02ebbc4c-ad3d-4407-bc19-81382b3aaeb2 2025-09-22 02:15:07,451 - 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 1022ms') 2025-09-22 02:15:07,451 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-63572216-36155120 failed! 2025-09-22 02:15:07,465 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-63572216:ctest-ext_vn-36055520 is 174.71.47.129 and allocation pool is NOT set 2025-09-22 02:15:09,532 - 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=6.34 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.86 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 = 2.862/4.602/6.342/1.740 ms') 2025-09-22 02:15:09,533 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-63572216-36155120 passed 2025-09-22 02:15:09,616 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-22 02:15:09,617 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-63572216-36155120, IP 174.71.47.131, Port 22 2025-09-22 02:15:09,682 - 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': ''} 2025-09-22 02:15:09,798 - DEBUG - VM ctest-TestRoutersBasic-63572216-36155120 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-22 02:15:14,799 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-22 02:15:14,799 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-63572216-36155120, IP 174.71.47.131, Port 22 2025-09-22 02:15:14,959 - DEBUG - VM ctest-TestRoutersBasic-63572216-36155120 is ready for SSH connections 2025-09-22 02:15:14,959 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-22 02:15:14,959 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 174.71.47.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2025-09-22 02:15:14,960 - DEBUG - ping -s 56 -c 3 -W 1 174.71.47.131 2025-09-22 02:15:18,590 - DEBUG - PING 174.71.47.131 (174.71.47.131): 56 data bytes 64 bytes from 174.71.47.131: seq=0 ttl=62 time=8.610 ms 64 bytes from 174.71.47.131: seq=1 ttl=62 time=1.262 ms 64 bytes from 174.71.47.131: seq=2 ttl=62 time=1.329 ms --- 174.71.47.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.262/3.733/8.610 ms 2025-09-22 02:15:18,591 - INFO - Ping to IP 174.71.47.131 from VM ctest-TestRoutersBasic-63572216-50337358 passed 2025-09-22 02:15:18,591 - INFO - Deleting interface with subnet_id 344ed28f-5460-4891-b997-93d9031713bb, port_id None from router 8582ad5b-860e-4d13-ba3f-3c4d8813fe42 2025-09-22 02:15:19,032 - INFO - Deleting VM ctest-TestRoutersBasic-63572216-36155120 2025-09-22 02:15:19,123 - INFO - Deleting VM ctest-TestRoutersBasic-63572216-50337358 2025-09-22 02:15:19,247 - INFO - Deleting VN ctest-ext_vn-36055520 2025-09-22 02:15:19,400 - DEBUG - VN 78bcdfc4-b825-4b7f-8e35-c562a266d7ed still in use: Unable to complete operation on network 78bcdfc4-b825-4b7f-8e35-c562a266d7ed. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-45d324b9-32d7-4147-91aa-bf7833e65adf'] 2025-09-22 02:15:19,400 - WARNING - Deleting VN ctest-ext_vn-36055520 failed..Will retry 2025-09-22 02:15:21,591 - DEBUG - Response for deleting network () 2025-09-22 02:15:21,591 - INFO - Deleting VN ctest-vn-98524039 2025-09-22 02:15:21,768 - DEBUG - Response for deleting network () 2025-09-22 02:15:23,049 - DEBUG - No XMPP flaps were noticed during the test 2025-09-22 02:15:23,049 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:36] 2025-09-22 02:15:23,049 - INFO - -------------------------------------------------------------------------------- 2025-09-22 02:15:23,766 - INFO - Deleted project: ctest-TestRoutersBasic-63572216, ID : db61a961-6eef-4524-95fa-d8172f468067