2025-11-27 08:27:12,033 - INFO - Domain Default found not creating 2025-11-27 08:27:12,199 - INFO - Project ctest-TestRoutersBasic-34801512 not found, creating it 2025-11-27 08:27:12,685 - INFO - Created Project:ctest-TestRoutersBasic-34801512, ID : 5a2b7ee1-bc4a-4233-884f-0a945331064a 2025-11-27 08:27:14,290 - INFO - ================================================================================ 2025-11-27 08:27:14,290 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-11-27 08:27:14,290 - 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-11-27 08:27:14,548 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2025-11-27 08:27:14,548 - INFO - Initial checks done. Running the testcase now 2025-11-27 08:27:14,548 - INFO - 2025-11-27 08:27:15,382 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-34801512 2025-11-27 08:27:15,478 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-34801512 2025-11-27 08:27:15,806 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-34801512', 'default']} 2025-11-27 08:27:16,098 - DEBUG - Response for create_network : {'network': {'id': '974fface-c534-482e-9aa5-8e6cbacb7777', 'name': 'ctest-vn-75921420', 'tenant_id': '5a2b7ee1bc4a4233884f0a945331064a', 'project_id': '5a2b7ee1bc4a4233884f0a945331064a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-34801512', 'ctest-vn-75921420'], 'port_security_enabled': True, 'description': ''}} 2025-11-27 08:27:16,302 - DEBUG - Response for create_subnet : {'subnet': {'id': '822c89f0-1fd1-4732-9d9e-8fda4d34d811', 'name': '', 'tenant_id': '5a2b7ee1bc4a4233884f0a945331064a', 'network_id': '974fface-c534-482e-9aa5-8e6cbacb7777', 'ip_version': 4, 'cidr': '47.204.4.64/26', 'allocation_pools': [{'start': '47.204.4.66', 'end': '47.204.4.126'}], 'gateway_ip': '47.204.4.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '47.204.4.66', 'tags': [], 'project_id': '5a2b7ee1bc4a4233884f0a945331064a'}} 2025-11-27 08:27:16,319 - INFO - Created VN ctest-vn-75921420 2025-11-27 08:27:16,370 - DEBUG - VN ctest-vn-75921420 UUID is 974fface-c534-482e-9aa5-8e6cbacb7777 2025-11-27 08:27:16,695 - DEBUG - Response for create_network : {'network': {'id': '6dacde38-61ab-4d42-b6dd-67caefb159f7', 'name': 'ctest-ext_vn-08840940', 'tenant_id': '5a2b7ee1bc4a4233884f0a945331064a', 'project_id': '5a2b7ee1bc4a4233884f0a945331064a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-34801512', 'ctest-ext_vn-08840940'], 'port_security_enabled': True, 'description': ''}} 2025-11-27 08:27:16,869 - DEBUG - Response for create_subnet : {'subnet': {'id': '94078da5-9fe1-4853-bf9a-3318e04315af', 'name': '', 'tenant_id': '5a2b7ee1bc4a4233884f0a945331064a', 'network_id': '6dacde38-61ab-4d42-b6dd-67caefb159f7', 'ip_version': 4, 'cidr': '154.179.70.0/26', 'allocation_pools': [{'start': '154.179.70.2', 'end': '154.179.70.62'}], 'gateway_ip': '154.179.70.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '154.179.70.2', 'tags': [], 'project_id': '5a2b7ee1bc4a4233884f0a945331064a'}} 2025-11-27 08:27:16,888 - INFO - Created VN ctest-ext_vn-08840940 2025-11-27 08:27:16,942 - DEBUG - VN ctest-ext_vn-08840940 UUID is 6dacde38-61ab-4d42-b6dd-67caefb159f7 2025-11-27 08:27:17,112 - DEBUG - Services list from nova: [, , ] 2025-11-27 08:27:18,214 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4823-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4823-1) 2025-11-27 08:27:19,510 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4823-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4823-1) 2025-11-27 08:27:19,588 - INFO - Setting gateway for router 9428ad3b-0432-47d8-b4f7-a5cd9fd07a31 to network 6dacde38-61ab-4d42-b6dd-67caefb159f7 2025-11-27 08:27:19,675 - INFO - Adding interface with subnet_id 822c89f0-1fd1-4732-9d9e-8fda4d34d811, port_id None to router 9428ad3b-0432-47d8-b4f7-a5cd9fd07a31 2025-11-27 08:27:20,023 - INFO - Waiting for VM ctest-TestRoutersBasic-34801512-86338611 to be up.. 2025-11-27 08:27:20,153 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-27 08:27:25,227 - DEBUG - VM is in ACTIVE state now 2025-11-27 08:27:25,228 - INFO - VM name : ctest-TestRoutersBasic-34801512-86338611 2025-11-27 08:27:25,305 - DEBUG - VM ctest-TestRoutersBasic-34801512-86338611 ID is f565110f-384b-4147-9fae-38bace78928d 2025-11-27 08:27:25,325 - DEBUG - VM ctest-TestRoutersBasic-34801512-86338611 launched on Node cn-jenkins-deploy-platform-ansible-os-4823-1 2025-11-27 08:27:25,400 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/f565110f-384b-4147-9fae-38bace78928d 2025-11-27 08:27:25,739 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/f565110f-384b-4147-9fae-38bace78928d 2025-11-27 08:27:25,773 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/ecc3a93e-05a5-4389-8f26-d30735cd18d9 2025-11-27 08:27:29,038 - 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 1025ms') 2025-11-27 08:27:29,038 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-34801512-86338611 failed! 2025-11-27 08:27:29,094 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-34801512:ctest-vn-75921420 is 47.204.4.65 and allocation pool is NOT set 2025-11-27 08:27:31,161 - 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=8.25 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.23 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.234/5.241/8.248/3.007 ms') 2025-11-27 08:27:31,162 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-34801512-86338611 passed 2025-11-27 08:27:31,318 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-27 08:27:31,318 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-34801512-86338611, IP 47.204.4.67, Port 22 2025-11-27 08:27:31,383 - 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-11-27 08:27:31,467 - DEBUG - VM ctest-TestRoutersBasic-34801512-86338611 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-27 08:27:36,467 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-27 08:27:36,468 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-34801512-86338611, IP 47.204.4.67, Port 22 2025-11-27 08:27:36,626 - DEBUG - VM ctest-TestRoutersBasic-34801512-86338611 is ready for SSH connections 2025-11-27 08:27:36,626 - INFO - Waiting for VM ctest-TestRoutersBasic-34801512-09803918 to be up.. 2025-11-27 08:27:36,704 - DEBUG - VM is in ACTIVE state now 2025-11-27 08:27:36,704 - INFO - VM name : ctest-TestRoutersBasic-34801512-09803918 2025-11-27 08:27:36,774 - DEBUG - VM ctest-TestRoutersBasic-34801512-09803918 ID is d98ffa5a-5c77-48a3-98a4-088209daab8b 2025-11-27 08:27:36,774 - DEBUG - VM ctest-TestRoutersBasic-34801512-09803918 launched on Node cn-jenkins-deploy-platform-ansible-os-4823-1 2025-11-27 08:27:36,853 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/d98ffa5a-5c77-48a3-98a4-088209daab8b 2025-11-27 08:27:36,861 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/a58d3aa0-8d89-4cd4-bac9-2535c6109fd0 2025-11-27 08:27:38,097 - 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.20 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.398 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 = 0.398/1.797/3.197/1.399 ms') 2025-11-27 08:27:38,097 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-34801512-09803918 passed 2025-11-27 08:27:38,250 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-27 08:27:38,250 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-34801512-09803918, IP 154.179.70.3, Port 22 2025-11-27 08:27:38,406 - DEBUG - VM ctest-TestRoutersBasic-34801512-09803918 is ready for SSH connections 2025-11-27 08:27:38,406 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-27 08:27:38,406 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 154.179.70.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2025-11-27 08:27:38,406 - DEBUG - ping -s 56 -c 3 -W 1 154.179.70.3 2025-11-27 08:27:42,151 - DEBUG - PING 154.179.70.3 (154.179.70.3): 56 data bytes 64 bytes from 154.179.70.3: seq=0 ttl=62 time=5.930 ms 64 bytes from 154.179.70.3: seq=1 ttl=62 time=1.377 ms 64 bytes from 154.179.70.3: seq=2 ttl=62 time=0.881 ms --- 154.179.70.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.881/2.729/5.930 ms 2025-11-27 08:27:42,151 - INFO - Ping to IP 154.179.70.3 from VM ctest-TestRoutersBasic-34801512-86338611 passed 2025-11-27 08:27:42,151 - INFO - Deleting interface with subnet_id 822c89f0-1fd1-4732-9d9e-8fda4d34d811, port_id None from router 9428ad3b-0432-47d8-b4f7-a5cd9fd07a31 2025-11-27 08:27:42,354 - INFO - Deleting VM ctest-TestRoutersBasic-34801512-09803918 2025-11-27 08:27:42,427 - INFO - Deleting VM ctest-TestRoutersBasic-34801512-86338611 2025-11-27 08:27:42,525 - INFO - Deleting VN ctest-ext_vn-08840940 2025-11-27 08:27:42,593 - DEBUG - VN 6dacde38-61ab-4d42-b6dd-67caefb159f7 still in use: Unable to complete operation on network 6dacde38-61ab-4d42-b6dd-67caefb159f7. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-330b309b-765f-4098-9ebb-ab7d33b976c4'] 2025-11-27 08:27:42,594 - WARNING - Deleting VN ctest-ext_vn-08840940 failed..Will retry 2025-11-27 08:27:44,707 - DEBUG - Response for deleting network () 2025-11-27 08:27:44,707 - INFO - Deleting VN ctest-vn-75921420 2025-11-27 08:27:44,823 - DEBUG - Response for deleting network () 2025-11-27 08:27:45,080 - DEBUG - No XMPP flaps were noticed during the test
2025-11-27 08:27:45,080 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31]
2025-11-27 08:27:45,080 - INFO - -------------------------------------------------------------------------------- 2025-11-27 08:27:45,809 - INFO - Deleted project: ctest-TestRoutersBasic-34801512, ID : 5a2b7ee1-bc4a-4233-884f-0a945331064a