2024-09-13 11:37:39,635 - INFO - Domain Default found not creating 2024-09-13 11:37:39,820 - INFO - Project ctest-TestRoutersBasic-51040552 not found, creating it 2024-09-13 11:37:40,323 - INFO - Created Project:ctest-TestRoutersBasic-51040552, ID : 043ed7d6-054d-49e5-b554-bf8cd78da4b6 2024-09-13 11:37:41,937 - INFO - ================================================================================ 2024-09-13 11:37:41,937 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-13 11:37:41,937 - 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-13 11:37:42,198 - DEBUG - Nothing to compare xmpp stats {'10.0.0.40': {'10.20.0.10': '0'}} with 2024-09-13 11:37:42,198 - INFO - Initial checks done. Running the testcase now 2024-09-13 11:37:42,198 - INFO - 2024-09-13 11:37:42,931 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-51040552 2024-09-13 11:37:43,031 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-51040552 2024-09-13 11:37:43,370 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-51040552', 'default']} 2024-09-13 11:37:43,700 - DEBUG - Response for create_network : {'network': {'id': 'fb529b35-d7a1-4699-9177-e864a8df6c01', 'name': 'ctest-vn-65772458', 'tenant_id': '043ed7d6054d49e5b554bf8cd78da4b6', 'project_id': '043ed7d6054d49e5b554bf8cd78da4b6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-51040552', 'ctest-vn-65772458'], 'port_security_enabled': True, 'description': ''}} 2024-09-13 11:37:43,911 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dd41ed8a-5ea5-4272-be9d-a42e1c0937f1', 'name': '', 'tenant_id': '043ed7d6054d49e5b554bf8cd78da4b6', 'network_id': 'fb529b35-d7a1-4699-9177-e864a8df6c01', 'ip_version': 4, 'cidr': '39.158.73.128/26', 'allocation_pools': [{'start': '39.158.73.130', 'end': '39.158.73.190'}], 'gateway_ip': '39.158.73.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '39.158.73.130', 'tags': [], 'project_id': '043ed7d6054d49e5b554bf8cd78da4b6'}} 2024-09-13 11:37:43,933 - INFO - Created VN ctest-vn-65772458 2024-09-13 11:37:43,991 - DEBUG - VN ctest-vn-65772458 UUID is fb529b35-d7a1-4699-9177-e864a8df6c01 2024-09-13 11:37:44,397 - DEBUG - Response for create_network : {'network': {'id': 'ddd41472-6152-43f6-bccb-d7484b4f3a1f', 'name': 'ctest-ext_vn-80897735', 'tenant_id': '043ed7d6054d49e5b554bf8cd78da4b6', 'project_id': '043ed7d6054d49e5b554bf8cd78da4b6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-51040552', 'ctest-ext_vn-80897735'], 'port_security_enabled': True, 'description': ''}} 2024-09-13 11:37:44,610 - DEBUG - Response for create_subnet : {'subnet': {'id': '22bc65bb-594b-4e27-9b4e-23c3cd5510c3', 'name': '', 'tenant_id': '043ed7d6054d49e5b554bf8cd78da4b6', 'network_id': 'ddd41472-6152-43f6-bccb-d7484b4f3a1f', 'ip_version': 4, 'cidr': '165.46.35.0/26', 'allocation_pools': [{'start': '165.46.35.2', 'end': '165.46.35.62'}], 'gateway_ip': '165.46.35.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '165.46.35.2', 'tags': [], 'project_id': '043ed7d6054d49e5b554bf8cd78da4b6'}} 2024-09-13 11:37:44,633 - INFO - Created VN ctest-ext_vn-80897735 2024-09-13 11:37:44,691 - DEBUG - VN ctest-ext_vn-80897735 UUID is ddd41472-6152-43f6-bccb-d7484b4f3a1f 2024-09-13 11:37:44,879 - DEBUG - Services list from nova: [, , ] 2024-09-13 11:37:45,972 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1916-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1916-1) 2024-09-13 11:37:47,267 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1916-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1916-1) 2024-09-13 11:37:47,376 - INFO - Setting gateway for router eb6842a0-decd-444d-b22a-f4984d980707 to network ddd41472-6152-43f6-bccb-d7484b4f3a1f 2024-09-13 11:37:47,498 - INFO - Adding interface with subnet_id dd41ed8a-5ea5-4272-be9d-a42e1c0937f1, port_id None to router eb6842a0-decd-444d-b22a-f4984d980707 2024-09-13 11:37:47,900 - INFO - Waiting for VM ctest-TestRoutersBasic-51040552-97778630 to be up.. 2024-09-13 11:37:48,063 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-13 11:37:53,185 - DEBUG - VM is in ACTIVE state now 2024-09-13 11:37:53,186 - INFO - VM name : ctest-TestRoutersBasic-51040552-97778630 2024-09-13 11:37:53,270 - DEBUG - VM ctest-TestRoutersBasic-51040552-97778630 ID is 26809bb3-6c79-43af-a35f-e55715f8d410 2024-09-13 11:37:53,289 - DEBUG - VM ctest-TestRoutersBasic-51040552-97778630 launched on Node cn-jenkins-deploy-platform-ansible-os-1916-1 2024-09-13 11:37:53,372 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/26809bb3-6c79-43af-a35f-e55715f8d410 2024-09-13 11:37:53,673 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/26809bb3-6c79-43af-a35f-e55715f8d410 2024-09-13 11:37:53,710 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine-interface/e72c13db-f60b-499d-b0d4-a9eddfb1d6cf 2024-09-13 11:37:56,982 - 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-09-13 11:37:56,982 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-51040552-97778630 failed! 2024-09-13 11:37:57,047 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-51040552:ctest-vn-65772458 is 39.158.73.129 and allocation pool is NOT set 2024-09-13 11:37:59,105 - 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.66 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.905 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.905/1.782/2.659/0.877 ms') 2024-09-13 11:37:59,105 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-51040552-97778630 passed 2024-09-13 11:37:59,271 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-13 11:37:59,271 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-51040552-97778630, IP 39.158.73.131, Port 22 2024-09-13 11:37:59,426 - DEBUG - VM ctest-TestRoutersBasic-51040552-97778630 is ready for SSH connections 2024-09-13 11:37:59,426 - INFO - Waiting for VM ctest-TestRoutersBasic-51040552-53921725 to be up.. 2024-09-13 11:37:59,508 - DEBUG - VM is in ACTIVE state now 2024-09-13 11:37:59,508 - INFO - VM name : ctest-TestRoutersBasic-51040552-53921725 2024-09-13 11:37:59,589 - DEBUG - VM ctest-TestRoutersBasic-51040552-53921725 ID is 9875df4f-b925-4df2-ae0c-52b24460f4c6 2024-09-13 11:37:59,589 - DEBUG - VM ctest-TestRoutersBasic-51040552-53921725 launched on Node cn-jenkins-deploy-platform-ansible-os-1916-1 2024-09-13 11:37:59,672 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/9875df4f-b925-4df2-ae0c-52b24460f4c6 2024-09-13 11:37:59,683 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine-interface/c7352dc5-a348-469c-96cb-1d36f1b7c033 2024-09-13 11:38:00,938 - 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.66 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.474 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.474/2.066/3.659/1.592 ms') 2024-09-13 11:38:00,938 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-51040552-53921725 passed 2024-09-13 11:38:01,095 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-13 11:38:01,095 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-51040552-53921725, IP 165.46.35.3, Port 22 2024-09-13 11:38:01,254 - DEBUG - VM ctest-TestRoutersBasic-51040552-53921725 is ready for SSH connections 2024-09-13 11:38:01,255 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-13 11:38:01,255 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 165.46.35.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.40, gateway password: c0ntrail123 2024-09-13 11:38:01,255 - DEBUG - ping -s 56 -c 3 -W 1 165.46.35.3 2024-09-13 11:38:04,944 - DEBUG - PING 165.46.35.3 (165.46.35.3): 56 data bytes 64 bytes from 165.46.35.3: seq=0 ttl=62 time=4.491 ms 64 bytes from 165.46.35.3: seq=1 ttl=62 time=0.856 ms 64 bytes from 165.46.35.3: seq=2 ttl=62 time=1.067 ms --- 165.46.35.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.856/2.138/4.491 ms 2024-09-13 11:38:04,944 - INFO - Ping to IP 165.46.35.3 from VM ctest-TestRoutersBasic-51040552-97778630 passed 2024-09-13 11:38:04,944 - INFO - Deleting interface with subnet_id dd41ed8a-5ea5-4272-be9d-a42e1c0937f1, port_id None from router eb6842a0-decd-444d-b22a-f4984d980707 2024-09-13 11:38:05,183 - INFO - Deleting VM ctest-TestRoutersBasic-51040552-53921725 2024-09-13 11:38:05,257 - INFO - Deleting VM ctest-TestRoutersBasic-51040552-97778630 2024-09-13 11:38:05,367 - INFO - Deleting VN ctest-ext_vn-80897735 2024-09-13 11:38:05,454 - DEBUG - VN ddd41472-6152-43f6-bccb-d7484b4f3a1f still in use: Unable to complete operation on network ddd41472-6152-43f6-bccb-d7484b4f3a1f. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-7794293d-7ca1-4011-b146-d8f82a8baabc'] 2024-09-13 11:38:05,454 - WARNING - Deleting VN ctest-ext_vn-80897735 failed..Will retry 2024-09-13 11:38:07,584 - DEBUG - Response for deleting network () 2024-09-13 11:38:07,584 - INFO - Deleting VN ctest-vn-65772458 2024-09-13 11:38:07,722 - DEBUG - Response for deleting network () 2024-09-13 11:38:07,981 - DEBUG - No XMPP flaps were noticed during the test
2024-09-13 11:38:07,981 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26]
2024-09-13 11:38:07,981 - INFO - -------------------------------------------------------------------------------- 2024-09-13 11:38:08,715 - INFO - Deleted project: ctest-TestRoutersBasic-51040552, ID : 043ed7d6-054d-49e5-b554-bf8cd78da4b6