2025-06-02 02:32:06,823 - INFO - Domain Default found not creating 2025-06-02 02:32:06,964 - INFO - Project ctest-TestRoutersBasic-32332018 not found, creating it 2025-06-02 02:32:07,418 - INFO - Created Project:ctest-TestRoutersBasic-32332018, ID : 7541167b-16d6-46af-87a6-286e1b906468 2025-06-02 02:32:08,950 - INFO - ================================================================================ 2025-06-02 02:32:08,950 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-06-02 02:32:08,950 - 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-02 02:32:09,209 - DEBUG - Nothing to compare xmpp stats {'10.0.0.131': {'10.20.0.14': '0'}} with 2025-06-02 02:32:09,210 - INFO - Initial checks done. Running the testcase now 2025-06-02 02:32:09,210 - INFO - 2025-06-02 02:32:09,984 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-32332018 2025-06-02 02:32:10,084 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-32332018 2025-06-02 02:32:10,404 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-32332018', 'default']} 2025-06-02 02:32:10,702 - DEBUG - Response for create_network : {'network': {'id': 'b6dfe1dc-9c9b-4845-9c6b-54f798acb72c', 'name': 'ctest-vn-18043667', 'tenant_id': '7541167b16d646af87a6286e1b906468', 'project_id': '7541167b16d646af87a6286e1b906468', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-32332018', 'ctest-vn-18043667'], 'port_security_enabled': True, 'description': ''}} 2025-06-02 02:32:10,929 - DEBUG - Response for create_subnet : {'subnet': {'id': '2eb91582-b27a-4cf1-a0a4-40e8f2e29934', 'name': '', 'tenant_id': '7541167b16d646af87a6286e1b906468', 'network_id': 'b6dfe1dc-9c9b-4845-9c6b-54f798acb72c', 'ip_version': 4, 'cidr': '157.170.80.192/26', 'allocation_pools': [{'start': '157.170.80.194', 'end': '157.170.80.254'}], 'gateway_ip': '157.170.80.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '157.170.80.194', 'tags': [], 'project_id': '7541167b16d646af87a6286e1b906468'}} 2025-06-02 02:32:10,947 - INFO - Created VN ctest-vn-18043667 2025-06-02 02:32:11,000 - DEBUG - VN ctest-vn-18043667 UUID is b6dfe1dc-9c9b-4845-9c6b-54f798acb72c 2025-06-02 02:32:11,320 - DEBUG - Response for create_network : {'network': {'id': 'd972cb41-2e94-4dc6-8055-cb8b415c05b2', 'name': 'ctest-ext_vn-85010323', 'tenant_id': '7541167b16d646af87a6286e1b906468', 'project_id': '7541167b16d646af87a6286e1b906468', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-32332018', 'ctest-ext_vn-85010323'], 'port_security_enabled': True, 'description': ''}} 2025-06-02 02:32:11,531 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c4e2fc44-2bfc-4cf9-b4af-c84bfc462d18', 'name': '', 'tenant_id': '7541167b16d646af87a6286e1b906468', 'network_id': 'd972cb41-2e94-4dc6-8055-cb8b415c05b2', 'ip_version': 4, 'cidr': '137.178.48.128/26', 'allocation_pools': [{'start': '137.178.48.130', 'end': '137.178.48.190'}], 'gateway_ip': '137.178.48.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '137.178.48.130', 'tags': [], 'project_id': '7541167b16d646af87a6286e1b906468'}} 2025-06-02 02:32:11,558 - INFO - Created VN ctest-ext_vn-85010323 2025-06-02 02:32:11,620 - DEBUG - VN ctest-ext_vn-85010323 UUID is d972cb41-2e94-4dc6-8055-cb8b415c05b2 2025-06-02 02:32:11,800 - DEBUG - Services list from nova: [, , ] 2025-06-02 02:32:12,875 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3382-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3382-1) 2025-06-02 02:32:14,268 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3382-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3382-1) 2025-06-02 02:32:14,344 - INFO - Setting gateway for router 07171bed-77d7-416d-bfa8-90a43ccabfba to network d972cb41-2e94-4dc6-8055-cb8b415c05b2 2025-06-02 02:32:14,410 - INFO - Adding interface with subnet_id 2eb91582-b27a-4cf1-a0a4-40e8f2e29934, port_id None to router 07171bed-77d7-416d-bfa8-90a43ccabfba 2025-06-02 02:32:14,783 - INFO - Waiting for VM ctest-TestRoutersBasic-32332018-91218221 to be up.. 2025-06-02 02:32:15,001 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-02 02:32:20,091 - DEBUG - VM is in ACTIVE state now 2025-06-02 02:32:20,091 - INFO - VM name : ctest-TestRoutersBasic-32332018-91218221 2025-06-02 02:32:20,175 - DEBUG - VM ctest-TestRoutersBasic-32332018-91218221 ID is de3d5144-ebb7-4a55-9aa0-a539d3ba92e1 2025-06-02 02:32:20,195 - DEBUG - VM ctest-TestRoutersBasic-32332018-91218221 launched on Node cn-jenkins-deploy-platform-ansible-os-3382-1 2025-06-02 02:32:20,280 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-machine/de3d5144-ebb7-4a55-9aa0-a539d3ba92e1 2025-06-02 02:32:20,614 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-machine/de3d5144-ebb7-4a55-9aa0-a539d3ba92e1 2025-06-02 02:32:20,647 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-machine-interface/e2dba703-5b09-4d2b-b860-984bd6857725 2025-06-02 02:32:23,911 - 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 1022ms') 2025-06-02 02:32:23,911 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-32332018-91218221 failed! 2025-06-02 02:32:23,972 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-32332018:ctest-vn-18043667 is 157.170.80.193 and allocation pool is NOT set 2025-06-02 02:32:26,039 - 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.80 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.929 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.929/2.866/4.803/1.937 ms') 2025-06-02 02:32:26,040 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-32332018-91218221 passed 2025-06-02 02:32:26,196 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-02 02:32:26,197 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-32332018-91218221, IP 157.170.80.195, Port 22 2025-06-02 02:32:26,356 - DEBUG - VM ctest-TestRoutersBasic-32332018-91218221 is ready for SSH connections 2025-06-02 02:32:26,356 - INFO - Waiting for VM ctest-TestRoutersBasic-32332018-28449714 to be up.. 2025-06-02 02:32:26,442 - DEBUG - VM is in ACTIVE state now 2025-06-02 02:32:26,442 - INFO - VM name : ctest-TestRoutersBasic-32332018-28449714 2025-06-02 02:32:26,524 - DEBUG - VM ctest-TestRoutersBasic-32332018-28449714 ID is 095e3b3f-b375-4aaa-9fd7-79b24a8d43b7 2025-06-02 02:32:26,524 - DEBUG - VM ctest-TestRoutersBasic-32332018-28449714 launched on Node cn-jenkins-deploy-platform-ansible-os-3382-1 2025-06-02 02:32:26,603 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-machine/095e3b3f-b375-4aaa-9fd7-79b24a8d43b7 2025-06-02 02:32:26,614 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-machine-interface/d666802d-e46c-4592-aaa7-240b571e23f3 2025-06-02 02:32:27,865 - 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=5.94 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.922 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.922/3.430/5.938/2.508 ms') 2025-06-02 02:32:27,865 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-32332018-28449714 passed 2025-06-02 02:32:28,020 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-02 02:32:28,021 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-32332018-28449714, IP 137.178.48.131, Port 22 2025-06-02 02:32:28,190 - DEBUG - VM ctest-TestRoutersBasic-32332018-28449714 is ready for SSH connections 2025-06-02 02:32:28,191 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-02 02:32:28,191 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 137.178.48.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.131, gateway password: c0ntrail123 2025-06-02 02:32:28,191 - DEBUG - ping -s 56 -c 3 -W 1 137.178.48.131 2025-06-02 02:32:32,242 - DEBUG - PING 137.178.48.131 (137.178.48.131): 56 data bytes 64 bytes from 137.178.48.131: seq=0 ttl=62 time=5.257 ms 64 bytes from 137.178.48.131: seq=1 ttl=62 time=0.984 ms 64 bytes from 137.178.48.131: seq=2 ttl=62 time=0.898 ms --- 137.178.48.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.898/2.379/5.257 ms 2025-06-02 02:32:32,243 - INFO - Ping to IP 137.178.48.131 from VM ctest-TestRoutersBasic-32332018-91218221 passed 2025-06-02 02:32:32,243 - INFO - Deleting interface with subnet_id 2eb91582-b27a-4cf1-a0a4-40e8f2e29934, port_id None from router 07171bed-77d7-416d-bfa8-90a43ccabfba 2025-06-02 02:32:32,466 - INFO - Deleting VM ctest-TestRoutersBasic-32332018-28449714 2025-06-02 02:32:32,538 - INFO - Deleting VM ctest-TestRoutersBasic-32332018-91218221 2025-06-02 02:32:32,634 - INFO - Deleting VN ctest-ext_vn-85010323 2025-06-02 02:32:32,723 - DEBUG - VN d972cb41-2e94-4dc6-8055-cb8b415c05b2 still in use: Unable to complete operation on network d972cb41-2e94-4dc6-8055-cb8b415c05b2. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-9bd7692d-a7cb-4814-b2f4-a0763b068657'] 2025-06-02 02:32:32,723 - WARNING - Deleting VN ctest-ext_vn-85010323 failed..Will retry 2025-06-02 02:32:34,839 - DEBUG - Response for deleting network () 2025-06-02 02:32:34,839 - INFO - Deleting VN ctest-vn-18043667 2025-06-02 02:32:34,959 - DEBUG - Response for deleting network () 2025-06-02 02:32:35,230 - DEBUG - No XMPP flaps were noticed during the test
2025-06-02 02:32:35,230 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:27]
2025-06-02 02:32:35,230 - INFO - -------------------------------------------------------------------------------- 2025-06-02 02:32:35,969 - INFO - Deleted project: ctest-TestRoutersBasic-32332018, ID : 7541167b-16d6-46af-87a6-286e1b906468