2025-06-19 12:35:37,264 - INFO - Domain Default found not creating 2025-06-19 12:35:37,400 - INFO - Project ctest-TestRoutersBasic-61945306 not found, creating it 2025-06-19 12:35:37,855 - INFO - Created Project:ctest-TestRoutersBasic-61945306, ID : 37aadd78-9a9e-45fb-a945-92adcdfa8246 2025-06-19 12:35:39,241 - INFO - ================================================================================ 2025-06-19 12:35:39,241 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-06-19 12:35:39,241 - 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-06-19 12:35:39,495 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with 2025-06-19 12:35:39,495 - INFO - Initial checks done. Running the testcase now 2025-06-19 12:35:39,495 - INFO - 2025-06-19 12:35:40,184 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-61945306 2025-06-19 12:35:40,285 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-61945306 2025-06-19 12:35:40,617 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-61945306', 'default']} 2025-06-19 12:35:40,919 - DEBUG - Response for create_network : {'network': {'id': 'c992b81b-7374-4e72-a482-6b35c688e609', 'name': 'ctest-vn-79199315', 'tenant_id': '37aadd789a9e45fba94592adcdfa8246', 'project_id': '37aadd789a9e45fba94592adcdfa8246', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-61945306', 'ctest-vn-79199315'], 'port_security_enabled': True, 'description': ''}} 2025-06-19 12:35:41,103 - DEBUG - Response for create_subnet : {'subnet': {'id': '7321251b-73b7-4022-aa15-db3177295eef', 'name': '', 'tenant_id': '37aadd789a9e45fba94592adcdfa8246', 'network_id': 'c992b81b-7374-4e72-a482-6b35c688e609', 'ip_version': 4, 'cidr': '122.87.246.128/26', 'allocation_pools': [{'start': '122.87.246.130', 'end': '122.87.246.190'}], 'gateway_ip': '122.87.246.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '122.87.246.130', 'tags': [], 'project_id': '37aadd789a9e45fba94592adcdfa8246'}} 2025-06-19 12:35:41,123 - INFO - Created VN ctest-vn-79199315 2025-06-19 12:35:41,181 - DEBUG - VN ctest-vn-79199315 UUID is c992b81b-7374-4e72-a482-6b35c688e609 2025-06-19 12:35:41,545 - DEBUG - Response for create_network : {'network': {'id': '080c888b-0115-4702-aa47-840b513a2d2f', 'name': 'ctest-ext_vn-28186422', 'tenant_id': '37aadd789a9e45fba94592adcdfa8246', 'project_id': '37aadd789a9e45fba94592adcdfa8246', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-61945306', 'ctest-ext_vn-28186422'], 'port_security_enabled': True, 'description': ''}} 2025-06-19 12:35:41,711 - DEBUG - Response for create_subnet : {'subnet': {'id': '74cac3f0-bf0e-4799-9908-1d03fb38d6b7', 'name': '', 'tenant_id': '37aadd789a9e45fba94592adcdfa8246', 'network_id': '080c888b-0115-4702-aa47-840b513a2d2f', 'ip_version': 4, 'cidr': '117.189.171.0/26', 'allocation_pools': [{'start': '117.189.171.2', 'end': '117.189.171.62'}], 'gateway_ip': '117.189.171.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '117.189.171.2', 'tags': [], 'project_id': '37aadd789a9e45fba94592adcdfa8246'}} 2025-06-19 12:35:41,729 - INFO - Created VN ctest-ext_vn-28186422 2025-06-19 12:35:41,781 - DEBUG - VN ctest-ext_vn-28186422 UUID is 080c888b-0115-4702-aa47-840b513a2d2f 2025-06-19 12:35:41,985 - DEBUG - Services list from nova: [, , ] 2025-06-19 12:35:42,961 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3493-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3493-1) 2025-06-19 12:35:44,076 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3493-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3493-1) 2025-06-19 12:35:44,174 - INFO - Setting gateway for router 0f907ba3-38cc-42c0-ad38-1619de0ee2bf to network 080c888b-0115-4702-aa47-840b513a2d2f 2025-06-19 12:35:44,261 - INFO - Adding interface with subnet_id 7321251b-73b7-4022-aa15-db3177295eef, port_id None to router 0f907ba3-38cc-42c0-ad38-1619de0ee2bf 2025-06-19 12:35:44,654 - INFO - Waiting for VM ctest-TestRoutersBasic-61945306-66358161 to be up.. 2025-06-19 12:35:44,860 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-19 12:35:49,950 - DEBUG - VM is in ACTIVE state now 2025-06-19 12:35:49,950 - INFO - VM name : ctest-TestRoutersBasic-61945306-66358161 2025-06-19 12:35:50,023 - DEBUG - VM ctest-TestRoutersBasic-61945306-66358161 ID is 7276e54a-4f1a-4f29-bca5-a4a853d57bd6 2025-06-19 12:35:50,042 - DEBUG - VM ctest-TestRoutersBasic-61945306-66358161 launched on Node cn-jenkins-deploy-platform-ansible-os-3493-1 2025-06-19 12:35:50,118 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/7276e54a-4f1a-4f29-bca5-a4a853d57bd6 2025-06-19 12:35:50,411 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/7276e54a-4f1a-4f29-bca5-a4a853d57bd6 2025-06-19 12:35:50,443 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/4b83324f-8299-432a-a8cd-97ebdc64b07f 2025-06-19 12:35:53,698 - 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 1016ms') 2025-06-19 12:35:53,698 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-61945306-66358161 failed! 2025-06-19 12:35:53,753 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-61945306:ctest-vn-79199315 is 122.87.246.129 and allocation pool is NOT set 2025-06-19 12:35:55,818 - 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.82 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.469 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.469/1.643/2.817/1.174 ms') 2025-06-19 12:35:55,818 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-61945306-66358161 passed 2025-06-19 12:35:55,981 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-19 12:35:55,981 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-61945306-66358161, IP 122.87.246.131, Port 22 2025-06-19 12:35:56,139 - DEBUG - VM ctest-TestRoutersBasic-61945306-66358161 is ready for SSH connections 2025-06-19 12:35:56,139 - INFO - Waiting for VM ctest-TestRoutersBasic-61945306-79293286 to be up.. 2025-06-19 12:35:56,234 - DEBUG - VM is in ACTIVE state now 2025-06-19 12:35:56,234 - INFO - VM name : ctest-TestRoutersBasic-61945306-79293286 2025-06-19 12:35:56,320 - DEBUG - VM ctest-TestRoutersBasic-61945306-79293286 ID is 76ef0c9c-0163-4331-b877-adf8e4c74bde 2025-06-19 12:35:56,321 - DEBUG - VM ctest-TestRoutersBasic-61945306-79293286 launched on Node cn-jenkins-deploy-platform-ansible-os-3493-1 2025-06-19 12:35:56,391 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/76ef0c9c-0163-4331-b877-adf8e4c74bde 2025-06-19 12:35:56,403 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/0dda2cfc-88da-448a-96a1-cdd2fbefa4f9 2025-06-19 12:35:57,646 - 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.71 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.376 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.376/1.542/2.708/1.166 ms') 2025-06-19 12:35:57,646 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-61945306-79293286 passed 2025-06-19 12:35:57,797 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-19 12:35:57,797 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-61945306-79293286, IP 117.189.171.3, Port 22 2025-06-19 12:35:57,961 - DEBUG - VM ctest-TestRoutersBasic-61945306-79293286 is ready for SSH connections 2025-06-19 12:35:57,961 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-19 12:35:57,961 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 117.189.171.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2025-06-19 12:35:57,962 - DEBUG - ping -s 56 -c 3 -W 1 117.189.171.3 2025-06-19 12:36:01,950 - DEBUG - PING 117.189.171.3 (117.189.171.3): 56 data bytes 64 bytes from 117.189.171.3: seq=0 ttl=62 time=5.724 ms 64 bytes from 117.189.171.3: seq=1 ttl=62 time=0.754 ms 64 bytes from 117.189.171.3: seq=2 ttl=62 time=0.844 ms --- 117.189.171.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.754/2.440/5.724 ms 2025-06-19 12:36:01,950 - INFO - Ping to IP 117.189.171.3 from VM ctest-TestRoutersBasic-61945306-66358161 passed 2025-06-19 12:36:01,950 - INFO - Deleting interface with subnet_id 7321251b-73b7-4022-aa15-db3177295eef, port_id None from router 0f907ba3-38cc-42c0-ad38-1619de0ee2bf 2025-06-19 12:36:02,144 - INFO - Deleting VM ctest-TestRoutersBasic-61945306-79293286 2025-06-19 12:36:02,211 - INFO - Deleting VM ctest-TestRoutersBasic-61945306-66358161 2025-06-19 12:36:02,286 - INFO - Deleting VN ctest-ext_vn-28186422 2025-06-19 12:36:02,349 - DEBUG - VN 080c888b-0115-4702-aa47-840b513a2d2f still in use: Unable to complete operation on network 080c888b-0115-4702-aa47-840b513a2d2f. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-78345a84-abad-4b22-8900-e16a278b8f69'] 2025-06-19 12:36:02,349 - WARNING - Deleting VN ctest-ext_vn-28186422 failed..Will retry 2025-06-19 12:36:04,465 - DEBUG - Response for deleting network () 2025-06-19 12:36:04,465 - INFO - Deleting VN ctest-vn-79199315 2025-06-19 12:36:04,559 - DEBUG - Response for deleting network () 2025-06-19 12:36:04,815 - DEBUG - No XMPP flaps were noticed during the test
2025-06-19 12:36:04,815 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:25]
2025-06-19 12:36:04,815 - INFO - -------------------------------------------------------------------------------- 2025-06-19 12:36:05,482 - INFO - Deleted project: ctest-TestRoutersBasic-61945306, ID : 37aadd78-9a9e-45fb-a945-92adcdfa8246