2024-10-23 15:02:47,422 - INFO - Domain Default found not creating 2024-10-23 15:02:47,613 - INFO - Project ctest-TestRoutersBasic-65136711 not found, creating it 2024-10-23 15:02:48,095 - INFO - Created Project:ctest-TestRoutersBasic-65136711, ID : 1cbf5770-a8ed-418a-9ee2-a01943c893fe 2024-10-23 15:02:49,957 - INFO - ================================================================================ 2024-10-23 15:02:49,957 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-10-23 15:02:49,957 - 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-10-23 15:02:50,211 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.11': '0'}} with 2024-10-23 15:02:50,212 - INFO - Initial checks done. Running the testcase now 2024-10-23 15:02:50,212 - INFO - 2024-10-23 15:02:51,038 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-65136711 2024-10-23 15:02:51,137 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-65136711 2024-10-23 15:02:51,485 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-65136711', 'default']} 2024-10-23 15:02:51,826 - DEBUG - Response for create_network : {'network': {'id': 'f9c938b7-f971-4730-af3c-a05a83c25908', 'name': 'ctest-vn-98169758', 'tenant_id': '1cbf5770a8ed418a9ee2a01943c893fe', 'project_id': '1cbf5770a8ed418a9ee2a01943c893fe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-65136711', 'ctest-vn-98169758'], 'port_security_enabled': True, 'description': ''}} 2024-10-23 15:02:52,001 - DEBUG - Response for create_subnet : {'subnet': {'id': '72f41a89-dae9-49dd-8b60-20ec0ee99896', 'name': '', 'tenant_id': '1cbf5770a8ed418a9ee2a01943c893fe', 'network_id': 'f9c938b7-f971-4730-af3c-a05a83c25908', 'ip_version': 4, 'cidr': '2.33.208.64/26', 'allocation_pools': [{'start': '2.33.208.66', 'end': '2.33.208.126'}], 'gateway_ip': '2.33.208.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2.33.208.66', 'tags': [], 'project_id': '1cbf5770a8ed418a9ee2a01943c893fe'}} 2024-10-23 15:02:52,028 - INFO - Created VN ctest-vn-98169758 2024-10-23 15:02:52,089 - DEBUG - VN ctest-vn-98169758 UUID is f9c938b7-f971-4730-af3c-a05a83c25908 2024-10-23 15:02:52,506 - DEBUG - Response for create_network : {'network': {'id': 'd2dbac82-9aa7-49a0-a459-18ed8d4eef6c', 'name': 'ctest-ext_vn-42761796', 'tenant_id': '1cbf5770a8ed418a9ee2a01943c893fe', 'project_id': '1cbf5770a8ed418a9ee2a01943c893fe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-65136711', 'ctest-ext_vn-42761796'], 'port_security_enabled': True, 'description': ''}} 2024-10-23 15:02:52,696 - DEBUG - Response for create_subnet : {'subnet': {'id': '2b39bc57-39cf-4015-98f1-2a3dc6bda5ab', 'name': '', 'tenant_id': '1cbf5770a8ed418a9ee2a01943c893fe', 'network_id': 'd2dbac82-9aa7-49a0-a459-18ed8d4eef6c', 'ip_version': 4, 'cidr': '47.158.51.128/26', 'allocation_pools': [{'start': '47.158.51.130', 'end': '47.158.51.190'}], 'gateway_ip': '47.158.51.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '47.158.51.130', 'tags': [], 'project_id': '1cbf5770a8ed418a9ee2a01943c893fe'}} 2024-10-23 15:02:52,717 - INFO - Created VN ctest-ext_vn-42761796 2024-10-23 15:02:52,781 - DEBUG - VN ctest-ext_vn-42761796 UUID is d2dbac82-9aa7-49a0-a459-18ed8d4eef6c 2024-10-23 15:02:52,971 - DEBUG - Services list from nova: [, , ] 2024-10-23 15:02:54,172 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2130-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2130-1) 2024-10-23 15:02:55,581 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2130-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2130-1) 2024-10-23 15:02:55,687 - INFO - Setting gateway for router 26e14405-655d-405a-9d4c-e5e86d8c1e1c to network d2dbac82-9aa7-49a0-a459-18ed8d4eef6c 2024-10-23 15:02:55,799 - INFO - Adding interface with subnet_id 72f41a89-dae9-49dd-8b60-20ec0ee99896, port_id None to router 26e14405-655d-405a-9d4c-e5e86d8c1e1c 2024-10-23 15:02:56,317 - INFO - Waiting for VM ctest-TestRoutersBasic-65136711-60886139 to be up.. 2024-10-23 15:02:56,506 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-23 15:03:01,622 - DEBUG - VM is in ACTIVE state now 2024-10-23 15:03:01,622 - INFO - VM name : ctest-TestRoutersBasic-65136711-60886139 2024-10-23 15:03:01,747 - DEBUG - VM ctest-TestRoutersBasic-65136711-60886139 ID is 974ebdf7-79c0-436d-9029-4d1e3c394cdd 2024-10-23 15:03:01,774 - DEBUG - VM ctest-TestRoutersBasic-65136711-60886139 launched on Node cn-jenkins-deploy-platform-ansible-os-2130-1 2024-10-23 15:03:01,878 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/974ebdf7-79c0-436d-9029-4d1e3c394cdd 2024-10-23 15:03:02,231 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/974ebdf7-79c0-436d-9029-4d1e3c394cdd 2024-10-23 15:03:02,274 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/2a16c02a-54e7-4a63-a41b-7d3eea342669 2024-10-23 15:03:05,555 - 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 1006ms') 2024-10-23 15:03:05,555 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-65136711-60886139 failed! 2024-10-23 15:03:05,616 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-65136711:ctest-vn-98169758 is 2.33.208.65 and allocation pool is NOT set 2024-10-23 15:03:07,684 - 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.27 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.88 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.875/3.573/5.272/1.698 ms') 2024-10-23 15:03:07,684 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-65136711-60886139 passed 2024-10-23 15:03:07,849 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-23 15:03:07,849 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-65136711-60886139, IP 2.33.208.67, Port 22 2024-10-23 15:03:07,914 - 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': ''} 2024-10-23 15:03:08,007 - DEBUG - VM ctest-TestRoutersBasic-65136711-60886139 is NOT ready for SSH connections, VM status: ACTIVE 2024-10-23 15:03:13,008 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-23 15:03:13,008 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-65136711-60886139, IP 2.33.208.67, Port 22 2024-10-23 15:03:13,172 - DEBUG - VM ctest-TestRoutersBasic-65136711-60886139 is ready for SSH connections 2024-10-23 15:03:13,173 - INFO - Waiting for VM ctest-TestRoutersBasic-65136711-32324263 to be up.. 2024-10-23 15:03:13,283 - DEBUG - VM is in ACTIVE state now 2024-10-23 15:03:13,283 - INFO - VM name : ctest-TestRoutersBasic-65136711-32324263 2024-10-23 15:03:13,359 - DEBUG - VM ctest-TestRoutersBasic-65136711-32324263 ID is 40e89e15-6e8a-4c2a-9ba9-db82a8ab0720 2024-10-23 15:03:13,359 - DEBUG - VM ctest-TestRoutersBasic-65136711-32324263 launched on Node cn-jenkins-deploy-platform-ansible-os-2130-1 2024-10-23 15:03:13,439 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/40e89e15-6e8a-4c2a-9ba9-db82a8ab0720 2024-10-23 15:03:13,451 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/8e41ea64-e507-4455-bbbf-e697ee937786 2024-10-23 15:03:14,703 - 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.65 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.527 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.527/2.087/3.647/1.560 ms') 2024-10-23 15:03:14,704 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-65136711-32324263 passed 2024-10-23 15:03:14,869 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-23 15:03:14,869 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-65136711-32324263, IP 47.158.51.131, Port 22 2024-10-23 15:03:15,024 - DEBUG - VM ctest-TestRoutersBasic-65136711-32324263 is ready for SSH connections 2024-10-23 15:03:15,024 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-23 15:03:15,024 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 47.158.51.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2024-10-23 15:03:15,024 - DEBUG - ping -s 56 -c 3 -W 1 47.158.51.131 2024-10-23 15:03:18,781 - DEBUG - PING 47.158.51.131 (47.158.51.131): 56 data bytes 64 bytes from 47.158.51.131: seq=0 ttl=62 time=6.470 ms 64 bytes from 47.158.51.131: seq=1 ttl=62 time=0.971 ms 64 bytes from 47.158.51.131: seq=2 ttl=62 time=0.993 ms --- 47.158.51.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.971/2.811/6.470 ms 2024-10-23 15:03:18,781 - INFO - Ping to IP 47.158.51.131 from VM ctest-TestRoutersBasic-65136711-60886139 passed 2024-10-23 15:03:18,781 - INFO - Deleting interface with subnet_id 72f41a89-dae9-49dd-8b60-20ec0ee99896, port_id None from router 26e14405-655d-405a-9d4c-e5e86d8c1e1c 2024-10-23 15:03:18,994 - INFO - Deleting VM ctest-TestRoutersBasic-65136711-32324263 2024-10-23 15:03:19,080 - INFO - Deleting VM ctest-TestRoutersBasic-65136711-60886139 2024-10-23 15:03:19,165 - INFO - Deleting VN ctest-ext_vn-42761796 2024-10-23 15:03:19,241 - DEBUG - VN d2dbac82-9aa7-49a0-a459-18ed8d4eef6c still in use: Unable to complete operation on network d2dbac82-9aa7-49a0-a459-18ed8d4eef6c. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-6322ba33-5369-468a-923c-7d739713020f'] 2024-10-23 15:03:19,241 - WARNING - Deleting VN ctest-ext_vn-42761796 failed..Will retry 2024-10-23 15:03:21,379 - DEBUG - Response for deleting network () 2024-10-23 15:03:21,380 - INFO - Deleting VN ctest-vn-98169758 2024-10-23 15:03:21,512 - DEBUG - Response for deleting network () 2024-10-23 15:03:21,775 - DEBUG - No XMPP flaps were noticed during the test 2024-10-23 15:03:21,775 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32] 2024-10-23 15:03:21,775 - INFO - -------------------------------------------------------------------------------- 2024-10-23 15:03:22,558 - INFO - Deleted project: ctest-TestRoutersBasic-65136711, ID : 1cbf5770-a8ed-418a-9ee2-a01943c893fe