2025-03-24 02:16:28,370 - INFO - Domain Default found not creating 2025-03-24 02:16:28,500 - INFO - Project ctest-TestRoutersBasic-82569088 not found, creating it 2025-03-24 02:16:28,954 - INFO - Created Project:ctest-TestRoutersBasic-82569088, ID : 03efd4ce-dc2f-4ebc-b200-36a912c696cb 2025-03-24 02:16:30,423 - INFO - ================================================================================ 2025-03-24 02:16:30,423 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-03-24 02:16:30,423 - 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-03-24 02:16:30,677 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.7': '0'}} with 2025-03-24 02:16:30,677 - INFO - Initial checks done. Running the testcase now 2025-03-24 02:16:30,677 - INFO - 2025-03-24 02:16:31,918 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-82569088 2025-03-24 02:16:32,015 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-82569088 2025-03-24 02:16:32,331 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-82569088', 'default']} 2025-03-24 02:16:32,606 - DEBUG - Response for create_network : {'network': {'id': 'c052e72e-864c-4088-84af-40f8b3a02d08', 'name': 'ctest-vn-88746070', 'tenant_id': '03efd4cedc2f4ebcb20036a912c696cb', 'project_id': '03efd4cedc2f4ebcb20036a912c696cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-82569088', 'ctest-vn-88746070'], 'port_security_enabled': True, 'description': ''}} 2025-03-24 02:16:32,807 - DEBUG - Response for create_subnet : {'subnet': {'id': '2e2bb4a5-95e3-4166-a970-c3648f24929f', 'name': '', 'tenant_id': '03efd4cedc2f4ebcb20036a912c696cb', 'network_id': 'c052e72e-864c-4088-84af-40f8b3a02d08', 'ip_version': 4, 'cidr': '45.28.32.192/26', 'allocation_pools': [{'start': '45.28.32.194', 'end': '45.28.32.254'}], 'gateway_ip': '45.28.32.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '45.28.32.194', 'tags': [], 'project_id': '03efd4cedc2f4ebcb20036a912c696cb'}} 2025-03-24 02:16:32,824 - INFO - Created VN ctest-vn-88746070 2025-03-24 02:16:32,879 - DEBUG - VN ctest-vn-88746070 UUID is c052e72e-864c-4088-84af-40f8b3a02d08 2025-03-24 02:16:33,216 - DEBUG - Response for create_network : {'network': {'id': '4afc1a4f-4b9b-449f-bf1d-3a00fe5d7f31', 'name': 'ctest-ext_vn-35429624', 'tenant_id': '03efd4cedc2f4ebcb20036a912c696cb', 'project_id': '03efd4cedc2f4ebcb20036a912c696cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-82569088', 'ctest-ext_vn-35429624'], 'port_security_enabled': True, 'description': ''}} 2025-03-24 02:16:33,388 - DEBUG - Response for create_subnet : {'subnet': {'id': '957b9fae-e11a-4001-b9bf-1472f4b93765', 'name': '', 'tenant_id': '03efd4cedc2f4ebcb20036a912c696cb', 'network_id': '4afc1a4f-4b9b-449f-bf1d-3a00fe5d7f31', 'ip_version': 4, 'cidr': '27.118.54.0/26', 'allocation_pools': [{'start': '27.118.54.2', 'end': '27.118.54.62'}], 'gateway_ip': '27.118.54.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27.118.54.2', 'tags': [], 'project_id': '03efd4cedc2f4ebcb20036a912c696cb'}} 2025-03-24 02:16:33,407 - INFO - Created VN ctest-ext_vn-35429624 2025-03-24 02:16:33,459 - DEBUG - VN ctest-ext_vn-35429624 UUID is 4afc1a4f-4b9b-449f-bf1d-3a00fe5d7f31 2025-03-24 02:16:33,615 - DEBUG - Services list from nova: [, , ] 2025-03-24 02:16:34,603 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2939-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2939-1) 2025-03-24 02:16:35,734 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2939-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2939-1) 2025-03-24 02:16:35,808 - INFO - Setting gateway for router 9ca83f7a-9fa8-4412-91f0-37c2d878c300 to network 4afc1a4f-4b9b-449f-bf1d-3a00fe5d7f31 2025-03-24 02:16:35,855 - INFO - Adding interface with subnet_id 2e2bb4a5-95e3-4166-a970-c3648f24929f, port_id None to router 9ca83f7a-9fa8-4412-91f0-37c2d878c300 2025-03-24 02:16:36,097 - INFO - Waiting for VM ctest-TestRoutersBasic-82569088-48297153 to be up.. 2025-03-24 02:16:36,204 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-24 02:16:41,287 - DEBUG - VM is in ACTIVE state now 2025-03-24 02:16:41,288 - INFO - VM name : ctest-TestRoutersBasic-82569088-48297153 2025-03-24 02:16:41,359 - DEBUG - VM ctest-TestRoutersBasic-82569088-48297153 ID is 045d2af4-9f83-4ac4-813d-5988ef773944 2025-03-24 02:16:41,377 - DEBUG - VM ctest-TestRoutersBasic-82569088-48297153 launched on Node cn-jenkins-deploy-platform-ansible-os-2939-1 2025-03-24 02:16:41,448 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/045d2af4-9f83-4ac4-813d-5988ef773944 2025-03-24 02:16:41,742 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/045d2af4-9f83-4ac4-813d-5988ef773944 2025-03-24 02:16:41,771 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/1f58c97a-a789-49ae-8569-bf0c8d46c723 2025-03-24 02:16:45,010 - 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 1004ms') 2025-03-24 02:16:45,011 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-82569088-48297153 failed! 2025-03-24 02:16:45,063 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-82569088:ctest-vn-88746070 is 45.28.32.193 and allocation pool is NOT set 2025-03-24 02:16:47,123 - 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.14 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.433 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.433/1.788/3.143/1.355 ms') 2025-03-24 02:16:47,123 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-82569088-48297153 passed 2025-03-24 02:16:47,275 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-24 02:16:47,275 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-82569088-48297153, IP 45.28.32.195, Port 22 2025-03-24 02:16:47,431 - DEBUG - VM ctest-TestRoutersBasic-82569088-48297153 is ready for SSH connections 2025-03-24 02:16:47,431 - INFO - Waiting for VM ctest-TestRoutersBasic-82569088-09697799 to be up.. 2025-03-24 02:16:47,503 - DEBUG - VM is in ACTIVE state now 2025-03-24 02:16:47,504 - INFO - VM name : ctest-TestRoutersBasic-82569088-09697799 2025-03-24 02:16:47,589 - DEBUG - VM ctest-TestRoutersBasic-82569088-09697799 ID is 572a01fd-1027-4453-a114-04d41cf69105 2025-03-24 02:16:47,589 - DEBUG - VM ctest-TestRoutersBasic-82569088-09697799 launched on Node cn-jenkins-deploy-platform-ansible-os-2939-1 2025-03-24 02:16:47,664 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/572a01fd-1027-4453-a114-04d41cf69105 2025-03-24 02:16:47,672 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/a075537b-7593-4019-a900-d70d5c568d51 2025-03-24 02:16:48,911 - 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.70 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.362 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.362/1.533/2.704/1.171 ms') 2025-03-24 02:16:48,911 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-82569088-09697799 passed 2025-03-24 02:16:49,063 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-24 02:16:49,063 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-82569088-09697799, IP 27.118.54.3, Port 22 2025-03-24 02:16:49,226 - DEBUG - VM ctest-TestRoutersBasic-82569088-09697799 is ready for SSH connections 2025-03-24 02:16:49,227 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-24 02:16:49,227 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 27.118.54.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-03-24 02:16:49,227 - DEBUG - ping -s 56 -c 3 -W 1 27.118.54.3 2025-03-24 02:16:53,191 - DEBUG - PING 27.118.54.3 (27.118.54.3): 56 data bytes 64 bytes from 27.118.54.3: seq=0 ttl=62 time=5.695 ms 64 bytes from 27.118.54.3: seq=1 ttl=62 time=0.918 ms 64 bytes from 27.118.54.3: seq=2 ttl=62 time=0.755 ms --- 27.118.54.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.755/2.456/5.695 ms 2025-03-24 02:16:53,191 - INFO - Ping to IP 27.118.54.3 from VM ctest-TestRoutersBasic-82569088-48297153 passed 2025-03-24 02:16:53,191 - INFO - Deleting interface with subnet_id 2e2bb4a5-95e3-4166-a970-c3648f24929f, port_id None from router 9ca83f7a-9fa8-4412-91f0-37c2d878c300 2025-03-24 02:16:53,360 - INFO - Deleting VM ctest-TestRoutersBasic-82569088-09697799 2025-03-24 02:16:53,422 - INFO - Deleting VM ctest-TestRoutersBasic-82569088-48297153 2025-03-24 02:16:53,496 - INFO - Deleting VN ctest-ext_vn-35429624 2025-03-24 02:16:53,556 - DEBUG - VN 4afc1a4f-4b9b-449f-bf1d-3a00fe5d7f31 still in use: Unable to complete operation on network 4afc1a4f-4b9b-449f-bf1d-3a00fe5d7f31. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-66ca0086-05bd-4ad6-a72d-1b3f38095337'] 2025-03-24 02:16:53,556 - WARNING - Deleting VN ctest-ext_vn-35429624 failed..Will retry 2025-03-24 02:16:55,650 - DEBUG - Response for deleting network () 2025-03-24 02:16:55,650 - INFO - Deleting VN ctest-vn-88746070 2025-03-24 02:16:55,784 - DEBUG - Response for deleting network () 2025-03-24 02:16:56,040 - DEBUG - No XMPP flaps were noticed during the test
2025-03-24 02:16:56,040 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26]
2025-03-24 02:16:56,040 - INFO - -------------------------------------------------------------------------------- 2025-03-24 02:16:56,701 - INFO - Deleted project: ctest-TestRoutersBasic-82569088, ID : 03efd4ce-dc2f-4ebc-b200-36a912c696cb