2025-04-14 14:00:56,702 - INFO - Domain Default found not creating 2025-04-14 14:00:56,860 - INFO - Project ctest-TestRoutersBasic-35131376 not found, creating it 2025-04-14 14:00:57,346 - INFO - Created Project:ctest-TestRoutersBasic-35131376, ID : 4bc8680b-ef01-4cba-8794-aeac58932778 2025-04-14 14:00:58,917 - INFO - ================================================================================ 2025-04-14 14:00:58,917 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-04-14 14:00:58,917 - 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-04-14 14:00:59,179 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.254': '0'}} with 2025-04-14 14:00:59,179 - INFO - Initial checks done. Running the testcase now 2025-04-14 14:00:59,179 - INFO - 2025-04-14 14:01:00,076 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-35131376 2025-04-14 14:01:00,181 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-35131376 2025-04-14 14:01:00,518 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-35131376', 'default']} 2025-04-14 14:01:00,820 - DEBUG - Response for create_network : {'network': {'id': '265de4dd-53b0-42c8-ba9e-f41e2e223310', 'name': 'ctest-vn-89257377', 'tenant_id': '4bc8680bef014cba8794aeac58932778', 'project_id': '4bc8680bef014cba8794aeac58932778', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-35131376', 'ctest-vn-89257377'], 'port_security_enabled': True, 'description': ''}} 2025-04-14 14:01:01,062 - DEBUG - Response for create_subnet : {'subnet': {'id': '21d2bc6c-7730-4f46-b297-60a9a44490c9', 'name': '', 'tenant_id': '4bc8680bef014cba8794aeac58932778', 'network_id': '265de4dd-53b0-42c8-ba9e-f41e2e223310', 'ip_version': 4, 'cidr': '24.160.225.0/26', 'allocation_pools': [{'start': '24.160.225.2', 'end': '24.160.225.62'}], 'gateway_ip': '24.160.225.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24.160.225.2', 'tags': [], 'project_id': '4bc8680bef014cba8794aeac58932778'}} 2025-04-14 14:01:01,083 - INFO - Created VN ctest-vn-89257377 2025-04-14 14:01:01,137 - DEBUG - VN ctest-vn-89257377 UUID is 265de4dd-53b0-42c8-ba9e-f41e2e223310 2025-04-14 14:01:01,511 - DEBUG - Response for create_network : {'network': {'id': '2062efe1-0b8a-454b-bde6-7b70722ca4ec', 'name': 'ctest-ext_vn-97867030', 'tenant_id': '4bc8680bef014cba8794aeac58932778', 'project_id': '4bc8680bef014cba8794aeac58932778', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-35131376', 'ctest-ext_vn-97867030'], 'port_security_enabled': True, 'description': ''}} 2025-04-14 14:01:01,759 - DEBUG - Response for create_subnet : {'subnet': {'id': '14bd158d-50a9-483e-b7e9-fd2c65b224aa', 'name': '', 'tenant_id': '4bc8680bef014cba8794aeac58932778', 'network_id': '2062efe1-0b8a-454b-bde6-7b70722ca4ec', 'ip_version': 4, 'cidr': '114.1.180.128/26', 'allocation_pools': [{'start': '114.1.180.130', 'end': '114.1.180.190'}], 'gateway_ip': '114.1.180.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '114.1.180.130', 'tags': [], 'project_id': '4bc8680bef014cba8794aeac58932778'}} 2025-04-14 14:01:01,785 - INFO - Created VN ctest-ext_vn-97867030 2025-04-14 14:01:01,845 - DEBUG - VN ctest-ext_vn-97867030 UUID is 2062efe1-0b8a-454b-bde6-7b70722ca4ec 2025-04-14 14:01:02,029 - DEBUG - Services list from nova: [, , ] 2025-04-14 14:01:03,181 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3100-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3100-1) 2025-04-14 14:01:04,461 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3100-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3100-1) 2025-04-14 14:01:04,566 - INFO - Setting gateway for router f2650d71-4941-4829-89df-f49c54d31bca to network 2062efe1-0b8a-454b-bde6-7b70722ca4ec 2025-04-14 14:01:04,649 - INFO - Adding interface with subnet_id 21d2bc6c-7730-4f46-b297-60a9a44490c9, port_id None to router f2650d71-4941-4829-89df-f49c54d31bca 2025-04-14 14:01:05,062 - INFO - Waiting for VM ctest-TestRoutersBasic-35131376-64915655 to be up.. 2025-04-14 14:01:05,272 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-14 14:01:10,367 - DEBUG - VM is in ACTIVE state now 2025-04-14 14:01:10,367 - INFO - VM name : ctest-TestRoutersBasic-35131376-64915655 2025-04-14 14:01:10,456 - DEBUG - VM ctest-TestRoutersBasic-35131376-64915655 ID is be0898bf-de76-407f-afaa-2b7977059c4a 2025-04-14 14:01:10,478 - DEBUG - VM ctest-TestRoutersBasic-35131376-64915655 launched on Node cn-jenkins-deploy-platform-ansible-os-3100-1 2025-04-14 14:01:10,573 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/be0898bf-de76-407f-afaa-2b7977059c4a 2025-04-14 14:01:10,908 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/be0898bf-de76-407f-afaa-2b7977059c4a 2025-04-14 14:01:10,940 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine-interface/587c7f3d-bbd6-4ba0-833d-e23bcbb71b81 2025-04-14 14:01:14,223 - 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 1028ms') 2025-04-14 14:01:14,223 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-35131376-64915655 failed! 2025-04-14 14:01:14,285 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-35131376:ctest-vn-89257377 is 24.160.225.1 and allocation pool is NOT set 2025-04-14 14:01:16,358 - 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.67 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.23 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.229/3.451/3.673/0.222 ms') 2025-04-14 14:01:16,358 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-35131376-64915655 passed 2025-04-14 14:01:16,513 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-14 14:01:16,513 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-35131376-64915655, IP 24.160.225.3, Port 22 2025-04-14 14:01:16,578 - 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-04-14 14:01:16,661 - DEBUG - VM ctest-TestRoutersBasic-35131376-64915655 is NOT ready for SSH connections, VM status: ACTIVE 2025-04-14 14:01:21,662 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-14 14:01:21,662 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-35131376-64915655, IP 24.160.225.3, Port 22 2025-04-14 14:01:21,820 - DEBUG - VM ctest-TestRoutersBasic-35131376-64915655 is ready for SSH connections 2025-04-14 14:01:21,820 - INFO - Waiting for VM ctest-TestRoutersBasic-35131376-53638590 to be up.. 2025-04-14 14:01:21,907 - DEBUG - VM is in ACTIVE state now 2025-04-14 14:01:21,907 - INFO - VM name : ctest-TestRoutersBasic-35131376-53638590 2025-04-14 14:01:21,995 - DEBUG - VM ctest-TestRoutersBasic-35131376-53638590 ID is 63022e34-f9f7-4b87-ad00-9ea7cbf33853 2025-04-14 14:01:21,996 - DEBUG - VM ctest-TestRoutersBasic-35131376-53638590 launched on Node cn-jenkins-deploy-platform-ansible-os-3100-1 2025-04-14 14:01:22,080 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/63022e34-f9f7-4b87-ad00-9ea7cbf33853 2025-04-14 14:01:22,093 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine-interface/9a89fd93-3266-4ae5-8722-1c2da0c76f77 2025-04-14 14:01:23,352 - 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.12 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.437 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.437/1.780/3.124/1.343 ms') 2025-04-14 14:01:23,352 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-35131376-53638590 passed 2025-04-14 14:01:23,509 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-14 14:01:23,509 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-35131376-53638590, IP 114.1.180.131, Port 22 2025-04-14 14:01:23,679 - DEBUG - VM ctest-TestRoutersBasic-35131376-53638590 is ready for SSH connections 2025-04-14 14:01:23,679 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-14 14:01:23,679 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 114.1.180.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.249, gateway password: c0ntrail123 2025-04-14 14:01:23,679 - DEBUG - ping -s 56 -c 3 -W 1 114.1.180.131 2025-04-14 14:01:27,413 - DEBUG - PING 114.1.180.131 (114.1.180.131): 56 data bytes 64 bytes from 114.1.180.131: seq=0 ttl=62 time=7.071 ms 64 bytes from 114.1.180.131: seq=1 ttl=62 time=0.893 ms 64 bytes from 114.1.180.131: seq=2 ttl=62 time=1.171 ms --- 114.1.180.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.893/3.045/7.071 ms 2025-04-14 14:01:27,413 - INFO - Ping to IP 114.1.180.131 from VM ctest-TestRoutersBasic-35131376-64915655 passed 2025-04-14 14:01:27,414 - INFO - Deleting interface with subnet_id 21d2bc6c-7730-4f46-b297-60a9a44490c9, port_id None from router f2650d71-4941-4829-89df-f49c54d31bca 2025-04-14 14:01:27,638 - INFO - Deleting VM ctest-TestRoutersBasic-35131376-53638590 2025-04-14 14:01:27,724 - INFO - Deleting VM ctest-TestRoutersBasic-35131376-64915655 2025-04-14 14:01:27,819 - INFO - Deleting VN ctest-ext_vn-97867030 2025-04-14 14:01:27,904 - DEBUG - VN 2062efe1-0b8a-454b-bde6-7b70722ca4ec still in use: Unable to complete operation on network 2062efe1-0b8a-454b-bde6-7b70722ca4ec. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-247ec5b7-fb05-499b-bdec-8c98b0adde3a'] 2025-04-14 14:01:27,904 - WARNING - Deleting VN ctest-ext_vn-97867030 failed..Will retry 2025-04-14 14:01:30,022 - DEBUG - Response for deleting network () 2025-04-14 14:01:30,022 - INFO - Deleting VN ctest-vn-89257377 2025-04-14 14:01:30,131 - DEBUG - Response for deleting network () 2025-04-14 14:01:30,391 - DEBUG - No XMPP flaps were noticed during the test 2025-04-14 14:01:30,391 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32] 2025-04-14 14:01:30,391 - INFO - -------------------------------------------------------------------------------- 2025-04-14 14:01:31,119 - INFO - Deleted project: ctest-TestRoutersBasic-35131376, ID : 4bc8680b-ef01-4cba-8794-aeac58932778