2024-08-21 11:52:38,101 - INFO - Domain Default found not creating 2024-08-21 11:52:38,290 - INFO - Project ctest-TestRoutersBasic-59207038 not found, creating it 2024-08-21 11:52:38,785 - INFO - Created Project:ctest-TestRoutersBasic-59207038, ID : 4d614312-f000-4ac1-b534-a06a03ae8bcf 2024-08-21 11:52:40,556 - INFO - ================================================================================ 2024-08-21 11:52:40,557 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-08-21 11:52:40,557 - 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-21 11:52:40,815 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.22': '0'}} with 2024-08-21 11:52:40,815 - INFO - Initial checks done. Running the testcase now 2024-08-21 11:52:40,815 - INFO - 2024-08-21 11:52:41,524 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-59207038 2024-08-21 11:52:41,625 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-59207038 2024-08-21 11:52:41,949 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-59207038', 'default']} 2024-08-21 11:52:42,286 - DEBUG - Response for create_network : {'network': {'id': 'aea09e28-6b3f-4167-8347-5d25447173c3', 'name': 'ctest-vn-98085929', 'tenant_id': '4d614312f0004ac1b534a06a03ae8bcf', 'project_id': '4d614312f0004ac1b534a06a03ae8bcf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-59207038', 'ctest-vn-98085929'], 'port_security_enabled': True, 'description': ''}} 2024-08-21 11:52:42,524 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a9919bb2-b4dd-4a29-8c02-b50d372dccdc', 'name': '', 'tenant_id': '4d614312f0004ac1b534a06a03ae8bcf', 'network_id': 'aea09e28-6b3f-4167-8347-5d25447173c3', 'ip_version': 4, 'cidr': '132.72.12.0/26', 'allocation_pools': [{'start': '132.72.12.2', 'end': '132.72.12.62'}], 'gateway_ip': '132.72.12.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '132.72.12.2', 'tags': [], 'project_id': '4d614312f0004ac1b534a06a03ae8bcf'}} 2024-08-21 11:52:42,546 - INFO - Created VN ctest-vn-98085929 2024-08-21 11:52:42,601 - DEBUG - VN ctest-vn-98085929 UUID is aea09e28-6b3f-4167-8347-5d25447173c3 2024-08-21 11:52:42,941 - DEBUG - Response for create_network : {'network': {'id': '782aa676-0616-4bb3-9c63-4ddae6a13081', 'name': 'ctest-ext_vn-86805705', 'tenant_id': '4d614312f0004ac1b534a06a03ae8bcf', 'project_id': '4d614312f0004ac1b534a06a03ae8bcf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-59207038', 'ctest-ext_vn-86805705'], 'port_security_enabled': True, 'description': ''}} 2024-08-21 11:52:43,178 - DEBUG - Response for create_subnet : {'subnet': {'id': '734ebb8d-6016-495e-a49a-6b93669c493d', 'name': '', 'tenant_id': '4d614312f0004ac1b534a06a03ae8bcf', 'network_id': '782aa676-0616-4bb3-9c63-4ddae6a13081', 'ip_version': 4, 'cidr': '74.174.143.128/26', 'allocation_pools': [{'start': '74.174.143.130', 'end': '74.174.143.190'}], 'gateway_ip': '74.174.143.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '74.174.143.130', 'tags': [], 'project_id': '4d614312f0004ac1b534a06a03ae8bcf'}} 2024-08-21 11:52:43,202 - INFO - Created VN ctest-ext_vn-86805705 2024-08-21 11:52:43,257 - DEBUG - VN ctest-ext_vn-86805705 UUID is 782aa676-0616-4bb3-9c63-4ddae6a13081 2024-08-21 11:52:43,438 - DEBUG - Services list from nova: [, , ] 2024-08-21 11:52:45,358 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1683-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1683-1) 2024-08-21 11:52:46,598 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1683-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1683-1) 2024-08-21 11:52:46,678 - INFO - Setting gateway for router 34277daa-79e9-4142-a6a2-89bdc8c7fe7d to network 782aa676-0616-4bb3-9c63-4ddae6a13081 2024-08-21 11:52:46,781 - INFO - Adding interface with subnet_id a9919bb2-b4dd-4a29-8c02-b50d372dccdc, port_id None to router 34277daa-79e9-4142-a6a2-89bdc8c7fe7d 2024-08-21 11:52:47,310 - INFO - Waiting for VM ctest-TestRoutersBasic-59207038-05155889 to be up.. 2024-08-21 11:52:47,551 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-21 11:52:52,644 - DEBUG - VM is in ACTIVE state now 2024-08-21 11:52:52,644 - INFO - VM name : ctest-TestRoutersBasic-59207038-05155889 2024-08-21 11:52:52,736 - DEBUG - VM ctest-TestRoutersBasic-59207038-05155889 ID is 78316f35-3a51-45c4-8862-cfbb12432556 2024-08-21 11:52:52,763 - DEBUG - VM ctest-TestRoutersBasic-59207038-05155889 launched on Node cn-jenkins-deploy-platform-ansible-os-1683-1 2024-08-21 11:52:52,859 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/78316f35-3a51-45c4-8862-cfbb12432556 2024-08-21 11:52:53,170 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/78316f35-3a51-45c4-8862-cfbb12432556 2024-08-21 11:52:53,212 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/3c03b981-9725-4062-a537-0880e21e87d5 2024-08-21 11:52:56,481 - 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 1021ms') 2024-08-21 11:52:56,482 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-59207038-05155889 failed! 2024-08-21 11:52:56,537 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-59207038:ctest-vn-98085929 is 132.72.12.1 and allocation pool is NOT set 2024-08-21 11:52:58,600 - 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.79 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.488 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.488/1.641/2.794/1.153 ms') 2024-08-21 11:52:58,601 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-59207038-05155889 passed 2024-08-21 11:52:58,757 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 11:52:58,757 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-59207038-05155889, IP 132.72.12.3, Port 22 2024-08-21 11:52:58,925 - DEBUG - VM ctest-TestRoutersBasic-59207038-05155889 is ready for SSH connections 2024-08-21 11:52:58,925 - INFO - Waiting for VM ctest-TestRoutersBasic-59207038-64942018 to be up.. 2024-08-21 11:52:59,012 - DEBUG - VM is in ACTIVE state now 2024-08-21 11:52:59,012 - INFO - VM name : ctest-TestRoutersBasic-59207038-64942018 2024-08-21 11:52:59,095 - DEBUG - VM ctest-TestRoutersBasic-59207038-64942018 ID is 1907ce1f-1dfc-489b-98dc-409029c3d1a4 2024-08-21 11:52:59,095 - DEBUG - VM ctest-TestRoutersBasic-59207038-64942018 launched on Node cn-jenkins-deploy-platform-ansible-os-1683-1 2024-08-21 11:52:59,174 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/1907ce1f-1dfc-489b-98dc-409029c3d1a4 2024-08-21 11:52:59,183 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/03d7e5d5-dbff-434e-abae-ec2944539fcc 2024-08-21 11:53:00,420 - 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.54 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.547 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.547/2.045/3.544/1.498 ms') 2024-08-21 11:53:00,420 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-59207038-64942018 passed 2024-08-21 11:53:00,569 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 11:53:00,569 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-59207038-64942018, IP 74.174.143.131, Port 22 2024-08-21 11:53:00,725 - DEBUG - VM ctest-TestRoutersBasic-59207038-64942018 is ready for SSH connections 2024-08-21 11:53:00,725 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 11:53:00,725 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 74.174.143.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.41, gateway password: c0ntrail123 2024-08-21 11:53:00,725 - DEBUG - ping -s 56 -c 3 -W 1 74.174.143.131 2024-08-21 11:53:04,660 - DEBUG - PING 74.174.143.131 (74.174.143.131): 56 data bytes 64 bytes from 74.174.143.131: seq=0 ttl=62 time=8.066 ms 64 bytes from 74.174.143.131: seq=1 ttl=62 time=1.064 ms 64 bytes from 74.174.143.131: seq=2 ttl=62 time=0.810 ms --- 74.174.143.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.810/3.313/8.066 ms 2024-08-21 11:53:04,660 - INFO - Ping to IP 74.174.143.131 from VM ctest-TestRoutersBasic-59207038-05155889 passed 2024-08-21 11:53:04,660 - INFO - Deleting interface with subnet_id a9919bb2-b4dd-4a29-8c02-b50d372dccdc, port_id None from router 34277daa-79e9-4142-a6a2-89bdc8c7fe7d 2024-08-21 11:53:04,866 - INFO - Deleting VM ctest-TestRoutersBasic-59207038-64942018 2024-08-21 11:53:04,942 - INFO - Deleting VM ctest-TestRoutersBasic-59207038-05155889 2024-08-21 11:53:05,024 - INFO - Deleting VN ctest-ext_vn-86805705 2024-08-21 11:53:05,100 - DEBUG - VN 782aa676-0616-4bb3-9c63-4ddae6a13081 still in use: Unable to complete operation on network 782aa676-0616-4bb3-9c63-4ddae6a13081. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-259d9f2f-db41-4925-bcf8-5eba7fb0aafc'] 2024-08-21 11:53:05,100 - WARNING - Deleting VN ctest-ext_vn-86805705 failed..Will retry 2024-08-21 11:53:07,245 - DEBUG - Response for deleting network () 2024-08-21 11:53:07,246 - INFO - Deleting VN ctest-vn-98085929 2024-08-21 11:53:07,367 - DEBUG - Response for deleting network () 2024-08-21 11:53:07,623 - DEBUG - No XMPP flaps were noticed during the test 2024-08-21 11:53:07,623 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:27] 2024-08-21 11:53:07,623 - INFO - -------------------------------------------------------------------------------- 2024-08-21 11:53:08,319 - INFO - Deleted project: ctest-TestRoutersBasic-59207038, ID : 4d614312-f000-4ac1-b534-a06a03ae8bcf