2025-02-05 14:18:56,888 - INFO - Domain Default found not creating 2025-02-05 14:18:57,041 - INFO - Project ctest-TestRoutersBasic-71035984 not found, creating it 2025-02-05 14:18:57,551 - INFO - Created Project:ctest-TestRoutersBasic-71035984, ID : 88d9caf6-a1c9-44a2-938c-8b3ce5e89ca5 2025-02-05 14:18:59,006 - INFO - ================================================================================ 2025-02-05 14:18:59,007 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-02-05 14:18:59,007 - 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-02-05 14:18:59,263 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.27': '0'}} with 2025-02-05 14:18:59,263 - INFO - Initial checks done. Running the testcase now 2025-02-05 14:18:59,264 - INFO - 2025-02-05 14:18:59,975 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-71035984 2025-02-05 14:19:00,077 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-71035984 2025-02-05 14:19:00,409 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-71035984', 'default']} 2025-02-05 14:19:00,752 - DEBUG - Response for create_network : {'network': {'id': '0ea47406-80b1-4972-9487-02091964e32a', 'name': 'ctest-vn-54058283', 'tenant_id': '88d9caf6a1c944a2938c8b3ce5e89ca5', 'project_id': '88d9caf6a1c944a2938c8b3ce5e89ca5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-71035984', 'ctest-vn-54058283'], 'port_security_enabled': True, 'description': ''}} 2025-02-05 14:19:00,977 - DEBUG - Response for create_subnet : {'subnet': {'id': '701959c0-115c-4bd9-a40d-73741abed82b', 'name': '', 'tenant_id': '88d9caf6a1c944a2938c8b3ce5e89ca5', 'network_id': '0ea47406-80b1-4972-9487-02091964e32a', 'ip_version': 4, 'cidr': '184.66.115.128/26', 'allocation_pools': [{'start': '184.66.115.130', 'end': '184.66.115.190'}], 'gateway_ip': '184.66.115.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '184.66.115.130', 'tags': [], 'project_id': '88d9caf6a1c944a2938c8b3ce5e89ca5'}} 2025-02-05 14:19:00,997 - INFO - Created VN ctest-vn-54058283 2025-02-05 14:19:01,053 - DEBUG - VN ctest-vn-54058283 UUID is 0ea47406-80b1-4972-9487-02091964e32a 2025-02-05 14:19:01,389 - DEBUG - Response for create_network : {'network': {'id': '56712c68-2010-4c53-8b29-d151e504137a', 'name': 'ctest-ext_vn-01101112', 'tenant_id': '88d9caf6a1c944a2938c8b3ce5e89ca5', 'project_id': '88d9caf6a1c944a2938c8b3ce5e89ca5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-71035984', 'ctest-ext_vn-01101112'], 'port_security_enabled': True, 'description': ''}} 2025-02-05 14:19:01,544 - DEBUG - Response for create_subnet : {'subnet': {'id': '1eff657f-97f3-425c-81f1-3a9fc16e0b38', 'name': '', 'tenant_id': '88d9caf6a1c944a2938c8b3ce5e89ca5', 'network_id': '56712c68-2010-4c53-8b29-d151e504137a', 'ip_version': 4, 'cidr': '163.164.239.0/26', 'allocation_pools': [{'start': '163.164.239.2', 'end': '163.164.239.62'}], 'gateway_ip': '163.164.239.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '163.164.239.2', 'tags': [], 'project_id': '88d9caf6a1c944a2938c8b3ce5e89ca5'}} 2025-02-05 14:19:01,563 - INFO - Created VN ctest-ext_vn-01101112 2025-02-05 14:19:01,621 - DEBUG - VN ctest-ext_vn-01101112 UUID is 56712c68-2010-4c53-8b29-d151e504137a 2025-02-05 14:19:01,808 - DEBUG - Services list from nova: [, , ] 2025-02-05 14:19:02,910 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2692-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2692-1) 2025-02-05 14:19:04,151 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2692-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2692-1) 2025-02-05 14:19:04,242 - INFO - Setting gateway for router b401e072-6df7-423d-905a-b1947994f8f2 to network 56712c68-2010-4c53-8b29-d151e504137a 2025-02-05 14:19:04,295 - INFO - Adding interface with subnet_id 701959c0-115c-4bd9-a40d-73741abed82b, port_id None to router b401e072-6df7-423d-905a-b1947994f8f2 2025-02-05 14:19:04,534 - INFO - Waiting for VM ctest-TestRoutersBasic-71035984-10268031 to be up.. 2025-02-05 14:19:04,628 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-02-05 14:19:09,725 - DEBUG - VM is in ACTIVE state now 2025-02-05 14:19:09,725 - INFO - VM name : ctest-TestRoutersBasic-71035984-10268031 2025-02-05 14:19:09,829 - DEBUG - VM ctest-TestRoutersBasic-71035984-10268031 ID is de205a96-d240-4f58-93fe-b7fb72b4f21b 2025-02-05 14:19:09,854 - DEBUG - VM ctest-TestRoutersBasic-71035984-10268031 launched on Node cn-jenkins-deploy-platform-ansible-os-2692-1 2025-02-05 14:19:09,942 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/de205a96-d240-4f58-93fe-b7fb72b4f21b 2025-02-05 14:19:10,249 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/de205a96-d240-4f58-93fe-b7fb72b4f21b 2025-02-05 14:19:10,293 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/ece3d319-c435-4948-968b-aea5e335ff8d 2025-02-05 14:19:13,562 - 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 1017ms') 2025-02-05 14:19:13,562 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-71035984-10268031 failed! 2025-02-05 14:19:13,617 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-71035984:ctest-vn-54058283 is 184.66.115.129 and allocation pool is NOT set 2025-02-05 14:19:15,680 - 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=4.32 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.03 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 = 1.032/2.675/4.319/1.643 ms') 2025-02-05 14:19:15,681 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-71035984-10268031 passed 2025-02-05 14:19:15,797 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-05 14:19:15,797 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-71035984-10268031, IP 184.66.115.131, Port 22 2025-02-05 14:19:15,961 - DEBUG - VM ctest-TestRoutersBasic-71035984-10268031 is ready for SSH connections 2025-02-05 14:19:15,961 - INFO - Waiting for VM ctest-TestRoutersBasic-71035984-62574845 to be up.. 2025-02-05 14:19:16,049 - DEBUG - VM is in ACTIVE state now 2025-02-05 14:19:16,049 - INFO - VM name : ctest-TestRoutersBasic-71035984-62574845 2025-02-05 14:19:16,129 - DEBUG - VM ctest-TestRoutersBasic-71035984-62574845 ID is fcc5cd36-174f-45e8-a333-7e5b36ee60c4 2025-02-05 14:19:16,129 - DEBUG - VM ctest-TestRoutersBasic-71035984-62574845 launched on Node cn-jenkins-deploy-platform-ansible-os-2692-1 2025-02-05 14:19:16,212 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/fcc5cd36-174f-45e8-a333-7e5b36ee60c4 2025-02-05 14:19:16,223 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/683a67a5-0cb7-47e1-b6c4-93f56c023f89 2025-02-05 14:19:17,472 - 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.74 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.17 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 = 2.168/2.953/3.739/0.785 ms') 2025-02-05 14:19:17,472 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-71035984-62574845 passed 2025-02-05 14:19:17,629 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-05 14:19:17,629 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-71035984-62574845, IP 163.164.239.3, Port 22 2025-02-05 14:19:17,695 - 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-02-05 14:19:17,791 - DEBUG - VM ctest-TestRoutersBasic-71035984-62574845 is NOT ready for SSH connections, VM status: ACTIVE 2025-02-05 14:19:22,792 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-05 14:19:22,792 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-71035984-62574845, IP 163.164.239.3, Port 22 2025-02-05 14:19:22,959 - DEBUG - VM ctest-TestRoutersBasic-71035984-62574845 is ready for SSH connections 2025-02-05 14:19:22,959 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-05 14:19:22,959 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 163.164.239.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-02-05 14:19:22,959 - DEBUG - ping -s 56 -c 3 -W 1 163.164.239.3 2025-02-05 14:19:26,972 - DEBUG - PING 163.164.239.3 (163.164.239.3): 56 data bytes 64 bytes from 163.164.239.3: seq=0 ttl=62 time=6.031 ms 64 bytes from 163.164.239.3: seq=1 ttl=62 time=1.207 ms 64 bytes from 163.164.239.3: seq=2 ttl=62 time=0.887 ms --- 163.164.239.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.887/2.708/6.031 ms 2025-02-05 14:19:26,972 - INFO - Ping to IP 163.164.239.3 from VM ctest-TestRoutersBasic-71035984-10268031 passed 2025-02-05 14:19:26,972 - INFO - Deleting interface with subnet_id 701959c0-115c-4bd9-a40d-73741abed82b, port_id None from router b401e072-6df7-423d-905a-b1947994f8f2 2025-02-05 14:19:27,186 - INFO - Deleting VM ctest-TestRoutersBasic-71035984-62574845 2025-02-05 14:19:27,285 - INFO - Deleting VM ctest-TestRoutersBasic-71035984-10268031 2025-02-05 14:19:27,367 - INFO - Deleting VN ctest-ext_vn-01101112 2025-02-05 14:19:27,446 - DEBUG - VN 56712c68-2010-4c53-8b29-d151e504137a still in use: Unable to complete operation on network 56712c68-2010-4c53-8b29-d151e504137a. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-2ba8b9f6-9af9-4d07-958b-f88eee90b6a2'] 2025-02-05 14:19:27,447 - WARNING - Deleting VN ctest-ext_vn-01101112 failed..Will retry 2025-02-05 14:19:29,564 - DEBUG - Response for deleting network () 2025-02-05 14:19:29,564 - INFO - Deleting VN ctest-vn-54058283 2025-02-05 14:19:29,678 - DEBUG - Response for deleting network () 2025-02-05 14:19:29,942 - DEBUG - No XMPP flaps were noticed during the test 2025-02-05 14:19:29,942 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:30] 2025-02-05 14:19:29,942 - INFO - -------------------------------------------------------------------------------- 2025-02-05 14:19:30,629 - INFO - Deleted project: ctest-TestRoutersBasic-71035984, ID : 88d9caf6-a1c9-44a2-938c-8b3ce5e89ca5