2024-09-16 22:06:35,882 - INFO - Domain Default found not creating 2024-09-16 22:06:36,046 - INFO - Project ctest-TestRoutersBasic-28727904 not found, creating it 2024-09-16 22:06:36,564 - INFO - Created Project:ctest-TestRoutersBasic-28727904, ID : 858754f3-e259-41d0-a7eb-c89172b059f8 2024-09-16 22:06:38,096 - INFO - ================================================================================ 2024-09-16 22:06:38,096 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-16 22:06:38,096 - 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 22:06:38,353 - DEBUG - Nothing to compare xmpp stats {'10.0.0.47': {'10.20.0.22': '0'}} with 2024-09-16 22:06:38,353 - INFO - Initial checks done. Running the testcase now 2024-09-16 22:06:38,353 - INFO - 2024-09-16 22:06:39,077 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-28727904 2024-09-16 22:06:39,175 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-28727904 2024-09-16 22:06:39,511 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-28727904', 'default']} 2024-09-16 22:06:39,825 - DEBUG - Response for create_network : {'network': {'id': 'e5dfdc48-46c3-483a-9591-9a59cd9cfd60', 'name': 'ctest-vn-71895131', 'tenant_id': '858754f3e25941d0a7ebc89172b059f8', 'project_id': '858754f3e25941d0a7ebc89172b059f8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-28727904', 'ctest-vn-71895131'], 'port_security_enabled': True, 'description': ''}} 2024-09-16 22:06:40,035 - DEBUG - Response for create_subnet : {'subnet': {'id': '37fc3660-ad15-4bbf-819a-70a7b5ce5f4d', 'name': '', 'tenant_id': '858754f3e25941d0a7ebc89172b059f8', 'network_id': 'e5dfdc48-46c3-483a-9591-9a59cd9cfd60', 'ip_version': 4, 'cidr': '4.8.54.0/26', 'allocation_pools': [{'start': '4.8.54.2', 'end': '4.8.54.62'}], 'gateway_ip': '4.8.54.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '4.8.54.2', 'tags': [], 'project_id': '858754f3e25941d0a7ebc89172b059f8'}} 2024-09-16 22:06:40,053 - INFO - Created VN ctest-vn-71895131 2024-09-16 22:06:40,111 - DEBUG - VN ctest-vn-71895131 UUID is e5dfdc48-46c3-483a-9591-9a59cd9cfd60 2024-09-16 22:06:40,439 - DEBUG - Response for create_network : {'network': {'id': '481e2b63-9dae-432c-b044-4aabca97d46b', 'name': 'ctest-ext_vn-07483747', 'tenant_id': '858754f3e25941d0a7ebc89172b059f8', 'project_id': '858754f3e25941d0a7ebc89172b059f8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-28727904', 'ctest-ext_vn-07483747'], 'port_security_enabled': True, 'description': ''}} 2024-09-16 22:06:40,620 - DEBUG - Response for create_subnet : {'subnet': {'id': '117790c4-753d-433c-8bc2-dcf174145b85', 'name': '', 'tenant_id': '858754f3e25941d0a7ebc89172b059f8', 'network_id': '481e2b63-9dae-432c-b044-4aabca97d46b', 'ip_version': 4, 'cidr': '37.240.121.128/26', 'allocation_pools': [{'start': '37.240.121.130', 'end': '37.240.121.190'}], 'gateway_ip': '37.240.121.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '37.240.121.130', 'tags': [], 'project_id': '858754f3e25941d0a7ebc89172b059f8'}} 2024-09-16 22:06:40,639 - INFO - Created VN ctest-ext_vn-07483747 2024-09-16 22:06:40,695 - DEBUG - VN ctest-ext_vn-07483747 UUID is 481e2b63-9dae-432c-b044-4aabca97d46b 2024-09-16 22:06:40,868 - DEBUG - Services list from nova: [, , ] 2024-09-16 22:06:41,904 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1948-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1948-1) 2024-09-16 22:06:43,053 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1948-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1948-1) 2024-09-16 22:06:43,145 - INFO - Setting gateway for router f8318e31-a0b3-4e97-ac41-e241478e522a to network 481e2b63-9dae-432c-b044-4aabca97d46b 2024-09-16 22:06:43,213 - INFO - Adding interface with subnet_id 37fc3660-ad15-4bbf-819a-70a7b5ce5f4d, port_id None to router f8318e31-a0b3-4e97-ac41-e241478e522a 2024-09-16 22:06:43,824 - INFO - Waiting for VM ctest-TestRoutersBasic-28727904-88637651 to be up.. 2024-09-16 22:06:43,988 - DEBUG - VM is in ACTIVE state now 2024-09-16 22:06:43,988 - INFO - VM name : ctest-TestRoutersBasic-28727904-88637651 2024-09-16 22:06:44,103 - DEBUG - VM ctest-TestRoutersBasic-28727904-88637651 ID is a775f047-64bc-4c6e-b2b3-955d4bf04608 2024-09-16 22:06:44,130 - DEBUG - VM ctest-TestRoutersBasic-28727904-88637651 launched on Node cn-jenkins-deploy-platform-ansible-os-1948-1 2024-09-16 22:06:44,251 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine/a775f047-64bc-4c6e-b2b3-955d4bf04608 2024-09-16 22:06:44,619 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine/a775f047-64bc-4c6e-b2b3-955d4bf04608 2024-09-16 22:06:44,654 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine-interface/f0478dcf-8cbc-432b-9467-18710746ef62 2024-09-16 22:06:47,961 - 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 1032ms') 2024-09-16 22:06:47,961 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-28727904-88637651 failed! 2024-09-16 22:06:48,023 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-28727904:ctest-vn-71895131 is 4.8.54.1 and allocation pool is NOT set 2024-09-16 22:06:52,085 - 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 1003ms') 2024-09-16 22:06:52,085 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-28727904-88637651 failed! 2024-09-16 22:06:52,151 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-28727904:ctest-vn-71895131 is 4.8.54.1 and allocation pool is NOT set 2024-09-16 22:06:54,214 - 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.94 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.399 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.399/2.168/3.937/1.769 ms') 2024-09-16 22:06:54,214 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-28727904-88637651 passed 2024-09-16 22:06:54,371 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-16 22:06:54,371 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-28727904-88637651, IP 4.8.54.3, Port 22 2024-09-16 22:06:54,527 - DEBUG - VM ctest-TestRoutersBasic-28727904-88637651 is ready for SSH connections 2024-09-16 22:06:54,527 - INFO - Waiting for VM ctest-TestRoutersBasic-28727904-99983267 to be up.. 2024-09-16 22:06:54,605 - DEBUG - VM is in ACTIVE state now 2024-09-16 22:06:54,605 - INFO - VM name : ctest-TestRoutersBasic-28727904-99983267 2024-09-16 22:06:54,680 - DEBUG - VM ctest-TestRoutersBasic-28727904-99983267 ID is 6f0f7e5f-3a5d-448b-a920-d105a3628961 2024-09-16 22:06:54,680 - DEBUG - VM ctest-TestRoutersBasic-28727904-99983267 launched on Node cn-jenkins-deploy-platform-ansible-os-1948-1 2024-09-16 22:06:54,754 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine/6f0f7e5f-3a5d-448b-a920-d105a3628961 2024-09-16 22:06:54,764 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine-interface/de4736ca-6344-4ac5-b6a2-ce8f0e1264d7 2024-09-16 22:06:56,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.68 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.407 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.407/2.545/4.683/2.138 ms') 2024-09-16 22:06:56,015 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-28727904-99983267 passed 2024-09-16 22:06:56,171 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-16 22:06:56,171 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-28727904-99983267, IP 37.240.121.131, Port 22 2024-09-16 22:06:56,327 - DEBUG - VM ctest-TestRoutersBasic-28727904-99983267 is ready for SSH connections 2024-09-16 22:06:56,327 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-16 22:06:56,327 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 37.240.121.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.47, gateway password: c0ntrail123 2024-09-16 22:06:56,327 - DEBUG - ping -s 56 -c 3 -W 1 37.240.121.131 2024-09-16 22:07:00,267 - DEBUG - PING 37.240.121.131 (37.240.121.131): 56 data bytes 64 bytes from 37.240.121.131: seq=0 ttl=62 time=5.247 ms 64 bytes from 37.240.121.131: seq=1 ttl=62 time=0.917 ms 64 bytes from 37.240.121.131: seq=2 ttl=62 time=0.806 ms --- 37.240.121.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.806/2.323/5.247 ms 2024-09-16 22:07:00,267 - INFO - Ping to IP 37.240.121.131 from VM ctest-TestRoutersBasic-28727904-88637651 passed 2024-09-16 22:07:00,267 - INFO - Deleting interface with subnet_id 37fc3660-ad15-4bbf-819a-70a7b5ce5f4d, port_id None from router f8318e31-a0b3-4e97-ac41-e241478e522a 2024-09-16 22:07:00,476 - INFO - Deleting VM ctest-TestRoutersBasic-28727904-99983267 2024-09-16 22:07:00,541 - INFO - Deleting VM ctest-TestRoutersBasic-28727904-88637651 2024-09-16 22:07:00,609 - INFO - Deleting VN ctest-ext_vn-07483747 2024-09-16 22:07:00,684 - DEBUG - VN 481e2b63-9dae-432c-b044-4aabca97d46b still in use: Unable to complete operation on network 481e2b63-9dae-432c-b044-4aabca97d46b. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-189271fa-0116-432e-9aa6-b7caa524e0d4'] 2024-09-16 22:07:00,684 - WARNING - Deleting VN ctest-ext_vn-07483747 failed..Will retry 2024-09-16 22:07:02,782 - DEBUG - Response for deleting network () 2024-09-16 22:07:02,783 - INFO - Deleting VN ctest-vn-71895131 2024-09-16 22:07:02,883 - DEBUG - Response for deleting network () 2024-09-16 22:07:03,141 - DEBUG - No XMPP flaps were noticed during the test 2024-09-16 22:07:03,141 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:25] 2024-09-16 22:07:03,141 - INFO - -------------------------------------------------------------------------------- 2024-09-16 22:07:03,848 - INFO - Deleted project: ctest-TestRoutersBasic-28727904, ID : 858754f3-e259-41d0-a7eb-c89172b059f8