2025-04-28 15:44:47,739 - INFO - Domain Default found not creating 2025-04-28 15:44:48,167 - INFO - Project ctest-TestRoutersBasic-49408370 not found, creating it 2025-04-28 15:44:48,889 - INFO - Created Project:ctest-TestRoutersBasic-49408370, ID : 2ffe2ffd-041e-440a-b97e-db619985cda3 2025-04-28 15:44:51,189 - INFO - ================================================================================ 2025-04-28 15:44:51,189 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-04-28 15:44:51,190 - 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-04-28 15:44:51,519 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.17': '0'}} with 2025-04-28 15:44:51,519 - INFO - Initial checks done. Running the testcase now 2025-04-28 15:44:51,519 - INFO - 2025-04-28 15:44:52,522 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-49408370 2025-04-28 15:44:52,639 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-49408370 2025-04-28 15:44:53,031 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-49408370', 'default']} 2025-04-28 15:44:53,428 - DEBUG - Response for create_network : {'network': {'id': '28d59cb1-97e2-4514-966f-8773f74d965b', 'name': 'ctest-vn-70909896', 'tenant_id': '2ffe2ffd041e440ab97edb619985cda3', 'project_id': '2ffe2ffd041e440ab97edb619985cda3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-49408370', 'ctest-vn-70909896'], 'port_security_enabled': True, 'description': ''}} 2025-04-28 15:44:53,688 - DEBUG - Response for create_subnet : {'subnet': {'id': '18cf0c96-b431-4caa-9f3d-c80001954d20', 'name': '', 'tenant_id': '2ffe2ffd041e440ab97edb619985cda3', 'network_id': '28d59cb1-97e2-4514-966f-8773f74d965b', 'ip_version': 4, 'cidr': '85.53.108.0/26', 'allocation_pools': [{'start': '85.53.108.2', 'end': '85.53.108.62'}], 'gateway_ip': '85.53.108.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '85.53.108.2', 'tags': [], 'project_id': '2ffe2ffd041e440ab97edb619985cda3'}} 2025-04-28 15:44:53,720 - INFO - Created VN ctest-vn-70909896 2025-04-28 15:44:53,779 - DEBUG - VN ctest-vn-70909896 UUID is 28d59cb1-97e2-4514-966f-8773f74d965b 2025-04-28 15:44:54,157 - DEBUG - Response for create_network : {'network': {'id': 'c7060989-2714-48dd-915f-6a131e8b2d95', 'name': 'ctest-ext_vn-28420447', 'tenant_id': '2ffe2ffd041e440ab97edb619985cda3', 'project_id': '2ffe2ffd041e440ab97edb619985cda3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-49408370', 'ctest-ext_vn-28420447'], 'port_security_enabled': True, 'description': ''}} 2025-04-28 15:44:54,409 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f56577dc-9fbb-4e3f-9805-74919db920f9', 'name': '', 'tenant_id': '2ffe2ffd041e440ab97edb619985cda3', 'network_id': 'c7060989-2714-48dd-915f-6a131e8b2d95', 'ip_version': 4, 'cidr': '83.165.253.192/26', 'allocation_pools': [{'start': '83.165.253.194', 'end': '83.165.253.254'}], 'gateway_ip': '83.165.253.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '83.165.253.194', 'tags': [], 'project_id': '2ffe2ffd041e440ab97edb619985cda3'}} 2025-04-28 15:44:54,443 - INFO - Created VN ctest-ext_vn-28420447 2025-04-28 15:44:54,507 - DEBUG - VN ctest-ext_vn-28420447 UUID is c7060989-2714-48dd-915f-6a131e8b2d95 2025-04-28 15:44:54,833 - DEBUG - Services list from nova: [, , ] 2025-04-28 15:44:56,495 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3238-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3238-1) 2025-04-28 15:44:58,135 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3238-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3238-1) 2025-04-28 15:44:58,232 - INFO - Setting gateway for router 03c5f6ba-2629-469a-8012-1e1ffb1afc78 to network c7060989-2714-48dd-915f-6a131e8b2d95 2025-04-28 15:44:58,285 - INFO - Adding interface with subnet_id 18cf0c96-b431-4caa-9f3d-c80001954d20, port_id None to router 03c5f6ba-2629-469a-8012-1e1ffb1afc78 2025-04-28 15:44:58,575 - INFO - Waiting for VM ctest-TestRoutersBasic-49408370-77974123 to be up.. 2025-04-28 15:44:58,715 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-28 15:45:03,866 - DEBUG - VM is in ACTIVE state now 2025-04-28 15:45:03,866 - INFO - VM name : ctest-TestRoutersBasic-49408370-77974123 2025-04-28 15:45:03,999 - DEBUG - VM ctest-TestRoutersBasic-49408370-77974123 ID is 5bb7907f-a83b-47ff-b7e2-24ac2ca9be68 2025-04-28 15:45:04,042 - DEBUG - VM ctest-TestRoutersBasic-49408370-77974123 launched on Node cn-jenkins-deploy-platform-ansible-os-3238-1 2025-04-28 15:45:04,215 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine/5bb7907f-a83b-47ff-b7e2-24ac2ca9be68 2025-04-28 15:45:04,582 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine/5bb7907f-a83b-47ff-b7e2-24ac2ca9be68 2025-04-28 15:45:04,627 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine-interface/f6b4effb-02ab-40e3-ac90-0a87b85e2c12 2025-04-28 15:45:07,977 - 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 1016ms') 2025-04-28 15:45:07,977 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-49408370-77974123 failed! 2025-04-28 15:45:08,049 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-49408370:ctest-vn-70909896 is 85.53.108.1 and allocation pool is NOT set 2025-04-28 15:45:10,122 - 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.37 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.10 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.096/3.232/4.368/1.136 ms') 2025-04-28 15:45:10,122 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-49408370-77974123 passed 2025-04-28 15:45:10,312 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-28 15:45:10,312 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-49408370-77974123, IP 85.53.108.3, Port 22 2025-04-28 15:45:10,393 - 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-04-28 15:45:10,556 - DEBUG - VM ctest-TestRoutersBasic-49408370-77974123 is NOT ready for SSH connections, VM status: ACTIVE 2025-04-28 15:45:15,557 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-28 15:45:15,558 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-49408370-77974123, IP 85.53.108.3, Port 22 2025-04-28 15:45:15,760 - DEBUG - VM ctest-TestRoutersBasic-49408370-77974123 is ready for SSH connections 2025-04-28 15:45:15,760 - INFO - Waiting for VM ctest-TestRoutersBasic-49408370-49592502 to be up.. 2025-04-28 15:45:15,891 - DEBUG - VM is in ACTIVE state now 2025-04-28 15:45:15,892 - INFO - VM name : ctest-TestRoutersBasic-49408370-49592502 2025-04-28 15:45:16,030 - DEBUG - VM ctest-TestRoutersBasic-49408370-49592502 ID is 0cb440b0-d473-4e85-857e-23809c34cad3 2025-04-28 15:45:16,031 - DEBUG - VM ctest-TestRoutersBasic-49408370-49592502 launched on Node cn-jenkins-deploy-platform-ansible-os-3238-1 2025-04-28 15:45:16,212 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine/0cb440b0-d473-4e85-857e-23809c34cad3 2025-04-28 15:45:16,238 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine-interface/b70a52e1-a221-4d03-86bd-fd2e8de29c4a 2025-04-28 15:45:17,605 - 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=10.7 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.914 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.914/5.820/10.726/4.906 ms') 2025-04-28 15:45:17,607 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-49408370-49592502 passed 2025-04-28 15:45:17,809 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-28 15:45:17,810 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-49408370-49592502, IP 83.165.253.195, Port 22 2025-04-28 15:45:18,021 - DEBUG - VM ctest-TestRoutersBasic-49408370-49592502 is ready for SSH connections 2025-04-28 15:45:18,021 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-28 15:45:18,022 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 83.165.253.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.130, gateway password: c0ntrail123 2025-04-28 15:45:18,022 - DEBUG - ping -s 56 -c 3 -W 1 83.165.253.195 2025-04-28 15:45:22,227 - DEBUG - PING 83.165.253.195 (83.165.253.195): 56 data bytes 64 bytes from 83.165.253.195: seq=0 ttl=62 time=8.081 ms 64 bytes from 83.165.253.195: seq=1 ttl=62 time=1.556 ms 64 bytes from 83.165.253.195: seq=2 ttl=62 time=1.897 ms --- 83.165.253.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.556/3.844/8.081 ms 2025-04-28 15:45:22,227 - INFO - Ping to IP 83.165.253.195 from VM ctest-TestRoutersBasic-49408370-77974123 passed 2025-04-28 15:45:22,228 - INFO - Deleting interface with subnet_id 18cf0c96-b431-4caa-9f3d-c80001954d20, port_id None from router 03c5f6ba-2629-469a-8012-1e1ffb1afc78 2025-04-28 15:45:22,640 - INFO - Deleting VM ctest-TestRoutersBasic-49408370-49592502 2025-04-28 15:45:22,724 - INFO - Deleting VM ctest-TestRoutersBasic-49408370-77974123 2025-04-28 15:45:22,828 - INFO - Deleting VN ctest-ext_vn-28420447 2025-04-28 15:45:22,900 - DEBUG - VN c7060989-2714-48dd-915f-6a131e8b2d95 still in use: Unable to complete operation on network c7060989-2714-48dd-915f-6a131e8b2d95. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-9ed45033-4b0a-4c0c-9468-18de2f8d317a'] 2025-04-28 15:45:22,901 - WARNING - Deleting VN ctest-ext_vn-28420447 failed..Will retry 2025-04-28 15:45:25,124 - DEBUG - Response for deleting network () 2025-04-28 15:45:25,124 - INFO - Deleting VN ctest-vn-70909896 2025-04-28 15:45:25,270 - DEBUG - Response for deleting network () 2025-04-28 15:45:25,590 - DEBUG - No XMPP flaps were noticed during the test
2025-04-28 15:45:25,590 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:34]
2025-04-28 15:45:25,590 - INFO - -------------------------------------------------------------------------------- 2025-04-28 15:45:26,584 - INFO - Deleted project: ctest-TestRoutersBasic-49408370, ID : 2ffe2ffd-041e-440a-b97e-db619985cda3