2024-10-24 02:44:28,244 - INFO - Domain Default found not creating 2024-10-24 02:44:28,427 - INFO - Project ctest-TestRoutersBasic-15297820 not found, creating it 2024-10-24 02:44:29,014 - INFO - Created Project:ctest-TestRoutersBasic-15297820, ID : a684e079-d8b0-4c67-9c9f-fea0b8850f14 2024-10-24 02:44:30,704 - INFO - ================================================================================ 2024-10-24 02:44:30,705 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-10-24 02:44:30,705 - 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-24 02:44:30,970 - DEBUG - Nothing to compare xmpp stats {'10.0.0.34': {'10.20.0.12': '0'}} with 2024-10-24 02:44:30,970 - INFO - Initial checks done. Running the testcase now 2024-10-24 02:44:30,970 - INFO - 2024-10-24 02:44:31,819 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-15297820 2024-10-24 02:44:31,920 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-15297820 2024-10-24 02:44:32,283 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-15297820', 'default']} 2024-10-24 02:44:32,642 - DEBUG - Response for create_network : {'network': {'id': '13c2cac1-8c67-42ba-9128-33f9767972f9', 'name': 'ctest-vn-12583513', 'tenant_id': 'a684e079d8b04c679c9ffea0b8850f14', 'project_id': 'a684e079d8b04c679c9ffea0b8850f14', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-15297820', 'ctest-vn-12583513'], 'port_security_enabled': True, 'description': ''}} 2024-10-24 02:44:32,829 - DEBUG - Response for create_subnet : {'subnet': {'id': '8a6a0d61-30c8-4a60-8e69-5e51f64eb94d', 'name': '', 'tenant_id': 'a684e079d8b04c679c9ffea0b8850f14', 'network_id': '13c2cac1-8c67-42ba-9128-33f9767972f9', 'ip_version': 4, 'cidr': '15.217.53.192/26', 'allocation_pools': [{'start': '15.217.53.194', 'end': '15.217.53.254'}], 'gateway_ip': '15.217.53.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '15.217.53.194', 'tags': [], 'project_id': 'a684e079d8b04c679c9ffea0b8850f14'}} 2024-10-24 02:44:32,852 - INFO - Created VN ctest-vn-12583513 2024-10-24 02:44:32,911 - DEBUG - VN ctest-vn-12583513 UUID is 13c2cac1-8c67-42ba-9128-33f9767972f9 2024-10-24 02:44:33,310 - DEBUG - Response for create_network : {'network': {'id': '153d48c0-c3c4-4353-aa5f-09ec0ce451a6', 'name': 'ctest-ext_vn-53243417', 'tenant_id': 'a684e079d8b04c679c9ffea0b8850f14', 'project_id': 'a684e079d8b04c679c9ffea0b8850f14', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-15297820', 'ctest-ext_vn-53243417'], 'port_security_enabled': True, 'description': ''}} 2024-10-24 02:44:33,683 - DEBUG - Response for create_subnet : {'subnet': {'id': '3a028dcf-23ff-4032-bafa-25e839b4f31a', 'name': '', 'tenant_id': 'a684e079d8b04c679c9ffea0b8850f14', 'network_id': '153d48c0-c3c4-4353-aa5f-09ec0ce451a6', 'ip_version': 4, 'cidr': '118.212.32.192/26', 'allocation_pools': [{'start': '118.212.32.194', 'end': '118.212.32.254'}], 'gateway_ip': '118.212.32.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '118.212.32.194', 'tags': [], 'project_id': 'a684e079d8b04c679c9ffea0b8850f14'}} 2024-10-24 02:44:33,705 - INFO - Created VN ctest-ext_vn-53243417 2024-10-24 02:44:33,763 - DEBUG - VN ctest-ext_vn-53243417 UUID is 153d48c0-c3c4-4353-aa5f-09ec0ce451a6 2024-10-24 02:44:33,972 - DEBUG - Services list from nova: [, , ] 2024-10-24 02:44:35,162 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2135-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2135-1) 2024-10-24 02:44:36,545 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2135-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2135-1) 2024-10-24 02:44:36,641 - INFO - Setting gateway for router 62b985ac-13d0-4630-b948-973303129013 to network 153d48c0-c3c4-4353-aa5f-09ec0ce451a6 2024-10-24 02:44:36,724 - INFO - Adding interface with subnet_id 8a6a0d61-30c8-4a60-8e69-5e51f64eb94d, port_id None to router 62b985ac-13d0-4630-b948-973303129013 2024-10-24 02:44:37,219 - INFO - Waiting for VM ctest-TestRoutersBasic-15297820-07970916 to be up.. 2024-10-24 02:44:37,433 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-24 02:44:42,531 - DEBUG - VM is in ACTIVE state now 2024-10-24 02:44:42,531 - INFO - VM name : ctest-TestRoutersBasic-15297820-07970916 2024-10-24 02:44:42,626 - DEBUG - VM ctest-TestRoutersBasic-15297820-07970916 ID is e540e051-d2aa-4d21-acb9-34adef4ecd6b 2024-10-24 02:44:42,649 - DEBUG - VM ctest-TestRoutersBasic-15297820-07970916 launched on Node cn-jenkins-deploy-platform-ansible-os-2135-1 2024-10-24 02:44:42,746 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine/e540e051-d2aa-4d21-acb9-34adef4ecd6b 2024-10-24 02:44:43,089 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine/e540e051-d2aa-4d21-acb9-34adef4ecd6b 2024-10-24 02:44:43,133 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine-interface/de177b52-7e37-46a3-afdd-fc716700b808 2024-10-24 02:44:46,422 - 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 1016ms') 2024-10-24 02:44:46,422 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-15297820-07970916 failed! 2024-10-24 02:44:46,483 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-15297820:ctest-vn-12583513 is 15.217.53.193 and allocation pool is NOT set 2024-10-24 02:44:48,549 - 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.01 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.35 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 = 2.350/3.678/5.006/1.328 ms') 2024-10-24 02:44:48,550 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-15297820-07970916 passed 2024-10-24 02:44:48,715 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 02:44:48,715 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-15297820-07970916, IP 15.217.53.195, Port 22 2024-10-24 02:44:48,781 - 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-24 02:44:48,880 - DEBUG - VM ctest-TestRoutersBasic-15297820-07970916 is NOT ready for SSH connections, VM status: ACTIVE 2024-10-24 02:44:53,881 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 02:44:53,882 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-15297820-07970916, IP 15.217.53.195, Port 22 2024-10-24 02:44:54,049 - DEBUG - VM ctest-TestRoutersBasic-15297820-07970916 is ready for SSH connections 2024-10-24 02:44:54,050 - INFO - Waiting for VM ctest-TestRoutersBasic-15297820-27724933 to be up.. 2024-10-24 02:44:54,159 - DEBUG - VM is in ACTIVE state now 2024-10-24 02:44:54,159 - INFO - VM name : ctest-TestRoutersBasic-15297820-27724933 2024-10-24 02:44:54,255 - DEBUG - VM ctest-TestRoutersBasic-15297820-27724933 ID is 7676209d-c529-4ae9-afb2-6300c6913e89 2024-10-24 02:44:54,256 - DEBUG - VM ctest-TestRoutersBasic-15297820-27724933 launched on Node cn-jenkins-deploy-platform-ansible-os-2135-1 2024-10-24 02:44:54,354 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine/7676209d-c529-4ae9-afb2-6300c6913e89 2024-10-24 02:44:54,367 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine-interface/f3a19e15-0e37-4580-a562-f05b1a07d91b 2024-10-24 02:44:55,640 - 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.32 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.424 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.424/1.871/3.318/1.447 ms') 2024-10-24 02:44:55,640 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-15297820-27724933 passed 2024-10-24 02:44:55,799 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 02:44:55,799 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-15297820-27724933, IP 118.212.32.195, Port 22 2024-10-24 02:44:55,965 - DEBUG - VM ctest-TestRoutersBasic-15297820-27724933 is ready for SSH connections 2024-10-24 02:44:55,965 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 02:44:55,965 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 118.212.32.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.34, gateway password: c0ntrail123 2024-10-24 02:44:55,965 - DEBUG - ping -s 56 -c 3 -W 1 118.212.32.195 2024-10-24 02:44:59,727 - DEBUG - PING 118.212.32.195 (118.212.32.195): 56 data bytes 64 bytes from 118.212.32.195: seq=0 ttl=62 time=7.076 ms 64 bytes from 118.212.32.195: seq=1 ttl=62 time=0.886 ms 64 bytes from 118.212.32.195: seq=2 ttl=62 time=0.997 ms --- 118.212.32.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.886/2.986/7.076 ms 2024-10-24 02:44:59,727 - INFO - Ping to IP 118.212.32.195 from VM ctest-TestRoutersBasic-15297820-07970916 passed 2024-10-24 02:44:59,728 - INFO - Deleting interface with subnet_id 8a6a0d61-30c8-4a60-8e69-5e51f64eb94d, port_id None from router 62b985ac-13d0-4630-b948-973303129013 2024-10-24 02:44:59,955 - INFO - Deleting VM ctest-TestRoutersBasic-15297820-27724933 2024-10-24 02:45:00,036 - INFO - Deleting VM ctest-TestRoutersBasic-15297820-07970916 2024-10-24 02:45:00,130 - INFO - Deleting VN ctest-ext_vn-53243417 2024-10-24 02:45:00,355 - DEBUG - VN 153d48c0-c3c4-4353-aa5f-09ec0ce451a6 still in use: Unable to complete operation on network 153d48c0-c3c4-4353-aa5f-09ec0ce451a6. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-969cea90-c157-434e-a7e1-4b21bee637c3'] 2024-10-24 02:45:00,355 - WARNING - Deleting VN ctest-ext_vn-53243417 failed..Will retry 2024-10-24 02:45:02,481 - DEBUG - Response for deleting network () 2024-10-24 02:45:02,481 - INFO - Deleting VN ctest-vn-12583513 2024-10-24 02:45:02,624 - DEBUG - Response for deleting network () 2024-10-24 02:45:02,889 - DEBUG - No XMPP flaps were noticed during the test 2024-10-24 02:45:02,889 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32] 2024-10-24 02:45:02,889 - INFO - -------------------------------------------------------------------------------- 2024-10-24 02:45:03,671 - INFO - Deleted project: ctest-TestRoutersBasic-15297820, ID : a684e079-d8b0-4c67-9c9f-fea0b8850f14