2025-05-07 08:51:25,262 - INFO - Domain Default found not creating 2025-05-07 08:51:25,395 - INFO - Project ctest-TestRoutersBasic-31473637 not found, creating it 2025-05-07 08:51:25,832 - INFO - Created Project:ctest-TestRoutersBasic-31473637, ID : 8821c886-f947-4df1-860d-2734624336ef 2025-05-07 08:51:27,170 - INFO - ================================================================================ 2025-05-07 08:51:27,170 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-05-07 08:51:27,170 - 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-05-07 08:51:27,427 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-05-07 08:51:27,427 - INFO - Initial checks done. Running the testcase now 2025-05-07 08:51:27,427 - INFO - 2025-05-07 08:51:28,051 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-31473637 2025-05-07 08:51:28,157 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-31473637 2025-05-07 08:51:28,480 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-31473637', 'default']} 2025-05-07 08:51:28,785 - DEBUG - Response for create_network : {'network': {'id': 'ab56d4ff-357d-476a-a929-25056b0e361b', 'name': 'ctest-vn-75290193', 'tenant_id': '8821c886f9474df1860d2734624336ef', 'project_id': '8821c886f9474df1860d2734624336ef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-31473637', 'ctest-vn-75290193'], 'port_security_enabled': True, 'description': ''}} 2025-05-07 08:51:28,945 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b941cdd4-4ff9-4585-95b9-14e7e1e67cf7', 'name': '', 'tenant_id': '8821c886f9474df1860d2734624336ef', 'network_id': 'ab56d4ff-357d-476a-a929-25056b0e361b', 'ip_version': 4, 'cidr': '125.247.40.64/26', 'allocation_pools': [{'start': '125.247.40.66', 'end': '125.247.40.126'}], 'gateway_ip': '125.247.40.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '125.247.40.66', 'tags': [], 'project_id': '8821c886f9474df1860d2734624336ef'}} 2025-05-07 08:51:28,964 - INFO - Created VN ctest-vn-75290193 2025-05-07 08:51:29,017 - DEBUG - VN ctest-vn-75290193 UUID is ab56d4ff-357d-476a-a929-25056b0e361b 2025-05-07 08:51:29,329 - DEBUG - Response for create_network : {'network': {'id': '69979f46-f911-4816-8f06-3c3fe2905b5b', 'name': 'ctest-ext_vn-55808627', 'tenant_id': '8821c886f9474df1860d2734624336ef', 'project_id': '8821c886f9474df1860d2734624336ef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-31473637', 'ctest-ext_vn-55808627'], 'port_security_enabled': True, 'description': ''}} 2025-05-07 08:51:29,519 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b5cc5168-a8f8-4e89-b9c5-9f12676f26d4', 'name': '', 'tenant_id': '8821c886f9474df1860d2734624336ef', 'network_id': '69979f46-f911-4816-8f06-3c3fe2905b5b', 'ip_version': 4, 'cidr': '215.126.239.128/26', 'allocation_pools': [{'start': '215.126.239.130', 'end': '215.126.239.190'}], 'gateway_ip': '215.126.239.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '215.126.239.130', 'tags': [], 'project_id': '8821c886f9474df1860d2734624336ef'}} 2025-05-07 08:51:29,540 - INFO - Created VN ctest-ext_vn-55808627 2025-05-07 08:51:29,592 - DEBUG - VN ctest-ext_vn-55808627 UUID is 69979f46-f911-4816-8f06-3c3fe2905b5b 2025-05-07 08:51:29,788 - DEBUG - Services list from nova: [, , ] 2025-05-07 08:51:30,717 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3281-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3281-1) 2025-05-07 08:51:31,942 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3281-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3281-1) 2025-05-07 08:51:32,042 - INFO - Setting gateway for router dc673746-c554-4417-a812-e6568dc4b98e to network 69979f46-f911-4816-8f06-3c3fe2905b5b 2025-05-07 08:51:32,118 - INFO - Adding interface with subnet_id b941cdd4-4ff9-4585-95b9-14e7e1e67cf7, port_id None to router dc673746-c554-4417-a812-e6568dc4b98e 2025-05-07 08:51:32,674 - INFO - Waiting for VM ctest-TestRoutersBasic-31473637-32251724 to be up.. 2025-05-07 08:51:32,820 - DEBUG - VM is in ACTIVE state now 2025-05-07 08:51:32,820 - INFO - VM name : ctest-TestRoutersBasic-31473637-32251724 2025-05-07 08:51:32,934 - DEBUG - VM ctest-TestRoutersBasic-31473637-32251724 ID is 2fabd360-f1ea-4edd-a903-a976e8ecc3e1 2025-05-07 08:51:32,960 - DEBUG - VM ctest-TestRoutersBasic-31473637-32251724 launched on Node cn-jenkins-deploy-platform-ansible-os-3281-1 2025-05-07 08:51:33,081 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/2fabd360-f1ea-4edd-a903-a976e8ecc3e1 2025-05-07 08:51:33,363 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/2fabd360-f1ea-4edd-a903-a976e8ecc3e1 2025-05-07 08:51:33,395 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/15fd55e0-9c79-49b0-8512-abc58397b2ff 2025-05-07 08:51:36,666 - 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 1012ms') 2025-05-07 08:51:36,666 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-31473637-32251724 failed! 2025-05-07 08:51:36,720 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-31473637:ctest-vn-75290193 is 125.247.40.65 and allocation pool is NOT set 2025-05-07 08:51:40,799 - 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-05-07 08:51:40,799 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-31473637-32251724 failed! 2025-05-07 08:51:40,853 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-31473637:ctest-vn-75290193 is 125.247.40.65 and allocation pool is NOT set 2025-05-07 08:51:42,911 - 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.59 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.89 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 = 1.887/3.239/4.592/1.352 ms') 2025-05-07 08:51:42,911 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-31473637-32251724 passed 2025-05-07 08:51:43,061 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-07 08:51:43,061 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-31473637-32251724, IP 125.247.40.67, Port 22 2025-05-07 08:51:43,127 - 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-05-07 08:51:43,213 - DEBUG - VM ctest-TestRoutersBasic-31473637-32251724 is NOT ready for SSH connections, VM status: ACTIVE 2025-05-07 08:51:48,213 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-07 08:51:48,213 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-31473637-32251724, IP 125.247.40.67, Port 22 2025-05-07 08:51:48,364 - DEBUG - VM ctest-TestRoutersBasic-31473637-32251724 is ready for SSH connections 2025-05-07 08:51:48,364 - INFO - Waiting for VM ctest-TestRoutersBasic-31473637-84731797 to be up.. 2025-05-07 08:51:48,444 - DEBUG - VM is in ACTIVE state now 2025-05-07 08:51:48,444 - INFO - VM name : ctest-TestRoutersBasic-31473637-84731797 2025-05-07 08:51:48,511 - DEBUG - VM ctest-TestRoutersBasic-31473637-84731797 ID is 1df4556c-6ec8-4d54-ac70-42d7fd15a76d 2025-05-07 08:51:48,511 - DEBUG - VM ctest-TestRoutersBasic-31473637-84731797 launched on Node cn-jenkins-deploy-platform-ansible-os-3281-1 2025-05-07 08:51:48,576 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/1df4556c-6ec8-4d54-ac70-42d7fd15a76d 2025-05-07 08:51:48,586 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/96826b20-6a11-43c8-a7d6-a6bb73bf27b3 2025-05-07 08:51:49,829 - 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=2.62 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.409 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.409/1.512/2.616/1.103 ms') 2025-05-07 08:51:49,829 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-31473637-84731797 passed 2025-05-07 08:51:49,980 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-07 08:51:49,981 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-31473637-84731797, IP 215.126.239.131, Port 22 2025-05-07 08:51:50,132 - DEBUG - VM ctest-TestRoutersBasic-31473637-84731797 is ready for SSH connections 2025-05-07 08:51:50,132 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-07 08:51:50,132 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 215.126.239.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-05-07 08:51:50,132 - DEBUG - ping -s 56 -c 3 -W 1 215.126.239.131 2025-05-07 08:51:54,057 - DEBUG - PING 215.126.239.131 (215.126.239.131): 56 data bytes 64 bytes from 215.126.239.131: seq=0 ttl=62 time=9.848 ms 64 bytes from 215.126.239.131: seq=1 ttl=62 time=0.863 ms 64 bytes from 215.126.239.131: seq=2 ttl=62 time=0.852 ms --- 215.126.239.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.852/3.854/9.848 ms 2025-05-07 08:51:54,057 - INFO - Ping to IP 215.126.239.131 from VM ctest-TestRoutersBasic-31473637-32251724 passed 2025-05-07 08:51:54,058 - INFO - Deleting interface with subnet_id b941cdd4-4ff9-4585-95b9-14e7e1e67cf7, port_id None from router dc673746-c554-4417-a812-e6568dc4b98e 2025-05-07 08:51:54,240 - INFO - Deleting VM ctest-TestRoutersBasic-31473637-84731797 2025-05-07 08:51:54,306 - INFO - Deleting VM ctest-TestRoutersBasic-31473637-32251724 2025-05-07 08:51:54,390 - INFO - Deleting VN ctest-ext_vn-55808627 2025-05-07 08:51:54,454 - DEBUG - VN 69979f46-f911-4816-8f06-3c3fe2905b5b still in use: Unable to complete operation on network 69979f46-f911-4816-8f06-3c3fe2905b5b. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-992fe649-dc54-43d0-8896-fb8f80ec2522'] 2025-05-07 08:51:54,454 - WARNING - Deleting VN ctest-ext_vn-55808627 failed..Will retry 2025-05-07 08:51:56,558 - DEBUG - Response for deleting network () 2025-05-07 08:51:56,558 - INFO - Deleting VN ctest-vn-75290193 2025-05-07 08:51:56,663 - DEBUG - Response for deleting network () 2025-05-07 08:51:56,919 - DEBUG - No XMPP flaps were noticed during the test
2025-05-07 08:51:56,919 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:29]
2025-05-07 08:51:56,919 - INFO - -------------------------------------------------------------------------------- 2025-05-07 08:51:57,543 - INFO - Deleted project: ctest-TestRoutersBasic-31473637, ID : 8821c886-f947-4df1-860d-2734624336ef