2024-11-07 22:05:02,057 - INFO - Domain Default found not creating 2024-11-07 22:05:02,226 - INFO - Project ctest-TestRoutersBasic-56468681 not found, creating it 2024-11-07 22:05:02,728 - INFO - Created Project:ctest-TestRoutersBasic-56468681, ID : 661d5592-c8ea-4448-b1be-799352ff03c7 2024-11-07 22:05:04,181 - INFO - ================================================================================ 2024-11-07 22:05:04,181 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-11-07 22:05:04,181 - 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-07 22:05:04,440 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.7': '0'}} with 2024-11-07 22:05:04,440 - INFO - Initial checks done. Running the testcase now 2024-11-07 22:05:04,440 - INFO - 2024-11-07 22:05:05,153 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-56468681 2024-11-07 22:05:05,254 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-56468681 2024-11-07 22:05:05,590 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-56468681', 'default']} 2024-11-07 22:05:05,903 - DEBUG - Response for create_network : {'network': {'id': 'ab384382-4679-44c9-98e8-ba5d5265e9a7', 'name': 'ctest-vn-09465402', 'tenant_id': '661d5592c8ea4448b1be799352ff03c7', 'project_id': '661d5592c8ea4448b1be799352ff03c7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-56468681', 'ctest-vn-09465402'], 'port_security_enabled': True, 'description': ''}} 2024-11-07 22:05:06,101 - DEBUG - Response for create_subnet : {'subnet': {'id': '76efbd4f-d04d-4119-b178-69f69c08b5a5', 'name': '', 'tenant_id': '661d5592c8ea4448b1be799352ff03c7', 'network_id': 'ab384382-4679-44c9-98e8-ba5d5265e9a7', 'ip_version': 4, 'cidr': '216.5.200.128/26', 'allocation_pools': [{'start': '216.5.200.130', 'end': '216.5.200.190'}], 'gateway_ip': '216.5.200.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '216.5.200.130', 'tags': [], 'project_id': '661d5592c8ea4448b1be799352ff03c7'}} 2024-11-07 22:05:06,122 - INFO - Created VN ctest-vn-09465402 2024-11-07 22:05:06,178 - DEBUG - VN ctest-vn-09465402 UUID is ab384382-4679-44c9-98e8-ba5d5265e9a7 2024-11-07 22:05:06,511 - DEBUG - Response for create_network : {'network': {'id': 'e48e5a92-ad8a-4989-9cd8-abba22dc2bf1', 'name': 'ctest-ext_vn-88296018', 'tenant_id': '661d5592c8ea4448b1be799352ff03c7', 'project_id': '661d5592c8ea4448b1be799352ff03c7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-56468681', 'ctest-ext_vn-88296018'], 'port_security_enabled': True, 'description': ''}} 2024-11-07 22:05:06,679 - DEBUG - Response for create_subnet : {'subnet': {'id': '984c662d-39ee-47de-8ff5-82ae9cdad5f4', 'name': '', 'tenant_id': '661d5592c8ea4448b1be799352ff03c7', 'network_id': 'e48e5a92-ad8a-4989-9cd8-abba22dc2bf1', 'ip_version': 4, 'cidr': '60.11.194.0/26', 'allocation_pools': [{'start': '60.11.194.2', 'end': '60.11.194.62'}], 'gateway_ip': '60.11.194.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '60.11.194.2', 'tags': [], 'project_id': '661d5592c8ea4448b1be799352ff03c7'}} 2024-11-07 22:05:06,696 - INFO - Created VN ctest-ext_vn-88296018 2024-11-07 22:05:06,754 - DEBUG - VN ctest-ext_vn-88296018 UUID is e48e5a92-ad8a-4989-9cd8-abba22dc2bf1 2024-11-07 22:05:06,943 - DEBUG - Services list from nova: [, , ] 2024-11-07 22:05:07,977 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2222-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2222-1) 2024-11-07 22:05:09,093 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2222-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2222-1) 2024-11-07 22:05:09,167 - INFO - Setting gateway for router 3c7b09d0-5a63-476c-be40-14bfaa7060d6 to network e48e5a92-ad8a-4989-9cd8-abba22dc2bf1 2024-11-07 22:05:09,224 - INFO - Adding interface with subnet_id 76efbd4f-d04d-4119-b178-69f69c08b5a5, port_id None to router 3c7b09d0-5a63-476c-be40-14bfaa7060d6 2024-11-07 22:05:09,760 - INFO - Waiting for VM ctest-TestRoutersBasic-56468681-92267066 to be up.. 2024-11-07 22:05:09,962 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-07 22:05:15,049 - DEBUG - VM is in ACTIVE state now 2024-11-07 22:05:15,049 - INFO - VM name : ctest-TestRoutersBasic-56468681-92267066 2024-11-07 22:05:15,124 - DEBUG - VM ctest-TestRoutersBasic-56468681-92267066 ID is 2a96f1d5-b979-4b32-89d1-67ba1866029b 2024-11-07 22:05:15,141 - DEBUG - VM ctest-TestRoutersBasic-56468681-92267066 launched on Node cn-jenkins-deploy-platform-ansible-os-2222-1 2024-11-07 22:05:15,216 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/2a96f1d5-b979-4b32-89d1-67ba1866029b 2024-11-07 22:05:15,524 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/2a96f1d5-b979-4b32-89d1-67ba1866029b 2024-11-07 22:05:15,559 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/ac563162-38fb-4d49-81db-a3a453cb69a0 2024-11-07 22:05:18,824 - 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 1023ms') 2024-11-07 22:05:18,824 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-56468681-92267066 failed! 2024-11-07 22:05:18,890 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-56468681:ctest-vn-09465402 is 216.5.200.129 and allocation pool is NOT set 2024-11-07 22:05:20,951 - 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.74 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.428 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.428/1.582/2.737/1.154 ms') 2024-11-07 22:05:20,951 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-56468681-92267066 passed 2024-11-07 22:05:21,066 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 22:05:21,067 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-56468681-92267066, IP 216.5.200.131, Port 22 2024-11-07 22:05:21,222 - DEBUG - VM ctest-TestRoutersBasic-56468681-92267066 is ready for SSH connections 2024-11-07 22:05:21,222 - INFO - Waiting for VM ctest-TestRoutersBasic-56468681-54376059 to be up.. 2024-11-07 22:05:21,300 - DEBUG - VM is in ACTIVE state now 2024-11-07 22:05:21,300 - INFO - VM name : ctest-TestRoutersBasic-56468681-54376059 2024-11-07 22:05:21,386 - DEBUG - VM ctest-TestRoutersBasic-56468681-54376059 ID is 2d8a1292-64d6-43b8-83a2-b3d12f937c84 2024-11-07 22:05:21,386 - DEBUG - VM ctest-TestRoutersBasic-56468681-54376059 launched on Node cn-jenkins-deploy-platform-ansible-os-2222-1 2024-11-07 22:05:21,461 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/2d8a1292-64d6-43b8-83a2-b3d12f937c84 2024-11-07 22:05:21,471 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/7e59d3d8-8c96-4243-b40f-2caad35c6d78 2024-11-07 22:05:22,719 - 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.85 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.722 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.722/1.785/2.849/1.063 ms') 2024-11-07 22:05:22,719 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-56468681-54376059 passed 2024-11-07 22:05:22,870 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 22:05:22,870 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-56468681-54376059, IP 60.11.194.3, Port 22 2024-11-07 22:05:23,030 - DEBUG - VM ctest-TestRoutersBasic-56468681-54376059 is ready for SSH connections 2024-11-07 22:05:23,030 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 22:05:23,030 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 60.11.194.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2024-11-07 22:05:23,030 - DEBUG - ping -s 56 -c 3 -W 1 60.11.194.3 2024-11-07 22:05:27,018 - DEBUG - PING 60.11.194.3 (60.11.194.3): 56 data bytes 64 bytes from 60.11.194.3: seq=0 ttl=62 time=6.169 ms 64 bytes from 60.11.194.3: seq=1 ttl=62 time=0.917 ms 64 bytes from 60.11.194.3: seq=2 ttl=62 time=0.781 ms --- 60.11.194.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.781/2.622/6.169 ms 2024-11-07 22:05:27,018 - INFO - Ping to IP 60.11.194.3 from VM ctest-TestRoutersBasic-56468681-92267066 passed 2024-11-07 22:05:27,019 - INFO - Deleting interface with subnet_id 76efbd4f-d04d-4119-b178-69f69c08b5a5, port_id None from router 3c7b09d0-5a63-476c-be40-14bfaa7060d6 2024-11-07 22:05:27,242 - INFO - Deleting VM ctest-TestRoutersBasic-56468681-54376059 2024-11-07 22:05:27,320 - INFO - Deleting VM ctest-TestRoutersBasic-56468681-92267066 2024-11-07 22:05:27,397 - INFO - Deleting VN ctest-ext_vn-88296018 2024-11-07 22:05:27,466 - DEBUG - VN e48e5a92-ad8a-4989-9cd8-abba22dc2bf1 still in use: Unable to complete operation on network e48e5a92-ad8a-4989-9cd8-abba22dc2bf1. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-3f9bcd6c-7b3b-42d9-b0be-0626449e3160'] 2024-11-07 22:05:27,466 - WARNING - Deleting VN ctest-ext_vn-88296018 failed..Will retry 2024-11-07 22:05:29,575 - DEBUG - Response for deleting network () 2024-11-07 22:05:29,575 - INFO - Deleting VN ctest-vn-09465402 2024-11-07 22:05:29,691 - DEBUG - Response for deleting network () 2024-11-07 22:05:29,944 - DEBUG - No XMPP flaps were noticed during the test 2024-11-07 22:05:29,944 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:25] 2024-11-07 22:05:29,944 - INFO - -------------------------------------------------------------------------------- 2024-11-07 22:05:30,656 - INFO - Deleted project: ctest-TestRoutersBasic-56468681, ID : 661d5592-c8ea-4448-b1be-799352ff03c7