2025-04-26 15:31:03,754 - INFO - Domain Default found not creating 2025-04-26 15:31:03,879 - INFO - Project ctest-TestRoutersBasic-23403828 not found, creating it 2025-04-26 15:31:04,346 - INFO - Created Project:ctest-TestRoutersBasic-23403828, ID : 3c1581b7-d9f8-4df3-9f11-c1d58b677497 2025-04-26 15:31:05,707 - INFO - ================================================================================ 2025-04-26 15:31:05,707 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-04-26 15:31:05,707 - 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-26 15:31:05,965 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-04-26 15:31:05,965 - INFO - Initial checks done. Running the testcase now 2025-04-26 15:31:05,965 - INFO - 2025-04-26 15:31:06,653 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-23403828 2025-04-26 15:31:06,746 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-23403828 2025-04-26 15:31:07,070 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-23403828', 'default']} 2025-04-26 15:31:07,353 - DEBUG - Response for create_network : {'network': {'id': '92368ad8-897e-42a0-8a99-dcae42666cfa', 'name': 'ctest-vn-81369981', 'tenant_id': '3c1581b7d9f84df39f11c1d58b677497', 'project_id': '3c1581b7d9f84df39f11c1d58b677497', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-23403828', 'ctest-vn-81369981'], 'port_security_enabled': True, 'description': ''}} 2025-04-26 15:31:07,554 - DEBUG - Response for create_subnet : {'subnet': {'id': '14646eda-b70f-4c50-9492-b9306003c4fd', 'name': '', 'tenant_id': '3c1581b7d9f84df39f11c1d58b677497', 'network_id': '92368ad8-897e-42a0-8a99-dcae42666cfa', 'ip_version': 4, 'cidr': '18.207.185.64/26', 'allocation_pools': [{'start': '18.207.185.66', 'end': '18.207.185.126'}], 'gateway_ip': '18.207.185.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '18.207.185.66', 'tags': [], 'project_id': '3c1581b7d9f84df39f11c1d58b677497'}} 2025-04-26 15:31:07,571 - INFO - Created VN ctest-vn-81369981 2025-04-26 15:31:07,622 - DEBUG - VN ctest-vn-81369981 UUID is 92368ad8-897e-42a0-8a99-dcae42666cfa 2025-04-26 15:31:07,982 - DEBUG - Response for create_network : {'network': {'id': '2ec6da37-075c-4091-988b-92a7b943ded6', 'name': 'ctest-ext_vn-71644450', 'tenant_id': '3c1581b7d9f84df39f11c1d58b677497', 'project_id': '3c1581b7d9f84df39f11c1d58b677497', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-23403828', 'ctest-ext_vn-71644450'], 'port_security_enabled': True, 'description': ''}} 2025-04-26 15:31:08,167 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd8a56c1f-4135-412b-bd21-66d56c2f8da8', 'name': '', 'tenant_id': '3c1581b7d9f84df39f11c1d58b677497', 'network_id': '2ec6da37-075c-4091-988b-92a7b943ded6', 'ip_version': 4, 'cidr': '165.9.60.0/26', 'allocation_pools': [{'start': '165.9.60.2', 'end': '165.9.60.62'}], 'gateway_ip': '165.9.60.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '165.9.60.2', 'tags': [], 'project_id': '3c1581b7d9f84df39f11c1d58b677497'}} 2025-04-26 15:31:08,184 - INFO - Created VN ctest-ext_vn-71644450 2025-04-26 15:31:08,234 - DEBUG - VN ctest-ext_vn-71644450 UUID is 2ec6da37-075c-4091-988b-92a7b943ded6 2025-04-26 15:31:08,393 - DEBUG - Services list from nova: [, , ] 2025-04-26 15:31:09,364 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3224-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3224-1) 2025-04-26 15:31:10,563 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3224-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3224-1) 2025-04-26 15:31:10,631 - INFO - Setting gateway for router 55535960-23ce-45b3-8642-32d9c89fa1e4 to network 2ec6da37-075c-4091-988b-92a7b943ded6 2025-04-26 15:31:10,682 - INFO - Adding interface with subnet_id 14646eda-b70f-4c50-9492-b9306003c4fd, port_id None to router 55535960-23ce-45b3-8642-32d9c89fa1e4 2025-04-26 15:31:11,105 - INFO - Waiting for VM ctest-TestRoutersBasic-23403828-27575634 to be up.. 2025-04-26 15:31:11,259 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-26 15:31:16,333 - DEBUG - VM is in ACTIVE state now 2025-04-26 15:31:16,333 - INFO - VM name : ctest-TestRoutersBasic-23403828-27575634 2025-04-26 15:31:16,398 - DEBUG - VM ctest-TestRoutersBasic-23403828-27575634 ID is 02062d36-f5a7-4017-9631-b85a35666d59 2025-04-26 15:31:16,415 - DEBUG - VM ctest-TestRoutersBasic-23403828-27575634 launched on Node cn-jenkins-deploy-platform-ansible-os-3224-1 2025-04-26 15:31:16,482 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/02062d36-f5a7-4017-9631-b85a35666d59 2025-04-26 15:31:16,774 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/02062d36-f5a7-4017-9631-b85a35666d59 2025-04-26 15:31:16,804 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/4a9221e7-f7cc-49f8-9900-6af7bf27184f 2025-04-26 15:31:20,067 - 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 1018ms') 2025-04-26 15:31:20,067 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-23403828-27575634 failed! 2025-04-26 15:31:20,122 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-23403828:ctest-vn-81369981 is 18.207.185.65 and allocation pool is NOT set 2025-04-26 15:31:22,182 - 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.30 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.414 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.414/1.856/3.298/1.442 ms') 2025-04-26 15:31:22,183 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-23403828-27575634 passed 2025-04-26 15:31:22,334 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-26 15:31:22,334 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-23403828-27575634, IP 18.207.185.67, Port 22 2025-04-26 15:31:22,489 - DEBUG - VM ctest-TestRoutersBasic-23403828-27575634 is ready for SSH connections 2025-04-26 15:31:22,489 - INFO - Waiting for VM ctest-TestRoutersBasic-23403828-70631273 to be up.. 2025-04-26 15:31:22,572 - DEBUG - VM is in ACTIVE state now 2025-04-26 15:31:22,573 - INFO - VM name : ctest-TestRoutersBasic-23403828-70631273 2025-04-26 15:31:22,647 - DEBUG - VM ctest-TestRoutersBasic-23403828-70631273 ID is d8ee8b71-ce68-443b-af8e-dfed1eabbf2a 2025-04-26 15:31:22,647 - DEBUG - VM ctest-TestRoutersBasic-23403828-70631273 launched on Node cn-jenkins-deploy-platform-ansible-os-3224-1 2025-04-26 15:31:22,721 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/d8ee8b71-ce68-443b-af8e-dfed1eabbf2a 2025-04-26 15:31:22,728 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/f7e15e21-2004-4c77-93be-a01d0e0cf5bb 2025-04-26 15:31:23,963 - 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.44 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.19 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 = 1.186/2.812/4.439/1.626 ms') 2025-04-26 15:31:23,963 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-23403828-70631273 passed 2025-04-26 15:31:24,118 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-26 15:31:24,118 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-23403828-70631273, IP 165.9.60.3, Port 22 2025-04-26 15:31:24,184 - 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-04-26 15:31:24,264 - DEBUG - VM ctest-TestRoutersBasic-23403828-70631273 is NOT ready for SSH connections, VM status: ACTIVE 2025-04-26 15:31:29,264 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-26 15:31:29,265 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-23403828-70631273, IP 165.9.60.3, Port 22 2025-04-26 15:31:29,422 - DEBUG - VM ctest-TestRoutersBasic-23403828-70631273 is ready for SSH connections 2025-04-26 15:31:29,422 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-26 15:31:29,422 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 165.9.60.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-04-26 15:31:29,422 - DEBUG - ping -s 56 -c 3 -W 1 165.9.60.3 2025-04-26 15:31:33,381 - DEBUG - PING 165.9.60.3 (165.9.60.3): 56 data bytes 64 bytes from 165.9.60.3: seq=0 ttl=62 time=6.384 ms 64 bytes from 165.9.60.3: seq=1 ttl=62 time=1.022 ms 64 bytes from 165.9.60.3: seq=2 ttl=62 time=0.881 ms --- 165.9.60.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.881/2.762/6.384 ms 2025-04-26 15:31:33,382 - INFO - Ping to IP 165.9.60.3 from VM ctest-TestRoutersBasic-23403828-27575634 passed 2025-04-26 15:31:33,382 - INFO - Deleting interface with subnet_id 14646eda-b70f-4c50-9492-b9306003c4fd, port_id None from router 55535960-23ce-45b3-8642-32d9c89fa1e4 2025-04-26 15:31:33,589 - INFO - Deleting VM ctest-TestRoutersBasic-23403828-70631273 2025-04-26 15:31:33,655 - INFO - Deleting VM ctest-TestRoutersBasic-23403828-27575634 2025-04-26 15:31:33,743 - INFO - Deleting VN ctest-ext_vn-71644450 2025-04-26 15:31:33,815 - DEBUG - VN 2ec6da37-075c-4091-988b-92a7b943ded6 still in use: Unable to complete operation on network 2ec6da37-075c-4091-988b-92a7b943ded6. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-7df53d06-f1e6-44fb-b06f-c7b00b0a41b4'] 2025-04-26 15:31:33,815 - WARNING - Deleting VN ctest-ext_vn-71644450 failed..Will retry 2025-04-26 15:31:35,920 - DEBUG - Response for deleting network () 2025-04-26 15:31:35,920 - INFO - Deleting VN ctest-vn-81369981 2025-04-26 15:31:36,020 - DEBUG - Response for deleting network () 2025-04-26 15:31:36,279 - DEBUG - No XMPP flaps were noticed during the test
2025-04-26 15:31:36,280 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31]
2025-04-26 15:31:36,280 - INFO - -------------------------------------------------------------------------------- 2025-04-26 15:31:36,929 - INFO - Deleted project: ctest-TestRoutersBasic-23403828, ID : 3c1581b7-d9f8-4df3-9f11-c1d58b677497