2024-09-20 16:29:03,867 - INFO - Domain Default found not creating 2024-09-20 16:29:04,052 - INFO - Project ctest-TestRoutersBasic-76319720 not found, creating it 2024-09-20 16:29:04,535 - INFO - Created Project:ctest-TestRoutersBasic-76319720, ID : 58fe37c9-0e61-4565-8587-637a1f58e45f 2024-09-20 16:29:06,078 - INFO - ================================================================================ 2024-09-20 16:29:06,079 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-20 16:29:06,079 - 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-20 16:29:06,340 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.22': '0'}} with 2024-09-20 16:29:06,340 - INFO - Initial checks done. Running the testcase now 2024-09-20 16:29:06,340 - INFO - 2024-09-20 16:29:07,103 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-76319720 2024-09-20 16:29:07,203 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-76319720 2024-09-20 16:29:07,562 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-76319720', 'default']} 2024-09-20 16:29:07,885 - DEBUG - Response for create_network : {'network': {'id': 'fcfbcfcd-44f2-4a06-a7d0-06046599e0fd', 'name': 'ctest-vn-42988065', 'tenant_id': '58fe37c90e6145658587637a1f58e45f', 'project_id': '58fe37c90e6145658587637a1f58e45f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-76319720', 'ctest-vn-42988065'], 'port_security_enabled': True, 'description': ''}} 2024-09-20 16:29:08,106 - DEBUG - Response for create_subnet : {'subnet': {'id': '4a04023c-3d6b-4628-8178-25cc6bec1370', 'name': '', 'tenant_id': '58fe37c90e6145658587637a1f58e45f', 'network_id': 'fcfbcfcd-44f2-4a06-a7d0-06046599e0fd', 'ip_version': 4, 'cidr': '192.135.134.64/26', 'allocation_pools': [{'start': '192.135.134.66', 'end': '192.135.134.126'}], 'gateway_ip': '192.135.134.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '192.135.134.66', 'tags': [], 'project_id': '58fe37c90e6145658587637a1f58e45f'}} 2024-09-20 16:29:08,131 - INFO - Created VN ctest-vn-42988065 2024-09-20 16:29:08,191 - DEBUG - VN ctest-vn-42988065 UUID is fcfbcfcd-44f2-4a06-a7d0-06046599e0fd 2024-09-20 16:29:08,561 - DEBUG - Response for create_network : {'network': {'id': '0da08ab2-7729-4aa1-8eba-75823e7ac897', 'name': 'ctest-ext_vn-44997964', 'tenant_id': '58fe37c90e6145658587637a1f58e45f', 'project_id': '58fe37c90e6145658587637a1f58e45f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-76319720', 'ctest-ext_vn-44997964'], 'port_security_enabled': True, 'description': ''}} 2024-09-20 16:29:08,727 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c08ea916-0d8d-4c62-a5a7-b5a6217ef67c', 'name': '', 'tenant_id': '58fe37c90e6145658587637a1f58e45f', 'network_id': '0da08ab2-7729-4aa1-8eba-75823e7ac897', 'ip_version': 4, 'cidr': '124.110.196.64/26', 'allocation_pools': [{'start': '124.110.196.66', 'end': '124.110.196.126'}], 'gateway_ip': '124.110.196.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '124.110.196.66', 'tags': [], 'project_id': '58fe37c90e6145658587637a1f58e45f'}} 2024-09-20 16:29:08,748 - INFO - Created VN ctest-ext_vn-44997964 2024-09-20 16:29:08,806 - DEBUG - VN ctest-ext_vn-44997964 UUID is 0da08ab2-7729-4aa1-8eba-75823e7ac897 2024-09-20 16:29:08,992 - DEBUG - Services list from nova: [, , ] 2024-09-20 16:29:10,093 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2009-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2009-1) 2024-09-20 16:29:11,337 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2009-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2009-1) 2024-09-20 16:29:11,429 - INFO - Setting gateway for router 2416adec-74fe-40a8-9f4e-c15aca2c6ba8 to network 0da08ab2-7729-4aa1-8eba-75823e7ac897 2024-09-20 16:29:11,500 - INFO - Adding interface with subnet_id 4a04023c-3d6b-4628-8178-25cc6bec1370, port_id None to router 2416adec-74fe-40a8-9f4e-c15aca2c6ba8 2024-09-20 16:29:11,863 - INFO - Waiting for VM ctest-TestRoutersBasic-76319720-41623941 to be up.. 2024-09-20 16:29:12,046 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-20 16:29:17,156 - DEBUG - VM is in ACTIVE state now 2024-09-20 16:29:17,156 - INFO - VM name : ctest-TestRoutersBasic-76319720-41623941 2024-09-20 16:29:17,246 - DEBUG - VM ctest-TestRoutersBasic-76319720-41623941 ID is eb4f80d1-0f95-4371-94e5-a1379fb8503c 2024-09-20 16:29:17,266 - DEBUG - VM ctest-TestRoutersBasic-76319720-41623941 launched on Node cn-jenkins-deploy-platform-ansible-os-2009-1 2024-09-20 16:29:17,368 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/eb4f80d1-0f95-4371-94e5-a1379fb8503c 2024-09-20 16:29:17,672 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/eb4f80d1-0f95-4371-94e5-a1379fb8503c 2024-09-20 16:29:17,710 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/145004a7-7d4c-4760-a2a7-5a2f1807a80f 2024-09-20 16:29:20,976 - 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-20 16:29:20,976 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-76319720-41623941 failed! 2024-09-20 16:29:21,034 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-76319720:ctest-vn-42988065 is 192.135.134.65 and allocation pool is NOT set 2024-09-20 16:29:23,096 - 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.87 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.394 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.394/2.130/3.867/1.736 ms') 2024-09-20 16:29:23,096 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-76319720-41623941 passed 2024-09-20 16:29:23,278 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-20 16:29:23,278 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-76319720-41623941, IP 192.135.134.67, Port 22 2024-09-20 16:29:23,452 - DEBUG - VM ctest-TestRoutersBasic-76319720-41623941 is ready for SSH connections 2024-09-20 16:29:23,452 - INFO - Waiting for VM ctest-TestRoutersBasic-76319720-21561434 to be up.. 2024-09-20 16:29:23,570 - DEBUG - VM is in ACTIVE state now 2024-09-20 16:29:23,570 - INFO - VM name : ctest-TestRoutersBasic-76319720-21561434 2024-09-20 16:29:23,661 - DEBUG - VM ctest-TestRoutersBasic-76319720-21561434 ID is e550f2df-9f0f-4364-9c16-e6768e999a3d 2024-09-20 16:29:23,661 - DEBUG - VM ctest-TestRoutersBasic-76319720-21561434 launched on Node cn-jenkins-deploy-platform-ansible-os-2009-1 2024-09-20 16:29:23,749 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/e550f2df-9f0f-4364-9c16-e6768e999a3d 2024-09-20 16:29:23,760 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/17d3c822-3c9a-47ab-9d88-70a693aa8d72 2024-09-20 16:29:25,011 - 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.73 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.485 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.485/2.108/3.731/1.623 ms') 2024-09-20 16:29:25,012 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-76319720-21561434 passed 2024-09-20 16:29:25,170 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-20 16:29:25,171 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-76319720-21561434, IP 124.110.196.67, Port 22 2024-09-20 16:29:25,327 - DEBUG - VM ctest-TestRoutersBasic-76319720-21561434 is ready for SSH connections 2024-09-20 16:29:25,327 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-20 16:29:25,327 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 124.110.196.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2024-09-20 16:29:25,328 - DEBUG - ping -s 56 -c 3 -W 1 124.110.196.67 2024-09-20 16:29:29,392 - DEBUG - PING 124.110.196.67 (124.110.196.67): 56 data bytes 64 bytes from 124.110.196.67: seq=0 ttl=62 time=6.739 ms 64 bytes from 124.110.196.67: seq=1 ttl=62 time=1.002 ms 64 bytes from 124.110.196.67: seq=2 ttl=62 time=0.895 ms --- 124.110.196.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.895/2.878/6.739 ms 2024-09-20 16:29:29,392 - INFO - Ping to IP 124.110.196.67 from VM ctest-TestRoutersBasic-76319720-41623941 passed 2024-09-20 16:29:29,392 - INFO - Deleting interface with subnet_id 4a04023c-3d6b-4628-8178-25cc6bec1370, port_id None from router 2416adec-74fe-40a8-9f4e-c15aca2c6ba8 2024-09-20 16:29:29,679 - INFO - Deleting VM ctest-TestRoutersBasic-76319720-21561434 2024-09-20 16:29:29,751 - INFO - Deleting VM ctest-TestRoutersBasic-76319720-41623941 2024-09-20 16:29:29,843 - INFO - Deleting VN ctest-ext_vn-44997964 2024-09-20 16:29:29,925 - DEBUG - VN 0da08ab2-7729-4aa1-8eba-75823e7ac897 still in use: Unable to complete operation on network 0da08ab2-7729-4aa1-8eba-75823e7ac897. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-7f958783-2063-4ef5-accc-e50b855c9a9e'] 2024-09-20 16:29:29,925 - WARNING - Deleting VN ctest-ext_vn-44997964 failed..Will retry 2024-09-20 16:29:32,045 - DEBUG - Response for deleting network () 2024-09-20 16:29:32,045 - INFO - Deleting VN ctest-vn-42988065 2024-09-20 16:29:32,153 - DEBUG - Response for deleting network () 2024-09-20 16:29:32,409 - DEBUG - No XMPP flaps were noticed during the test 2024-09-20 16:29:32,409 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2024-09-20 16:29:32,409 - INFO - -------------------------------------------------------------------------------- 2024-09-20 16:29:33,135 - INFO - Deleted project: ctest-TestRoutersBasic-76319720, ID : 58fe37c9-0e61-4565-8587-637a1f58e45f