2024-08-22 02:37:07,379 - INFO - Domain Default found not creating 2024-08-22 02:37:07,540 - INFO - Project ctest-TestRoutersBasic-91681790 not found, creating it 2024-08-22 02:37:08,006 - INFO - Created Project:ctest-TestRoutersBasic-91681790, ID : 0f73c10b-9faa-444d-8e71-d73e67fcb4bb 2024-08-22 02:37:09,585 - INFO - ================================================================================ 2024-08-22 02:37:09,585 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-08-22 02:37:09,585 - 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-22 02:37:09,841 - DEBUG - Nothing to compare xmpp stats {'10.0.0.36': {'10.20.0.29': '0'}} with 2024-08-22 02:37:09,841 - INFO - Initial checks done. Running the testcase now 2024-08-22 02:37:09,841 - INFO - 2024-08-22 02:37:10,533 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-91681790 2024-08-22 02:37:10,632 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-91681790 2024-08-22 02:37:10,947 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-91681790', 'default']} 2024-08-22 02:37:15,211 - DEBUG - Response for create_network : {'network': {'id': '489de081-4984-429a-8b6c-0b9b3bb23031', 'name': 'ctest-vn-75051132', 'tenant_id': '0f73c10b9faa444d8e71d73e67fcb4bb', 'project_id': '0f73c10b9faa444d8e71d73e67fcb4bb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-91681790', 'ctest-vn-75051132'], 'port_security_enabled': True, 'description': ''}} 2024-08-22 02:37:15,418 - DEBUG - Response for create_subnet : {'subnet': {'id': '0148a390-1566-4e07-9289-de843dcb8cf2', 'name': '', 'tenant_id': '0f73c10b9faa444d8e71d73e67fcb4bb', 'network_id': '489de081-4984-429a-8b6c-0b9b3bb23031', 'ip_version': 4, 'cidr': '126.114.52.0/26', 'allocation_pools': [{'start': '126.114.52.2', 'end': '126.114.52.62'}], 'gateway_ip': '126.114.52.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '126.114.52.2', 'tags': [], 'project_id': '0f73c10b9faa444d8e71d73e67fcb4bb'}} 2024-08-22 02:37:15,437 - INFO - Created VN ctest-vn-75051132 2024-08-22 02:37:15,544 - DEBUG - VN ctest-vn-75051132 UUID is 489de081-4984-429a-8b6c-0b9b3bb23031 2024-08-22 02:37:15,869 - DEBUG - Response for create_network : {'network': {'id': 'a8a16fb7-4a24-47d3-bd97-502b2a2a3cbd', 'name': 'ctest-ext_vn-17740319', 'tenant_id': '0f73c10b9faa444d8e71d73e67fcb4bb', 'project_id': '0f73c10b9faa444d8e71d73e67fcb4bb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-91681790', 'ctest-ext_vn-17740319'], 'port_security_enabled': True, 'description': ''}} 2024-08-22 02:37:16,027 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ac582b85-2e41-4f26-96d6-7626210f2ac6', 'name': '', 'tenant_id': '0f73c10b9faa444d8e71d73e67fcb4bb', 'network_id': 'a8a16fb7-4a24-47d3-bd97-502b2a2a3cbd', 'ip_version': 4, 'cidr': '155.126.236.64/26', 'allocation_pools': [{'start': '155.126.236.66', 'end': '155.126.236.126'}], 'gateway_ip': '155.126.236.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '155.126.236.66', 'tags': [], 'project_id': '0f73c10b9faa444d8e71d73e67fcb4bb'}} 2024-08-22 02:37:16,045 - INFO - Created VN ctest-ext_vn-17740319 2024-08-22 02:37:16,096 - DEBUG - VN ctest-ext_vn-17740319 UUID is a8a16fb7-4a24-47d3-bd97-502b2a2a3cbd 2024-08-22 02:37:16,259 - DEBUG - Services list from nova: [, , ] 2024-08-22 02:37:17,264 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1709-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1709-1) 2024-08-22 02:37:18,450 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1709-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1709-1) 2024-08-22 02:37:18,532 - INFO - Setting gateway for router 0d31a1cb-0e94-4a75-a13f-4235e9004b40 to network a8a16fb7-4a24-47d3-bd97-502b2a2a3cbd 2024-08-22 02:37:18,596 - INFO - Adding interface with subnet_id 0148a390-1566-4e07-9289-de843dcb8cf2, port_id None to router 0d31a1cb-0e94-4a75-a13f-4235e9004b40 2024-08-22 02:37:18,918 - INFO - Waiting for VM ctest-TestRoutersBasic-91681790-99625194 to be up.. 2024-08-22 02:37:19,072 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-22 02:37:24,146 - DEBUG - VM is in ACTIVE state now 2024-08-22 02:37:24,146 - INFO - VM name : ctest-TestRoutersBasic-91681790-99625194 2024-08-22 02:37:24,218 - DEBUG - VM ctest-TestRoutersBasic-91681790-99625194 ID is 3dab31df-8d09-4deb-8ec4-17ce6272d49a 2024-08-22 02:37:24,236 - DEBUG - VM ctest-TestRoutersBasic-91681790-99625194 launched on Node cn-jenkins-deploy-platform-ansible-os-1709-1 2024-08-22 02:37:24,307 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/3dab31df-8d09-4deb-8ec4-17ce6272d49a 2024-08-22 02:37:24,606 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/3dab31df-8d09-4deb-8ec4-17ce6272d49a 2024-08-22 02:37:24,638 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/fff2ddef-04dd-4893-8c73-58a2f2bf83df 2024-08-22 02:37:27,888 - 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 1015ms') 2024-08-22 02:37:27,888 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-91681790-99625194 failed! 2024-08-22 02:37:27,940 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-91681790:ctest-vn-75051132 is 126.114.52.1 and allocation pool is NOT set 2024-08-22 02:37:31,227 - 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=2226 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1211 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1015ms\r\nrtt min/avg/max/mdev = 1211.150/1718.429/2225.709/507.279 ms, pipe 2') 2024-08-22 02:37:31,227 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-91681790-99625194 passed 2024-08-22 02:37:31,380 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-22 02:37:31,380 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-91681790-99625194, IP 126.114.52.3, Port 22 2024-08-22 02:37:31,531 - DEBUG - VM ctest-TestRoutersBasic-91681790-99625194 is ready for SSH connections 2024-08-22 02:37:31,531 - INFO - Waiting for VM ctest-TestRoutersBasic-91681790-18728221 to be up.. 2024-08-22 02:37:31,612 - DEBUG - VM is in ACTIVE state now 2024-08-22 02:37:31,612 - INFO - VM name : ctest-TestRoutersBasic-91681790-18728221 2024-08-22 02:37:31,693 - DEBUG - VM ctest-TestRoutersBasic-91681790-18728221 ID is 02fcdffa-f582-457f-9dca-e421256f0455 2024-08-22 02:37:31,693 - DEBUG - VM ctest-TestRoutersBasic-91681790-18728221 launched on Node cn-jenkins-deploy-platform-ansible-os-1709-1 2024-08-22 02:37:31,777 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/02fcdffa-f582-457f-9dca-e421256f0455 2024-08-22 02:37:31,785 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/9a744a1f-ec6a-4faa-8c02-613a6db3e358 2024-08-22 02:37:33,015 - 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=4.38 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.759 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.759/2.568/4.377/1.809 ms') 2024-08-22 02:37:35,211 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-91681790-18728221 passed 2024-08-22 02:37:35,384 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-22 02:37:35,384 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-91681790-18728221, IP 155.126.236.67, Port 22 2024-08-22 02:37:35,554 - DEBUG - VM ctest-TestRoutersBasic-91681790-18728221 is ready for SSH connections 2024-08-22 02:37:35,554 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-22 02:37:35,554 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 155.126.236.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.36, gateway password: c0ntrail123 2024-08-22 02:37:35,554 - DEBUG - ping -s 56 -c 3 -W 1 155.126.236.67 2024-08-22 02:37:39,242 - DEBUG - PING 155.126.236.67 (155.126.236.67): 56 data bytes 64 bytes from 155.126.236.67: seq=0 ttl=62 time=5.599 ms 64 bytes from 155.126.236.67: seq=1 ttl=62 time=1.294 ms 64 bytes from 155.126.236.67: seq=2 ttl=62 time=0.595 ms --- 155.126.236.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.595/2.496/5.599 ms 2024-08-22 02:37:39,242 - INFO - Ping to IP 155.126.236.67 from VM ctest-TestRoutersBasic-91681790-99625194 passed 2024-08-22 02:37:39,242 - INFO - Deleting interface with subnet_id 0148a390-1566-4e07-9289-de843dcb8cf2, port_id None from router 0d31a1cb-0e94-4a75-a13f-4235e9004b40 2024-08-22 02:37:39,422 - INFO - Deleting VM ctest-TestRoutersBasic-91681790-18728221 2024-08-22 02:37:39,488 - INFO - Deleting VM ctest-TestRoutersBasic-91681790-99625194 2024-08-22 02:37:39,561 - INFO - Deleting VN ctest-ext_vn-17740319 2024-08-22 02:37:39,623 - DEBUG - VN a8a16fb7-4a24-47d3-bd97-502b2a2a3cbd still in use: Unable to complete operation on network a8a16fb7-4a24-47d3-bd97-502b2a2a3cbd. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-12736f1c-90e5-4898-8e9e-342476586f3d'] 2024-08-22 02:37:39,623 - WARNING - Deleting VN ctest-ext_vn-17740319 failed..Will retry 2024-08-22 02:37:41,738 - DEBUG - Response for deleting network () 2024-08-22 02:37:41,738 - INFO - Deleting VN ctest-vn-75051132 2024-08-22 02:37:41,989 - DEBUG - Response for deleting network () 2024-08-22 02:37:42,249 - DEBUG - No XMPP flaps were noticed during the test 2024-08-22 02:37:42,250 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:33] 2024-08-22 02:37:42,250 - INFO - -------------------------------------------------------------------------------- 2024-08-22 02:37:42,907 - INFO - Deleted project: ctest-TestRoutersBasic-91681790, ID : 0f73c10b-9faa-444d-8e71-d73e67fcb4bb