2025-08-04 20:27:51,684 - INFO - Domain Default found not creating 2025-08-04 20:27:51,878 - INFO - Project ctest-TestRoutersBasic-73898305 not found, creating it 2025-08-04 20:27:52,375 - INFO - Created Project:ctest-TestRoutersBasic-73898305, ID : 2fd118b8-f42c-446e-a0e9-954a37327dc0 2025-08-04 20:27:54,124 - INFO - ================================================================================ 2025-08-04 20:27:54,124 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-08-04 20:27:54,124 - 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-08-04 20:27:54,397 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.14': '0'}} with 2025-08-04 20:27:54,397 - INFO - Initial checks done. Running the testcase now 2025-08-04 20:27:54,397 - INFO - 2025-08-04 20:27:55,693 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-73898305 2025-08-04 20:27:55,798 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-73898305 2025-08-04 20:27:56,125 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-73898305', 'default']} 2025-08-04 20:27:56,455 - DEBUG - Response for create_network : {'network': {'id': 'e7431021-216e-47a7-b2dd-db960ef7bfba', 'name': 'ctest-vn-95567572', 'tenant_id': '2fd118b8f42c446ea0e9954a37327dc0', 'project_id': '2fd118b8f42c446ea0e9954a37327dc0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-73898305', 'ctest-vn-95567572'], 'port_security_enabled': True, 'description': ''}} 2025-08-04 20:27:56,692 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e47db508-d092-44b1-84a5-1ce67d1f9b5d', 'name': '', 'tenant_id': '2fd118b8f42c446ea0e9954a37327dc0', 'network_id': 'e7431021-216e-47a7-b2dd-db960ef7bfba', 'ip_version': 4, 'cidr': '55.22.166.0/26', 'allocation_pools': [{'start': '55.22.166.2', 'end': '55.22.166.62'}], 'gateway_ip': '55.22.166.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '55.22.166.2', 'tags': [], 'project_id': '2fd118b8f42c446ea0e9954a37327dc0'}} 2025-08-04 20:27:56,716 - INFO - Created VN ctest-vn-95567572 2025-08-04 20:27:56,770 - DEBUG - VN ctest-vn-95567572 UUID is e7431021-216e-47a7-b2dd-db960ef7bfba 2025-08-04 20:27:57,177 - DEBUG - Response for create_network : {'network': {'id': '4b2ea74d-ac50-49ba-bcf5-bd0ef46049b7', 'name': 'ctest-ext_vn-84447045', 'tenant_id': '2fd118b8f42c446ea0e9954a37327dc0', 'project_id': '2fd118b8f42c446ea0e9954a37327dc0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-73898305', 'ctest-ext_vn-84447045'], 'port_security_enabled': True, 'description': ''}} 2025-08-04 20:27:57,401 - DEBUG - Response for create_subnet : {'subnet': {'id': '2ab0de79-5c8e-4053-a615-9f26722d443c', 'name': '', 'tenant_id': '2fd118b8f42c446ea0e9954a37327dc0', 'network_id': '4b2ea74d-ac50-49ba-bcf5-bd0ef46049b7', 'ip_version': 4, 'cidr': '146.233.37.128/26', 'allocation_pools': [{'start': '146.233.37.130', 'end': '146.233.37.190'}], 'gateway_ip': '146.233.37.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '146.233.37.130', 'tags': [], 'project_id': '2fd118b8f42c446ea0e9954a37327dc0'}} 2025-08-04 20:27:57,424 - INFO - Created VN ctest-ext_vn-84447045 2025-08-04 20:27:57,477 - DEBUG - VN ctest-ext_vn-84447045 UUID is 4b2ea74d-ac50-49ba-bcf5-bd0ef46049b7 2025-08-04 20:27:57,671 - DEBUG - Services list from nova: [, , ] 2025-08-04 20:27:58,825 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3754-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3754-1) 2025-08-04 20:28:00,219 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3754-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3754-1) 2025-08-04 20:28:00,316 - INFO - Setting gateway for router fcc5ca1f-b00e-4414-8116-852235bdc2da to network 4b2ea74d-ac50-49ba-bcf5-bd0ef46049b7 2025-08-04 20:28:00,387 - INFO - Adding interface with subnet_id e47db508-d092-44b1-84a5-1ce67d1f9b5d, port_id None to router fcc5ca1f-b00e-4414-8116-852235bdc2da 2025-08-04 20:28:00,953 - INFO - Waiting for VM ctest-TestRoutersBasic-73898305-75378256 to be up.. 2025-08-04 20:28:01,173 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-04 20:28:06,268 - DEBUG - VM is in ACTIVE state now 2025-08-04 20:28:06,268 - INFO - VM name : ctest-TestRoutersBasic-73898305-75378256 2025-08-04 20:28:06,360 - DEBUG - VM ctest-TestRoutersBasic-73898305-75378256 ID is ec43ec09-9054-463e-8420-933c61c3ca9b 2025-08-04 20:28:06,382 - DEBUG - VM ctest-TestRoutersBasic-73898305-75378256 launched on Node cn-jenkins-deploy-platform-ansible-os-3754-1 2025-08-04 20:28:06,479 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/ec43ec09-9054-463e-8420-933c61c3ca9b 2025-08-04 20:28:06,840 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/ec43ec09-9054-463e-8420-933c61c3ca9b 2025-08-04 20:28:06,890 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine-interface/60326236-e4a6-4239-8631-ab07abe5235a 2025-08-04 20:28:10,186 - 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 1030ms') 2025-08-04 20:28:10,186 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-73898305-75378256 failed! 2025-08-04 20:28:10,245 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-73898305:ctest-vn-95567572 is 55.22.166.1 and allocation pool is NOT set 2025-08-04 20:28:12,315 - 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=3.20 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.358 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 = 0.358/1.776/3.195/1.418 ms') 2025-08-04 20:28:12,315 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-73898305-75378256 passed 2025-08-04 20:28:12,469 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-04 20:28:12,470 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-73898305-75378256, IP 55.22.166.3, Port 22 2025-08-04 20:28:12,536 - 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-08-04 20:28:12,640 - DEBUG - VM ctest-TestRoutersBasic-73898305-75378256 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-04 20:28:17,641 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-04 20:28:17,641 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-73898305-75378256, IP 55.22.166.3, Port 22 2025-08-04 20:28:17,807 - DEBUG - VM ctest-TestRoutersBasic-73898305-75378256 is ready for SSH connections 2025-08-04 20:28:17,808 - INFO - Waiting for VM ctest-TestRoutersBasic-73898305-41928859 to be up.. 2025-08-04 20:28:17,899 - DEBUG - VM is in ACTIVE state now 2025-08-04 20:28:17,899 - INFO - VM name : ctest-TestRoutersBasic-73898305-41928859 2025-08-04 20:28:17,984 - DEBUG - VM ctest-TestRoutersBasic-73898305-41928859 ID is 4cf7c25b-aa1c-49a4-96d1-01cee013f8fe 2025-08-04 20:28:17,985 - DEBUG - VM ctest-TestRoutersBasic-73898305-41928859 launched on Node cn-jenkins-deploy-platform-ansible-os-3754-1 2025-08-04 20:28:18,084 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/4cf7c25b-aa1c-49a4-96d1-01cee013f8fe 2025-08-04 20:28:18,096 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine-interface/57026b1f-1a1e-4661-b13d-3461b314b812 2025-08-04 20:28:19,358 - 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.51 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.484 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.484/1.996/3.508/1.512 ms') 2025-08-04 20:28:19,358 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-73898305-41928859 passed 2025-08-04 20:28:19,513 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-04 20:28:19,514 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-73898305-41928859, IP 146.233.37.131, Port 22 2025-08-04 20:28:19,691 - DEBUG - VM ctest-TestRoutersBasic-73898305-41928859 is ready for SSH connections 2025-08-04 20:28:19,691 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-04 20:28:19,691 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 146.233.37.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.48, gateway password: c0ntrail123 2025-08-04 20:28:19,691 - DEBUG - ping -s 56 -c 3 -W 1 146.233.37.131 2025-08-04 20:28:23,460 - DEBUG - PING 146.233.37.131 (146.233.37.131): 56 data bytes 64 bytes from 146.233.37.131: seq=0 ttl=62 time=7.652 ms 64 bytes from 146.233.37.131: seq=1 ttl=62 time=1.219 ms 64 bytes from 146.233.37.131: seq=2 ttl=62 time=1.227 ms --- 146.233.37.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.219/3.366/7.652 ms 2025-08-04 20:28:23,461 - INFO - Ping to IP 146.233.37.131 from VM ctest-TestRoutersBasic-73898305-75378256 passed 2025-08-04 20:28:23,461 - INFO - Deleting interface with subnet_id e47db508-d092-44b1-84a5-1ce67d1f9b5d, port_id None from router fcc5ca1f-b00e-4414-8116-852235bdc2da 2025-08-04 20:28:23,696 - INFO - Deleting VM ctest-TestRoutersBasic-73898305-41928859 2025-08-04 20:28:23,792 - INFO - Deleting VM ctest-TestRoutersBasic-73898305-75378256 2025-08-04 20:28:23,888 - INFO - Deleting VN ctest-ext_vn-84447045 2025-08-04 20:28:23,990 - DEBUG - VN 4b2ea74d-ac50-49ba-bcf5-bd0ef46049b7 still in use: Unable to complete operation on network 4b2ea74d-ac50-49ba-bcf5-bd0ef46049b7. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-4e19a383-6fa3-4faf-b4bb-f1741f6cb0c1'] 2025-08-04 20:28:23,991 - WARNING - Deleting VN ctest-ext_vn-84447045 failed..Will retry 2025-08-04 20:28:26,126 - DEBUG - Response for deleting network () 2025-08-04 20:28:26,126 - INFO - Deleting VN ctest-vn-95567572 2025-08-04 20:28:26,300 - DEBUG - Response for deleting network () 2025-08-04 20:28:26,557 - DEBUG - No XMPP flaps were noticed during the test 2025-08-04 20:28:26,557 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32] 2025-08-04 20:28:26,557 - INFO - -------------------------------------------------------------------------------- 2025-08-04 20:28:27,342 - INFO - Deleted project: ctest-TestRoutersBasic-73898305, ID : 2fd118b8-f42c-446e-a0e9-954a37327dc0