2024-11-08 17:16:54,400 - INFO - Domain Default found not creating 2024-11-08 17:16:54,596 - INFO - Project ctest-TestRoutersBasic-86391382 not found, creating it 2024-11-08 17:16:55,106 - INFO - Created Project:ctest-TestRoutersBasic-86391382, ID : 50b8d3cf-dddc-454c-b102-f67f027dec01 2024-11-08 17:16:56,798 - INFO - ================================================================================ 2024-11-08 17:16:56,799 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-11-08 17:16:56,799 - 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-11-08 17:16:57,056 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.6': '0'}} with 2024-11-08 17:16:57,056 - INFO - Initial checks done. Running the testcase now 2024-11-08 17:16:57,056 - INFO - 2024-11-08 17:16:57,786 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-86391382 2024-11-08 17:16:57,886 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-86391382 2024-11-08 17:16:58,230 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-86391382', 'default']} 2024-11-08 17:16:58,554 - DEBUG - Response for create_network : {'network': {'id': '149b0709-875d-4284-ba55-49c9c614e374', 'name': 'ctest-vn-98174824', 'tenant_id': '50b8d3cfdddc454cb102f67f027dec01', 'project_id': '50b8d3cfdddc454cb102f67f027dec01', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-86391382', 'ctest-vn-98174824'], 'port_security_enabled': True, 'description': ''}} 2024-11-08 17:16:58,775 - DEBUG - Response for create_subnet : {'subnet': {'id': '30102f5b-5e94-4137-835a-fd6a027addab', 'name': '', 'tenant_id': '50b8d3cfdddc454cb102f67f027dec01', 'network_id': '149b0709-875d-4284-ba55-49c9c614e374', 'ip_version': 4, 'cidr': '109.52.143.0/26', 'allocation_pools': [{'start': '109.52.143.2', 'end': '109.52.143.62'}], 'gateway_ip': '109.52.143.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '109.52.143.2', 'tags': [], 'project_id': '50b8d3cfdddc454cb102f67f027dec01'}} 2024-11-08 17:16:58,794 - INFO - Created VN ctest-vn-98174824 2024-11-08 17:16:58,854 - DEBUG - VN ctest-vn-98174824 UUID is 149b0709-875d-4284-ba55-49c9c614e374 2024-11-08 17:16:59,215 - DEBUG - Response for create_network : {'network': {'id': '39225dc3-702e-439c-9a2f-883b73cc805b', 'name': 'ctest-ext_vn-90019736', 'tenant_id': '50b8d3cfdddc454cb102f67f027dec01', 'project_id': '50b8d3cfdddc454cb102f67f027dec01', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-86391382', 'ctest-ext_vn-90019736'], 'port_security_enabled': True, 'description': ''}} 2024-11-08 17:16:59,367 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bea1de1e-58ac-4bd6-a1c9-ee1c8a801d0d', 'name': '', 'tenant_id': '50b8d3cfdddc454cb102f67f027dec01', 'network_id': '39225dc3-702e-439c-9a2f-883b73cc805b', 'ip_version': 4, 'cidr': '211.99.250.64/26', 'allocation_pools': [{'start': '211.99.250.66', 'end': '211.99.250.126'}], 'gateway_ip': '211.99.250.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '211.99.250.66', 'tags': [], 'project_id': '50b8d3cfdddc454cb102f67f027dec01'}} 2024-11-08 17:16:59,387 - INFO - Created VN ctest-ext_vn-90019736 2024-11-08 17:16:59,446 - DEBUG - VN ctest-ext_vn-90019736 UUID is 39225dc3-702e-439c-9a2f-883b73cc805b 2024-11-08 17:16:59,623 - DEBUG - Services list from nova: [, , ] 2024-11-08 17:17:00,715 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2236-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2236-1) 2024-11-08 17:17:02,059 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2236-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2236-1) 2024-11-08 17:17:02,155 - INFO - Setting gateway for router f0a3360f-046a-4531-8a4e-bd027d5b0f99 to network 39225dc3-702e-439c-9a2f-883b73cc805b 2024-11-08 17:17:02,248 - INFO - Adding interface with subnet_id 30102f5b-5e94-4137-835a-fd6a027addab, port_id None to router f0a3360f-046a-4531-8a4e-bd027d5b0f99 2024-11-08 17:17:02,769 - INFO - Waiting for VM ctest-TestRoutersBasic-86391382-54629197 to be up.. 2024-11-08 17:17:02,999 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-08 17:17:08,106 - DEBUG - VM is in ACTIVE state now 2024-11-08 17:17:08,106 - INFO - VM name : ctest-TestRoutersBasic-86391382-54629197 2024-11-08 17:17:08,190 - DEBUG - VM ctest-TestRoutersBasic-86391382-54629197 ID is 16e91a60-c4a1-40de-9ec5-4d087d1419ab 2024-11-08 17:17:08,212 - DEBUG - VM ctest-TestRoutersBasic-86391382-54629197 launched on Node cn-jenkins-deploy-platform-ansible-os-2236-1 2024-11-08 17:17:08,301 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/16e91a60-c4a1-40de-9ec5-4d087d1419ab 2024-11-08 17:17:08,613 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/16e91a60-c4a1-40de-9ec5-4d087d1419ab 2024-11-08 17:17:08,653 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/c9a8a78c-dd7f-4157-a208-0b0e2ef10906 2024-11-08 17:17:11,925 - 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') 2024-11-08 17:17:11,925 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-86391382-54629197 failed! 2024-11-08 17:17:11,990 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-86391382:ctest-vn-98174824 is 109.52.143.1 and allocation pool is NOT set 2024-11-08 17:17:14,051 - 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.23 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.694 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.694/1.961/3.228/1.267 ms') 2024-11-08 17:17:14,052 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-86391382-54629197 passed 2024-11-08 17:17:14,218 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 17:17:14,218 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-86391382-54629197, IP 109.52.143.3, Port 22 2024-11-08 17:17:14,373 - DEBUG - VM ctest-TestRoutersBasic-86391382-54629197 is ready for SSH connections 2024-11-08 17:17:14,374 - INFO - Waiting for VM ctest-TestRoutersBasic-86391382-84951469 to be up.. 2024-11-08 17:17:14,467 - DEBUG - VM is in ACTIVE state now 2024-11-08 17:17:14,467 - INFO - VM name : ctest-TestRoutersBasic-86391382-84951469 2024-11-08 17:17:14,559 - DEBUG - VM ctest-TestRoutersBasic-86391382-84951469 ID is fc19cd3f-9007-4c1a-aa48-dc874ff0b089 2024-11-08 17:17:14,559 - DEBUG - VM ctest-TestRoutersBasic-86391382-84951469 launched on Node cn-jenkins-deploy-platform-ansible-os-2236-1 2024-11-08 17:17:14,650 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/fc19cd3f-9007-4c1a-aa48-dc874ff0b089 2024-11-08 17:17:14,660 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/5fabe7c4-3b84-4c65-8e12-961f32c8a8cc 2024-11-08 17:17:15,924 - 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.86 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.399 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.399/1.629/2.860/1.230 ms') 2024-11-08 17:17:15,924 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-86391382-84951469 passed 2024-11-08 17:17:16,090 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 17:17:16,090 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-86391382-84951469, IP 211.99.250.67, Port 22 2024-11-08 17:17:16,271 - DEBUG - VM ctest-TestRoutersBasic-86391382-84951469 is ready for SSH connections 2024-11-08 17:17:16,271 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 17:17:16,272 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 211.99.250.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2024-11-08 17:17:16,272 - DEBUG - ping -s 56 -c 3 -W 1 211.99.250.67 2024-11-08 17:17:19,957 - DEBUG - PING 211.99.250.67 (211.99.250.67): 56 data bytes 64 bytes from 211.99.250.67: seq=0 ttl=62 time=4.991 ms 64 bytes from 211.99.250.67: seq=1 ttl=62 time=0.938 ms 64 bytes from 211.99.250.67: seq=2 ttl=62 time=0.961 ms --- 211.99.250.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.938/2.296/4.991 ms 2024-11-08 17:17:19,957 - INFO - Ping to IP 211.99.250.67 from VM ctest-TestRoutersBasic-86391382-54629197 passed 2024-11-08 17:17:19,957 - INFO - Deleting interface with subnet_id 30102f5b-5e94-4137-835a-fd6a027addab, port_id None from router f0a3360f-046a-4531-8a4e-bd027d5b0f99 2024-11-08 17:17:20,169 - INFO - Deleting VM ctest-TestRoutersBasic-86391382-84951469 2024-11-08 17:17:20,241 - INFO - Deleting VM ctest-TestRoutersBasic-86391382-54629197 2024-11-08 17:17:20,322 - INFO - Deleting VN ctest-ext_vn-90019736 2024-11-08 17:17:20,397 - DEBUG - VN 39225dc3-702e-439c-9a2f-883b73cc805b still in use: Unable to complete operation on network 39225dc3-702e-439c-9a2f-883b73cc805b. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-051e7501-0a7c-4dba-9b6e-5d244a308232'] 2024-11-08 17:17:20,397 - WARNING - Deleting VN ctest-ext_vn-90019736 failed..Will retry 2024-11-08 17:17:22,540 - DEBUG - Response for deleting network () 2024-11-08 17:17:22,541 - INFO - Deleting VN ctest-vn-98174824 2024-11-08 17:17:22,656 - DEBUG - Response for deleting network () 2024-11-08 17:17:22,912 - DEBUG - No XMPP flaps were noticed during the test 2024-11-08 17:17:22,912 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2024-11-08 17:17:22,912 - INFO - -------------------------------------------------------------------------------- 2024-11-08 17:17:23,661 - INFO - Deleted project: ctest-TestRoutersBasic-86391382, ID : 50b8d3cf-dddc-454c-b102-f67f027dec01