2025-06-09 12:49:28,586 - INFO - Domain Default found not creating 2025-06-09 12:49:28,739 - INFO - Project ctest-TestRoutersBasic-04128272 not found, creating it 2025-06-09 12:49:29,234 - INFO - Created Project:ctest-TestRoutersBasic-04128272, ID : 923d4efa-5569-4923-a9e1-8a5c8f025cfc 2025-06-09 12:49:30,821 - INFO - ================================================================================ 2025-06-09 12:49:30,821 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-06-09 12:49:30,821 - 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-09 12:49:31,075 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with 2025-06-09 12:49:31,076 - INFO - Initial checks done. Running the testcase now 2025-06-09 12:49:31,076 - INFO - 2025-06-09 12:49:31,779 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-04128272 2025-06-09 12:49:31,877 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-04128272 2025-06-09 12:49:32,201 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-04128272', 'default']} 2025-06-09 12:49:32,520 - DEBUG - Response for create_network : {'network': {'id': '30d923e2-6d0f-4893-97ec-aa3f375d683b', 'name': 'ctest-vn-31908659', 'tenant_id': '923d4efa55694923a9e18a5c8f025cfc', 'project_id': '923d4efa55694923a9e18a5c8f025cfc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-04128272', 'ctest-vn-31908659'], 'port_security_enabled': True, 'description': ''}} 2025-06-09 12:49:32,744 - DEBUG - Response for create_subnet : {'subnet': {'id': '13eb0d9a-3fa3-49f9-8ab8-493669441418', 'name': '', 'tenant_id': '923d4efa55694923a9e18a5c8f025cfc', 'network_id': '30d923e2-6d0f-4893-97ec-aa3f375d683b', 'ip_version': 4, 'cidr': '105.218.168.128/26', 'allocation_pools': [{'start': '105.218.168.130', 'end': '105.218.168.190'}], 'gateway_ip': '105.218.168.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '105.218.168.130', 'tags': [], 'project_id': '923d4efa55694923a9e18a5c8f025cfc'}} 2025-06-09 12:49:32,761 - INFO - Created VN ctest-vn-31908659 2025-06-09 12:49:32,817 - DEBUG - VN ctest-vn-31908659 UUID is 30d923e2-6d0f-4893-97ec-aa3f375d683b 2025-06-09 12:49:33,139 - DEBUG - Response for create_network : {'network': {'id': '0c08ee50-48cf-4ea5-b177-a849cbfae94d', 'name': 'ctest-ext_vn-35069750', 'tenant_id': '923d4efa55694923a9e18a5c8f025cfc', 'project_id': '923d4efa55694923a9e18a5c8f025cfc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-04128272', 'ctest-ext_vn-35069750'], 'port_security_enabled': True, 'description': ''}} 2025-06-09 12:49:33,370 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fce34586-09ca-41e2-88ca-37d16029ff91', 'name': '', 'tenant_id': '923d4efa55694923a9e18a5c8f025cfc', 'network_id': '0c08ee50-48cf-4ea5-b177-a849cbfae94d', 'ip_version': 4, 'cidr': '39.152.252.64/26', 'allocation_pools': [{'start': '39.152.252.66', 'end': '39.152.252.126'}], 'gateway_ip': '39.152.252.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '39.152.252.66', 'tags': [], 'project_id': '923d4efa55694923a9e18a5c8f025cfc'}} 2025-06-09 12:49:33,391 - INFO - Created VN ctest-ext_vn-35069750 2025-06-09 12:49:33,449 - DEBUG - VN ctest-ext_vn-35069750 UUID is 0c08ee50-48cf-4ea5-b177-a849cbfae94d 2025-06-09 12:49:33,638 - DEBUG - Services list from nova: [, , ] 2025-06-09 12:49:34,641 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3424-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3424-1) 2025-06-09 12:49:35,815 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3424-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3424-1) 2025-06-09 12:49:35,908 - INFO - Setting gateway for router 9dcc0f9a-6034-41cc-ace7-82e5f6f0cac9 to network 0c08ee50-48cf-4ea5-b177-a849cbfae94d 2025-06-09 12:49:35,978 - INFO - Adding interface with subnet_id 13eb0d9a-3fa3-49f9-8ab8-493669441418, port_id None to router 9dcc0f9a-6034-41cc-ace7-82e5f6f0cac9 2025-06-09 12:49:36,524 - INFO - Waiting for VM ctest-TestRoutersBasic-04128272-57725721 to be up.. 2025-06-09 12:49:36,769 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-09 12:49:41,849 - DEBUG - VM is in ACTIVE state now 2025-06-09 12:49:41,849 - INFO - VM name : ctest-TestRoutersBasic-04128272-57725721 2025-06-09 12:49:41,929 - DEBUG - VM ctest-TestRoutersBasic-04128272-57725721 ID is dd0126c0-b5bf-448b-8593-a3689cc14ef8 2025-06-09 12:49:41,951 - DEBUG - VM ctest-TestRoutersBasic-04128272-57725721 launched on Node cn-jenkins-deploy-platform-ansible-os-3424-1 2025-06-09 12:49:42,039 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/dd0126c0-b5bf-448b-8593-a3689cc14ef8 2025-06-09 12:49:42,351 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/dd0126c0-b5bf-448b-8593-a3689cc14ef8 2025-06-09 12:49:42,390 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/7f46dd2b-4e13-45ad-be0f-326d303607fa 2025-06-09 12:49:45,647 - 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 1019ms') 2025-06-09 12:49:45,647 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-04128272-57725721 failed! 2025-06-09 12:49:45,709 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-04128272:ctest-vn-31908659 is 105.218.168.129 and allocation pool is NOT set 2025-06-09 12:49:47,767 - 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.45 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.417 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.417/1.931/3.446/1.514 ms') 2025-06-09 12:49:47,767 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-04128272-57725721 passed 2025-06-09 12:49:47,921 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-09 12:49:47,921 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-04128272-57725721, IP 105.218.168.131, Port 22 2025-06-09 12:49:48,081 - DEBUG - VM ctest-TestRoutersBasic-04128272-57725721 is ready for SSH connections 2025-06-09 12:49:48,082 - INFO - Waiting for VM ctest-TestRoutersBasic-04128272-25024758 to be up.. 2025-06-09 12:49:48,157 - DEBUG - VM is in ACTIVE state now 2025-06-09 12:49:48,157 - INFO - VM name : ctest-TestRoutersBasic-04128272-25024758 2025-06-09 12:49:48,235 - DEBUG - VM ctest-TestRoutersBasic-04128272-25024758 ID is c9ffc744-b4bf-46b3-9b43-c8e8bf17c58e 2025-06-09 12:49:48,235 - DEBUG - VM ctest-TestRoutersBasic-04128272-25024758 launched on Node cn-jenkins-deploy-platform-ansible-os-3424-1 2025-06-09 12:49:48,312 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/c9ffc744-b4bf-46b3-9b43-c8e8bf17c58e 2025-06-09 12:49:48,322 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/62a394a5-9cee-4163-bce6-98226201bb77 2025-06-09 12:49:49,556 - 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.97 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.525 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.525/1.746/2.967/1.221 ms') 2025-06-09 12:49:49,556 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-04128272-25024758 passed 2025-06-09 12:49:49,705 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-09 12:49:49,706 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-04128272-25024758, IP 39.152.252.67, Port 22 2025-06-09 12:49:49,860 - DEBUG - VM ctest-TestRoutersBasic-04128272-25024758 is ready for SSH connections 2025-06-09 12:49:49,861 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-09 12:49:49,861 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 39.152.252.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-06-09 12:49:49,861 - DEBUG - ping -s 56 -c 3 -W 1 39.152.252.67 2025-06-09 12:49:53,858 - DEBUG - PING 39.152.252.67 (39.152.252.67): 56 data bytes 64 bytes from 39.152.252.67: seq=0 ttl=62 time=5.525 ms 64 bytes from 39.152.252.67: seq=1 ttl=62 time=0.898 ms 64 bytes from 39.152.252.67: seq=2 ttl=62 time=0.844 ms --- 39.152.252.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.844/2.422/5.525 ms 2025-06-09 12:49:53,858 - INFO - Ping to IP 39.152.252.67 from VM ctest-TestRoutersBasic-04128272-57725721 passed 2025-06-09 12:49:53,858 - INFO - Deleting interface with subnet_id 13eb0d9a-3fa3-49f9-8ab8-493669441418, port_id None from router 9dcc0f9a-6034-41cc-ace7-82e5f6f0cac9 2025-06-09 12:49:54,117 - INFO - Deleting VM ctest-TestRoutersBasic-04128272-25024758 2025-06-09 12:49:54,193 - INFO - Deleting VM ctest-TestRoutersBasic-04128272-57725721 2025-06-09 12:49:54,275 - INFO - Deleting VN ctest-ext_vn-35069750 2025-06-09 12:49:54,374 - DEBUG - VN 0c08ee50-48cf-4ea5-b177-a849cbfae94d still in use: Unable to complete operation on network 0c08ee50-48cf-4ea5-b177-a849cbfae94d. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-4899cc14-5a9d-42b4-9169-39d18fe38569'] 2025-06-09 12:49:54,375 - WARNING - Deleting VN ctest-ext_vn-35069750 failed..Will retry 2025-06-09 12:49:56,493 - DEBUG - Response for deleting network () 2025-06-09 12:49:56,493 - INFO - Deleting VN ctest-vn-31908659 2025-06-09 12:49:56,598 - DEBUG - Response for deleting network () 2025-06-09 12:49:56,856 - DEBUG - No XMPP flaps were noticed during the test
2025-06-09 12:49:56,856 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26]
2025-06-09 12:49:56,856 - INFO - -------------------------------------------------------------------------------- 2025-06-09 12:49:57,547 - INFO - Deleted project: ctest-TestRoutersBasic-04128272, ID : 923d4efa-5569-4923-a9e1-8a5c8f025cfc