2024-10-19 17:59:01,362 - INFO - Domain Default found not creating 2024-10-19 17:59:01,552 - INFO - Project ctest-TestRoutersBasic-47169511 not found, creating it 2024-10-19 17:59:02,027 - INFO - Created Project:ctest-TestRoutersBasic-47169511, ID : bbc9e87c-d156-478a-bf43-513b2d0e1859 2024-10-19 17:59:03,566 - INFO - ================================================================================ 2024-10-19 17:59:03,566 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-10-19 17:59:03,566 - 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-19 17:59:03,822 - DEBUG - Nothing to compare xmpp stats {'10.0.0.40': {'10.20.0.11': '0'}} with 2024-10-19 17:59:03,822 - INFO - Initial checks done. Running the testcase now 2024-10-19 17:59:03,822 - INFO - 2024-10-19 17:59:04,556 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-47169511 2024-10-19 17:59:04,656 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-47169511 2024-10-19 17:59:04,996 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-47169511', 'default']} 2024-10-19 17:59:05,310 - DEBUG - Response for create_network : {'network': {'id': 'c64bf418-dec9-4f5e-8eb6-3363bb229f01', 'name': 'ctest-vn-22839110', 'tenant_id': 'bbc9e87cd156478abf43513b2d0e1859', 'project_id': 'bbc9e87cd156478abf43513b2d0e1859', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-47169511', 'ctest-vn-22839110'], 'port_security_enabled': True, 'description': ''}} 2024-10-19 17:59:05,470 - DEBUG - Response for create_subnet : {'subnet': {'id': '31e8a890-6083-4395-bd30-d23ce3a1695a', 'name': '', 'tenant_id': 'bbc9e87cd156478abf43513b2d0e1859', 'network_id': 'c64bf418-dec9-4f5e-8eb6-3363bb229f01', 'ip_version': 4, 'cidr': '17.233.143.64/26', 'allocation_pools': [{'start': '17.233.143.66', 'end': '17.233.143.126'}], 'gateway_ip': '17.233.143.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '17.233.143.66', 'tags': [], 'project_id': 'bbc9e87cd156478abf43513b2d0e1859'}} 2024-10-19 17:59:05,491 - INFO - Created VN ctest-vn-22839110 2024-10-19 17:59:05,552 - DEBUG - VN ctest-vn-22839110 UUID is c64bf418-dec9-4f5e-8eb6-3363bb229f01 2024-10-19 17:59:05,910 - DEBUG - Response for create_network : {'network': {'id': 'ce613bca-8c63-4d66-aad6-739d30a33bec', 'name': 'ctest-ext_vn-43407455', 'tenant_id': 'bbc9e87cd156478abf43513b2d0e1859', 'project_id': 'bbc9e87cd156478abf43513b2d0e1859', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-47169511', 'ctest-ext_vn-43407455'], 'port_security_enabled': True, 'description': ''}} 2024-10-19 17:59:06,137 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a62baa42-4a8c-4a31-ac36-aacf13fd4281', 'name': '', 'tenant_id': 'bbc9e87cd156478abf43513b2d0e1859', 'network_id': 'ce613bca-8c63-4d66-aad6-739d30a33bec', 'ip_version': 4, 'cidr': '211.64.246.0/26', 'allocation_pools': [{'start': '211.64.246.2', 'end': '211.64.246.62'}], 'gateway_ip': '211.64.246.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '211.64.246.2', 'tags': [], 'project_id': 'bbc9e87cd156478abf43513b2d0e1859'}} 2024-10-19 17:59:06,161 - INFO - Created VN ctest-ext_vn-43407455 2024-10-19 17:59:06,220 - DEBUG - VN ctest-ext_vn-43407455 UUID is ce613bca-8c63-4d66-aad6-739d30a33bec 2024-10-19 17:59:06,401 - DEBUG - Services list from nova: [, , ] 2024-10-19 17:59:07,471 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2118-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2118-1) 2024-10-19 17:59:08,744 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2118-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2118-1) 2024-10-19 17:59:08,856 - INFO - Setting gateway for router 49729d1c-ee18-4497-86d7-5c23ebca91f1 to network ce613bca-8c63-4d66-aad6-739d30a33bec 2024-10-19 17:59:08,932 - INFO - Adding interface with subnet_id 31e8a890-6083-4395-bd30-d23ce3a1695a, port_id None to router 49729d1c-ee18-4497-86d7-5c23ebca91f1 2024-10-19 17:59:09,419 - INFO - Waiting for VM ctest-TestRoutersBasic-47169511-85581861 to be up.. 2024-10-19 17:59:09,669 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-19 17:59:14,754 - DEBUG - VM is in ACTIVE state now 2024-10-19 17:59:14,754 - INFO - VM name : ctest-TestRoutersBasic-47169511-85581861 2024-10-19 17:59:14,855 - DEBUG - VM ctest-TestRoutersBasic-47169511-85581861 ID is f631af08-f323-4aee-b593-df20f9029a9d 2024-10-19 17:59:14,876 - DEBUG - VM ctest-TestRoutersBasic-47169511-85581861 launched on Node cn-jenkins-deploy-platform-ansible-os-2118-1 2024-10-19 17:59:14,962 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/f631af08-f323-4aee-b593-df20f9029a9d 2024-10-19 17:59:15,280 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/f631af08-f323-4aee-b593-df20f9029a9d 2024-10-19 17:59:15,316 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine-interface/34a265b6-a6a0-44f3-817b-162a1485a38d 2024-10-19 17:59:18,619 - 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 1027ms') 2024-10-19 17:59:18,619 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-47169511-85581861 failed! 2024-10-19 17:59:18,680 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-47169511:ctest-vn-22839110 is 17.233.143.65 and allocation pool is NOT set 2024-10-19 17:59:20,741 - 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=3.28 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.481 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.481/1.879/3.278/1.398 ms') 2024-10-19 17:59:20,741 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-47169511-85581861 passed 2024-10-19 17:59:20,904 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-19 17:59:20,904 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-47169511-85581861, IP 17.233.143.67, Port 22 2024-10-19 17:59:21,070 - DEBUG - VM ctest-TestRoutersBasic-47169511-85581861 is ready for SSH connections 2024-10-19 17:59:21,071 - INFO - Waiting for VM ctest-TestRoutersBasic-47169511-76337292 to be up.. 2024-10-19 17:59:21,163 - DEBUG - VM is in ACTIVE state now 2024-10-19 17:59:21,163 - INFO - VM name : ctest-TestRoutersBasic-47169511-76337292 2024-10-19 17:59:21,257 - DEBUG - VM ctest-TestRoutersBasic-47169511-76337292 ID is caba06a0-3568-458e-a1bf-83b41269d8e5 2024-10-19 17:59:21,257 - DEBUG - VM ctest-TestRoutersBasic-47169511-76337292 launched on Node cn-jenkins-deploy-platform-ansible-os-2118-1 2024-10-19 17:59:21,343 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/caba06a0-3568-458e-a1bf-83b41269d8e5 2024-10-19 17:59:21,355 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine-interface/6f998ab3-5127-4f50-a86a-f3b8e08b8f8b 2024-10-19 17:59:22,619 - 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.52 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.445 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.445/1.981/3.518/1.536 ms') 2024-10-19 17:59:22,620 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-47169511-76337292 passed 2024-10-19 17:59:22,780 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-19 17:59:22,780 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-47169511-76337292, IP 211.64.246.3, Port 22 2024-10-19 17:59:22,936 - DEBUG - VM ctest-TestRoutersBasic-47169511-76337292 is ready for SSH connections 2024-10-19 17:59:22,936 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-19 17:59:22,936 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 211.64.246.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.40, gateway password: c0ntrail123 2024-10-19 17:59:22,936 - DEBUG - ping -s 56 -c 3 -W 1 211.64.246.3 2024-10-19 17:59:26,669 - DEBUG - PING 211.64.246.3 (211.64.246.3): 56 data bytes 64 bytes from 211.64.246.3: seq=0 ttl=62 time=5.630 ms 64 bytes from 211.64.246.3: seq=1 ttl=62 time=1.076 ms 64 bytes from 211.64.246.3: seq=2 ttl=62 time=0.884 ms --- 211.64.246.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.884/2.530/5.630 ms 2024-10-19 17:59:26,669 - INFO - Ping to IP 211.64.246.3 from VM ctest-TestRoutersBasic-47169511-85581861 passed 2024-10-19 17:59:26,669 - INFO - Deleting interface with subnet_id 31e8a890-6083-4395-bd30-d23ce3a1695a, port_id None from router 49729d1c-ee18-4497-86d7-5c23ebca91f1 2024-10-19 17:59:26,903 - INFO - Deleting VM ctest-TestRoutersBasic-47169511-76337292 2024-10-19 17:59:26,978 - INFO - Deleting VM ctest-TestRoutersBasic-47169511-85581861 2024-10-19 17:59:27,076 - INFO - Deleting VN ctest-ext_vn-43407455 2024-10-19 17:59:27,180 - DEBUG - VN ce613bca-8c63-4d66-aad6-739d30a33bec still in use: Unable to complete operation on network ce613bca-8c63-4d66-aad6-739d30a33bec. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-b9df7172-c142-4459-a2ed-15f7d800747f'] 2024-10-19 17:59:27,180 - WARNING - Deleting VN ctest-ext_vn-43407455 failed..Will retry 2024-10-19 17:59:29,290 - DEBUG - Response for deleting network () 2024-10-19 17:59:29,290 - INFO - Deleting VN ctest-vn-22839110 2024-10-19 17:59:29,401 - DEBUG - Response for deleting network () 2024-10-19 17:59:29,659 - DEBUG - No XMPP flaps were noticed during the test
2024-10-19 17:59:29,659 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26]
2024-10-19 17:59:29,659 - INFO - -------------------------------------------------------------------------------- 2024-10-19 17:59:30,355 - INFO - Deleted project: ctest-TestRoutersBasic-47169511, ID : bbc9e87c-d156-478a-bf43-513b2d0e1859