2024-11-14 18:01:29,417 - INFO - Domain Default found not creating 2024-11-14 18:01:29,595 - INFO - Project ctest-TestRoutersBasic-09186953 not found, creating it 2024-11-14 18:01:30,105 - INFO - Created Project:ctest-TestRoutersBasic-09186953, ID : 2c0780d2-cd39-46cd-9da3-b66b3aaf2fa7 2024-11-14 18:01:31,693 - INFO - ================================================================================ 2024-11-14 18:01:31,693 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-11-14 18:01:31,694 - 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 18:01:31,949 - DEBUG - Nothing to compare xmpp stats {'10.0.0.43': {'10.20.0.14': '0'}} with 2024-11-14 18:01:31,949 - INFO - Initial checks done. Running the testcase now 2024-11-14 18:01:31,949 - INFO - 2024-11-14 18:01:32,700 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-09186953 2024-11-14 18:01:32,799 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-09186953 2024-11-14 18:01:33,151 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-09186953', 'default']} 2024-11-14 18:01:33,478 - DEBUG - Response for create_network : {'network': {'id': 'bfbb6c6d-6756-4eec-8cda-16542a67ac9b', 'name': 'ctest-vn-29134552', 'tenant_id': '2c0780d2cd3946cd9da3b66b3aaf2fa7', 'project_id': '2c0780d2cd3946cd9da3b66b3aaf2fa7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-09186953', 'ctest-vn-29134552'], 'port_security_enabled': True, 'description': ''}} 2024-11-14 18:01:33,682 - DEBUG - Response for create_subnet : {'subnet': {'id': '166439e7-1331-4925-8aa5-78d94a75414e', 'name': '', 'tenant_id': '2c0780d2cd3946cd9da3b66b3aaf2fa7', 'network_id': 'bfbb6c6d-6756-4eec-8cda-16542a67ac9b', 'ip_version': 4, 'cidr': '147.40.35.128/26', 'allocation_pools': [{'start': '147.40.35.130', 'end': '147.40.35.190'}], 'gateway_ip': '147.40.35.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '147.40.35.130', 'tags': [], 'project_id': '2c0780d2cd3946cd9da3b66b3aaf2fa7'}} 2024-11-14 18:01:33,705 - INFO - Created VN ctest-vn-29134552 2024-11-14 18:01:33,762 - DEBUG - VN ctest-vn-29134552 UUID is bfbb6c6d-6756-4eec-8cda-16542a67ac9b 2024-11-14 18:01:34,169 - DEBUG - Response for create_network : {'network': {'id': 'e69924b6-f485-4369-a451-7cbd735882db', 'name': 'ctest-ext_vn-05256504', 'tenant_id': '2c0780d2cd3946cd9da3b66b3aaf2fa7', 'project_id': '2c0780d2cd3946cd9da3b66b3aaf2fa7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-09186953', 'ctest-ext_vn-05256504'], 'port_security_enabled': True, 'description': ''}} 2024-11-14 18:01:34,342 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aa659916-6335-482a-84b6-93d64050af84', 'name': '', 'tenant_id': '2c0780d2cd3946cd9da3b66b3aaf2fa7', 'network_id': 'e69924b6-f485-4369-a451-7cbd735882db', 'ip_version': 4, 'cidr': '154.166.181.64/26', 'allocation_pools': [{'start': '154.166.181.66', 'end': '154.166.181.126'}], 'gateway_ip': '154.166.181.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '154.166.181.66', 'tags': [], 'project_id': '2c0780d2cd3946cd9da3b66b3aaf2fa7'}} 2024-11-14 18:01:34,369 - INFO - Created VN ctest-ext_vn-05256504 2024-11-14 18:01:34,438 - DEBUG - VN ctest-ext_vn-05256504 UUID is e69924b6-f485-4369-a451-7cbd735882db 2024-11-14 18:01:34,629 - DEBUG - Services list from nova: [, , ] 2024-11-14 18:01:35,693 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2302-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2302-1) 2024-11-14 18:01:36,883 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2302-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2302-1) 2024-11-14 18:01:36,949 - INFO - Setting gateway for router 49a8cbd7-2f58-43cd-8b81-4acc55e05047 to network e69924b6-f485-4369-a451-7cbd735882db 2024-11-14 18:01:37,024 - INFO - Adding interface with subnet_id 166439e7-1331-4925-8aa5-78d94a75414e, port_id None to router 49a8cbd7-2f58-43cd-8b81-4acc55e05047 2024-11-14 18:01:37,425 - INFO - Waiting for VM ctest-TestRoutersBasic-09186953-11503527 to be up.. 2024-11-14 18:01:37,587 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-14 18:01:42,670 - DEBUG - VM is in ACTIVE state now 2024-11-14 18:01:42,671 - INFO - VM name : ctest-TestRoutersBasic-09186953-11503527 2024-11-14 18:01:42,757 - DEBUG - VM ctest-TestRoutersBasic-09186953-11503527 ID is 9d2f9901-b847-4b61-8ebe-4463ee2a5c9c 2024-11-14 18:01:42,779 - DEBUG - VM ctest-TestRoutersBasic-09186953-11503527 launched on Node cn-jenkins-deploy-platform-ansible-os-2302-1 2024-11-14 18:01:42,873 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-machine/9d2f9901-b847-4b61-8ebe-4463ee2a5c9c 2024-11-14 18:01:43,179 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-machine/9d2f9901-b847-4b61-8ebe-4463ee2a5c9c 2024-11-14 18:01:43,216 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-machine-interface/03b87391-bfd1-4b38-b738-00feeb6b3250 2024-11-14 18:01:46,492 - 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 18:01:46,493 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-09186953-11503527 failed! 2024-11-14 18:01:46,578 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-09186953:ctest-vn-29134552 is 147.40.35.129 and allocation pool is NOT set 2024-11-14 18:01:48,642 - 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.70 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.572 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.572/1.635/2.698/1.063 ms') 2024-11-14 18:01:48,642 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-09186953-11503527 passed 2024-11-14 18:01:48,798 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-14 18:01:48,799 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-09186953-11503527, IP 147.40.35.131, Port 22 2024-11-14 18:01:48,959 - DEBUG - VM ctest-TestRoutersBasic-09186953-11503527 is ready for SSH connections 2024-11-14 18:01:48,959 - INFO - Waiting for VM ctest-TestRoutersBasic-09186953-53235383 to be up.. 2024-11-14 18:01:49,042 - DEBUG - VM is in ACTIVE state now 2024-11-14 18:01:49,042 - INFO - VM name : ctest-TestRoutersBasic-09186953-53235383 2024-11-14 18:01:49,125 - DEBUG - VM ctest-TestRoutersBasic-09186953-53235383 ID is cedb798f-bbdd-4a91-aa46-e2f23365738b 2024-11-14 18:01:49,125 - DEBUG - VM ctest-TestRoutersBasic-09186953-53235383 launched on Node cn-jenkins-deploy-platform-ansible-os-2302-1 2024-11-14 18:01:49,213 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-machine/cedb798f-bbdd-4a91-aa46-e2f23365738b 2024-11-14 18:01:49,224 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-machine-interface/4f416216-0c45-41e7-9bfc-004c4bc6d374 2024-11-14 18:01:50,493 - 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.87 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.545 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.545/1.707/2.869/1.162 ms') 2024-11-14 18:01:50,494 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-09186953-53235383 passed 2024-11-14 18:01:50,650 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-14 18:01:50,651 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-09186953-53235383, IP 154.166.181.67, Port 22 2024-11-14 18:01:50,810 - DEBUG - VM ctest-TestRoutersBasic-09186953-53235383 is ready for SSH connections 2024-11-14 18:01:50,810 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-14 18:01:50,810 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 154.166.181.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.43, gateway password: c0ntrail123 2024-11-14 18:01:50,810 - DEBUG - ping -s 56 -c 3 -W 1 154.166.181.67 2024-11-14 18:01:54,532 - DEBUG - PING 154.166.181.67 (154.166.181.67): 56 data bytes 64 bytes from 154.166.181.67: seq=0 ttl=62 time=4.485 ms 64 bytes from 154.166.181.67: seq=1 ttl=62 time=0.815 ms 64 bytes from 154.166.181.67: seq=2 ttl=62 time=0.856 ms --- 154.166.181.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.815/2.052/4.485 ms 2024-11-14 18:01:54,532 - INFO - Ping to IP 154.166.181.67 from VM ctest-TestRoutersBasic-09186953-11503527 passed 2024-11-14 18:01:54,533 - INFO - Deleting interface with subnet_id 166439e7-1331-4925-8aa5-78d94a75414e, port_id None from router 49a8cbd7-2f58-43cd-8b81-4acc55e05047 2024-11-14 18:01:54,796 - INFO - Deleting VM ctest-TestRoutersBasic-09186953-53235383 2024-11-14 18:01:54,881 - INFO - Deleting VM ctest-TestRoutersBasic-09186953-11503527 2024-11-14 18:01:54,976 - INFO - Deleting VN ctest-ext_vn-05256504 2024-11-14 18:01:55,079 - DEBUG - VN e69924b6-f485-4369-a451-7cbd735882db still in use: Unable to complete operation on network e69924b6-f485-4369-a451-7cbd735882db. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-26e0f8f1-9b31-40c9-a5f9-422500c2d326'] 2024-11-14 18:01:55,079 - WARNING - Deleting VN ctest-ext_vn-05256504 failed..Will retry 2024-11-14 18:01:57,216 - DEBUG - Response for deleting network () 2024-11-14 18:01:57,216 - INFO - Deleting VN ctest-vn-29134552 2024-11-14 18:01:57,337 - DEBUG - Response for deleting network () 2024-11-14 18:01:57,596 - DEBUG - No XMPP flaps were noticed during the test 2024-11-14 18:01:57,597 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2024-11-14 18:01:57,597 - INFO - -------------------------------------------------------------------------------- 2024-11-14 18:01:58,302 - INFO - Deleted project: ctest-TestRoutersBasic-09186953, ID : 2c0780d2-cd39-46cd-9da3-b66b3aaf2fa7