2025-12-08 02:09:57,324 - INFO - Domain Default found not creating 2025-12-08 02:09:57,513 - INFO - Project ctest-TestRoutersBasic-85920826 not found, creating it 2025-12-08 02:09:57,978 - INFO - Created Project:ctest-TestRoutersBasic-85920826, ID : 0bd3cd59-a29c-48f7-ae77-fb1b5ee3c1c6 2025-12-08 02:09:59,465 - INFO - ================================================================================ 2025-12-08 02:09:59,465 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-12-08 02:09:59,465 - 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-12-08 02:09:59,721 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.129': '0'}} with 2025-12-08 02:09:59,721 - INFO - Initial checks done. Running the testcase now 2025-12-08 02:09:59,721 - INFO - 2025-12-08 02:10:00,443 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-85920826 2025-12-08 02:10:00,543 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-85920826 2025-12-08 02:10:00,875 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-85920826', 'default']} 2025-12-08 02:10:01,193 - DEBUG - Response for create_network : {'network': {'id': '5ce8a5f3-407d-40fb-b3a1-25d815db78cf', 'name': 'ctest-vn-22695729', 'tenant_id': '0bd3cd59a29c48f7ae77fb1b5ee3c1c6', 'project_id': '0bd3cd59a29c48f7ae77fb1b5ee3c1c6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-85920826', 'ctest-vn-22695729'], 'port_security_enabled': True, 'description': ''}} 2025-12-08 02:10:01,413 - DEBUG - Response for create_subnet : {'subnet': {'id': '2ac4c90d-cba5-4286-8e48-bba82dbe09c7', 'name': '', 'tenant_id': '0bd3cd59a29c48f7ae77fb1b5ee3c1c6', 'network_id': '5ce8a5f3-407d-40fb-b3a1-25d815db78cf', 'ip_version': 4, 'cidr': '189.97.154.192/26', 'allocation_pools': [{'start': '189.97.154.194', 'end': '189.97.154.254'}], 'gateway_ip': '189.97.154.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '189.97.154.194', 'tags': [], 'project_id': '0bd3cd59a29c48f7ae77fb1b5ee3c1c6'}} 2025-12-08 02:10:01,433 - INFO - Created VN ctest-vn-22695729 2025-12-08 02:10:01,487 - DEBUG - VN ctest-vn-22695729 UUID is 5ce8a5f3-407d-40fb-b3a1-25d815db78cf 2025-12-08 02:10:01,845 - DEBUG - Response for create_network : {'network': {'id': 'dad5b95b-d6e4-4408-ac8c-ffd40ef24e9d', 'name': 'ctest-ext_vn-28691749', 'tenant_id': '0bd3cd59a29c48f7ae77fb1b5ee3c1c6', 'project_id': '0bd3cd59a29c48f7ae77fb1b5ee3c1c6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-85920826', 'ctest-ext_vn-28691749'], 'port_security_enabled': True, 'description': ''}} 2025-12-08 02:10:02,086 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bc3b5a9e-28a2-4adb-8a90-f2519d17ab9a', 'name': '', 'tenant_id': '0bd3cd59a29c48f7ae77fb1b5ee3c1c6', 'network_id': 'dad5b95b-d6e4-4408-ac8c-ffd40ef24e9d', 'ip_version': 4, 'cidr': '113.23.154.192/26', 'allocation_pools': [{'start': '113.23.154.194', 'end': '113.23.154.254'}], 'gateway_ip': '113.23.154.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '113.23.154.194', 'tags': [], 'project_id': '0bd3cd59a29c48f7ae77fb1b5ee3c1c6'}} 2025-12-08 02:10:02,106 - INFO - Created VN ctest-ext_vn-28691749 2025-12-08 02:10:02,159 - DEBUG - VN ctest-ext_vn-28691749 UUID is dad5b95b-d6e4-4408-ac8c-ffd40ef24e9d 2025-12-08 02:10:02,339 - DEBUG - Services list from nova: [, , ] 2025-12-08 02:10:03,407 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4853-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4853-1) 2025-12-08 02:10:04,588 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4853-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4853-1) 2025-12-08 02:10:04,660 - INFO - Setting gateway for router 4fc19c2e-a1d9-41bb-95c8-724cd708e6b5 to network dad5b95b-d6e4-4408-ac8c-ffd40ef24e9d 2025-12-08 02:10:04,734 - INFO - Adding interface with subnet_id 2ac4c90d-cba5-4286-8e48-bba82dbe09c7, port_id None to router 4fc19c2e-a1d9-41bb-95c8-724cd708e6b5 2025-12-08 02:10:05,075 - INFO - Waiting for VM ctest-TestRoutersBasic-85920826-08117736 to be up.. 2025-12-08 02:10:05,276 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-12-08 02:10:10,348 - DEBUG - VM is in ACTIVE state now 2025-12-08 02:10:10,348 - INFO - VM name : ctest-TestRoutersBasic-85920826-08117736 2025-12-08 02:10:10,422 - DEBUG - VM ctest-TestRoutersBasic-85920826-08117736 ID is d73bdced-78f5-4257-a96e-f7768b1d18d9 2025-12-08 02:10:10,442 - DEBUG - VM ctest-TestRoutersBasic-85920826-08117736 launched on Node cn-jenkins-deploy-platform-ansible-os-4853-1 2025-12-08 02:10:10,520 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/d73bdced-78f5-4257-a96e-f7768b1d18d9 2025-12-08 02:10:10,818 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/d73bdced-78f5-4257-a96e-f7768b1d18d9 2025-12-08 02:10:10,852 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/be7f460c-4961-42a5-94c7-996c39db3eb7 2025-12-08 02:10:14,108 - 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 1027ms') 2025-12-08 02:10:14,108 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-85920826-08117736 failed! 2025-12-08 02:10:14,163 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-85920826:ctest-vn-22695729 is 189.97.154.193 and allocation pool is NOT set 2025-12-08 02:10:16,226 - 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.26 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.26 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.261/3.260/4.260/0.999 ms') 2025-12-08 02:10:16,226 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-85920826-08117736 passed 2025-12-08 02:10:16,375 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-08 02:10:16,375 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-85920826-08117736, IP 189.97.154.195, Port 22 2025-12-08 02:10:16,546 - DEBUG - VM ctest-TestRoutersBasic-85920826-08117736 is ready for SSH connections 2025-12-08 02:10:16,546 - INFO - Waiting for VM ctest-TestRoutersBasic-85920826-66922670 to be up.. 2025-12-08 02:10:16,624 - DEBUG - VM is in ACTIVE state now 2025-12-08 02:10:16,625 - INFO - VM name : ctest-TestRoutersBasic-85920826-66922670 2025-12-08 02:10:16,703 - DEBUG - VM ctest-TestRoutersBasic-85920826-66922670 ID is 76755bae-9acb-4a8a-b365-9298143570ee 2025-12-08 02:10:16,703 - DEBUG - VM ctest-TestRoutersBasic-85920826-66922670 launched on Node cn-jenkins-deploy-platform-ansible-os-4853-1 2025-12-08 02:10:16,781 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/76755bae-9acb-4a8a-b365-9298143570ee 2025-12-08 02:10:16,790 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/ba7cc13c-8253-427c-befc-87846cc55acf 2025-12-08 02:10:18,027 - 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=4.03 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=3.37 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.372/3.702/4.033/0.330 ms') 2025-12-08 02:10:18,027 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-85920826-66922670 passed 2025-12-08 02:10:18,183 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-08 02:10:18,183 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-85920826-66922670, IP 113.23.154.195, Port 22 2025-12-08 02:10:18,242 - 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-12-08 02:10:18,316 - DEBUG - VM ctest-TestRoutersBasic-85920826-66922670 is NOT ready for SSH connections, VM status: ACTIVE 2025-12-08 02:10:23,317 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-08 02:10:23,318 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-85920826-66922670, IP 113.23.154.195, Port 22 2025-12-08 02:10:23,474 - DEBUG - VM ctest-TestRoutersBasic-85920826-66922670 is ready for SSH connections 2025-12-08 02:10:23,474 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-08 02:10:23,474 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 113.23.154.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-12-08 02:10:23,474 - DEBUG - ping -s 56 -c 3 -W 1 113.23.154.195 2025-12-08 02:10:27,165 - DEBUG - PING 113.23.154.195 (113.23.154.195): 56 data bytes 64 bytes from 113.23.154.195: seq=0 ttl=62 time=4.688 ms 64 bytes from 113.23.154.195: seq=1 ttl=62 time=1.043 ms 64 bytes from 113.23.154.195: seq=2 ttl=62 time=1.057 ms --- 113.23.154.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.043/2.262/4.688 ms 2025-12-08 02:10:27,165 - INFO - Ping to IP 113.23.154.195 from VM ctest-TestRoutersBasic-85920826-08117736 passed 2025-12-08 02:10:27,165 - INFO - Deleting interface with subnet_id 2ac4c90d-cba5-4286-8e48-bba82dbe09c7, port_id None from router 4fc19c2e-a1d9-41bb-95c8-724cd708e6b5 2025-12-08 02:10:27,345 - INFO - Deleting VM ctest-TestRoutersBasic-85920826-66922670 2025-12-08 02:10:27,422 - INFO - Deleting VM ctest-TestRoutersBasic-85920826-08117736 2025-12-08 02:10:27,508 - INFO - Deleting VN ctest-ext_vn-28691749 2025-12-08 02:10:27,574 - DEBUG - VN dad5b95b-d6e4-4408-ac8c-ffd40ef24e9d still in use: Unable to complete operation on network dad5b95b-d6e4-4408-ac8c-ffd40ef24e9d. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-99a21d53-4282-4d88-a5b2-4b2496e1a4fb'] 2025-12-08 02:10:27,574 - WARNING - Deleting VN ctest-ext_vn-28691749 failed..Will retry 2025-12-08 02:10:29,673 - DEBUG - Response for deleting network () 2025-12-08 02:10:29,673 - INFO - Deleting VN ctest-vn-22695729 2025-12-08 02:10:29,765 - DEBUG - Response for deleting network () 2025-12-08 02:10:30,021 - DEBUG - No XMPP flaps were noticed during the test
2025-12-08 02:10:30,021 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31]
2025-12-08 02:10:30,021 - INFO - -------------------------------------------------------------------------------- 2025-12-08 02:10:30,728 - INFO - Deleted project: ctest-TestRoutersBasic-85920826, ID : 0bd3cd59-a29c-48f7-ae77-fb1b5ee3c1c6