2024-08-23 23:02:00,325 - INFO - Domain Default found not creating 2024-08-23 23:02:00,496 - INFO - Project ctest-TestRoutersBasic-04504463 not found, creating it 2024-08-23 23:02:00,961 - INFO - Created Project:ctest-TestRoutersBasic-04504463, ID : e76a2bbd-3ad5-400e-bf94-8cbde75aacd2 2024-08-23 23:02:03,307 - INFO - ================================================================================ 2024-08-23 23:02:03,307 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-08-23 23:02:03,307 - 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 23:02:03,562 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.13': '0'}} with 2024-08-23 23:02:03,562 - INFO - Initial checks done. Running the testcase now 2024-08-23 23:02:03,562 - INFO - 2024-08-23 23:02:04,267 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-04504463 2024-08-23 23:02:04,361 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-04504463 2024-08-23 23:02:04,681 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-04504463', 'default']} 2024-08-23 23:02:06,509 - DEBUG - Response for create_network : {'network': {'id': '11a2747a-59b1-4de9-8c97-69c4b31e34d0', 'name': 'ctest-vn-50742425', 'tenant_id': 'e76a2bbd3ad5400ebf948cbde75aacd2', 'project_id': 'e76a2bbd3ad5400ebf948cbde75aacd2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-04504463', 'ctest-vn-50742425'], 'port_security_enabled': True, 'description': ''}} 2024-08-23 23:02:06,653 - DEBUG - Response for create_subnet : {'subnet': {'id': '2ba25639-053c-41f2-9a1b-c7e928b8e8b2', 'name': '', 'tenant_id': 'e76a2bbd3ad5400ebf948cbde75aacd2', 'network_id': '11a2747a-59b1-4de9-8c97-69c4b31e34d0', 'ip_version': 4, 'cidr': '14.83.61.128/26', 'allocation_pools': [{'start': '14.83.61.130', 'end': '14.83.61.190'}], 'gateway_ip': '14.83.61.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '14.83.61.130', 'tags': [], 'project_id': 'e76a2bbd3ad5400ebf948cbde75aacd2'}} 2024-08-23 23:02:06,672 - INFO - Created VN ctest-vn-50742425 2024-08-23 23:02:06,725 - DEBUG - VN ctest-vn-50742425 UUID is 11a2747a-59b1-4de9-8c97-69c4b31e34d0 2024-08-23 23:02:07,032 - DEBUG - Response for create_network : {'network': {'id': '6a3952df-d97b-48e8-bf07-44bb90ded7d6', 'name': 'ctest-ext_vn-74508745', 'tenant_id': 'e76a2bbd3ad5400ebf948cbde75aacd2', 'project_id': 'e76a2bbd3ad5400ebf948cbde75aacd2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-04504463', 'ctest-ext_vn-74508745'], 'port_security_enabled': True, 'description': ''}} 2024-08-23 23:02:07,183 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c5b31787-6faa-4c99-ade7-08a4022dc9cb', 'name': '', 'tenant_id': 'e76a2bbd3ad5400ebf948cbde75aacd2', 'network_id': '6a3952df-d97b-48e8-bf07-44bb90ded7d6', 'ip_version': 4, 'cidr': '104.59.181.0/26', 'allocation_pools': [{'start': '104.59.181.2', 'end': '104.59.181.62'}], 'gateway_ip': '104.59.181.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '104.59.181.2', 'tags': [], 'project_id': 'e76a2bbd3ad5400ebf948cbde75aacd2'}} 2024-08-23 23:02:07,202 - INFO - Created VN ctest-ext_vn-74508745 2024-08-23 23:02:07,253 - DEBUG - VN ctest-ext_vn-74508745 UUID is 6a3952df-d97b-48e8-bf07-44bb90ded7d6 2024-08-23 23:02:07,411 - DEBUG - Services list from nova: [, , ] 2024-08-23 23:02:08,409 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1733-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1733-1) 2024-08-23 23:02:09,549 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1733-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1733-1) 2024-08-23 23:02:09,629 - INFO - Setting gateway for router cc4e4bed-6659-461b-a69e-6b22d7921e5f to network 6a3952df-d97b-48e8-bf07-44bb90ded7d6 2024-08-23 23:02:09,712 - INFO - Adding interface with subnet_id 2ba25639-053c-41f2-9a1b-c7e928b8e8b2, port_id None to router cc4e4bed-6659-461b-a69e-6b22d7921e5f 2024-08-23 23:02:10,153 - INFO - Waiting for VM ctest-TestRoutersBasic-04504463-58934613 to be up.. 2024-08-23 23:02:10,276 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-23 23:02:15,383 - DEBUG - VM is in ACTIVE state now 2024-08-23 23:02:15,383 - INFO - VM name : ctest-TestRoutersBasic-04504463-58934613 2024-08-23 23:02:15,472 - DEBUG - VM ctest-TestRoutersBasic-04504463-58934613 ID is 0ae64be1-477e-40c7-8d7a-46f87dd3b6ed 2024-08-23 23:02:15,494 - DEBUG - VM ctest-TestRoutersBasic-04504463-58934613 launched on Node cn-jenkins-deploy-platform-ansible-os-1733-1 2024-08-23 23:02:15,573 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/0ae64be1-477e-40c7-8d7a-46f87dd3b6ed 2024-08-23 23:02:15,867 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/0ae64be1-477e-40c7-8d7a-46f87dd3b6ed 2024-08-23 23:02:15,899 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/91e9b39a-de90-490b-8f31-4f2d71cc25da 2024-08-23 23:02:19,133 - 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-08-23 23:02:19,133 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-04504463-58934613 failed! 2024-08-23 23:02:19,189 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-04504463:ctest-vn-50742425 is 14.83.61.129 and allocation pool is NOT set 2024-08-23 23:02:23,267 - 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 1020ms') 2024-08-23 23:02:23,267 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-04504463-58934613 failed! 2024-08-23 23:02:23,321 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-04504463:ctest-vn-50742425 is 14.83.61.129 and allocation pool is NOT set 2024-08-23 23:02:25,382 - 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.75 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.54 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 = 2.538/2.643/2.749/0.105 ms') 2024-08-23 23:02:25,382 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-04504463-58934613 passed 2024-08-23 23:02:25,533 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-23 23:02:25,533 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-04504463-58934613, IP 14.83.61.131, Port 22 2024-08-23 23:02:25,684 - DEBUG - VM ctest-TestRoutersBasic-04504463-58934613 is ready for SSH connections 2024-08-23 23:02:25,684 - INFO - Waiting for VM ctest-TestRoutersBasic-04504463-91467844 to be up.. 2024-08-23 23:02:25,761 - DEBUG - VM is in ACTIVE state now 2024-08-23 23:02:25,761 - INFO - VM name : ctest-TestRoutersBasic-04504463-91467844 2024-08-23 23:02:25,833 - DEBUG - VM ctest-TestRoutersBasic-04504463-91467844 ID is 6c3bf176-1166-4b64-bf36-72720181c601 2024-08-23 23:02:25,833 - DEBUG - VM ctest-TestRoutersBasic-04504463-91467844 launched on Node cn-jenkins-deploy-platform-ansible-os-1733-1 2024-08-23 23:02:25,904 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/6c3bf176-1166-4b64-bf36-72720181c601 2024-08-23 23:02:25,913 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/008d7c41-e6b4-4c37-81b7-3ba23edc73ed 2024-08-23 23:02:27,146 - 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.85 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.335 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.335/1.592/2.850/1.257 ms') 2024-08-23 23:02:27,146 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-04504463-91467844 passed 2024-08-23 23:02:27,293 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-23 23:02:27,293 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-04504463-91467844, IP 104.59.181.3, Port 22 2024-08-23 23:02:27,448 - DEBUG - VM ctest-TestRoutersBasic-04504463-91467844 is ready for SSH connections 2024-08-23 23:02:27,448 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-23 23:02:27,448 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 104.59.181.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2024-08-23 23:02:27,448 - DEBUG - ping -s 56 -c 3 -W 1 104.59.181.3 2024-08-23 23:02:31,119 - DEBUG - PING 104.59.181.3 (104.59.181.3): 56 data bytes 64 bytes from 104.59.181.3: seq=0 ttl=62 time=4.440 ms 64 bytes from 104.59.181.3: seq=1 ttl=62 time=0.971 ms 64 bytes from 104.59.181.3: seq=2 ttl=62 time=0.708 ms --- 104.59.181.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.708/2.039/4.440 ms 2024-08-23 23:02:31,119 - INFO - Ping to IP 104.59.181.3 from VM ctest-TestRoutersBasic-04504463-58934613 passed 2024-08-23 23:02:31,119 - INFO - Deleting interface with subnet_id 2ba25639-053c-41f2-9a1b-c7e928b8e8b2, port_id None from router cc4e4bed-6659-461b-a69e-6b22d7921e5f 2024-08-23 23:02:31,311 - INFO - Deleting VM ctest-TestRoutersBasic-04504463-91467844 2024-08-23 23:02:34,418 - INFO - Deleting VM ctest-TestRoutersBasic-04504463-58934613 2024-08-23 23:02:34,494 - INFO - Deleting VN ctest-ext_vn-74508745 2024-08-23 23:02:34,577 - DEBUG - VN 6a3952df-d97b-48e8-bf07-44bb90ded7d6 still in use: Unable to complete operation on network 6a3952df-d97b-48e8-bf07-44bb90ded7d6. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-036e2a72-e8da-4796-9cdd-3069c0a7eeaa'] 2024-08-23 23:02:34,577 - WARNING - Deleting VN ctest-ext_vn-74508745 failed..Will retry 2024-08-23 23:02:36,692 - DEBUG - Response for deleting network () 2024-08-23 23:02:36,692 - INFO - Deleting VN ctest-vn-50742425 2024-08-23 23:02:36,811 - DEBUG - Response for deleting network () 2024-08-23 23:02:37,066 - DEBUG - No XMPP flaps were noticed during the test 2024-08-23 23:02:37,066 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:34] 2024-08-23 23:02:37,066 - INFO - -------------------------------------------------------------------------------- 2024-08-23 23:02:37,751 - INFO - Deleted project: ctest-TestRoutersBasic-04504463, ID : e76a2bbd-3ad5-400e-bf94-8cbde75aacd2