2025-04-25 07:06:16,803 - INFO - Domain Default found not creating 2025-04-25 07:06:16,961 - INFO - Project ctest-TestRoutersBasic-38647937 not found, creating it 2025-04-25 07:06:17,421 - INFO - Created Project:ctest-TestRoutersBasic-38647937, ID : a63eb6cc-2cf9-44a1-959e-cc9b2048deab 2025-04-25 07:06:19,009 - INFO - ================================================================================ 2025-04-25 07:06:19,009 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-04-25 07:06:19,010 - 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-25 07:06:19,266 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-04-25 07:06:19,266 - INFO - Initial checks done. Running the testcase now 2025-04-25 07:06:19,266 - INFO - 2025-04-25 07:06:20,065 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-38647937 2025-04-25 07:06:20,164 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-38647937 2025-04-25 07:06:20,496 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-38647937', 'default']} 2025-04-25 07:06:20,799 - DEBUG - Response for create_network : {'network': {'id': '5a6b6d0e-0462-47bb-a152-38e33368aeb7', 'name': 'ctest-vn-39021977', 'tenant_id': 'a63eb6cc2cf944a1959ecc9b2048deab', 'project_id': 'a63eb6cc2cf944a1959ecc9b2048deab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-38647937', 'ctest-vn-39021977'], 'port_security_enabled': True, 'description': ''}} 2025-04-25 07:06:20,962 - DEBUG - Response for create_subnet : {'subnet': {'id': '4d12a192-65d2-4abb-a36a-d518e4370c50', 'name': '', 'tenant_id': 'a63eb6cc2cf944a1959ecc9b2048deab', 'network_id': '5a6b6d0e-0462-47bb-a152-38e33368aeb7', 'ip_version': 4, 'cidr': '130.30.113.64/26', 'allocation_pools': [{'start': '130.30.113.66', 'end': '130.30.113.126'}], 'gateway_ip': '130.30.113.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '130.30.113.66', 'tags': [], 'project_id': 'a63eb6cc2cf944a1959ecc9b2048deab'}} 2025-04-25 07:06:20,982 - INFO - Created VN ctest-vn-39021977 2025-04-25 07:06:21,036 - DEBUG - VN ctest-vn-39021977 UUID is 5a6b6d0e-0462-47bb-a152-38e33368aeb7 2025-04-25 07:06:21,400 - DEBUG - Response for create_network : {'network': {'id': '1d674161-ec19-4f82-a940-19b5dd81bf48', 'name': 'ctest-ext_vn-97266155', 'tenant_id': 'a63eb6cc2cf944a1959ecc9b2048deab', 'project_id': 'a63eb6cc2cf944a1959ecc9b2048deab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-38647937', 'ctest-ext_vn-97266155'], 'port_security_enabled': True, 'description': ''}} 2025-04-25 07:06:21,583 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c87d515a-05e6-49fa-8e5b-4edeec7387d3', 'name': '', 'tenant_id': 'a63eb6cc2cf944a1959ecc9b2048deab', 'network_id': '1d674161-ec19-4f82-a940-19b5dd81bf48', 'ip_version': 4, 'cidr': '2.67.81.0/26', 'allocation_pools': [{'start': '2.67.81.2', 'end': '2.67.81.62'}], 'gateway_ip': '2.67.81.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2.67.81.2', 'tags': [], 'project_id': 'a63eb6cc2cf944a1959ecc9b2048deab'}} 2025-04-25 07:06:21,603 - INFO - Created VN ctest-ext_vn-97266155 2025-04-25 07:06:21,656 - DEBUG - VN ctest-ext_vn-97266155 UUID is 1d674161-ec19-4f82-a940-19b5dd81bf48 2025-04-25 07:06:21,826 - DEBUG - Services list from nova: [, , ] 2025-04-25 07:06:22,932 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3213-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3213-1) 2025-04-25 07:06:24,202 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3213-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3213-1) 2025-04-25 07:06:24,296 - INFO - Setting gateway for router 5a94cac2-ab4a-4713-aea6-801013ede159 to network 1d674161-ec19-4f82-a940-19b5dd81bf48 2025-04-25 07:06:24,386 - INFO - Adding interface with subnet_id 4d12a192-65d2-4abb-a36a-d518e4370c50, port_id None to router 5a94cac2-ab4a-4713-aea6-801013ede159 2025-04-25 07:06:24,731 - INFO - Waiting for VM ctest-TestRoutersBasic-38647937-50227846 to be up.. 2025-04-25 07:06:24,900 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-25 07:06:29,984 - DEBUG - VM is in ACTIVE state now 2025-04-25 07:06:29,984 - INFO - VM name : ctest-TestRoutersBasic-38647937-50227846 2025-04-25 07:06:30,064 - DEBUG - VM ctest-TestRoutersBasic-38647937-50227846 ID is 93bfd07e-c25d-4094-9a2d-77c56546403c 2025-04-25 07:06:30,083 - DEBUG - VM ctest-TestRoutersBasic-38647937-50227846 launched on Node cn-jenkins-deploy-platform-ansible-os-3213-1 2025-04-25 07:06:30,162 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/93bfd07e-c25d-4094-9a2d-77c56546403c 2025-04-25 07:06:30,505 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/93bfd07e-c25d-4094-9a2d-77c56546403c 2025-04-25 07:06:30,544 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/ac7b38ea-0322-471e-a0ce-daf11d0eb9b6 2025-04-25 07:06:33,818 - 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-25 07:06:33,818 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-38647937-50227846 failed! 2025-04-25 07:06:33,872 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-38647937:ctest-vn-39021977 is 130.30.113.65 and allocation pool is NOT set 2025-04-25 07:06:35,929 - 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.90 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.03 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 1.034/2.465/3.896/1.431 ms') 2025-04-25 07:06:35,929 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-38647937-50227846 passed 2025-04-25 07:06:36,084 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-25 07:06:36,084 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-38647937-50227846, IP 130.30.113.67, Port 22 2025-04-25 07:06:36,240 - DEBUG - VM ctest-TestRoutersBasic-38647937-50227846 is ready for SSH connections 2025-04-25 07:06:36,240 - INFO - Waiting for VM ctest-TestRoutersBasic-38647937-71687977 to be up.. 2025-04-25 07:06:36,335 - DEBUG - VM is in ACTIVE state now 2025-04-25 07:06:36,335 - INFO - VM name : ctest-TestRoutersBasic-38647937-71687977 2025-04-25 07:06:36,430 - DEBUG - VM ctest-TestRoutersBasic-38647937-71687977 ID is ab1ebca0-7030-44f9-aeab-6426bc013332 2025-04-25 07:06:36,430 - DEBUG - VM ctest-TestRoutersBasic-38647937-71687977 launched on Node cn-jenkins-deploy-platform-ansible-os-3213-1 2025-04-25 07:06:36,511 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/ab1ebca0-7030-44f9-aeab-6426bc013332 2025-04-25 07:06:36,523 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/d87e3381-1062-4b3e-a8d2-be21d732567e 2025-04-25 07:06:37,777 - 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.95 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 1001ms\r\nrtt min/avg/max/mdev = 1.192/2.573/3.954/1.381 ms') 2025-04-25 07:06:37,777 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-38647937-71687977 passed 2025-04-25 07:06:37,936 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-25 07:06:37,936 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-38647937-71687977, IP 2.67.81.3, Port 22 2025-04-25 07:06:38,002 - 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-25 07:06:38,094 - DEBUG - VM ctest-TestRoutersBasic-38647937-71687977 is NOT ready for SSH connections, VM status: ACTIVE 2025-04-25 07:06:43,095 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-25 07:06:43,095 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-38647937-71687977, IP 2.67.81.3, Port 22 2025-04-25 07:06:43,256 - DEBUG - VM ctest-TestRoutersBasic-38647937-71687977 is ready for SSH connections 2025-04-25 07:06:43,256 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-25 07:06:43,256 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 2.67.81.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-04-25 07:06:43,256 - DEBUG - ping -s 56 -c 3 -W 1 2.67.81.3 2025-04-25 07:06:46,990 - DEBUG - PING 2.67.81.3 (2.67.81.3): 56 data bytes 64 bytes from 2.67.81.3: seq=0 ttl=62 time=6.293 ms 64 bytes from 2.67.81.3: seq=1 ttl=62 time=1.133 ms 64 bytes from 2.67.81.3: seq=2 ttl=62 time=0.840 ms --- 2.67.81.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.840/2.755/6.293 ms 2025-04-25 07:06:46,990 - INFO - Ping to IP 2.67.81.3 from VM ctest-TestRoutersBasic-38647937-50227846 passed 2025-04-25 07:06:46,991 - INFO - Deleting interface with subnet_id 4d12a192-65d2-4abb-a36a-d518e4370c50, port_id None from router 5a94cac2-ab4a-4713-aea6-801013ede159 2025-04-25 07:06:47,270 - INFO - Deleting VM ctest-TestRoutersBasic-38647937-71687977 2025-04-25 07:06:47,350 - INFO - Deleting VM ctest-TestRoutersBasic-38647937-50227846 2025-04-25 07:06:47,443 - INFO - Deleting VN ctest-ext_vn-97266155 2025-04-25 07:06:47,529 - DEBUG - VN 1d674161-ec19-4f82-a940-19b5dd81bf48 still in use: Unable to complete operation on network 1d674161-ec19-4f82-a940-19b5dd81bf48. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-42da9c87-b46c-4389-81dc-45d09ff61298'] 2025-04-25 07:06:47,530 - WARNING - Deleting VN ctest-ext_vn-97266155 failed..Will retry 2025-04-25 07:06:49,653 - DEBUG - Response for deleting network () 2025-04-25 07:06:49,653 - INFO - Deleting VN ctest-vn-39021977 2025-04-25 07:06:49,779 - DEBUG - Response for deleting network () 2025-04-25 07:06:50,039 - DEBUG - No XMPP flaps were noticed during the test 2025-04-25 07:06:50,040 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31] 2025-04-25 07:06:50,040 - INFO - -------------------------------------------------------------------------------- 2025-04-25 07:06:50,785 - INFO - Deleted project: ctest-TestRoutersBasic-38647937, ID : a63eb6cc-2cf9-44a1-959e-cc9b2048deab