2025-03-28 20:14:06,606 - INFO - Domain Default found not creating 2025-03-28 20:14:06,757 - INFO - Project ctest-TestRoutersBasic-56045720 not found, creating it 2025-03-28 20:14:07,246 - INFO - Created Project:ctest-TestRoutersBasic-56045720, ID : dc4a9c07-8603-4627-91af-37a2df63d49b 2025-03-28 20:14:08,850 - INFO - ================================================================================ 2025-03-28 20:14:08,850 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-03-28 20:14:08,850 - 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-03-28 20:14:09,107 - DEBUG - Nothing to compare xmpp stats {'10.0.0.40': {'10.20.0.12': '0'}} with 2025-03-28 20:14:09,107 - INFO - Initial checks done. Running the testcase now 2025-03-28 20:14:09,107 - INFO - 2025-03-28 20:14:09,904 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-56045720 2025-03-28 20:14:10,001 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-56045720 2025-03-28 20:14:10,337 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-56045720', 'default']} 2025-03-28 20:14:10,652 - DEBUG - Response for create_network : {'network': {'id': '538d265f-f98f-44be-98b0-c6ec9ddbf98f', 'name': 'ctest-vn-46600541', 'tenant_id': 'dc4a9c078603462791af37a2df63d49b', 'project_id': 'dc4a9c078603462791af37a2df63d49b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-56045720', 'ctest-vn-46600541'], 'port_security_enabled': True, 'description': ''}} 2025-03-28 20:14:10,832 - DEBUG - Response for create_subnet : {'subnet': {'id': '1624f11c-e32d-4794-8aff-55b4afbf069e', 'name': '', 'tenant_id': 'dc4a9c078603462791af37a2df63d49b', 'network_id': '538d265f-f98f-44be-98b0-c6ec9ddbf98f', 'ip_version': 4, 'cidr': '200.164.191.192/26', 'allocation_pools': [{'start': '200.164.191.194', 'end': '200.164.191.254'}], 'gateway_ip': '200.164.191.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '200.164.191.194', 'tags': [], 'project_id': 'dc4a9c078603462791af37a2df63d49b'}} 2025-03-28 20:14:10,855 - INFO - Created VN ctest-vn-46600541 2025-03-28 20:14:10,909 - DEBUG - VN ctest-vn-46600541 UUID is 538d265f-f98f-44be-98b0-c6ec9ddbf98f 2025-03-28 20:14:11,263 - DEBUG - Response for create_network : {'network': {'id': '57c71466-b2e1-4a0b-851a-352b84cef002', 'name': 'ctest-ext_vn-36576191', 'tenant_id': 'dc4a9c078603462791af37a2df63d49b', 'project_id': 'dc4a9c078603462791af37a2df63d49b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-56045720', 'ctest-ext_vn-36576191'], 'port_security_enabled': True, 'description': ''}} 2025-03-28 20:14:11,498 - DEBUG - Response for create_subnet : {'subnet': {'id': '6117e682-c349-421b-ad1b-97b047dfc74e', 'name': '', 'tenant_id': 'dc4a9c078603462791af37a2df63d49b', 'network_id': '57c71466-b2e1-4a0b-851a-352b84cef002', 'ip_version': 4, 'cidr': '135.100.157.192/26', 'allocation_pools': [{'start': '135.100.157.194', 'end': '135.100.157.254'}], 'gateway_ip': '135.100.157.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '135.100.157.194', 'tags': [], 'project_id': 'dc4a9c078603462791af37a2df63d49b'}} 2025-03-28 20:14:11,520 - INFO - Created VN ctest-ext_vn-36576191 2025-03-28 20:14:11,577 - DEBUG - VN ctest-ext_vn-36576191 UUID is 57c71466-b2e1-4a0b-851a-352b84cef002 2025-03-28 20:14:11,753 - DEBUG - Services list from nova: [, , ] 2025-03-28 20:14:12,883 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2995-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2995-1) 2025-03-28 20:14:14,187 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2995-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2995-1) 2025-03-28 20:14:14,281 - INFO - Setting gateway for router 51f45af0-6601-45d0-ae40-fb782c5da2c5 to network 57c71466-b2e1-4a0b-851a-352b84cef002 2025-03-28 20:14:14,370 - INFO - Adding interface with subnet_id 1624f11c-e32d-4794-8aff-55b4afbf069e, port_id None to router 51f45af0-6601-45d0-ae40-fb782c5da2c5 2025-03-28 20:14:14,861 - INFO - Waiting for VM ctest-TestRoutersBasic-56045720-86802309 to be up.. 2025-03-28 20:14:15,058 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-28 20:14:20,142 - DEBUG - VM is in ACTIVE state now 2025-03-28 20:14:20,142 - INFO - VM name : ctest-TestRoutersBasic-56045720-86802309 2025-03-28 20:14:20,227 - DEBUG - VM ctest-TestRoutersBasic-56045720-86802309 ID is 3d3f34fd-d632-4b66-b892-b0b0b8621043 2025-03-28 20:14:20,247 - DEBUG - VM ctest-TestRoutersBasic-56045720-86802309 launched on Node cn-jenkins-deploy-platform-ansible-os-2995-1 2025-03-28 20:14:20,330 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/3d3f34fd-d632-4b66-b892-b0b0b8621043 2025-03-28 20:14:20,671 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/3d3f34fd-d632-4b66-b892-b0b0b8621043 2025-03-28 20:14:20,709 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine-interface/4dd8436f-f58b-4c61-b6f9-e1526ddb9ee8 2025-03-28 20:14:23,987 - 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 1026ms') 2025-03-28 20:14:23,987 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-56045720-86802309 failed! 2025-03-28 20:14:24,049 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-56045720:ctest-vn-46600541 is 200.164.191.193 and allocation pool is NOT set 2025-03-28 20:14:26,116 - 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.42 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.09 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.092/3.256/4.420/1.164 ms') 2025-03-28 20:14:26,117 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-56045720-86802309 passed 2025-03-28 20:14:26,273 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-28 20:14:26,273 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-56045720-86802309, IP 200.164.191.195, Port 22 2025-03-28 20:14:26,437 - DEBUG - VM ctest-TestRoutersBasic-56045720-86802309 is ready for SSH connections 2025-03-28 20:14:26,437 - INFO - Waiting for VM ctest-TestRoutersBasic-56045720-54257525 to be up.. 2025-03-28 20:14:26,523 - DEBUG - VM is in ACTIVE state now 2025-03-28 20:14:26,523 - INFO - VM name : ctest-TestRoutersBasic-56045720-54257525 2025-03-28 20:14:26,609 - DEBUG - VM ctest-TestRoutersBasic-56045720-54257525 ID is fd7e8b02-bdb6-4327-856f-574944083a6b 2025-03-28 20:14:26,609 - DEBUG - VM ctest-TestRoutersBasic-56045720-54257525 launched on Node cn-jenkins-deploy-platform-ansible-os-2995-1 2025-03-28 20:14:26,690 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/fd7e8b02-bdb6-4327-856f-574944083a6b 2025-03-28 20:14:26,699 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine-interface/9b7a327d-bef0-4d14-8bae-b6f8951aaf2d 2025-03-28 20:14:27,940 - 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.68 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.64 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 2.639/4.159/5.679/1.520 ms') 2025-03-28 20:14:27,940 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-56045720-54257525 passed 2025-03-28 20:14:28,101 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-28 20:14:28,101 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-56045720-54257525, IP 135.100.157.195, Port 22 2025-03-28 20:14:28,157 - 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-03-28 20:14:28,233 - DEBUG - VM ctest-TestRoutersBasic-56045720-54257525 is NOT ready for SSH connections, VM status: ACTIVE 2025-03-28 20:14:33,234 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-28 20:14:33,234 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-56045720-54257525, IP 135.100.157.195, Port 22 2025-03-28 20:14:33,401 - DEBUG - VM ctest-TestRoutersBasic-56045720-54257525 is ready for SSH connections 2025-03-28 20:14:33,401 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-28 20:14:33,401 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 135.100.157.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.40, gateway password: c0ntrail123 2025-03-28 20:14:33,401 - DEBUG - ping -s 56 -c 3 -W 1 135.100.157.195 2025-03-28 20:14:37,524 - DEBUG - PING 135.100.157.195 (135.100.157.195): 56 data bytes 64 bytes from 135.100.157.195: seq=0 ttl=62 time=6.699 ms 64 bytes from 135.100.157.195: seq=1 ttl=62 time=1.222 ms 64 bytes from 135.100.157.195: seq=2 ttl=62 time=1.139 ms --- 135.100.157.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.139/3.020/6.699 ms 2025-03-28 20:14:37,524 - INFO - Ping to IP 135.100.157.195 from VM ctest-TestRoutersBasic-56045720-86802309 passed 2025-03-28 20:14:37,524 - INFO - Deleting interface with subnet_id 1624f11c-e32d-4794-8aff-55b4afbf069e, port_id None from router 51f45af0-6601-45d0-ae40-fb782c5da2c5 2025-03-28 20:14:37,765 - INFO - Deleting VM ctest-TestRoutersBasic-56045720-54257525 2025-03-28 20:14:37,850 - INFO - Deleting VM ctest-TestRoutersBasic-56045720-86802309 2025-03-28 20:14:37,948 - INFO - Deleting VN ctest-ext_vn-36576191 2025-03-28 20:14:38,039 - DEBUG - VN 57c71466-b2e1-4a0b-851a-352b84cef002 still in use: Unable to complete operation on network 57c71466-b2e1-4a0b-851a-352b84cef002. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-ef5fc508-74b7-4c2a-8271-fc5c103c7420'] 2025-03-28 20:14:38,039 - WARNING - Deleting VN ctest-ext_vn-36576191 failed..Will retry 2025-03-28 20:14:40,164 - DEBUG - Response for deleting network () 2025-03-28 20:14:40,164 - INFO - Deleting VN ctest-vn-46600541 2025-03-28 20:14:40,304 - DEBUG - Response for deleting network () 2025-03-28 20:14:40,567 - DEBUG - No XMPP flaps were noticed during the test 2025-03-28 20:14:40,567 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32] 2025-03-28 20:14:40,567 - INFO - -------------------------------------------------------------------------------- 2025-03-28 20:14:41,338 - INFO - Deleted project: ctest-TestRoutersBasic-56045720, ID : dc4a9c07-8603-4627-91af-37a2df63d49b