2024-08-23 08:37:41,170 - INFO - Domain Default found not creating 2024-08-23 08:37:41,335 - INFO - Project ctest-TestRoutersBasic-32726764 not found, creating it 2024-08-23 08:37:41,818 - INFO - Created Project:ctest-TestRoutersBasic-32726764, ID : b470c0eb-dee2-43fe-a4d6-f0851d8335f8 2024-08-23 08:37:43,477 - INFO - ================================================================================ 2024-08-23 08:37:43,477 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-08-23 08:37:43,477 - 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-08-23 08:37:43,741 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.25': '0'}} with 2024-08-23 08:37:43,741 - INFO - Initial checks done. Running the testcase now 2024-08-23 08:37:43,742 - INFO - 2024-08-23 08:37:44,454 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-32726764 2024-08-23 08:37:44,552 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-32726764 2024-08-23 08:37:44,876 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-32726764', 'default']} 2024-08-23 08:37:45,201 - DEBUG - Response for create_network : {'network': {'id': 'b88537c9-38ae-4429-894d-857cb3414b86', 'name': 'ctest-vn-40208381', 'tenant_id': 'b470c0ebdee243fea4d6f0851d8335f8', 'project_id': 'b470c0ebdee243fea4d6f0851d8335f8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-32726764', 'ctest-vn-40208381'], 'port_security_enabled': True, 'description': ''}} 2024-08-23 08:37:45,426 - DEBUG - Response for create_subnet : {'subnet': {'id': '67f30e8d-f956-48df-a4fb-53a595cde565', 'name': '', 'tenant_id': 'b470c0ebdee243fea4d6f0851d8335f8', 'network_id': 'b88537c9-38ae-4429-894d-857cb3414b86', 'ip_version': 4, 'cidr': '174.33.131.128/26', 'allocation_pools': [{'start': '174.33.131.130', 'end': '174.33.131.190'}], 'gateway_ip': '174.33.131.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '174.33.131.130', 'tags': [], 'project_id': 'b470c0ebdee243fea4d6f0851d8335f8'}} 2024-08-23 08:37:45,446 - INFO - Created VN ctest-vn-40208381 2024-08-23 08:37:45,496 - DEBUG - VN ctest-vn-40208381 UUID is b88537c9-38ae-4429-894d-857cb3414b86 2024-08-23 08:37:45,814 - DEBUG - Response for create_network : {'network': {'id': '2c718328-352d-43a7-857c-7bfd3d8ba5a6', 'name': 'ctest-ext_vn-48715470', 'tenant_id': 'b470c0ebdee243fea4d6f0851d8335f8', 'project_id': 'b470c0ebdee243fea4d6f0851d8335f8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-32726764', 'ctest-ext_vn-48715470'], 'port_security_enabled': True, 'description': ''}} 2024-08-23 08:37:45,984 - DEBUG - Response for create_subnet : {'subnet': {'id': '93da4153-5ee9-4381-89a9-2d19320d9a66', 'name': '', 'tenant_id': 'b470c0ebdee243fea4d6f0851d8335f8', 'network_id': '2c718328-352d-43a7-857c-7bfd3d8ba5a6', 'ip_version': 4, 'cidr': '95.77.56.0/26', 'allocation_pools': [{'start': '95.77.56.2', 'end': '95.77.56.62'}], 'gateway_ip': '95.77.56.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '95.77.56.2', 'tags': [], 'project_id': 'b470c0ebdee243fea4d6f0851d8335f8'}} 2024-08-23 08:37:46,004 - INFO - Created VN ctest-ext_vn-48715470 2024-08-23 08:37:46,056 - DEBUG - VN ctest-ext_vn-48715470 UUID is 2c718328-352d-43a7-857c-7bfd3d8ba5a6 2024-08-23 08:37:46,233 - DEBUG - Services list from nova: [, , ] 2024-08-23 08:37:47,345 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1717-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1717-1) 2024-08-23 08:37:48,614 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1717-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1717-1) 2024-08-23 08:37:48,688 - INFO - Setting gateway for router 9ad47ae3-6b70-4658-8699-3992776801f1 to network 2c718328-352d-43a7-857c-7bfd3d8ba5a6 2024-08-23 08:37:48,765 - INFO - Adding interface with subnet_id 67f30e8d-f956-48df-a4fb-53a595cde565, port_id None to router 9ad47ae3-6b70-4658-8699-3992776801f1 2024-08-23 08:37:49,147 - INFO - Waiting for VM ctest-TestRoutersBasic-32726764-58944989 to be up.. 2024-08-23 08:37:49,297 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-23 08:37:54,384 - DEBUG - VM is in ACTIVE state now 2024-08-23 08:37:54,384 - INFO - VM name : ctest-TestRoutersBasic-32726764-58944989 2024-08-23 08:37:54,470 - DEBUG - VM ctest-TestRoutersBasic-32726764-58944989 ID is 5cbdbabc-468d-4cbf-bacc-9da9b4e6969e 2024-08-23 08:37:54,489 - DEBUG - VM ctest-TestRoutersBasic-32726764-58944989 launched on Node cn-jenkins-deploy-platform-ansible-os-1717-1 2024-08-23 08:37:54,576 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/5cbdbabc-468d-4cbf-bacc-9da9b4e6969e 2024-08-23 08:37:54,873 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/5cbdbabc-468d-4cbf-bacc-9da9b4e6969e 2024-08-23 08:37:54,908 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/6b5f5932-cf3b-4cd1-98f4-1c62ba469cb9 2024-08-23 08:37:58,164 - 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 1011ms') 2024-08-23 08:37:58,164 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-32726764-58944989 failed! 2024-08-23 08:37:58,220 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-32726764:ctest-vn-40208381 is 174.33.131.129 and allocation pool is NOT set 2024-08-23 08:38:00,278 - 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.06 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.12 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 2.116/3.089/4.063/0.973 ms') 2024-08-23 08:38:00,278 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-32726764-58944989 passed 2024-08-23 08:38:00,460 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-23 08:38:00,460 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-32726764-58944989, IP 174.33.131.131, Port 22 2024-08-23 08:38:00,627 - DEBUG - VM ctest-TestRoutersBasic-32726764-58944989 is ready for SSH connections 2024-08-23 08:38:00,627 - INFO - Waiting for VM ctest-TestRoutersBasic-32726764-28830203 to be up.. 2024-08-23 08:38:00,724 - DEBUG - VM is in ACTIVE state now 2024-08-23 08:38:00,724 - INFO - VM name : ctest-TestRoutersBasic-32726764-28830203 2024-08-23 08:38:00,802 - DEBUG - VM ctest-TestRoutersBasic-32726764-28830203 ID is d9856c63-a5e4-4bd9-b6b0-5249b3dccf25 2024-08-23 08:38:00,802 - DEBUG - VM ctest-TestRoutersBasic-32726764-28830203 launched on Node cn-jenkins-deploy-platform-ansible-os-1717-1 2024-08-23 08:38:00,886 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/d9856c63-a5e4-4bd9-b6b0-5249b3dccf25 2024-08-23 08:38:00,895 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/53c4c545-6d81-4ede-900d-ab0726ed49ce 2024-08-23 08:38:02,132 - 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.89 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.458 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.458/1.673/2.889/1.215 ms') 2024-08-23 08:38:02,132 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-32726764-28830203 passed 2024-08-23 08:38:02,284 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-23 08:38:02,284 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-32726764-28830203, IP 95.77.56.3, Port 22 2024-08-23 08:38:02,440 - DEBUG - VM ctest-TestRoutersBasic-32726764-28830203 is ready for SSH connections 2024-08-23 08:38:02,440 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-23 08:38:02,440 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 95.77.56.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2024-08-23 08:38:02,440 - DEBUG - ping -s 56 -c 3 -W 1 95.77.56.3 2024-08-23 08:38:06,155 - DEBUG - PING 95.77.56.3 (95.77.56.3): 56 data bytes 64 bytes from 95.77.56.3: seq=0 ttl=62 time=4.978 ms 64 bytes from 95.77.56.3: seq=1 ttl=62 time=0.925 ms 64 bytes from 95.77.56.3: seq=2 ttl=62 time=1.039 ms --- 95.77.56.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.925/2.314/4.978 ms 2024-08-23 08:38:06,155 - INFO - Ping to IP 95.77.56.3 from VM ctest-TestRoutersBasic-32726764-58944989 passed 2024-08-23 08:38:06,155 - INFO - Deleting interface with subnet_id 67f30e8d-f956-48df-a4fb-53a595cde565, port_id None from router 9ad47ae3-6b70-4658-8699-3992776801f1 2024-08-23 08:38:06,381 - INFO - Deleting VM ctest-TestRoutersBasic-32726764-28830203 2024-08-23 08:38:06,453 - INFO - Deleting VM ctest-TestRoutersBasic-32726764-58944989 2024-08-23 08:38:06,535 - INFO - Deleting VN ctest-ext_vn-48715470 2024-08-23 08:38:06,625 - DEBUG - VN 2c718328-352d-43a7-857c-7bfd3d8ba5a6 still in use: Unable to complete operation on network 2c718328-352d-43a7-857c-7bfd3d8ba5a6. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-cad07868-2ce3-4be2-a3c0-c19c81ce492d'] 2024-08-23 08:38:06,626 - WARNING - Deleting VN ctest-ext_vn-48715470 failed..Will retry 2024-08-23 08:38:08,754 - DEBUG - Response for deleting network () 2024-08-23 08:38:08,754 - INFO - Deleting VN ctest-vn-40208381 2024-08-23 08:38:08,872 - DEBUG - Response for deleting network () 2024-08-23 08:38:09,126 - DEBUG - No XMPP flaps were noticed during the test 2024-08-23 08:38:09,126 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2024-08-23 08:38:09,126 - INFO - -------------------------------------------------------------------------------- 2024-08-23 08:38:09,834 - INFO - Deleted project: ctest-TestRoutersBasic-32726764, ID : b470c0eb-dee2-43fe-a4d6-f0851d8335f8