2025-08-26 16:22:01,610 - INFO - Domain Default found not creating 2025-08-26 16:22:01,742 - INFO - Project ctest-TestRoutersBasic-63442256 not found, creating it 2025-08-26 16:22:02,165 - INFO - Created Project:ctest-TestRoutersBasic-63442256, ID : ce5d817b-1745-40df-a44e-dcc70c1957ee 2025-08-26 16:22:03,631 - INFO - ================================================================================ 2025-08-26 16:22:03,632 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-08-26 16:22:03,632 - 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-08-26 16:22:03,891 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-08-26 16:22:03,891 - INFO - Initial checks done. Running the testcase now 2025-08-26 16:22:03,891 - INFO - 2025-08-26 16:22:04,661 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-63442256 2025-08-26 16:22:04,758 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-63442256 2025-08-26 16:22:05,090 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-63442256', 'default']} 2025-08-26 16:22:05,377 - DEBUG - Response for create_network : {'network': {'id': '9dc0ba5a-1a9e-40f5-8689-54f203707aab', 'name': 'ctest-vn-50022150', 'tenant_id': 'ce5d817b174540dfa44edcc70c1957ee', 'project_id': 'ce5d817b174540dfa44edcc70c1957ee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-63442256', 'ctest-vn-50022150'], 'port_security_enabled': True, 'description': ''}} 2025-08-26 16:22:05,551 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f900829f-d124-46fd-8189-14af979406f7', 'name': '', 'tenant_id': 'ce5d817b174540dfa44edcc70c1957ee', 'network_id': '9dc0ba5a-1a9e-40f5-8689-54f203707aab', 'ip_version': 4, 'cidr': '191.158.90.0/26', 'allocation_pools': [{'start': '191.158.90.2', 'end': '191.158.90.62'}], 'gateway_ip': '191.158.90.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '191.158.90.2', 'tags': [], 'project_id': 'ce5d817b174540dfa44edcc70c1957ee'}} 2025-08-26 16:22:05,567 - INFO - Created VN ctest-vn-50022150 2025-08-26 16:22:05,618 - DEBUG - VN ctest-vn-50022150 UUID is 9dc0ba5a-1a9e-40f5-8689-54f203707aab 2025-08-26 16:22:05,947 - DEBUG - Response for create_network : {'network': {'id': 'aa67702d-9562-4757-95c4-12212ff01fc0', 'name': 'ctest-ext_vn-90944798', 'tenant_id': 'ce5d817b174540dfa44edcc70c1957ee', 'project_id': 'ce5d817b174540dfa44edcc70c1957ee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-63442256', 'ctest-ext_vn-90944798'], 'port_security_enabled': True, 'description': ''}} 2025-08-26 16:22:06,133 - DEBUG - Response for create_subnet : {'subnet': {'id': '0537fcbd-617b-4086-ada2-7f902ec66855', 'name': '', 'tenant_id': 'ce5d817b174540dfa44edcc70c1957ee', 'network_id': 'aa67702d-9562-4757-95c4-12212ff01fc0', 'ip_version': 4, 'cidr': '22.88.192.192/26', 'allocation_pools': [{'start': '22.88.192.194', 'end': '22.88.192.254'}], 'gateway_ip': '22.88.192.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22.88.192.194', 'tags': [], 'project_id': 'ce5d817b174540dfa44edcc70c1957ee'}} 2025-08-26 16:22:06,150 - INFO - Created VN ctest-ext_vn-90944798 2025-08-26 16:22:06,202 - DEBUG - VN ctest-ext_vn-90944798 UUID is aa67702d-9562-4757-95c4-12212ff01fc0 2025-08-26 16:22:06,400 - DEBUG - Services list from nova: [, , ] 2025-08-26 16:22:07,451 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3942-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3942-1) 2025-08-26 16:22:08,637 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3942-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3942-1) 2025-08-26 16:22:08,711 - INFO - Setting gateway for router 80ae28d4-7556-41ac-aeb2-15127d987b85 to network aa67702d-9562-4757-95c4-12212ff01fc0 2025-08-26 16:22:08,763 - INFO - Adding interface with subnet_id f900829f-d124-46fd-8189-14af979406f7, port_id None to router 80ae28d4-7556-41ac-aeb2-15127d987b85 2025-08-26 16:22:09,130 - INFO - Waiting for VM ctest-TestRoutersBasic-63442256-56373957 to be up.. 2025-08-26 16:22:09,261 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-26 16:22:14,334 - DEBUG - VM is in ACTIVE state now 2025-08-26 16:22:14,334 - INFO - VM name : ctest-TestRoutersBasic-63442256-56373957 2025-08-26 16:22:14,403 - DEBUG - VM ctest-TestRoutersBasic-63442256-56373957 ID is 422fbcdc-ef6c-4632-ac34-584089806348 2025-08-26 16:22:14,420 - DEBUG - VM ctest-TestRoutersBasic-63442256-56373957 launched on Node cn-jenkins-deploy-platform-ansible-os-3942-1 2025-08-26 16:22:14,486 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/422fbcdc-ef6c-4632-ac34-584089806348 2025-08-26 16:22:14,823 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/422fbcdc-ef6c-4632-ac34-584089806348 2025-08-26 16:22:14,857 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/f20f91a6-c47a-4f28-ae5e-b9a3b5cbb9c6 2025-08-26 16:22:18,112 - 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 1013ms') 2025-08-26 16:22:18,112 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-63442256-56373957 failed! 2025-08-26 16:22:18,166 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-63442256:ctest-vn-50022150 is 191.158.90.1 and allocation pool is NOT set 2025-08-26 16:22:20,225 - 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.38 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.448 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.448/1.913/3.379/1.465 ms') 2025-08-26 16:22:20,225 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-63442256-56373957 passed 2025-08-26 16:22:20,381 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-26 16:22:20,381 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-63442256-56373957, IP 191.158.90.3, Port 22 2025-08-26 16:22:20,545 - DEBUG - VM ctest-TestRoutersBasic-63442256-56373957 is ready for SSH connections 2025-08-26 16:22:20,545 - INFO - Waiting for VM ctest-TestRoutersBasic-63442256-83480084 to be up.. 2025-08-26 16:22:20,614 - DEBUG - VM is in ACTIVE state now 2025-08-26 16:22:20,614 - INFO - VM name : ctest-TestRoutersBasic-63442256-83480084 2025-08-26 16:22:20,680 - DEBUG - VM ctest-TestRoutersBasic-63442256-83480084 ID is 5304630f-5e50-4761-9058-019d919c25b1 2025-08-26 16:22:20,680 - DEBUG - VM ctest-TestRoutersBasic-63442256-83480084 launched on Node cn-jenkins-deploy-platform-ansible-os-3942-1 2025-08-26 16:22:20,751 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/5304630f-5e50-4761-9058-019d919c25b1 2025-08-26 16:22:20,758 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/2a15478d-c8fa-4819-80f5-7b63cc23dd9a 2025-08-26 16:22:21,996 - 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=5.42 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=3.07 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.073/4.248/5.423/1.175 ms') 2025-08-26 16:22:21,996 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-63442256-83480084 passed 2025-08-26 16:22:22,146 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-26 16:22:22,146 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-63442256-83480084, IP 22.88.192.195, Port 22 2025-08-26 16:22:22,216 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-08-26 16:22:22,285 - DEBUG - VM ctest-TestRoutersBasic-63442256-83480084 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-26 16:22:27,286 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-26 16:22:27,286 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-63442256-83480084, IP 22.88.192.195, Port 22 2025-08-26 16:22:27,445 - DEBUG - VM ctest-TestRoutersBasic-63442256-83480084 is ready for SSH connections 2025-08-26 16:22:27,445 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-26 16:22:27,445 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 22.88.192.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-08-26 16:22:27,445 - DEBUG - ping -s 56 -c 3 -W 1 22.88.192.195 2025-08-26 16:22:31,199 - DEBUG - PING 22.88.192.195 (22.88.192.195): 56 data bytes 64 bytes from 22.88.192.195: seq=0 ttl=62 time=5.693 ms 64 bytes from 22.88.192.195: seq=1 ttl=62 time=0.907 ms 64 bytes from 22.88.192.195: seq=2 ttl=62 time=0.788 ms --- 22.88.192.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.788/2.462/5.693 ms 2025-08-26 16:22:31,200 - INFO - Ping to IP 22.88.192.195 from VM ctest-TestRoutersBasic-63442256-56373957 passed 2025-08-26 16:22:31,200 - INFO - Deleting interface with subnet_id f900829f-d124-46fd-8189-14af979406f7, port_id None from router 80ae28d4-7556-41ac-aeb2-15127d987b85 2025-08-26 16:22:31,358 - INFO - Deleting VM ctest-TestRoutersBasic-63442256-83480084 2025-08-26 16:22:31,425 - INFO - Deleting VM ctest-TestRoutersBasic-63442256-56373957 2025-08-26 16:22:31,512 - INFO - Deleting VN ctest-ext_vn-90944798 2025-08-26 16:22:31,579 - DEBUG - VN aa67702d-9562-4757-95c4-12212ff01fc0 still in use: Unable to complete operation on network aa67702d-9562-4757-95c4-12212ff01fc0. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-d810264d-73d4-41b3-877f-db1e1d1189c8'] 2025-08-26 16:22:31,579 - WARNING - Deleting VN ctest-ext_vn-90944798 failed..Will retry 2025-08-26 16:22:33,668 - DEBUG - Response for deleting network () 2025-08-26 16:22:33,668 - INFO - Deleting VN ctest-vn-50022150 2025-08-26 16:22:33,753 - DEBUG - Response for deleting network () 2025-08-26 16:22:34,010 - DEBUG - No XMPP flaps were noticed during the test 2025-08-26 16:22:34,011 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31] 2025-08-26 16:22:34,011 - INFO - -------------------------------------------------------------------------------- 2025-08-26 16:22:34,716 - INFO - Deleted project: ctest-TestRoutersBasic-63442256, ID : ce5d817b-1745-40df-a44e-dcc70c1957ee