2024-11-14 20:24:11,439 - INFO - Domain Default found not creating 2024-11-14 20:24:11,616 - INFO - Project ctest-TestRoutersBasic-64036783 not found, creating it 2024-11-14 20:24:12,163 - INFO - Created Project:ctest-TestRoutersBasic-64036783, ID : c2457be9-3311-4424-8e5a-899dbdbc46a1 2024-11-14 20:24:13,663 - INFO - ================================================================================ 2024-11-14 20:24:13,663 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-11-14 20:24:13,664 - 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-14 20:24:13,929 - DEBUG - Nothing to compare xmpp stats {'10.0.0.58': {'10.20.0.6': '0'}} with 2024-11-14 20:24:13,929 - INFO - Initial checks done. Running the testcase now 2024-11-14 20:24:13,929 - INFO - 2024-11-14 20:24:14,676 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-64036783 2024-11-14 20:24:14,774 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-64036783 2024-11-14 20:24:15,106 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-64036783', 'default']} 2024-11-14 20:24:15,430 - DEBUG - Response for create_network : {'network': {'id': 'e36493d0-d44f-4d77-9f34-770a031bd9b0', 'name': 'ctest-vn-63143539', 'tenant_id': 'c2457be9331144248e5a899dbdbc46a1', 'project_id': 'c2457be9331144248e5a899dbdbc46a1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-64036783', 'ctest-vn-63143539'], 'port_security_enabled': True, 'description': ''}} 2024-11-14 20:24:15,648 - DEBUG - Response for create_subnet : {'subnet': {'id': '3ba85b3d-5bfd-400a-9fb8-208285c73513', 'name': '', 'tenant_id': 'c2457be9331144248e5a899dbdbc46a1', 'network_id': 'e36493d0-d44f-4d77-9f34-770a031bd9b0', 'ip_version': 4, 'cidr': '170.244.180.0/26', 'allocation_pools': [{'start': '170.244.180.2', 'end': '170.244.180.62'}], 'gateway_ip': '170.244.180.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '170.244.180.2', 'tags': [], 'project_id': 'c2457be9331144248e5a899dbdbc46a1'}} 2024-11-14 20:24:15,670 - INFO - Created VN ctest-vn-63143539 2024-11-14 20:24:15,726 - DEBUG - VN ctest-vn-63143539 UUID is e36493d0-d44f-4d77-9f34-770a031bd9b0 2024-11-14 20:24:16,085 - DEBUG - Response for create_network : {'network': {'id': 'bf3517e0-6b3b-4405-b5b6-d84b978bc7d3', 'name': 'ctest-ext_vn-41030064', 'tenant_id': 'c2457be9331144248e5a899dbdbc46a1', 'project_id': 'c2457be9331144248e5a899dbdbc46a1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-64036783', 'ctest-ext_vn-41030064'], 'port_security_enabled': True, 'description': ''}} 2024-11-14 20:24:16,307 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd43d4166-1ace-438a-808f-60954793189d', 'name': '', 'tenant_id': 'c2457be9331144248e5a899dbdbc46a1', 'network_id': 'bf3517e0-6b3b-4405-b5b6-d84b978bc7d3', 'ip_version': 4, 'cidr': '62.88.183.0/26', 'allocation_pools': [{'start': '62.88.183.2', 'end': '62.88.183.62'}], 'gateway_ip': '62.88.183.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.88.183.2', 'tags': [], 'project_id': 'c2457be9331144248e5a899dbdbc46a1'}} 2024-11-14 20:24:16,330 - INFO - Created VN ctest-ext_vn-41030064 2024-11-14 20:24:16,390 - DEBUG - VN ctest-ext_vn-41030064 UUID is bf3517e0-6b3b-4405-b5b6-d84b978bc7d3 2024-11-14 20:24:16,576 - DEBUG - Services list from nova: [, , ] 2024-11-14 20:24:17,601 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2304-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2304-1) 2024-11-14 20:24:18,844 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2304-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2304-1) 2024-11-14 20:24:18,953 - INFO - Setting gateway for router 703ccac1-c3d7-4ec4-92f5-776d0cc74390 to network bf3517e0-6b3b-4405-b5b6-d84b978bc7d3 2024-11-14 20:24:19,028 - INFO - Adding interface with subnet_id 3ba85b3d-5bfd-400a-9fb8-208285c73513, port_id None to router 703ccac1-c3d7-4ec4-92f5-776d0cc74390 2024-11-14 20:24:19,465 - INFO - Waiting for VM ctest-TestRoutersBasic-64036783-67993332 to be up.. 2024-11-14 20:24:19,650 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-14 20:24:24,737 - DEBUG - VM is in ACTIVE state now 2024-11-14 20:24:24,737 - INFO - VM name : ctest-TestRoutersBasic-64036783-67993332 2024-11-14 20:24:24,817 - DEBUG - VM ctest-TestRoutersBasic-64036783-67993332 ID is 9cd8e6e2-7161-45f0-8667-229e7e1bac75 2024-11-14 20:24:24,844 - DEBUG - VM ctest-TestRoutersBasic-64036783-67993332 launched on Node cn-jenkins-deploy-platform-ansible-os-2304-1 2024-11-14 20:24:24,937 - DEBUG - Requesting: http://10.0.0.58:8082/virtual-machine/9cd8e6e2-7161-45f0-8667-229e7e1bac75 2024-11-14 20:24:25,242 - DEBUG - Requesting: http://10.0.0.58:8082/virtual-machine/9cd8e6e2-7161-45f0-8667-229e7e1bac75 2024-11-14 20:24:25,279 - DEBUG - Requesting: http://10.0.0.58:8082/virtual-machine-interface/8bc836cd-2143-4c8a-8af6-33724ed3e6b5 2024-11-14 20:24:28,567 - 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 1027ms') 2024-11-14 20:24:28,567 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-64036783-67993332 failed! 2024-11-14 20:24:28,630 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-64036783:ctest-vn-63143539 is 170.244.180.1 and allocation pool is NOT set 2024-11-14 20:24:30,695 - 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.40 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.383 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.383/1.893/3.403/1.510 ms') 2024-11-14 20:24:30,695 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-64036783-67993332 passed 2024-11-14 20:24:30,854 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-14 20:24:30,854 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-64036783-67993332, IP 170.244.180.3, Port 22 2024-11-14 20:24:31,010 - DEBUG - VM ctest-TestRoutersBasic-64036783-67993332 is ready for SSH connections 2024-11-14 20:24:31,010 - INFO - Waiting for VM ctest-TestRoutersBasic-64036783-46288601 to be up.. 2024-11-14 20:24:31,094 - DEBUG - VM is in ACTIVE state now 2024-11-14 20:24:31,094 - INFO - VM name : ctest-TestRoutersBasic-64036783-46288601 2024-11-14 20:24:31,172 - DEBUG - VM ctest-TestRoutersBasic-64036783-46288601 ID is 4564b537-5fcf-4ad6-bbad-d2f9e7f29a43 2024-11-14 20:24:31,172 - DEBUG - VM ctest-TestRoutersBasic-64036783-46288601 launched on Node cn-jenkins-deploy-platform-ansible-os-2304-1 2024-11-14 20:24:31,245 - DEBUG - Requesting: http://10.0.0.58:8082/virtual-machine/4564b537-5fcf-4ad6-bbad-d2f9e7f29a43 2024-11-14 20:24:31,255 - DEBUG - Requesting: http://10.0.0.58:8082/virtual-machine-interface/38d35c56-14a3-4bae-95ae-9cfd421a0c11 2024-11-14 20:24:32,509 - 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.00 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.397 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.397/1.696/2.996/1.299 ms') 2024-11-14 20:24:32,509 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-64036783-46288601 passed 2024-11-14 20:24:32,666 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-14 20:24:32,666 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-64036783-46288601, IP 62.88.183.3, Port 22 2024-11-14 20:24:32,817 - DEBUG - VM ctest-TestRoutersBasic-64036783-46288601 is ready for SSH connections 2024-11-14 20:24:32,818 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-14 20:24:32,818 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 62.88.183.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.58, gateway password: c0ntrail123 2024-11-14 20:24:32,818 - DEBUG - ping -s 56 -c 3 -W 1 62.88.183.3 2024-11-14 20:24:36,525 - DEBUG - PING 62.88.183.3 (62.88.183.3): 56 data bytes 64 bytes from 62.88.183.3: seq=0 ttl=62 time=7.291 ms 64 bytes from 62.88.183.3: seq=1 ttl=62 time=1.400 ms 64 bytes from 62.88.183.3: seq=2 ttl=62 time=1.033 ms --- 62.88.183.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.033/3.241/7.291 ms 2024-11-14 20:24:36,525 - INFO - Ping to IP 62.88.183.3 from VM ctest-TestRoutersBasic-64036783-67993332 passed 2024-11-14 20:24:36,525 - INFO - Deleting interface with subnet_id 3ba85b3d-5bfd-400a-9fb8-208285c73513, port_id None from router 703ccac1-c3d7-4ec4-92f5-776d0cc74390 2024-11-14 20:24:36,754 - INFO - Deleting VM ctest-TestRoutersBasic-64036783-46288601 2024-11-14 20:24:36,828 - INFO - Deleting VM ctest-TestRoutersBasic-64036783-67993332 2024-11-14 20:24:36,899 - INFO - Deleting VN ctest-ext_vn-41030064 2024-11-14 20:24:36,978 - DEBUG - VN bf3517e0-6b3b-4405-b5b6-d84b978bc7d3 still in use: Unable to complete operation on network bf3517e0-6b3b-4405-b5b6-d84b978bc7d3. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-8ee1a3a7-5b76-4675-b737-b4c09f270175'] 2024-11-14 20:24:36,978 - WARNING - Deleting VN ctest-ext_vn-41030064 failed..Will retry 2024-11-14 20:24:39,098 - DEBUG - Response for deleting network () 2024-11-14 20:24:39,098 - INFO - Deleting VN ctest-vn-63143539 2024-11-14 20:24:39,236 - DEBUG - Response for deleting network () 2024-11-14 20:24:39,493 - DEBUG - No XMPP flaps were noticed during the test 2024-11-14 20:24:39,493 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2024-11-14 20:24:39,493 - INFO - -------------------------------------------------------------------------------- 2024-11-14 20:24:40,345 - INFO - Deleted project: ctest-TestRoutersBasic-64036783, ID : c2457be9-3311-4424-8e5a-899dbdbc46a1