2024-09-04 20:43:21,029 - INFO - Domain Default found not creating 2024-09-04 20:43:21,208 - INFO - Project ctest-TestRoutersBasic-38660131 not found, creating it 2024-09-04 20:43:21,704 - INFO - Created Project:ctest-TestRoutersBasic-38660131, ID : b96a53b9-2699-431f-aa8c-2840801366e2 2024-09-04 20:43:23,332 - INFO - ================================================================================ 2024-09-04 20:43:23,332 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-04 20:43:23,332 - 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-04 20:43:23,589 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.7': '0'}} with 2024-09-04 20:43:23,589 - INFO - Initial checks done. Running the testcase now 2024-09-04 20:43:23,590 - INFO - 2024-09-04 20:43:24,356 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-38660131 2024-09-04 20:43:24,459 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-38660131 2024-09-04 20:43:24,798 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-38660131', 'default']} 2024-09-04 20:43:25,108 - DEBUG - Response for create_network : {'network': {'id': '0ca123b7-2aaf-4cb9-be3b-01735a2c81a1', 'name': 'ctest-vn-55824158', 'tenant_id': 'b96a53b92699431faa8c2840801366e2', 'project_id': 'b96a53b92699431faa8c2840801366e2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-38660131', 'ctest-vn-55824158'], 'port_security_enabled': True, 'description': ''}} 2024-09-04 20:43:25,302 - DEBUG - Response for create_subnet : {'subnet': {'id': 'df648b3e-40f2-4666-8dd3-b6287b21639c', 'name': '', 'tenant_id': 'b96a53b92699431faa8c2840801366e2', 'network_id': '0ca123b7-2aaf-4cb9-be3b-01735a2c81a1', 'ip_version': 4, 'cidr': '11.103.233.128/26', 'allocation_pools': [{'start': '11.103.233.130', 'end': '11.103.233.190'}], 'gateway_ip': '11.103.233.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '11.103.233.130', 'tags': [], 'project_id': 'b96a53b92699431faa8c2840801366e2'}} 2024-09-04 20:43:25,325 - INFO - Created VN ctest-vn-55824158 2024-09-04 20:43:25,379 - DEBUG - VN ctest-vn-55824158 UUID is 0ca123b7-2aaf-4cb9-be3b-01735a2c81a1 2024-09-04 20:43:25,730 - DEBUG - Response for create_network : {'network': {'id': 'f1cbc736-b598-465e-8ddc-32fd87eb75a9', 'name': 'ctest-ext_vn-37167571', 'tenant_id': 'b96a53b92699431faa8c2840801366e2', 'project_id': 'b96a53b92699431faa8c2840801366e2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-38660131', 'ctest-ext_vn-37167571'], 'port_security_enabled': True, 'description': ''}} 2024-09-04 20:43:25,905 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd028a9c0-3d67-4703-bef3-61084c0de9d9', 'name': '', 'tenant_id': 'b96a53b92699431faa8c2840801366e2', 'network_id': 'f1cbc736-b598-465e-8ddc-32fd87eb75a9', 'ip_version': 4, 'cidr': '134.233.157.192/26', 'allocation_pools': [{'start': '134.233.157.194', 'end': '134.233.157.254'}], 'gateway_ip': '134.233.157.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '134.233.157.194', 'tags': [], 'project_id': 'b96a53b92699431faa8c2840801366e2'}} 2024-09-04 20:43:25,925 - INFO - Created VN ctest-ext_vn-37167571 2024-09-04 20:43:25,979 - DEBUG - VN ctest-ext_vn-37167571 UUID is f1cbc736-b598-465e-8ddc-32fd87eb75a9 2024-09-04 20:43:26,150 - DEBUG - Services list from nova: [, , ] 2024-09-04 20:43:27,206 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1847-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1847-1) 2024-09-04 20:43:28,401 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1847-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1847-1) 2024-09-04 20:43:28,493 - INFO - Setting gateway for router b16dc7df-e2fb-4506-b49c-0222c4e19d12 to network f1cbc736-b598-465e-8ddc-32fd87eb75a9 2024-09-04 20:43:28,588 - INFO - Adding interface with subnet_id df648b3e-40f2-4666-8dd3-b6287b21639c, port_id None to router b16dc7df-e2fb-4506-b49c-0222c4e19d12 2024-09-04 20:43:29,113 - INFO - Waiting for VM ctest-TestRoutersBasic-38660131-97804311 to be up.. 2024-09-04 20:43:29,314 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-04 20:43:34,395 - DEBUG - VM is in ACTIVE state now 2024-09-04 20:43:34,396 - INFO - VM name : ctest-TestRoutersBasic-38660131-97804311 2024-09-04 20:43:34,480 - DEBUG - VM ctest-TestRoutersBasic-38660131-97804311 ID is 4584af00-d7de-4784-a152-f1163f952ca4 2024-09-04 20:43:34,500 - DEBUG - VM ctest-TestRoutersBasic-38660131-97804311 launched on Node cn-jenkins-deploy-platform-ansible-os-1847-1 2024-09-04 20:43:34,582 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/4584af00-d7de-4784-a152-f1163f952ca4 2024-09-04 20:43:34,886 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/4584af00-d7de-4784-a152-f1163f952ca4 2024-09-04 20:43:34,922 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine-interface/eca43625-7851-4db1-a94d-ff7fe1a7b9e9 2024-09-04 20:43:38,196 - 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 1031ms') 2024-09-04 20:43:38,196 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-38660131-97804311 failed! 2024-09-04 20:43:38,251 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-38660131:ctest-vn-55824158 is 11.103.233.129 and allocation pool is NOT set 2024-09-04 20:43:40,313 - 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.32 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.514 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.514/1.915/3.317/1.401 ms') 2024-09-04 20:43:40,313 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-38660131-97804311 passed 2024-09-04 20:43:40,466 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-04 20:43:40,467 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-38660131-97804311, IP 11.103.233.131, Port 22 2024-09-04 20:43:40,632 - DEBUG - VM ctest-TestRoutersBasic-38660131-97804311 is ready for SSH connections 2024-09-04 20:43:40,632 - INFO - Waiting for VM ctest-TestRoutersBasic-38660131-50880144 to be up.. 2024-09-04 20:43:40,729 - DEBUG - VM is in ACTIVE state now 2024-09-04 20:43:40,729 - INFO - VM name : ctest-TestRoutersBasic-38660131-50880144 2024-09-04 20:43:40,818 - DEBUG - VM ctest-TestRoutersBasic-38660131-50880144 ID is a3d6346d-ffec-4189-8be0-64acfbac49c0 2024-09-04 20:43:40,819 - DEBUG - VM ctest-TestRoutersBasic-38660131-50880144 launched on Node cn-jenkins-deploy-platform-ansible-os-1847-1 2024-09-04 20:43:40,909 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/a3d6346d-ffec-4189-8be0-64acfbac49c0 2024-09-04 20:43:40,919 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine-interface/0ad1827e-4013-4def-bc98-080599aa152a 2024-09-04 20:43:42,156 - 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.91 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.436 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.436/1.673/2.910/1.237 ms') 2024-09-04 20:43:42,156 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-38660131-50880144 passed 2024-09-04 20:43:42,307 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-04 20:43:42,307 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-38660131-50880144, IP 134.233.157.195, Port 22 2024-09-04 20:43:42,466 - DEBUG - VM ctest-TestRoutersBasic-38660131-50880144 is ready for SSH connections 2024-09-04 20:43:42,466 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-04 20:43:42,466 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 134.233.157.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.48, gateway password: c0ntrail123 2024-09-04 20:43:42,466 - DEBUG - ping -s 56 -c 3 -W 1 134.233.157.195 2024-09-04 20:43:46,194 - DEBUG - PING 134.233.157.195 (134.233.157.195): 56 data bytes 64 bytes from 134.233.157.195: seq=0 ttl=62 time=7.060 ms 64 bytes from 134.233.157.195: seq=1 ttl=62 time=0.937 ms 64 bytes from 134.233.157.195: seq=2 ttl=62 time=1.036 ms --- 134.233.157.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.937/3.011/7.060 ms 2024-09-04 20:43:46,194 - INFO - Ping to IP 134.233.157.195 from VM ctest-TestRoutersBasic-38660131-97804311 passed 2024-09-04 20:43:46,195 - INFO - Deleting interface with subnet_id df648b3e-40f2-4666-8dd3-b6287b21639c, port_id None from router b16dc7df-e2fb-4506-b49c-0222c4e19d12 2024-09-04 20:43:46,410 - INFO - Deleting VM ctest-TestRoutersBasic-38660131-50880144 2024-09-04 20:43:46,489 - INFO - Deleting VM ctest-TestRoutersBasic-38660131-97804311 2024-09-04 20:43:46,569 - INFO - Deleting VN ctest-ext_vn-37167571 2024-09-04 20:43:46,675 - DEBUG - VN f1cbc736-b598-465e-8ddc-32fd87eb75a9 still in use: Unable to complete operation on network f1cbc736-b598-465e-8ddc-32fd87eb75a9. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-2ee1754e-1859-4e5c-a110-3629619647d9'] 2024-09-04 20:43:46,675 - WARNING - Deleting VN ctest-ext_vn-37167571 failed..Will retry 2024-09-04 20:43:48,803 - DEBUG - Response for deleting network () 2024-09-04 20:43:48,803 - INFO - Deleting VN ctest-vn-55824158 2024-09-04 20:43:48,938 - DEBUG - Response for deleting network () 2024-09-04 20:43:49,192 - DEBUG - No XMPP flaps were noticed during the test
2024-09-04 20:43:49,193 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26]
2024-09-04 20:43:49,193 - INFO - -------------------------------------------------------------------------------- 2024-09-04 20:43:49,884 - INFO - Deleted project: ctest-TestRoutersBasic-38660131, ID : b96a53b9-2699-431f-aa8c-2840801366e2