2024-09-16 02:17:27,052 - INFO - Domain Default found not creating 2024-09-16 02:17:27,200 - INFO - Project ctest-TestRoutersBasic-35368379 not found, creating it 2024-09-16 02:17:27,655 - INFO - Created Project:ctest-TestRoutersBasic-35368379, ID : 773dce92-4c39-4f96-b5cf-8993def246ff 2024-09-16 02:17:29,154 - INFO - ================================================================================ 2024-09-16 02:17:29,154 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-16 02:17:29,154 - 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-16 02:17:29,411 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.20.0.18': '0'}} with 2024-09-16 02:17:29,411 - INFO - Initial checks done. Running the testcase now 2024-09-16 02:17:29,411 - INFO - 2024-09-16 02:17:30,129 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-35368379 2024-09-16 02:17:30,230 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-35368379 2024-09-16 02:17:30,566 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-35368379', 'default']} 2024-09-16 02:17:30,863 - DEBUG - Response for create_network : {'network': {'id': '41d1b288-2d6a-4ce3-b465-8f9f41dd2707', 'name': 'ctest-vn-37139598', 'tenant_id': '773dce924c394f96b5cf8993def246ff', 'project_id': '773dce924c394f96b5cf8993def246ff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-35368379', 'ctest-vn-37139598'], 'port_security_enabled': True, 'description': ''}} 2024-09-16 02:17:31,078 - DEBUG - Response for create_subnet : {'subnet': {'id': '1e2d7b7d-622f-42f2-aefd-61f58b896846', 'name': '', 'tenant_id': '773dce924c394f96b5cf8993def246ff', 'network_id': '41d1b288-2d6a-4ce3-b465-8f9f41dd2707', 'ip_version': 4, 'cidr': '55.192.214.128/26', 'allocation_pools': [{'start': '55.192.214.130', 'end': '55.192.214.190'}], 'gateway_ip': '55.192.214.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '55.192.214.130', 'tags': [], 'project_id': '773dce924c394f96b5cf8993def246ff'}} 2024-09-16 02:17:31,097 - INFO - Created VN ctest-vn-37139598 2024-09-16 02:17:31,162 - DEBUG - VN ctest-vn-37139598 UUID is 41d1b288-2d6a-4ce3-b465-8f9f41dd2707 2024-09-16 02:17:31,490 - DEBUG - Response for create_network : {'network': {'id': 'be8e63fd-8333-4edd-a70f-71a9b63b1640', 'name': 'ctest-ext_vn-69013341', 'tenant_id': '773dce924c394f96b5cf8993def246ff', 'project_id': '773dce924c394f96b5cf8993def246ff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-35368379', 'ctest-ext_vn-69013341'], 'port_security_enabled': True, 'description': ''}} 2024-09-16 02:17:31,742 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e459e885-cfd7-41c3-8868-69879a56b689', 'name': '', 'tenant_id': '773dce924c394f96b5cf8993def246ff', 'network_id': 'be8e63fd-8333-4edd-a70f-71a9b63b1640', 'ip_version': 4, 'cidr': '222.136.187.0/26', 'allocation_pools': [{'start': '222.136.187.2', 'end': '222.136.187.62'}], 'gateway_ip': '222.136.187.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '222.136.187.2', 'tags': [], 'project_id': '773dce924c394f96b5cf8993def246ff'}} 2024-09-16 02:17:31,760 - INFO - Created VN ctest-ext_vn-69013341 2024-09-16 02:17:31,818 - DEBUG - VN ctest-ext_vn-69013341 UUID is be8e63fd-8333-4edd-a70f-71a9b63b1640 2024-09-16 02:17:32,024 - DEBUG - Services list from nova: [, , ] 2024-09-16 02:17:33,042 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1944-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1944-1) 2024-09-16 02:17:34,177 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1944-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1944-1) 2024-09-16 02:17:34,262 - INFO - Setting gateway for router 5cbf3d16-9e4d-47ad-afb2-3bb4cb12f46d to network be8e63fd-8333-4edd-a70f-71a9b63b1640 2024-09-16 02:17:34,329 - INFO - Adding interface with subnet_id 1e2d7b7d-622f-42f2-aefd-61f58b896846, port_id None to router 5cbf3d16-9e4d-47ad-afb2-3bb4cb12f46d 2024-09-16 02:17:34,828 - INFO - Waiting for VM ctest-TestRoutersBasic-35368379-51410981 to be up.. 2024-09-16 02:17:35,043 - DEBUG - VM is in ACTIVE state now 2024-09-16 02:17:35,043 - INFO - VM name : ctest-TestRoutersBasic-35368379-51410981 2024-09-16 02:17:35,158 - DEBUG - VM ctest-TestRoutersBasic-35368379-51410981 ID is 5e5938ee-e72e-4536-bbed-c4df60960adc 2024-09-16 02:17:35,178 - DEBUG - VM ctest-TestRoutersBasic-35368379-51410981 launched on Node cn-jenkins-deploy-platform-ansible-os-1944-1 2024-09-16 02:17:35,297 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/5e5938ee-e72e-4536-bbed-c4df60960adc 2024-09-16 02:17:35,588 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/5e5938ee-e72e-4536-bbed-c4df60960adc 2024-09-16 02:17:35,625 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine-interface/dcabf2f5-c81b-46bd-b3e2-98ce0320826c 2024-09-16 02:17:38,943 - 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 1028ms') 2024-09-16 02:17:38,943 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-35368379-51410981 failed! 2024-09-16 02:17:39,014 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-35368379:ctest-vn-37139598 is 55.192.214.129 and allocation pool is NOT set 2024-09-16 02:17:43,095 - 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 1026ms') 2024-09-16 02:17:43,095 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-35368379-51410981 failed! 2024-09-16 02:17:43,158 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-35368379:ctest-vn-37139598 is 55.192.214.129 and allocation pool is NOT set 2024-09-16 02:17:45,217 - 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=2.64 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.396 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 = 0.396/1.520/2.644/1.124 ms') 2024-09-16 02:17:45,217 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-35368379-51410981 passed 2024-09-16 02:17:45,378 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-16 02:17:45,378 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-35368379-51410981, IP 55.192.214.131, Port 22 2024-09-16 02:17:45,529 - DEBUG - VM ctest-TestRoutersBasic-35368379-51410981 is ready for SSH connections 2024-09-16 02:17:45,529 - INFO - Waiting for VM ctest-TestRoutersBasic-35368379-72159622 to be up.. 2024-09-16 02:17:45,608 - DEBUG - VM is in ACTIVE state now 2024-09-16 02:17:45,608 - INFO - VM name : ctest-TestRoutersBasic-35368379-72159622 2024-09-16 02:17:45,682 - DEBUG - VM ctest-TestRoutersBasic-35368379-72159622 ID is 26ed7214-98f0-41fb-b5dd-4a255d2c1954 2024-09-16 02:17:45,682 - DEBUG - VM ctest-TestRoutersBasic-35368379-72159622 launched on Node cn-jenkins-deploy-platform-ansible-os-1944-1 2024-09-16 02:17:45,752 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/26ed7214-98f0-41fb-b5dd-4a255d2c1954 2024-09-16 02:17:45,762 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine-interface/1089e83e-1fb0-495e-bfe9-f655c1e7c448 2024-09-16 02:17:47,008 - 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=2.60 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.412 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.412/1.506/2.601/1.094 ms') 2024-09-16 02:17:47,008 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-35368379-72159622 passed 2024-09-16 02:17:47,162 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-16 02:17:47,162 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-35368379-72159622, IP 222.136.187.3, Port 22 2024-09-16 02:17:47,313 - DEBUG - VM ctest-TestRoutersBasic-35368379-72159622 is ready for SSH connections 2024-09-16 02:17:47,313 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-16 02:17:47,313 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 222.136.187.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.17, gateway password: c0ntrail123 2024-09-16 02:17:47,313 - DEBUG - ping -s 56 -c 3 -W 1 222.136.187.3 2024-09-16 02:17:50,965 - DEBUG - PING 222.136.187.3 (222.136.187.3): 56 data bytes 64 bytes from 222.136.187.3: seq=0 ttl=62 time=6.116 ms 64 bytes from 222.136.187.3: seq=1 ttl=62 time=0.863 ms 64 bytes from 222.136.187.3: seq=2 ttl=62 time=0.760 ms --- 222.136.187.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.760/2.579/6.116 ms 2024-09-16 02:17:50,965 - INFO - Ping to IP 222.136.187.3 from VM ctest-TestRoutersBasic-35368379-51410981 passed 2024-09-16 02:17:50,965 - INFO - Deleting interface with subnet_id 1e2d7b7d-622f-42f2-aefd-61f58b896846, port_id None from router 5cbf3d16-9e4d-47ad-afb2-3bb4cb12f46d 2024-09-16 02:17:51,171 - INFO - Deleting VM ctest-TestRoutersBasic-35368379-72159622 2024-09-16 02:17:51,254 - INFO - Deleting VM ctest-TestRoutersBasic-35368379-51410981 2024-09-16 02:17:51,346 - INFO - Deleting VN ctest-ext_vn-69013341 2024-09-16 02:17:51,443 - DEBUG - VN be8e63fd-8333-4edd-a70f-71a9b63b1640 still in use: Unable to complete operation on network be8e63fd-8333-4edd-a70f-71a9b63b1640. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-2b119eab-1831-4254-8a6d-165cfc0d15ec'] 2024-09-16 02:17:51,443 - WARNING - Deleting VN ctest-ext_vn-69013341 failed..Will retry 2024-09-16 02:17:53,574 - DEBUG - Response for deleting network () 2024-09-16 02:17:53,574 - INFO - Deleting VN ctest-vn-37139598 2024-09-16 02:17:53,680 - DEBUG - Response for deleting network () 2024-09-16 02:17:53,936 - DEBUG - No XMPP flaps were noticed during the test 2024-09-16 02:17:53,936 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:24] 2024-09-16 02:17:53,936 - INFO - -------------------------------------------------------------------------------- 2024-09-16 02:17:54,650 - INFO - Deleted project: ctest-TestRoutersBasic-35368379, ID : 773dce92-4c39-4f96-b5cf-8993def246ff