2025-09-22 02:02:41,528 - INFO - Domain Default found not creating 2025-09-22 02:02:41,672 - INFO - Project ctest-TestRoutersBasic-20905897 not found, creating it 2025-09-22 02:02:42,139 - INFO - Created Project:ctest-TestRoutersBasic-20905897, ID : b79ecdcf-a77e-40b4-b588-0f9d71376247 2025-09-22 02:02:43,683 - INFO - ================================================================================ 2025-09-22 02:02:43,683 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-09-22 02:02:43,684 - 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-09-22 02:02:43,939 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.17': '0'}} with 2025-09-22 02:02:43,939 - INFO - Initial checks done. Running the testcase now 2025-09-22 02:02:43,939 - INFO - 2025-09-22 02:02:44,731 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-20905897 2025-09-22 02:02:44,824 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-20905897 2025-09-22 02:02:45,144 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-20905897', 'default']} 2025-09-22 02:02:45,440 - DEBUG - Response for create_network : {'network': {'id': '0fbe6c43-6e57-4cbb-97e2-6a95526b4e5e', 'name': 'ctest-vn-11903917', 'tenant_id': 'b79ecdcfa77e40b4b5880f9d71376247', 'project_id': 'b79ecdcfa77e40b4b5880f9d71376247', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-20905897', 'ctest-vn-11903917'], 'port_security_enabled': True, 'description': ''}} 2025-09-22 02:02:45,589 - DEBUG - Response for create_subnet : {'subnet': {'id': '04697d80-451c-49df-b725-217a83dafedf', 'name': '', 'tenant_id': 'b79ecdcfa77e40b4b5880f9d71376247', 'network_id': '0fbe6c43-6e57-4cbb-97e2-6a95526b4e5e', 'ip_version': 4, 'cidr': '157.144.69.128/26', 'allocation_pools': [{'start': '157.144.69.130', 'end': '157.144.69.190'}], 'gateway_ip': '157.144.69.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '157.144.69.130', 'tags': [], 'project_id': 'b79ecdcfa77e40b4b5880f9d71376247'}} 2025-09-22 02:02:45,609 - INFO - Created VN ctest-vn-11903917 2025-09-22 02:02:45,660 - DEBUG - VN ctest-vn-11903917 UUID is 0fbe6c43-6e57-4cbb-97e2-6a95526b4e5e 2025-09-22 02:02:45,990 - DEBUG - Response for create_network : {'network': {'id': 'b90e760f-dbb3-4d0d-b85b-a16c625b3aab', 'name': 'ctest-ext_vn-65223790', 'tenant_id': 'b79ecdcfa77e40b4b5880f9d71376247', 'project_id': 'b79ecdcfa77e40b4b5880f9d71376247', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-20905897', 'ctest-ext_vn-65223790'], 'port_security_enabled': True, 'description': ''}} 2025-09-22 02:02:46,203 - DEBUG - Response for create_subnet : {'subnet': {'id': '13be93f4-da82-4483-8cef-b39fdd24197f', 'name': '', 'tenant_id': 'b79ecdcfa77e40b4b5880f9d71376247', 'network_id': 'b90e760f-dbb3-4d0d-b85b-a16c625b3aab', 'ip_version': 4, 'cidr': '174.48.148.64/26', 'allocation_pools': [{'start': '174.48.148.66', 'end': '174.48.148.126'}], 'gateway_ip': '174.48.148.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '174.48.148.66', 'tags': [], 'project_id': 'b79ecdcfa77e40b4b5880f9d71376247'}} 2025-09-22 02:02:46,224 - INFO - Created VN ctest-ext_vn-65223790 2025-09-22 02:02:46,276 - DEBUG - VN ctest-ext_vn-65223790 UUID is b90e760f-dbb3-4d0d-b85b-a16c625b3aab 2025-09-22 02:02:46,475 - DEBUG - Services list from nova: [, , ] 2025-09-22 02:02:47,549 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4160-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4160-1) 2025-09-22 02:02:48,763 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4160-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4160-1) 2025-09-22 02:02:48,831 - INFO - Setting gateway for router 0d96aa33-7323-4f5f-8182-b293b13714a8 to network b90e760f-dbb3-4d0d-b85b-a16c625b3aab 2025-09-22 02:02:48,924 - INFO - Adding interface with subnet_id 04697d80-451c-49df-b725-217a83dafedf, port_id None to router 0d96aa33-7323-4f5f-8182-b293b13714a8 2025-09-22 02:02:49,312 - INFO - Waiting for VM ctest-TestRoutersBasic-20905897-50055578 to be up.. 2025-09-22 02:02:49,487 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-09-22 02:02:54,593 - DEBUG - VM is in ACTIVE state now 2025-09-22 02:02:54,594 - INFO - VM name : ctest-TestRoutersBasic-20905897-50055578 2025-09-22 02:02:54,681 - DEBUG - VM ctest-TestRoutersBasic-20905897-50055578 ID is f7844d23-0bde-46e6-813f-ced4d4333455 2025-09-22 02:02:54,706 - DEBUG - VM ctest-TestRoutersBasic-20905897-50055578 launched on Node cn-jenkins-deploy-platform-ansible-os-4160-1 2025-09-22 02:02:54,798 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine/f7844d23-0bde-46e6-813f-ced4d4333455 2025-09-22 02:02:55,140 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine/f7844d23-0bde-46e6-813f-ced4d4333455 2025-09-22 02:02:55,178 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine-interface/43f86f98-6fc0-41a5-9709-5daba007eec1 2025-09-22 02:02:58,434 - 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 1004ms') 2025-09-22 02:02:58,435 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-20905897-50055578 failed! 2025-09-22 02:02:58,499 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-20905897:ctest-vn-11903917 is 157.144.69.129 and allocation pool is NOT set 2025-09-22 02:03:00,562 - 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.92 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.92 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.922/3.422/4.922/1.500 ms') 2025-09-22 02:03:00,562 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-20905897-50055578 passed 2025-09-22 02:03:00,716 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-22 02:03:00,717 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-20905897-50055578, IP 157.144.69.131, Port 22 2025-09-22 02:03:00,776 - 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-09-22 02:03:00,864 - DEBUG - VM ctest-TestRoutersBasic-20905897-50055578 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-22 02:03:05,865 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-22 02:03:05,865 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-20905897-50055578, IP 157.144.69.131, Port 22 2025-09-22 02:03:06,034 - DEBUG - VM ctest-TestRoutersBasic-20905897-50055578 is ready for SSH connections 2025-09-22 02:03:06,035 - INFO - Waiting for VM ctest-TestRoutersBasic-20905897-61518005 to be up.. 2025-09-22 02:03:06,127 - DEBUG - VM is in ACTIVE state now 2025-09-22 02:03:06,127 - INFO - VM name : ctest-TestRoutersBasic-20905897-61518005 2025-09-22 02:03:06,210 - DEBUG - VM ctest-TestRoutersBasic-20905897-61518005 ID is 333dba42-5a8f-4b35-b617-27a09bc1af4f 2025-09-22 02:03:06,210 - DEBUG - VM ctest-TestRoutersBasic-20905897-61518005 launched on Node cn-jenkins-deploy-platform-ansible-os-4160-1 2025-09-22 02:03:06,293 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine/333dba42-5a8f-4b35-b617-27a09bc1af4f 2025-09-22 02:03:06,302 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine-interface/72329957-0b5e-499d-a833-9cef937b5cd7 2025-09-22 02:03:07,540 - 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.34 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.571 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 = 0.571/2.454/4.337/1.883 ms') 2025-09-22 02:03:07,540 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-20905897-61518005 passed 2025-09-22 02:03:07,700 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-22 02:03:07,701 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-20905897-61518005, IP 174.48.148.67, Port 22 2025-09-22 02:03:07,864 - DEBUG - VM ctest-TestRoutersBasic-20905897-61518005 is ready for SSH connections 2025-09-22 02:03:07,864 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-22 02:03:07,864 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 174.48.148.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.19, gateway password: c0ntrail123 2025-09-22 02:03:07,864 - DEBUG - ping -s 56 -c 3 -W 1 174.48.148.67 2025-09-22 02:03:11,618 - DEBUG - PING 174.48.148.67 (174.48.148.67): 56 data bytes 64 bytes from 174.48.148.67: seq=0 ttl=62 time=7.524 ms 64 bytes from 174.48.148.67: seq=1 ttl=62 time=1.046 ms 64 bytes from 174.48.148.67: seq=2 ttl=62 time=1.076 ms --- 174.48.148.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.046/3.215/7.524 ms 2025-09-22 02:03:11,618 - INFO - Ping to IP 174.48.148.67 from VM ctest-TestRoutersBasic-20905897-50055578 passed 2025-09-22 02:03:11,618 - INFO - Deleting interface with subnet_id 04697d80-451c-49df-b725-217a83dafedf, port_id None from router 0d96aa33-7323-4f5f-8182-b293b13714a8 2025-09-22 02:03:11,843 - INFO - Deleting VM ctest-TestRoutersBasic-20905897-61518005 2025-09-22 02:03:11,916 - INFO - Deleting VM ctest-TestRoutersBasic-20905897-50055578 2025-09-22 02:03:12,020 - INFO - Deleting VN ctest-ext_vn-65223790 2025-09-22 02:03:12,114 - DEBUG - VN b90e760f-dbb3-4d0d-b85b-a16c625b3aab still in use: Unable to complete operation on network b90e760f-dbb3-4d0d-b85b-a16c625b3aab. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-db4ef23b-62f7-4da4-8c39-68134886a014'] 2025-09-22 02:03:12,114 - WARNING - Deleting VN ctest-ext_vn-65223790 failed..Will retry 2025-09-22 02:03:14,215 - DEBUG - Response for deleting network () 2025-09-22 02:03:14,215 - INFO - Deleting VN ctest-vn-11903917 2025-09-22 02:03:14,313 - DEBUG - Response for deleting network () 2025-09-22 02:03:14,577 - DEBUG - No XMPP flaps were noticed during the test
2025-09-22 02:03:14,577 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31]
2025-09-22 02:03:14,577 - INFO - -------------------------------------------------------------------------------- 2025-09-22 02:03:15,270 - INFO - Deleted project: ctest-TestRoutersBasic-20905897, ID : b79ecdcf-a77e-40b4-b588-0f9d71376247