2024-09-11 06:54:54,577 - INFO - Domain Default found not creating 2024-09-11 06:54:54,753 - INFO - Project ctest-TestRoutersBasic-00493612 not found, creating it 2024-09-11 06:54:55,251 - INFO - Created Project:ctest-TestRoutersBasic-00493612, ID : c0e384c4-e9ca-42f7-97c7-bcad025a2da6 2024-09-11 06:54:56,935 - INFO - ================================================================================ 2024-09-11 06:54:56,936 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-11 06:54:56,936 - 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 2024-09-11 06:54:57,194 - DEBUG - Nothing to compare xmpp stats {'10.0.0.36': {'10.20.0.11': '0'}} with 2024-09-11 06:54:57,194 - INFO - Initial checks done. Running the testcase now 2024-09-11 06:54:57,194 - INFO - 2024-09-11 06:54:57,920 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-00493612 2024-09-11 06:54:58,022 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-00493612 2024-09-11 06:54:58,349 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-00493612', 'default']} 2024-09-11 06:54:58,668 - DEBUG - Response for create_network : {'network': {'id': '09dff274-4a88-4017-a98b-be8398bb8811', 'name': 'ctest-vn-27448850', 'tenant_id': 'c0e384c4e9ca42f797c7bcad025a2da6', 'project_id': 'c0e384c4e9ca42f797c7bcad025a2da6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-00493612', 'ctest-vn-27448850'], 'port_security_enabled': True, 'description': ''}} 2024-09-11 06:54:58,899 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a5ed0921-e338-4d10-9b5e-44ad811e7c25', 'name': '', 'tenant_id': 'c0e384c4e9ca42f797c7bcad025a2da6', 'network_id': '09dff274-4a88-4017-a98b-be8398bb8811', 'ip_version': 4, 'cidr': '57.96.177.0/26', 'allocation_pools': [{'start': '57.96.177.2', 'end': '57.96.177.62'}], 'gateway_ip': '57.96.177.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '57.96.177.2', 'tags': [], 'project_id': 'c0e384c4e9ca42f797c7bcad025a2da6'}} 2024-09-11 06:54:58,921 - INFO - Created VN ctest-vn-27448850 2024-09-11 06:54:58,974 - DEBUG - VN ctest-vn-27448850 UUID is 09dff274-4a88-4017-a98b-be8398bb8811 2024-09-11 06:54:59,359 - DEBUG - Response for create_network : {'network': {'id': '9c9a13fb-db98-40c0-be55-4456ec5044bb', 'name': 'ctest-ext_vn-63349135', 'tenant_id': 'c0e384c4e9ca42f797c7bcad025a2da6', 'project_id': 'c0e384c4e9ca42f797c7bcad025a2da6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-00493612', 'ctest-ext_vn-63349135'], 'port_security_enabled': True, 'description': ''}} 2024-09-11 06:54:59,625 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bf3b8e29-962c-4c43-83c8-135b9ff76eca', 'name': '', 'tenant_id': 'c0e384c4e9ca42f797c7bcad025a2da6', 'network_id': '9c9a13fb-db98-40c0-be55-4456ec5044bb', 'ip_version': 4, 'cidr': '25.144.147.0/26', 'allocation_pools': [{'start': '25.144.147.2', 'end': '25.144.147.62'}], 'gateway_ip': '25.144.147.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25.144.147.2', 'tags': [], 'project_id': 'c0e384c4e9ca42f797c7bcad025a2da6'}} 2024-09-11 06:54:59,646 - INFO - Created VN ctest-ext_vn-63349135 2024-09-11 06:54:59,702 - DEBUG - VN ctest-ext_vn-63349135 UUID is 9c9a13fb-db98-40c0-be55-4456ec5044bb 2024-09-11 06:54:59,887 - DEBUG - Services list from nova: [, , ] 2024-09-11 06:55:00,987 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1891-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1891-1) 2024-09-11 06:55:02,372 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1891-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1891-1) 2024-09-11 06:55:02,441 - INFO - Setting gateway for router 4bba8d78-e077-44e8-a55d-4dcaeb1ceba6 to network 9c9a13fb-db98-40c0-be55-4456ec5044bb 2024-09-11 06:55:02,509 - INFO - Adding interface with subnet_id a5ed0921-e338-4d10-9b5e-44ad811e7c25, port_id None to router 4bba8d78-e077-44e8-a55d-4dcaeb1ceba6 2024-09-11 06:55:02,972 - INFO - Waiting for VM ctest-TestRoutersBasic-00493612-27592275 to be up.. 2024-09-11 06:55:03,130 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-11 06:55:08,223 - DEBUG - VM is in ACTIVE state now 2024-09-11 06:55:08,223 - INFO - VM name : ctest-TestRoutersBasic-00493612-27592275 2024-09-11 06:55:08,316 - DEBUG - VM ctest-TestRoutersBasic-00493612-27592275 ID is d74352f3-2852-44ca-bbdf-c38b0ffde7cc 2024-09-11 06:55:08,334 - DEBUG - VM ctest-TestRoutersBasic-00493612-27592275 launched on Node cn-jenkins-deploy-platform-ansible-os-1891-1 2024-09-11 06:55:08,429 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/d74352f3-2852-44ca-bbdf-c38b0ffde7cc 2024-09-11 06:55:08,724 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/d74352f3-2852-44ca-bbdf-c38b0ffde7cc 2024-09-11 06:55:08,757 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/7b041a54-8270-423f-a0e4-cb23f272a8b6 2024-09-11 06:55:11,995 - 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 1003ms') 2024-09-11 06:55:11,995 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-00493612-27592275 failed! 2024-09-11 06:55:12,054 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-00493612:ctest-vn-27448850 is 57.96.177.1 and allocation pool is NOT set 2024-09-11 06:55:14,121 - 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.79 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.535 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.535/1.663/2.792/1.128 ms') 2024-09-11 06:55:14,121 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-00493612-27592275 passed 2024-09-11 06:55:14,270 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 06:55:14,270 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-00493612-27592275, IP 57.96.177.3, Port 22 2024-09-11 06:55:14,421 - DEBUG - VM ctest-TestRoutersBasic-00493612-27592275 is ready for SSH connections 2024-09-11 06:55:14,421 - INFO - Waiting for VM ctest-TestRoutersBasic-00493612-31076041 to be up.. 2024-09-11 06:55:14,499 - DEBUG - VM is in ACTIVE state now 2024-09-11 06:55:14,499 - INFO - VM name : ctest-TestRoutersBasic-00493612-31076041 2024-09-11 06:55:14,577 - DEBUG - VM ctest-TestRoutersBasic-00493612-31076041 ID is 9fb5b0d6-38d0-4f68-9825-d83fd9f7a0fc 2024-09-11 06:55:14,577 - DEBUG - VM ctest-TestRoutersBasic-00493612-31076041 launched on Node cn-jenkins-deploy-platform-ansible-os-1891-1 2024-09-11 06:55:14,663 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/9fb5b0d6-38d0-4f68-9825-d83fd9f7a0fc 2024-09-11 06:55:14,672 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/9a06e470-295c-4663-96e2-b0a493c7ebb2 2024-09-11 06:55:15,902 - 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=3.81 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.508 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.508/2.156/3.805/1.648 ms') 2024-09-11 06:55:15,902 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-00493612-31076041 passed 2024-09-11 06:55:16,050 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 06:55:16,050 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-00493612-31076041, IP 25.144.147.3, Port 22 2024-09-11 06:55:16,205 - DEBUG - VM ctest-TestRoutersBasic-00493612-31076041 is ready for SSH connections 2024-09-11 06:55:16,206 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 06:55:16,206 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 25.144.147.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.36, gateway password: c0ntrail123 2024-09-11 06:55:16,206 - DEBUG - ping -s 56 -c 3 -W 1 25.144.147.3 2024-09-11 06:55:19,896 - DEBUG - PING 25.144.147.3 (25.144.147.3): 56 data bytes 64 bytes from 25.144.147.3: seq=0 ttl=62 time=5.086 ms 64 bytes from 25.144.147.3: seq=1 ttl=62 time=0.850 ms 64 bytes from 25.144.147.3: seq=2 ttl=62 time=0.913 ms --- 25.144.147.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.850/2.283/5.086 ms 2024-09-11 06:55:19,896 - INFO - Ping to IP 25.144.147.3 from VM ctest-TestRoutersBasic-00493612-27592275 passed 2024-09-11 06:55:19,896 - INFO - Deleting interface with subnet_id a5ed0921-e338-4d10-9b5e-44ad811e7c25, port_id None from router 4bba8d78-e077-44e8-a55d-4dcaeb1ceba6 2024-09-11 06:55:20,100 - INFO - Deleting VM ctest-TestRoutersBasic-00493612-31076041 2024-09-11 06:55:20,184 - INFO - Deleting VM ctest-TestRoutersBasic-00493612-27592275 2024-09-11 06:55:20,260 - INFO - Deleting VN ctest-ext_vn-63349135 2024-09-11 06:55:20,344 - DEBUG - VN 9c9a13fb-db98-40c0-be55-4456ec5044bb still in use: Unable to complete operation on network 9c9a13fb-db98-40c0-be55-4456ec5044bb. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-b6e20aa9-537d-4ba4-9d88-a57ce150f35b'] 2024-09-11 06:55:20,345 - WARNING - Deleting VN ctest-ext_vn-63349135 failed..Will retry 2024-09-11 06:55:22,463 - DEBUG - Response for deleting network () 2024-09-11 06:55:22,463 - INFO - Deleting VN ctest-vn-27448850 2024-09-11 06:55:22,593 - DEBUG - Response for deleting network () 2024-09-11 06:55:22,848 - DEBUG - No XMPP flaps were noticed during the test
2024-09-11 06:55:22,849 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26]
2024-09-11 06:55:22,849 - INFO - -------------------------------------------------------------------------------- 2024-09-11 06:55:23,534 - INFO - Deleted project: ctest-TestRoutersBasic-00493612, ID : c0e384c4-e9ca-42f7-97c7-bcad025a2da6