2025-04-22 17:34:53,588 - INFO - Domain Default found not creating 2025-04-22 17:34:53,730 - INFO - Project ctest-TestRoutersBasic-21120219 not found, creating it 2025-04-22 17:34:54,190 - INFO - Created Project:ctest-TestRoutersBasic-21120219, ID : bfcea482-009e-4460-b28b-da9c0cdd993e 2025-04-22 17:34:55,699 - INFO - ================================================================================ 2025-04-22 17:34:55,700 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-04-22 17:34:55,700 - 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-22 17:34:55,961 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.14': '0'}} with 2025-04-22 17:34:55,961 - INFO - Initial checks done. Running the testcase now 2025-04-22 17:34:55,961 - INFO - 2025-04-22 17:34:56,741 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-21120219 2025-04-22 17:34:56,839 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-21120219 2025-04-22 17:34:57,171 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-21120219', 'default']} 2025-04-22 17:34:57,466 - DEBUG - Response for create_network : {'network': {'id': '2d8288ed-8a5a-4f99-8fd6-d6149d4ecfa6', 'name': 'ctest-vn-89273796', 'tenant_id': 'bfcea482009e4460b28bda9c0cdd993e', 'project_id': 'bfcea482009e4460b28bda9c0cdd993e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-21120219', 'ctest-vn-89273796'], 'port_security_enabled': True, 'description': ''}} 2025-04-22 17:34:57,653 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ef254965-464b-4e0f-9e53-4a241d7bd698', 'name': '', 'tenant_id': 'bfcea482009e4460b28bda9c0cdd993e', 'network_id': '2d8288ed-8a5a-4f99-8fd6-d6149d4ecfa6', 'ip_version': 4, 'cidr': '41.131.142.128/26', 'allocation_pools': [{'start': '41.131.142.130', 'end': '41.131.142.190'}], 'gateway_ip': '41.131.142.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '41.131.142.130', 'tags': [], 'project_id': 'bfcea482009e4460b28bda9c0cdd993e'}} 2025-04-22 17:34:57,671 - INFO - Created VN ctest-vn-89273796 2025-04-22 17:34:57,727 - DEBUG - VN ctest-vn-89273796 UUID is 2d8288ed-8a5a-4f99-8fd6-d6149d4ecfa6 2025-04-22 17:34:58,106 - DEBUG - Response for create_network : {'network': {'id': '3858f132-d681-43e0-be64-d09e8bbc0ba4', 'name': 'ctest-ext_vn-62519819', 'tenant_id': 'bfcea482009e4460b28bda9c0cdd993e', 'project_id': 'bfcea482009e4460b28bda9c0cdd993e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-21120219', 'ctest-ext_vn-62519819'], 'port_security_enabled': True, 'description': ''}} 2025-04-22 17:34:58,335 - DEBUG - Response for create_subnet : {'subnet': {'id': '984b6c10-d2f2-4a72-ac56-1324de7b70e0', 'name': '', 'tenant_id': 'bfcea482009e4460b28bda9c0cdd993e', 'network_id': '3858f132-d681-43e0-be64-d09e8bbc0ba4', 'ip_version': 4, 'cidr': '160.73.99.192/26', 'allocation_pools': [{'start': '160.73.99.194', 'end': '160.73.99.254'}], 'gateway_ip': '160.73.99.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '160.73.99.194', 'tags': [], 'project_id': 'bfcea482009e4460b28bda9c0cdd993e'}} 2025-04-22 17:34:58,353 - INFO - Created VN ctest-ext_vn-62519819 2025-04-22 17:34:58,411 - DEBUG - VN ctest-ext_vn-62519819 UUID is 3858f132-d681-43e0-be64-d09e8bbc0ba4 2025-04-22 17:34:58,623 - DEBUG - Services list from nova: [, , ] 2025-04-22 17:34:59,971 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3169-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3169-1) 2025-04-22 17:35:01,222 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3169-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3169-1) 2025-04-22 17:35:01,305 - INFO - Setting gateway for router 959371fd-056b-4abc-9cfe-7a5ea8f4113f to network 3858f132-d681-43e0-be64-d09e8bbc0ba4 2025-04-22 17:35:01,371 - INFO - Adding interface with subnet_id ef254965-464b-4e0f-9e53-4a241d7bd698, port_id None to router 959371fd-056b-4abc-9cfe-7a5ea8f4113f 2025-04-22 17:35:01,784 - INFO - Waiting for VM ctest-TestRoutersBasic-21120219-24355469 to be up.. 2025-04-22 17:35:01,966 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-22 17:35:07,044 - DEBUG - VM is in ACTIVE state now 2025-04-22 17:35:07,044 - INFO - VM name : ctest-TestRoutersBasic-21120219-24355469 2025-04-22 17:35:07,121 - DEBUG - VM ctest-TestRoutersBasic-21120219-24355469 ID is 4624183d-66be-4f95-acfb-f23c4fee0c44 2025-04-22 17:35:07,145 - DEBUG - VM ctest-TestRoutersBasic-21120219-24355469 launched on Node cn-jenkins-deploy-platform-ansible-os-3169-1 2025-04-22 17:35:07,232 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-machine/4624183d-66be-4f95-acfb-f23c4fee0c44 2025-04-22 17:35:07,573 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-machine/4624183d-66be-4f95-acfb-f23c4fee0c44 2025-04-22 17:35:07,608 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-machine-interface/0fbdf6a3-90e7-47ba-a32f-c38211203edd 2025-04-22 17:35:10,877 - 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 1023ms') 2025-04-22 17:35:10,877 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-21120219-24355469 failed! 2025-04-22 17:35:10,935 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-21120219:ctest-vn-89273796 is 41.131.142.129 and allocation pool is NOT set 2025-04-22 17:35:12,993 - 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.23 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.347 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.347/1.786/3.225/1.439 ms') 2025-04-22 17:35:12,994 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-21120219-24355469 passed 2025-04-22 17:35:13,143 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-22 17:35:13,143 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-21120219-24355469, IP 41.131.142.131, Port 22 2025-04-22 17:35:13,302 - DEBUG - VM ctest-TestRoutersBasic-21120219-24355469 is ready for SSH connections 2025-04-22 17:35:13,303 - INFO - Waiting for VM ctest-TestRoutersBasic-21120219-54108843 to be up.. 2025-04-22 17:35:13,379 - DEBUG - VM is in ACTIVE state now 2025-04-22 17:35:13,379 - INFO - VM name : ctest-TestRoutersBasic-21120219-54108843 2025-04-22 17:35:13,455 - DEBUG - VM ctest-TestRoutersBasic-21120219-54108843 ID is ccd04aab-68bc-4406-85f5-188df56cd0e3 2025-04-22 17:35:13,456 - DEBUG - VM ctest-TestRoutersBasic-21120219-54108843 launched on Node cn-jenkins-deploy-platform-ansible-os-3169-1 2025-04-22 17:35:13,531 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-machine/ccd04aab-68bc-4406-85f5-188df56cd0e3 2025-04-22 17:35:13,539 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-machine-interface/885378e0-d115-426d-bd67-61db18c6d23d 2025-04-22 17:35:14,793 - 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.05 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=3.36 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.051/3.206/3.361/0.155 ms') 2025-04-22 17:35:14,793 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-21120219-54108843 passed 2025-04-22 17:35:14,947 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-22 17:35:14,947 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-21120219-54108843, IP 160.73.99.195, Port 22 2025-04-22 17:35:15,013 - 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-22 17:35:15,092 - DEBUG - VM ctest-TestRoutersBasic-21120219-54108843 is NOT ready for SSH connections, VM status: ACTIVE 2025-04-22 17:35:20,094 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-22 17:35:20,094 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-21120219-54108843, IP 160.73.99.195, Port 22 2025-04-22 17:35:20,254 - DEBUG - VM ctest-TestRoutersBasic-21120219-54108843 is ready for SSH connections 2025-04-22 17:35:20,254 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-22 17:35:20,254 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 160.73.99.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.141, gateway password: c0ntrail123 2025-04-22 17:35:20,254 - DEBUG - ping -s 56 -c 3 -W 1 160.73.99.195 2025-04-22 17:35:24,322 - DEBUG - PING 160.73.99.195 (160.73.99.195): 56 data bytes 64 bytes from 160.73.99.195: seq=0 ttl=62 time=4.528 ms 64 bytes from 160.73.99.195: seq=1 ttl=62 time=0.871 ms 64 bytes from 160.73.99.195: seq=2 ttl=62 time=0.806 ms --- 160.73.99.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.806/2.068/4.528 ms 2025-04-22 17:35:24,322 - INFO - Ping to IP 160.73.99.195 from VM ctest-TestRoutersBasic-21120219-24355469 passed 2025-04-22 17:35:24,322 - INFO - Deleting interface with subnet_id ef254965-464b-4e0f-9e53-4a241d7bd698, port_id None from router 959371fd-056b-4abc-9cfe-7a5ea8f4113f 2025-04-22 17:35:24,511 - INFO - Deleting VM ctest-TestRoutersBasic-21120219-54108843 2025-04-22 17:35:24,577 - INFO - Deleting VM ctest-TestRoutersBasic-21120219-24355469 2025-04-22 17:35:24,666 - INFO - Deleting VN ctest-ext_vn-62519819 2025-04-22 17:35:24,722 - DEBUG - VN 3858f132-d681-43e0-be64-d09e8bbc0ba4 still in use: Unable to complete operation on network 3858f132-d681-43e0-be64-d09e8bbc0ba4. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-1dde6f86-f1a3-4f9c-976e-35a5279fe81f'] 2025-04-22 17:35:24,723 - WARNING - Deleting VN ctest-ext_vn-62519819 failed..Will retry 2025-04-22 17:35:26,834 - DEBUG - Response for deleting network () 2025-04-22 17:35:26,834 - INFO - Deleting VN ctest-vn-89273796 2025-04-22 17:35:26,955 - DEBUG - Response for deleting network () 2025-04-22 17:35:27,227 - DEBUG - No XMPP flaps were noticed during the test 2025-04-22 17:35:27,227 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32] 2025-04-22 17:35:27,227 - INFO - -------------------------------------------------------------------------------- 2025-04-22 17:35:27,940 - INFO - Deleted project: ctest-TestRoutersBasic-21120219, ID : bfcea482-009e-4460-b28b-da9c0cdd993e