2024-11-06 18:55:28,436 - INFO - Domain Default found not creating 2024-11-06 18:55:28,624 - INFO - Project ctest-TestRoutersBasic-73874898 not found, creating it 2024-11-06 18:55:29,162 - INFO - Created Project:ctest-TestRoutersBasic-73874898, ID : 2472ee6f-ee8f-4582-a996-1ed17b798317 2024-11-06 18:55:30,969 - INFO - ================================================================================ 2024-11-06 18:55:30,970 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-11-06 18:55:30,970 - 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 2024-11-06 18:55:31,231 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.20.0.8': '0'}} with 2024-11-06 18:55:31,231 - INFO - Initial checks done. Running the testcase now 2024-11-06 18:55:31,232 - INFO - 2024-11-06 18:55:32,070 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-73874898 2024-11-06 18:55:32,177 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-73874898 2024-11-06 18:55:32,533 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-73874898', 'default']} 2024-11-06 18:55:32,879 - DEBUG - Response for create_network : {'network': {'id': '9b81fd9f-aedb-40c9-b848-850fd2b0cc66', 'name': 'ctest-vn-35218035', 'tenant_id': '2472ee6fee8f4582a9961ed17b798317', 'project_id': '2472ee6fee8f4582a9961ed17b798317', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-73874898', 'ctest-vn-35218035'], 'port_security_enabled': True, 'description': ''}} 2024-11-06 18:55:33,047 - DEBUG - Response for create_subnet : {'subnet': {'id': '926ff6ba-3caa-4dcd-901a-c4cba2b79879', 'name': '', 'tenant_id': '2472ee6fee8f4582a9961ed17b798317', 'network_id': '9b81fd9f-aedb-40c9-b848-850fd2b0cc66', 'ip_version': 4, 'cidr': '100.47.229.128/26', 'allocation_pools': [{'start': '100.47.229.130', 'end': '100.47.229.190'}], 'gateway_ip': '100.47.229.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '100.47.229.130', 'tags': [], 'project_id': '2472ee6fee8f4582a9961ed17b798317'}} 2024-11-06 18:55:33,068 - INFO - Created VN ctest-vn-35218035 2024-11-06 18:55:33,129 - DEBUG - VN ctest-vn-35218035 UUID is 9b81fd9f-aedb-40c9-b848-850fd2b0cc66 2024-11-06 18:55:33,493 - DEBUG - Response for create_network : {'network': {'id': 'bbbc988b-0926-4b50-9e51-7643df383d22', 'name': 'ctest-ext_vn-19609232', 'tenant_id': '2472ee6fee8f4582a9961ed17b798317', 'project_id': '2472ee6fee8f4582a9961ed17b798317', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-73874898', 'ctest-ext_vn-19609232'], 'port_security_enabled': True, 'description': ''}} 2024-11-06 18:55:33,765 - DEBUG - Response for create_subnet : {'subnet': {'id': '034ce27d-dc75-4085-9a3b-25bb1c827bc2', 'name': '', 'tenant_id': '2472ee6fee8f4582a9961ed17b798317', 'network_id': 'bbbc988b-0926-4b50-9e51-7643df383d22', 'ip_version': 4, 'cidr': '7.9.151.0/26', 'allocation_pools': [{'start': '7.9.151.2', 'end': '7.9.151.62'}], 'gateway_ip': '7.9.151.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '7.9.151.2', 'tags': [], 'project_id': '2472ee6fee8f4582a9961ed17b798317'}} 2024-11-06 18:55:33,791 - INFO - Created VN ctest-ext_vn-19609232 2024-11-06 18:55:33,857 - DEBUG - VN ctest-ext_vn-19609232 UUID is bbbc988b-0926-4b50-9e51-7643df383d22 2024-11-06 18:55:34,046 - DEBUG - Services list from nova: [, , ] 2024-11-06 18:55:35,211 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2205-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2205-1) 2024-11-06 18:55:36,541 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2205-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2205-1) 2024-11-06 18:55:36,645 - INFO - Setting gateway for router c7de9f06-b172-4849-824f-aff294f517bc to network bbbc988b-0926-4b50-9e51-7643df383d22 2024-11-06 18:55:36,731 - INFO - Adding interface with subnet_id 926ff6ba-3caa-4dcd-901a-c4cba2b79879, port_id None to router c7de9f06-b172-4849-824f-aff294f517bc 2024-11-06 18:55:37,239 - INFO - Waiting for VM ctest-TestRoutersBasic-73874898-73338674 to be up.. 2024-11-06 18:55:37,433 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-06 18:55:42,523 - DEBUG - VM is in ACTIVE state now 2024-11-06 18:55:42,523 - INFO - VM name : ctest-TestRoutersBasic-73874898-73338674 2024-11-06 18:55:42,610 - DEBUG - VM ctest-TestRoutersBasic-73874898-73338674 ID is 4470ec64-9da8-4b5e-9e89-c58f639a4da6 2024-11-06 18:55:42,631 - DEBUG - VM ctest-TestRoutersBasic-73874898-73338674 launched on Node cn-jenkins-deploy-platform-ansible-os-2205-1 2024-11-06 18:55:42,727 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/4470ec64-9da8-4b5e-9e89-c58f639a4da6 2024-11-06 18:55:43,062 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/4470ec64-9da8-4b5e-9e89-c58f639a4da6 2024-11-06 18:55:43,100 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine-interface/25cdaa0c-c549-4818-8b32-cd245e93b407 2024-11-06 18:55:46,371 - 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 1010ms') 2024-11-06 18:55:46,371 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-73874898-73338674 failed! 2024-11-06 18:55:46,437 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-73874898:ctest-vn-35218035 is 100.47.229.129 and allocation pool is NOT set 2024-11-06 18:55:48,500 - 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=5.88 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.13 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 = 2.134/4.006/5.878/1.872 ms') 2024-11-06 18:55:48,500 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-73874898-73338674 passed 2024-11-06 18:55:48,673 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-06 18:55:48,673 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-73874898-73338674, IP 100.47.229.131, Port 22 2024-11-06 18:55:48,853 - DEBUG - VM ctest-TestRoutersBasic-73874898-73338674 is ready for SSH connections 2024-11-06 18:55:48,853 - INFO - Waiting for VM ctest-TestRoutersBasic-73874898-27084721 to be up.. 2024-11-06 18:55:48,952 - DEBUG - VM is in ACTIVE state now 2024-11-06 18:55:48,953 - INFO - VM name : ctest-TestRoutersBasic-73874898-27084721 2024-11-06 18:55:49,046 - DEBUG - VM ctest-TestRoutersBasic-73874898-27084721 ID is 532f26be-6948-45eb-a7a5-c911500d9336 2024-11-06 18:55:49,046 - DEBUG - VM ctest-TestRoutersBasic-73874898-27084721 launched on Node cn-jenkins-deploy-platform-ansible-os-2205-1 2024-11-06 18:55:49,133 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/532f26be-6948-45eb-a7a5-c911500d9336 2024-11-06 18:55:49,144 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine-interface/62e68faf-3e65-4424-875a-8a03615f3ece 2024-11-06 18:55:50,400 - 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.79 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.851 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.851/2.320/3.789/1.469 ms') 2024-11-06 18:55:50,400 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-73874898-27084721 passed 2024-11-06 18:55:50,564 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-06 18:55:50,565 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-73874898-27084721, IP 7.9.151.3, Port 22 2024-11-06 18:55:50,630 - 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': ''} 2024-11-06 18:55:50,714 - DEBUG - VM ctest-TestRoutersBasic-73874898-27084721 is NOT ready for SSH connections, VM status: ACTIVE 2024-11-06 18:55:55,715 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-06 18:55:55,715 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-73874898-27084721, IP 7.9.151.3, Port 22 2024-11-06 18:55:55,872 - DEBUG - VM ctest-TestRoutersBasic-73874898-27084721 is ready for SSH connections 2024-11-06 18:55:55,872 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-06 18:55:55,873 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 7.9.151.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.24, gateway password: c0ntrail123 2024-11-06 18:55:55,873 - DEBUG - ping -s 56 -c 3 -W 1 7.9.151.3 2024-11-06 18:55:59,649 - DEBUG - PING 7.9.151.3 (7.9.151.3): 56 data bytes 64 bytes from 7.9.151.3: seq=0 ttl=62 time=6.367 ms 64 bytes from 7.9.151.3: seq=1 ttl=62 time=0.977 ms 64 bytes from 7.9.151.3: seq=2 ttl=62 time=0.811 ms --- 7.9.151.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.811/2.718/6.367 ms 2024-11-06 18:55:59,650 - INFO - Ping to IP 7.9.151.3 from VM ctest-TestRoutersBasic-73874898-73338674 passed 2024-11-06 18:55:59,650 - INFO - Deleting interface with subnet_id 926ff6ba-3caa-4dcd-901a-c4cba2b79879, port_id None from router c7de9f06-b172-4849-824f-aff294f517bc 2024-11-06 18:55:59,871 - INFO - Deleting VM ctest-TestRoutersBasic-73874898-27084721 2024-11-06 18:55:59,947 - INFO - Deleting VM ctest-TestRoutersBasic-73874898-73338674 2024-11-06 18:56:00,057 - INFO - Deleting VN ctest-ext_vn-19609232 2024-11-06 18:56:00,154 - DEBUG - VN bbbc988b-0926-4b50-9e51-7643df383d22 still in use: Unable to complete operation on network bbbc988b-0926-4b50-9e51-7643df383d22. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-6f9cf98b-b901-4f94-9903-6d7e7146c69d'] 2024-11-06 18:56:00,154 - WARNING - Deleting VN ctest-ext_vn-19609232 failed..Will retry 2024-11-06 18:56:02,356 - DEBUG - Response for deleting network () 2024-11-06 18:56:02,356 - INFO - Deleting VN ctest-vn-35218035 2024-11-06 18:56:02,554 - DEBUG - Response for deleting network () 2024-11-06 18:56:02,811 - DEBUG - No XMPP flaps were noticed during the test 2024-11-06 18:56:02,811 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32] 2024-11-06 18:56:02,811 - INFO - -------------------------------------------------------------------------------- 2024-11-06 18:56:03,579 - INFO - Deleted project: ctest-TestRoutersBasic-73874898, ID : 2472ee6f-ee8f-4582-a996-1ed17b798317