2024-11-10 20:40:48,516 - INFO - Domain Default found not creating 2024-11-10 20:40:48,705 - INFO - Project ctest-TestRoutersBasic-15356230 not found, creating it 2024-11-10 20:40:49,227 - INFO - Created Project:ctest-TestRoutersBasic-15356230, ID : 497d760a-9bb0-4b40-b6bf-1f0d413fc3a7 2024-11-10 20:40:51,027 - INFO - ================================================================================ 2024-11-10 20:40:51,027 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-11-10 20:40:51,027 - 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-10 20:40:51,307 - DEBUG - Nothing to compare xmpp stats {'10.0.0.36': {'10.20.0.13': '0'}} with 2024-11-10 20:40:51,307 - INFO - Initial checks done. Running the testcase now 2024-11-10 20:40:51,307 - INFO - 2024-11-10 20:40:52,169 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-15356230 2024-11-10 20:40:52,273 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-15356230 2024-11-10 20:40:52,661 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-15356230', 'default']} 2024-11-10 20:40:53,003 - DEBUG - Response for create_network : {'network': {'id': '9e000c9d-49b1-48a6-b952-e333a2120b1c', 'name': 'ctest-vn-36727407', 'tenant_id': '497d760a9bb04b40b6bf1f0d413fc3a7', 'project_id': '497d760a9bb04b40b6bf1f0d413fc3a7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-15356230', 'ctest-vn-36727407'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 20:40:53,243 - DEBUG - Response for create_subnet : {'subnet': {'id': '70497778-e721-4d4e-b0a1-c77c11f039dc', 'name': '', 'tenant_id': '497d760a9bb04b40b6bf1f0d413fc3a7', 'network_id': '9e000c9d-49b1-48a6-b952-e333a2120b1c', 'ip_version': 4, 'cidr': '97.190.172.192/26', 'allocation_pools': [{'start': '97.190.172.194', 'end': '97.190.172.254'}], 'gateway_ip': '97.190.172.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '97.190.172.194', 'tags': [], 'project_id': '497d760a9bb04b40b6bf1f0d413fc3a7'}} 2024-11-10 20:40:53,268 - INFO - Created VN ctest-vn-36727407 2024-11-10 20:40:53,329 - DEBUG - VN ctest-vn-36727407 UUID is 9e000c9d-49b1-48a6-b952-e333a2120b1c 2024-11-10 20:40:53,732 - DEBUG - Response for create_network : {'network': {'id': 'a781d090-ed84-410d-ad09-bfa80ca7083c', 'name': 'ctest-ext_vn-57821122', 'tenant_id': '497d760a9bb04b40b6bf1f0d413fc3a7', 'project_id': '497d760a9bb04b40b6bf1f0d413fc3a7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-15356230', 'ctest-ext_vn-57821122'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 20:40:53,965 - DEBUG - Response for create_subnet : {'subnet': {'id': '33606e43-8c90-42fe-b2ad-807ae53d12c3', 'name': '', 'tenant_id': '497d760a9bb04b40b6bf1f0d413fc3a7', 'network_id': 'a781d090-ed84-410d-ad09-bfa80ca7083c', 'ip_version': 4, 'cidr': '33.132.190.128/26', 'allocation_pools': [{'start': '33.132.190.130', 'end': '33.132.190.190'}], 'gateway_ip': '33.132.190.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33.132.190.130', 'tags': [], 'project_id': '497d760a9bb04b40b6bf1f0d413fc3a7'}} 2024-11-10 20:40:53,984 - INFO - Created VN ctest-ext_vn-57821122 2024-11-10 20:40:54,041 - DEBUG - VN ctest-ext_vn-57821122 UUID is a781d090-ed84-410d-ad09-bfa80ca7083c 2024-11-10 20:40:54,227 - DEBUG - Services list from nova: [, , ] 2024-11-10 20:40:55,390 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2262-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2262-1) 2024-11-10 20:40:56,819 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2262-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2262-1) 2024-11-10 20:40:56,915 - INFO - Setting gateway for router a7629f43-a4d8-4c0f-9dcd-c26a57d94690 to network a781d090-ed84-410d-ad09-bfa80ca7083c 2024-11-10 20:40:57,003 - INFO - Adding interface with subnet_id 70497778-e721-4d4e-b0a1-c77c11f039dc, port_id None to router a7629f43-a4d8-4c0f-9dcd-c26a57d94690 2024-11-10 20:40:57,537 - INFO - Waiting for VM ctest-TestRoutersBasic-15356230-17519720 to be up.. 2024-11-10 20:40:57,784 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-10 20:41:02,872 - DEBUG - VM is in ACTIVE state now 2024-11-10 20:41:02,872 - INFO - VM name : ctest-TestRoutersBasic-15356230-17519720 2024-11-10 20:41:02,956 - DEBUG - VM ctest-TestRoutersBasic-15356230-17519720 ID is 3408d7bf-2210-41a7-a57e-9622720896aa 2024-11-10 20:41:02,989 - DEBUG - VM ctest-TestRoutersBasic-15356230-17519720 launched on Node cn-jenkins-deploy-platform-ansible-os-2262-1 2024-11-10 20:41:03,075 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/3408d7bf-2210-41a7-a57e-9622720896aa 2024-11-10 20:41:03,426 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/3408d7bf-2210-41a7-a57e-9622720896aa 2024-11-10 20:41:03,476 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/101f1e85-f968-4666-93ec-dc8775c685e2 2024-11-10 20:41:06,752 - 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 1014ms') 2024-11-10 20:41:06,753 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-15356230-17519720 failed! 2024-11-10 20:41:06,813 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-15356230:ctest-vn-36727407 is 97.190.172.193 and allocation pool is NOT set 2024-11-10 20:41:08,869 - 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=4.67 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.442 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.442/2.556/4.670/2.114 ms') 2024-11-10 20:41:08,869 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-15356230-17519720 passed 2024-11-10 20:41:09,033 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 20:41:09,033 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-15356230-17519720, IP 97.190.172.195, Port 22 2024-11-10 20:41:09,189 - DEBUG - VM ctest-TestRoutersBasic-15356230-17519720 is ready for SSH connections 2024-11-10 20:41:09,189 - INFO - Waiting for VM ctest-TestRoutersBasic-15356230-48297700 to be up.. 2024-11-10 20:41:09,278 - DEBUG - VM is in ACTIVE state now 2024-11-10 20:41:09,278 - INFO - VM name : ctest-TestRoutersBasic-15356230-48297700 2024-11-10 20:41:09,366 - DEBUG - VM ctest-TestRoutersBasic-15356230-48297700 ID is 0391b0ec-9272-47b1-87fc-e368a9f9914a 2024-11-10 20:41:09,366 - DEBUG - VM ctest-TestRoutersBasic-15356230-48297700 launched on Node cn-jenkins-deploy-platform-ansible-os-2262-1 2024-11-10 20:41:09,449 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/0391b0ec-9272-47b1-87fc-e368a9f9914a 2024-11-10 20:41:09,462 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/30555b07-5096-4043-b41c-7f78c6bacd4b 2024-11-10 20:41:10,732 - 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=4.90 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.45 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 = 1.451/3.173/4.896/1.722 ms') 2024-11-10 20:41:10,732 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-15356230-48297700 passed 2024-11-10 20:41:10,889 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 20:41:10,889 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-15356230-48297700, IP 33.132.190.131, Port 22 2024-11-10 20:41:11,045 - DEBUG - VM ctest-TestRoutersBasic-15356230-48297700 is ready for SSH connections 2024-11-10 20:41:11,045 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 20:41:11,046 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 33.132.190.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.36, gateway password: c0ntrail123 2024-11-10 20:41:11,046 - DEBUG - ping -s 56 -c 3 -W 1 33.132.190.131 2024-11-10 20:41:14,795 - DEBUG - PING 33.132.190.131 (33.132.190.131): 56 data bytes 64 bytes from 33.132.190.131: seq=0 ttl=62 time=6.208 ms 64 bytes from 33.132.190.131: seq=1 ttl=62 time=1.010 ms 64 bytes from 33.132.190.131: seq=2 ttl=62 time=0.889 ms --- 33.132.190.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.889/2.702/6.208 ms 2024-11-10 20:41:14,795 - INFO - Ping to IP 33.132.190.131 from VM ctest-TestRoutersBasic-15356230-17519720 passed 2024-11-10 20:41:14,795 - INFO - Deleting interface with subnet_id 70497778-e721-4d4e-b0a1-c77c11f039dc, port_id None from router a7629f43-a4d8-4c0f-9dcd-c26a57d94690 2024-11-10 20:41:15,102 - INFO - Deleting VM ctest-TestRoutersBasic-15356230-48297700 2024-11-10 20:41:15,191 - INFO - Deleting VM ctest-TestRoutersBasic-15356230-17519720 2024-11-10 20:41:15,317 - INFO - Deleting VN ctest-ext_vn-57821122 2024-11-10 20:41:15,521 - DEBUG - VN a781d090-ed84-410d-ad09-bfa80ca7083c still in use: Unable to complete operation on network a781d090-ed84-410d-ad09-bfa80ca7083c. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-54fd1381-ec09-4b79-a53a-bdae46458ab0'] 2024-11-10 20:41:15,522 - WARNING - Deleting VN ctest-ext_vn-57821122 failed..Will retry 2024-11-10 20:41:17,680 - DEBUG - Response for deleting network () 2024-11-10 20:41:17,681 - INFO - Deleting VN ctest-vn-36727407 2024-11-10 20:41:17,809 - DEBUG - Response for deleting network () 2024-11-10 20:41:18,063 - DEBUG - No XMPP flaps were noticed during the test 2024-11-10 20:41:18,063 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:27] 2024-11-10 20:41:18,064 - INFO - -------------------------------------------------------------------------------- 2024-11-10 20:41:18,816 - INFO - Deleted project: ctest-TestRoutersBasic-15356230, ID : 497d760a-9bb0-4b40-b6bf-1f0d413fc3a7