2025-01-09 11:43:53,916 - INFO - Domain Default found not creating 2025-01-09 11:43:54,091 - INFO - Project ctest-TestRoutersBasic-21034602 not found, creating it 2025-01-09 11:43:54,582 - INFO - Created Project:ctest-TestRoutersBasic-21034602, ID : f8d79aeb-bf50-444d-b61c-58ed9bbcd5a0 2025-01-09 11:43:56,206 - INFO - ================================================================================ 2025-01-09 11:43:56,206 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-01-09 11:43:56,206 - 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 2025-01-09 11:43:56,466 - DEBUG - Nothing to compare xmpp stats {'10.0.0.45': {'10.20.0.6': '0'}} with 2025-01-09 11:43:56,466 - INFO - Initial checks done. Running the testcase now 2025-01-09 11:43:56,466 - INFO - 2025-01-09 11:43:57,196 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-21034602 2025-01-09 11:43:57,296 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-21034602 2025-01-09 11:43:57,624 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-21034602', 'default']} 2025-01-09 11:43:57,942 - DEBUG - Response for create_network : {'network': {'id': '1dd9fe82-6815-4dd4-851e-b21ef0f4901d', 'name': 'ctest-vn-54646471', 'tenant_id': 'f8d79aebbf50444db61c58ed9bbcd5a0', 'project_id': 'f8d79aebbf50444db61c58ed9bbcd5a0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-21034602', 'ctest-vn-54646471'], 'port_security_enabled': True, 'description': ''}} 2025-01-09 11:43:58,223 - DEBUG - Response for create_subnet : {'subnet': {'id': '9ef3a103-799b-4793-99ca-089d14c308fd', 'name': '', 'tenant_id': 'f8d79aebbf50444db61c58ed9bbcd5a0', 'network_id': '1dd9fe82-6815-4dd4-851e-b21ef0f4901d', 'ip_version': 4, 'cidr': '103.154.25.0/26', 'allocation_pools': [{'start': '103.154.25.2', 'end': '103.154.25.62'}], 'gateway_ip': '103.154.25.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '103.154.25.2', 'tags': [], 'project_id': 'f8d79aebbf50444db61c58ed9bbcd5a0'}} 2025-01-09 11:43:58,243 - INFO - Created VN ctest-vn-54646471 2025-01-09 11:43:58,296 - DEBUG - VN ctest-vn-54646471 UUID is 1dd9fe82-6815-4dd4-851e-b21ef0f4901d 2025-01-09 11:43:58,652 - DEBUG - Response for create_network : {'network': {'id': 'b083f9ba-7003-462a-bb11-1a4fb8a96520', 'name': 'ctest-ext_vn-59447753', 'tenant_id': 'f8d79aebbf50444db61c58ed9bbcd5a0', 'project_id': 'f8d79aebbf50444db61c58ed9bbcd5a0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-21034602', 'ctest-ext_vn-59447753'], 'port_security_enabled': True, 'description': ''}} 2025-01-09 11:43:58,832 - DEBUG - Response for create_subnet : {'subnet': {'id': '473f4e5f-6ab4-4ea0-867a-2231fda0fc8d', 'name': '', 'tenant_id': 'f8d79aebbf50444db61c58ed9bbcd5a0', 'network_id': 'b083f9ba-7003-462a-bb11-1a4fb8a96520', 'ip_version': 4, 'cidr': '118.67.95.0/26', 'allocation_pools': [{'start': '118.67.95.2', 'end': '118.67.95.62'}], 'gateway_ip': '118.67.95.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '118.67.95.2', 'tags': [], 'project_id': 'f8d79aebbf50444db61c58ed9bbcd5a0'}} 2025-01-09 11:43:58,853 - INFO - Created VN ctest-ext_vn-59447753 2025-01-09 11:43:58,908 - DEBUG - VN ctest-ext_vn-59447753 UUID is b083f9ba-7003-462a-bb11-1a4fb8a96520 2025-01-09 11:43:59,092 - DEBUG - Services list from nova: [, , ] 2025-01-09 11:44:00,372 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2584-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2584-1) 2025-01-09 11:44:01,623 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2584-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2584-1) 2025-01-09 11:44:01,719 - INFO - Setting gateway for router 8e2bc412-db12-4886-9348-a31c4e5980f1 to network b083f9ba-7003-462a-bb11-1a4fb8a96520 2025-01-09 11:44:01,796 - INFO - Adding interface with subnet_id 9ef3a103-799b-4793-99ca-089d14c308fd, port_id None to router 8e2bc412-db12-4886-9348-a31c4e5980f1 2025-01-09 11:44:02,130 - INFO - Waiting for VM ctest-TestRoutersBasic-21034602-77080723 to be up.. 2025-01-09 11:44:02,275 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-09 11:44:07,363 - DEBUG - VM is in ACTIVE state now 2025-01-09 11:44:07,363 - INFO - VM name : ctest-TestRoutersBasic-21034602-77080723 2025-01-09 11:44:07,456 - DEBUG - VM ctest-TestRoutersBasic-21034602-77080723 ID is bdeb9214-9987-4471-9ffa-1d234bf4c3b5 2025-01-09 11:44:07,478 - DEBUG - VM ctest-TestRoutersBasic-21034602-77080723 launched on Node cn-jenkins-deploy-platform-ansible-os-2584-1 2025-01-09 11:44:07,563 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine/bdeb9214-9987-4471-9ffa-1d234bf4c3b5 2025-01-09 11:44:07,962 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine/bdeb9214-9987-4471-9ffa-1d234bf4c3b5 2025-01-09 11:44:08,003 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine-interface/f7b1708d-3aea-4b68-8776-a720610a9ea0 2025-01-09 11:44:11,281 - 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 1013ms') 2025-01-09 11:44:11,281 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-21034602-77080723 failed! 2025-01-09 11:44:11,340 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-21034602:ctest-vn-54646471 is 103.154.25.1 and allocation pool is NOT set 2025-01-09 11:44:13,402 - 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=4.43 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.45 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 = 1.451/2.941/4.432/1.490 ms') 2025-01-09 11:44:13,402 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-21034602-77080723 passed 2025-01-09 11:44:13,552 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-09 11:44:13,552 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-21034602-77080723, IP 103.154.25.3, Port 22 2025-01-09 11:44:13,718 - DEBUG - VM ctest-TestRoutersBasic-21034602-77080723 is ready for SSH connections 2025-01-09 11:44:13,718 - INFO - Waiting for VM ctest-TestRoutersBasic-21034602-96232999 to be up.. 2025-01-09 11:44:13,802 - DEBUG - VM is in ACTIVE state now 2025-01-09 11:44:13,802 - INFO - VM name : ctest-TestRoutersBasic-21034602-96232999 2025-01-09 11:44:13,881 - DEBUG - VM ctest-TestRoutersBasic-21034602-96232999 ID is 61ff74fe-adeb-454d-81c0-ef6b4a81a7d2 2025-01-09 11:44:13,881 - DEBUG - VM ctest-TestRoutersBasic-21034602-96232999 launched on Node cn-jenkins-deploy-platform-ansible-os-2584-1 2025-01-09 11:44:13,965 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine/61ff74fe-adeb-454d-81c0-ef6b4a81a7d2 2025-01-09 11:44:13,975 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine-interface/e70ad2ea-b5db-438e-97f8-70e4a8bda87a 2025-01-09 11:44:15,231 - 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=6.86 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.817 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.817/3.840/6.864/3.023 ms') 2025-01-09 11:44:15,231 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-21034602-96232999 passed 2025-01-09 11:44:15,392 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-09 11:44:15,392 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-21034602-96232999, IP 118.67.95.3, Port 22 2025-01-09 11:44:15,558 - DEBUG - VM ctest-TestRoutersBasic-21034602-96232999 is ready for SSH connections 2025-01-09 11:44:15,558 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-09 11:44:15,559 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 118.67.95.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.45, gateway password: c0ntrail123 2025-01-09 11:44:15,559 - DEBUG - ping -s 56 -c 3 -W 1 118.67.95.3 2025-01-09 11:44:19,321 - DEBUG - PING 118.67.95.3 (118.67.95.3): 56 data bytes 64 bytes from 118.67.95.3: seq=0 ttl=62 time=7.793 ms 64 bytes from 118.67.95.3: seq=1 ttl=62 time=1.086 ms 64 bytes from 118.67.95.3: seq=2 ttl=62 time=0.936 ms --- 118.67.95.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.936/3.271/7.793 ms 2025-01-09 11:44:19,321 - INFO - Ping to IP 118.67.95.3 from VM ctest-TestRoutersBasic-21034602-77080723 passed 2025-01-09 11:44:19,322 - INFO - Deleting interface with subnet_id 9ef3a103-799b-4793-99ca-089d14c308fd, port_id None from router 8e2bc412-db12-4886-9348-a31c4e5980f1 2025-01-09 11:44:19,542 - INFO - Deleting VM ctest-TestRoutersBasic-21034602-96232999 2025-01-09 11:44:19,626 - INFO - Deleting VM ctest-TestRoutersBasic-21034602-77080723 2025-01-09 11:44:19,711 - INFO - Deleting VN ctest-ext_vn-59447753 2025-01-09 11:44:19,805 - DEBUG - VN b083f9ba-7003-462a-bb11-1a4fb8a96520 still in use: Unable to complete operation on network b083f9ba-7003-462a-bb11-1a4fb8a96520. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-1dd8f521-4972-4b85-8a9d-1d37d9aff939'] 2025-01-09 11:44:19,805 - WARNING - Deleting VN ctest-ext_vn-59447753 failed..Will retry 2025-01-09 11:44:21,923 - DEBUG - Response for deleting network () 2025-01-09 11:44:21,924 - INFO - Deleting VN ctest-vn-54646471 2025-01-09 11:44:22,048 - DEBUG - Response for deleting network () 2025-01-09 11:44:22,318 - DEBUG - No XMPP flaps were noticed during the test
2025-01-09 11:44:22,318 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26]
2025-01-09 11:44:22,319 - INFO - -------------------------------------------------------------------------------- 2025-01-09 11:44:23,033 - INFO - Deleted project: ctest-TestRoutersBasic-21034602, ID : f8d79aeb-bf50-444d-b61c-58ed9bbcd5a0