2024-09-19 02:41:22,852 - INFO - Domain Default found not creating 2024-09-19 02:41:23,040 - INFO - Project ctest-TestRoutersBasic-68951055 not found, creating it 2024-09-19 02:41:23,590 - INFO - Created Project:ctest-TestRoutersBasic-68951055, ID : f99031a7-2206-4e9f-83f4-fd2e3d101471 2024-09-19 02:41:25,468 - INFO - ================================================================================ 2024-09-19 02:41:25,468 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-19 02:41:25,469 - 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-09-19 02:41:25,741 - DEBUG - Nothing to compare xmpp stats {'10.0.0.47': {'10.20.0.24': '0'}} with 2024-09-19 02:41:25,741 - INFO - Initial checks done. Running the testcase now 2024-09-19 02:41:25,742 - INFO - 2024-09-19 02:41:26,597 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-68951055 2024-09-19 02:41:26,701 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-68951055 2024-09-19 02:41:27,077 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-68951055', 'default']} 2024-09-19 02:41:27,466 - DEBUG - Response for create_network : {'network': {'id': 'f4ae3f71-82c4-4cf1-8ff6-5aee3f3a9351', 'name': 'ctest-vn-48337615', 'tenant_id': 'f99031a722064e9f83f4fd2e3d101471', 'project_id': 'f99031a722064e9f83f4fd2e3d101471', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-68951055', 'ctest-vn-48337615'], 'port_security_enabled': True, 'description': ''}} 2024-09-19 02:41:27,902 - DEBUG - Response for create_subnet : {'subnet': {'id': '28370f92-0682-42f3-9e3e-ab36467d47c5', 'name': '', 'tenant_id': 'f99031a722064e9f83f4fd2e3d101471', 'network_id': 'f4ae3f71-82c4-4cf1-8ff6-5aee3f3a9351', 'ip_version': 4, 'cidr': '151.102.115.64/26', 'allocation_pools': [{'start': '151.102.115.66', 'end': '151.102.115.126'}], 'gateway_ip': '151.102.115.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '151.102.115.66', 'tags': [], 'project_id': 'f99031a722064e9f83f4fd2e3d101471'}} 2024-09-19 02:41:27,924 - INFO - Created VN ctest-vn-48337615 2024-09-19 02:41:27,985 - DEBUG - VN ctest-vn-48337615 UUID is f4ae3f71-82c4-4cf1-8ff6-5aee3f3a9351 2024-09-19 02:41:28,420 - DEBUG - Response for create_network : {'network': {'id': '13a9752e-05e3-4f05-8055-881e4884da09', 'name': 'ctest-ext_vn-83595884', 'tenant_id': 'f99031a722064e9f83f4fd2e3d101471', 'project_id': 'f99031a722064e9f83f4fd2e3d101471', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-68951055', 'ctest-ext_vn-83595884'], 'port_security_enabled': True, 'description': ''}} 2024-09-19 02:41:28,625 - DEBUG - Response for create_subnet : {'subnet': {'id': '7051fa78-7a72-4543-8fa7-543e08302291', 'name': '', 'tenant_id': 'f99031a722064e9f83f4fd2e3d101471', 'network_id': '13a9752e-05e3-4f05-8055-881e4884da09', 'ip_version': 4, 'cidr': '188.212.134.64/26', 'allocation_pools': [{'start': '188.212.134.66', 'end': '188.212.134.126'}], 'gateway_ip': '188.212.134.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '188.212.134.66', 'tags': [], 'project_id': 'f99031a722064e9f83f4fd2e3d101471'}} 2024-09-19 02:41:28,655 - INFO - Created VN ctest-ext_vn-83595884 2024-09-19 02:41:28,721 - DEBUG - VN ctest-ext_vn-83595884 UUID is 13a9752e-05e3-4f05-8055-881e4884da09 2024-09-19 02:41:28,927 - DEBUG - Services list from nova: [, , ] 2024-09-19 02:41:30,174 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1998-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1998-1) 2024-09-19 02:41:31,649 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1998-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1998-1) 2024-09-19 02:41:31,760 - INFO - Setting gateway for router 1e1fd37d-7918-4a25-a98d-f2e490eff768 to network 13a9752e-05e3-4f05-8055-881e4884da09 2024-09-19 02:41:31,818 - INFO - Adding interface with subnet_id 28370f92-0682-42f3-9e3e-ab36467d47c5, port_id None to router 1e1fd37d-7918-4a25-a98d-f2e490eff768 2024-09-19 02:41:32,307 - INFO - Waiting for VM ctest-TestRoutersBasic-68951055-55646310 to be up.. 2024-09-19 02:41:32,484 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-19 02:41:37,673 - DEBUG - VM is in ACTIVE state now 2024-09-19 02:41:37,673 - INFO - VM name : ctest-TestRoutersBasic-68951055-55646310 2024-09-19 02:41:37,828 - DEBUG - VM ctest-TestRoutersBasic-68951055-55646310 ID is 80b22199-64e8-4035-af7f-b6f446c94069 2024-09-19 02:41:37,857 - DEBUG - VM ctest-TestRoutersBasic-68951055-55646310 launched on Node cn-jenkins-deploy-platform-ansible-os-1998-1 2024-09-19 02:41:37,966 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine/80b22199-64e8-4035-af7f-b6f446c94069 2024-09-19 02:41:38,318 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine/80b22199-64e8-4035-af7f-b6f446c94069 2024-09-19 02:41:38,364 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine-interface/80c49e75-6583-4753-bd6f-d840ab17aed9 2024-09-19 02:41:41,672 - 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 1025ms') 2024-09-19 02:41:41,672 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-68951055-55646310 failed! 2024-09-19 02:41:41,737 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-68951055:ctest-vn-48337615 is 151.102.115.65 and allocation pool is NOT set 2024-09-19 02:41:43,803 - 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.23 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.02 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.018/2.622/4.227/1.604 ms') 2024-09-19 02:41:43,803 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-68951055-55646310 passed 2024-09-19 02:41:43,981 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-19 02:41:43,981 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-68951055-55646310, IP 151.102.115.67, Port 22 2024-09-19 02:41:44,047 - 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-09-19 02:41:44,177 - DEBUG - VM ctest-TestRoutersBasic-68951055-55646310 is NOT ready for SSH connections, VM status: ACTIVE 2024-09-19 02:41:49,178 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-19 02:41:49,178 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-68951055-55646310, IP 151.102.115.67, Port 22 2024-09-19 02:41:49,346 - DEBUG - VM ctest-TestRoutersBasic-68951055-55646310 is ready for SSH connections 2024-09-19 02:41:49,347 - INFO - Waiting for VM ctest-TestRoutersBasic-68951055-62800894 to be up.. 2024-09-19 02:41:49,449 - DEBUG - VM is in ACTIVE state now 2024-09-19 02:41:49,449 - INFO - VM name : ctest-TestRoutersBasic-68951055-62800894 2024-09-19 02:41:49,548 - DEBUG - VM ctest-TestRoutersBasic-68951055-62800894 ID is bbd3fe75-f5ce-4592-88bc-c3d8caf7811f 2024-09-19 02:41:49,548 - DEBUG - VM ctest-TestRoutersBasic-68951055-62800894 launched on Node cn-jenkins-deploy-platform-ansible-os-1998-1 2024-09-19 02:41:49,644 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine/bbd3fe75-f5ce-4592-88bc-c3d8caf7811f 2024-09-19 02:41:49,655 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine-interface/3c21de42-c8e3-48fd-9187-d2d92ade0be1 2024-09-19 02:41:50,916 - 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.13 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.375 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.375/1.750/3.125/1.375 ms') 2024-09-19 02:41:50,916 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-68951055-62800894 passed 2024-09-19 02:41:51,081 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-19 02:41:51,081 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-68951055-62800894, IP 188.212.134.67, Port 22 2024-09-19 02:41:51,237 - DEBUG - VM ctest-TestRoutersBasic-68951055-62800894 is ready for SSH connections 2024-09-19 02:41:51,237 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-19 02:41:51,237 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 188.212.134.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.47, gateway password: c0ntrail123 2024-09-19 02:41:51,237 - DEBUG - ping -s 56 -c 3 -W 1 188.212.134.67 2024-09-19 02:41:54,981 - DEBUG - PING 188.212.134.67 (188.212.134.67): 56 data bytes 64 bytes from 188.212.134.67: seq=0 ttl=62 time=5.335 ms 64 bytes from 188.212.134.67: seq=1 ttl=62 time=1.092 ms 64 bytes from 188.212.134.67: seq=2 ttl=62 time=1.087 ms --- 188.212.134.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.087/2.504/5.335 ms 2024-09-19 02:41:54,981 - INFO - Ping to IP 188.212.134.67 from VM ctest-TestRoutersBasic-68951055-55646310 passed 2024-09-19 02:41:54,981 - INFO - Deleting interface with subnet_id 28370f92-0682-42f3-9e3e-ab36467d47c5, port_id None from router 1e1fd37d-7918-4a25-a98d-f2e490eff768 2024-09-19 02:41:55,251 - INFO - Deleting VM ctest-TestRoutersBasic-68951055-62800894 2024-09-19 02:41:55,327 - INFO - Deleting VM ctest-TestRoutersBasic-68951055-55646310 2024-09-19 02:41:55,440 - INFO - Deleting VN ctest-ext_vn-83595884 2024-09-19 02:41:55,570 - DEBUG - VN 13a9752e-05e3-4f05-8055-881e4884da09 still in use: Unable to complete operation on network 13a9752e-05e3-4f05-8055-881e4884da09. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-ac9abb54-4482-4be4-b45b-b8dfe9432ce0'] 2024-09-19 02:41:55,570 - WARNING - Deleting VN ctest-ext_vn-83595884 failed..Will retry 2024-09-19 02:41:57,729 - DEBUG - Response for deleting network () 2024-09-19 02:41:57,729 - INFO - Deleting VN ctest-vn-48337615 2024-09-19 02:41:57,892 - DEBUG - Response for deleting network () 2024-09-19 02:41:58,171 - DEBUG - No XMPP flaps were noticed during the test 2024-09-19 02:41:58,171 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:33] 2024-09-19 02:41:58,172 - INFO - -------------------------------------------------------------------------------- 2024-09-19 02:41:59,024 - INFO - Deleted project: ctest-TestRoutersBasic-68951055, ID : f99031a7-2206-4e9f-83f4-fd2e3d101471