2025-01-20 02:19:30,852 - INFO - Domain Default found not creating 2025-01-20 02:19:31,027 - INFO - Project ctest-TestRoutersBasic-16351833 not found, creating it 2025-01-20 02:19:31,518 - INFO - Created Project:ctest-TestRoutersBasic-16351833, ID : 7ab76486-622d-40d7-a8ed-1bfafb1b2058 2025-01-20 02:19:33,300 - INFO - ================================================================================ 2025-01-20 02:19:33,300 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-01-20 02:19:33,300 - 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 2025-01-20 02:19:33,560 - DEBUG - Nothing to compare xmpp stats {'10.0.0.40': {'10.20.0.5': '0'}} with 2025-01-20 02:19:33,560 - INFO - Initial checks done. Running the testcase now 2025-01-20 02:19:33,560 - INFO - 2025-01-20 02:19:34,349 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-16351833 2025-01-20 02:19:34,452 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-16351833 2025-01-20 02:19:34,772 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-16351833', 'default']} 2025-01-20 02:19:35,085 - DEBUG - Response for create_network : {'network': {'id': 'c40cb3c0-7cf9-4870-afe5-cc7bcb66683f', 'name': 'ctest-vn-35432633', 'tenant_id': '7ab76486622d40d7a8ed1bfafb1b2058', 'project_id': '7ab76486622d40d7a8ed1bfafb1b2058', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-16351833', 'ctest-vn-35432633'], 'port_security_enabled': True, 'description': ''}} 2025-01-20 02:19:35,260 - DEBUG - Response for create_subnet : {'subnet': {'id': '0a003f6c-2257-441e-bc0a-7c38687aba0a', 'name': '', 'tenant_id': '7ab76486622d40d7a8ed1bfafb1b2058', 'network_id': 'c40cb3c0-7cf9-4870-afe5-cc7bcb66683f', 'ip_version': 4, 'cidr': '213.150.133.0/26', 'allocation_pools': [{'start': '213.150.133.2', 'end': '213.150.133.62'}], 'gateway_ip': '213.150.133.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '213.150.133.2', 'tags': [], 'project_id': '7ab76486622d40d7a8ed1bfafb1b2058'}} 2025-01-20 02:19:35,281 - INFO - Created VN ctest-vn-35432633 2025-01-20 02:19:35,336 - DEBUG - VN ctest-vn-35432633 UUID is c40cb3c0-7cf9-4870-afe5-cc7bcb66683f 2025-01-20 02:19:35,715 - DEBUG - Response for create_network : {'network': {'id': '3a911d67-69e9-448d-b149-4c52b7926c95', 'name': 'ctest-ext_vn-96395398', 'tenant_id': '7ab76486622d40d7a8ed1bfafb1b2058', 'project_id': '7ab76486622d40d7a8ed1bfafb1b2058', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-16351833', 'ctest-ext_vn-96395398'], 'port_security_enabled': True, 'description': ''}} 2025-01-20 02:19:35,888 - DEBUG - Response for create_subnet : {'subnet': {'id': '9f0a057b-405b-4188-8ce0-38d181a76d50', 'name': '', 'tenant_id': '7ab76486622d40d7a8ed1bfafb1b2058', 'network_id': '3a911d67-69e9-448d-b149-4c52b7926c95', 'ip_version': 4, 'cidr': '65.120.47.192/26', 'allocation_pools': [{'start': '65.120.47.194', 'end': '65.120.47.254'}], 'gateway_ip': '65.120.47.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '65.120.47.194', 'tags': [], 'project_id': '7ab76486622d40d7a8ed1bfafb1b2058'}} 2025-01-20 02:19:35,909 - INFO - Created VN ctest-ext_vn-96395398 2025-01-20 02:19:35,960 - DEBUG - VN ctest-ext_vn-96395398 UUID is 3a911d67-69e9-448d-b149-4c52b7926c95 2025-01-20 02:19:36,135 - DEBUG - Services list from nova: [, , ] 2025-01-20 02:19:37,272 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2651-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2651-1) 2025-01-20 02:19:38,510 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2651-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2651-1) 2025-01-20 02:19:38,590 - INFO - Setting gateway for router dcf53e36-bdab-46cd-a6de-43e7669f5ef1 to network 3a911d67-69e9-448d-b149-4c52b7926c95 2025-01-20 02:19:38,655 - INFO - Adding interface with subnet_id 0a003f6c-2257-441e-bc0a-7c38687aba0a, port_id None to router dcf53e36-bdab-46cd-a6de-43e7669f5ef1 2025-01-20 02:19:39,085 - INFO - Waiting for VM ctest-TestRoutersBasic-16351833-20960229 to be up.. 2025-01-20 02:19:39,317 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-20 02:19:44,403 - DEBUG - VM is in ACTIVE state now 2025-01-20 02:19:44,403 - INFO - VM name : ctest-TestRoutersBasic-16351833-20960229 2025-01-20 02:19:44,492 - DEBUG - VM ctest-TestRoutersBasic-16351833-20960229 ID is 3e079d6c-1e52-4e56-baf8-daa0712b9a5b 2025-01-20 02:19:44,513 - DEBUG - VM ctest-TestRoutersBasic-16351833-20960229 launched on Node cn-jenkins-deploy-platform-ansible-os-2651-1 2025-01-20 02:19:44,623 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/3e079d6c-1e52-4e56-baf8-daa0712b9a5b 2025-01-20 02:19:44,961 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/3e079d6c-1e52-4e56-baf8-daa0712b9a5b 2025-01-20 02:19:44,999 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine-interface/0c17d99b-3e87-4ba3-b960-c793e25027bf 2025-01-20 02:19:48,278 - 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 1026ms') 2025-01-20 02:19:48,278 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-16351833-20960229 failed! 2025-01-20 02:19:48,332 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-16351833:ctest-vn-35432633 is 213.150.133.1 and allocation pool is NOT set 2025-01-20 02:19:50,401 - 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.25 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.64 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 = 3.252/3.448/3.644/0.196 ms') 2025-01-20 02:19:50,401 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-16351833-20960229 passed 2025-01-20 02:19:50,556 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-20 02:19:50,556 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-16351833-20960229, IP 213.150.133.3, Port 22 2025-01-20 02:19:50,622 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-01-20 02:19:50,702 - DEBUG - VM ctest-TestRoutersBasic-16351833-20960229 is NOT ready for SSH connections, VM status: ACTIVE 2025-01-20 02:19:55,704 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-20 02:19:55,704 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-16351833-20960229, IP 213.150.133.3, Port 22 2025-01-20 02:19:55,864 - DEBUG - VM ctest-TestRoutersBasic-16351833-20960229 is ready for SSH connections 2025-01-20 02:19:55,864 - INFO - Waiting for VM ctest-TestRoutersBasic-16351833-63221109 to be up.. 2025-01-20 02:19:55,946 - DEBUG - VM is in ACTIVE state now 2025-01-20 02:19:55,946 - INFO - VM name : ctest-TestRoutersBasic-16351833-63221109 2025-01-20 02:19:56,035 - DEBUG - VM ctest-TestRoutersBasic-16351833-63221109 ID is bc05c6e1-bda5-4398-aa8d-6aaa790de6ce 2025-01-20 02:19:56,035 - DEBUG - VM ctest-TestRoutersBasic-16351833-63221109 launched on Node cn-jenkins-deploy-platform-ansible-os-2651-1 2025-01-20 02:19:56,119 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/bc05c6e1-bda5-4398-aa8d-6aaa790de6ce 2025-01-20 02:19:56,128 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine-interface/28a39e38-ca8f-4b31-b4f5-60851a7ae545 2025-01-20 02:19:57,371 - 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.19 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.410 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.410/1.800/3.191/1.390 ms') 2025-01-20 02:19:57,372 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-16351833-63221109 passed 2025-01-20 02:19:57,524 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-20 02:19:57,524 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-16351833-63221109, IP 65.120.47.195, Port 22 2025-01-20 02:19:57,691 - DEBUG - VM ctest-TestRoutersBasic-16351833-63221109 is ready for SSH connections 2025-01-20 02:19:57,691 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-20 02:19:57,691 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 65.120.47.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.40, gateway password: c0ntrail123 2025-01-20 02:19:57,691 - DEBUG - ping -s 56 -c 3 -W 1 65.120.47.195 2025-01-20 02:20:01,443 - DEBUG - PING 65.120.47.195 (65.120.47.195): 56 data bytes 64 bytes from 65.120.47.195: seq=0 ttl=62 time=6.280 ms 64 bytes from 65.120.47.195: seq=1 ttl=62 time=0.939 ms 64 bytes from 65.120.47.195: seq=2 ttl=62 time=0.991 ms --- 65.120.47.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.939/2.736/6.280 ms 2025-01-20 02:20:01,443 - INFO - Ping to IP 65.120.47.195 from VM ctest-TestRoutersBasic-16351833-20960229 passed 2025-01-20 02:20:01,443 - INFO - Deleting interface with subnet_id 0a003f6c-2257-441e-bc0a-7c38687aba0a, port_id None from router dcf53e36-bdab-46cd-a6de-43e7669f5ef1 2025-01-20 02:20:01,702 - INFO - Deleting VM ctest-TestRoutersBasic-16351833-63221109 2025-01-20 02:20:01,800 - INFO - Deleting VM ctest-TestRoutersBasic-16351833-20960229 2025-01-20 02:20:01,913 - INFO - Deleting VN ctest-ext_vn-96395398 2025-01-20 02:20:02,089 - DEBUG - VN 3a911d67-69e9-448d-b149-4c52b7926c95 still in use: Unable to complete operation on network 3a911d67-69e9-448d-b149-4c52b7926c95. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-0d2bd44b-a9fc-4dde-9e6c-aeb983cd973f'] 2025-01-20 02:20:02,089 - WARNING - Deleting VN ctest-ext_vn-96395398 failed..Will retry 2025-01-20 02:20:04,193 - DEBUG - Response for deleting network () 2025-01-20 02:20:04,193 - INFO - Deleting VN ctest-vn-35432633 2025-01-20 02:20:04,299 - DEBUG - Response for deleting network () 2025-01-20 02:20:04,559 - DEBUG - No XMPP flaps were noticed during the test 2025-01-20 02:20:04,559 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31] 2025-01-20 02:20:04,559 - INFO - -------------------------------------------------------------------------------- 2025-01-20 02:20:05,290 - INFO - Deleted project: ctest-TestRoutersBasic-16351833, ID : 7ab76486-622d-40d7-a8ed-1bfafb1b2058