2025-06-10 09:18:38,024 - INFO - Domain Default found not creating 2025-06-10 09:18:38,185 - INFO - Project ctest-TestRoutersBasic-43487918 not found, creating it 2025-06-10 09:18:38,687 - INFO - Created Project:ctest-TestRoutersBasic-43487918, ID : c062df74-284d-427e-890f-b940cf32ea05 2025-06-10 09:18:40,300 - INFO - ================================================================================ 2025-06-10 09:18:40,300 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-06-10 09:18:40,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-06-10 09:18:40,557 - DEBUG - Nothing to compare xmpp stats {'10.0.0.56': {'10.20.0.17': '0'}} with 2025-06-10 09:18:40,557 - INFO - Initial checks done. Running the testcase now 2025-06-10 09:18:40,557 - INFO - 2025-06-10 09:18:41,353 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-43487918 2025-06-10 09:18:41,455 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-43487918 2025-06-10 09:18:41,791 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-43487918', 'default']} 2025-06-10 09:18:42,141 - DEBUG - Response for create_network : {'network': {'id': 'd5f91a65-041a-49c4-b137-3fdfcee364ae', 'name': 'ctest-vn-38365636', 'tenant_id': 'c062df74284d427e890fb940cf32ea05', 'project_id': 'c062df74284d427e890fb940cf32ea05', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-43487918', 'ctest-vn-38365636'], 'port_security_enabled': True, 'description': ''}} 2025-06-10 09:18:42,364 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fcd7f753-c10e-40c7-a5c6-bdd55cb92501', 'name': '', 'tenant_id': 'c062df74284d427e890fb940cf32ea05', 'network_id': 'd5f91a65-041a-49c4-b137-3fdfcee364ae', 'ip_version': 4, 'cidr': '119.65.92.128/26', 'allocation_pools': [{'start': '119.65.92.130', 'end': '119.65.92.190'}], 'gateway_ip': '119.65.92.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '119.65.92.130', 'tags': [], 'project_id': 'c062df74284d427e890fb940cf32ea05'}} 2025-06-10 09:18:42,385 - INFO - Created VN ctest-vn-38365636 2025-06-10 09:18:42,443 - DEBUG - VN ctest-vn-38365636 UUID is d5f91a65-041a-49c4-b137-3fdfcee364ae 2025-06-10 09:18:42,783 - DEBUG - Response for create_network : {'network': {'id': '658b0be2-9711-4e71-a04b-ff32acd7cf9d', 'name': 'ctest-ext_vn-46956361', 'tenant_id': 'c062df74284d427e890fb940cf32ea05', 'project_id': 'c062df74284d427e890fb940cf32ea05', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-43487918', 'ctest-ext_vn-46956361'], 'port_security_enabled': True, 'description': ''}} 2025-06-10 09:18:42,985 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd2191f5d-4b6d-466c-a203-be3ee3ad8458', 'name': '', 'tenant_id': 'c062df74284d427e890fb940cf32ea05', 'network_id': '658b0be2-9711-4e71-a04b-ff32acd7cf9d', 'ip_version': 4, 'cidr': '98.129.211.192/26', 'allocation_pools': [{'start': '98.129.211.194', 'end': '98.129.211.254'}], 'gateway_ip': '98.129.211.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '98.129.211.194', 'tags': [], 'project_id': 'c062df74284d427e890fb940cf32ea05'}} 2025-06-10 09:18:43,004 - INFO - Created VN ctest-ext_vn-46956361 2025-06-10 09:18:43,063 - DEBUG - VN ctest-ext_vn-46956361 UUID is 658b0be2-9711-4e71-a04b-ff32acd7cf9d 2025-06-10 09:18:43,235 - DEBUG - Services list from nova: [, , ] 2025-06-10 09:18:44,350 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3429-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3429-1) 2025-06-10 09:18:45,620 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3429-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3429-1) 2025-06-10 09:18:45,700 - INFO - Setting gateway for router 835f28af-3c14-41ae-b686-c394f3eb1834 to network 658b0be2-9711-4e71-a04b-ff32acd7cf9d 2025-06-10 09:18:45,794 - INFO - Adding interface with subnet_id fcd7f753-c10e-40c7-a5c6-bdd55cb92501, port_id None to router 835f28af-3c14-41ae-b686-c394f3eb1834 2025-06-10 09:18:46,246 - INFO - Waiting for VM ctest-TestRoutersBasic-43487918-89487253 to be up.. 2025-06-10 09:18:46,449 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-10 09:18:51,548 - DEBUG - VM is in ACTIVE state now 2025-06-10 09:18:51,548 - INFO - VM name : ctest-TestRoutersBasic-43487918-89487253 2025-06-10 09:18:51,638 - DEBUG - VM ctest-TestRoutersBasic-43487918-89487253 ID is ffb27953-8fc5-4c2c-8292-9e42135812b8 2025-06-10 09:18:51,660 - DEBUG - VM ctest-TestRoutersBasic-43487918-89487253 launched on Node cn-jenkins-deploy-platform-ansible-os-3429-1 2025-06-10 09:18:51,765 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-machine/ffb27953-8fc5-4c2c-8292-9e42135812b8 2025-06-10 09:18:52,110 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-machine/ffb27953-8fc5-4c2c-8292-9e42135812b8 2025-06-10 09:18:52,148 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-machine-interface/4a0710ef-4ea9-4425-8ec4-9dfe847cf611 2025-06-10 09:18:55,400 - 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 1006ms') 2025-06-10 09:18:55,401 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-43487918-89487253 failed! 2025-06-10 09:18:55,459 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-43487918:ctest-vn-38365636 is 119.65.92.129 and allocation pool is NOT set 2025-06-10 09:18:57,523 - 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.24 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.681 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.681/1.959/3.237/1.278 ms') 2025-06-10 09:18:57,523 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-43487918-89487253 passed 2025-06-10 09:18:57,679 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-10 09:18:57,679 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-43487918-89487253, IP 119.65.92.131, Port 22 2025-06-10 09:18:57,745 - 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-06-10 09:18:57,831 - DEBUG - VM ctest-TestRoutersBasic-43487918-89487253 is NOT ready for SSH connections, VM status: ACTIVE 2025-06-10 09:19:02,832 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-10 09:19:02,832 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-43487918-89487253, IP 119.65.92.131, Port 22 2025-06-10 09:19:02,987 - DEBUG - VM ctest-TestRoutersBasic-43487918-89487253 is ready for SSH connections 2025-06-10 09:19:02,987 - INFO - Waiting for VM ctest-TestRoutersBasic-43487918-70443717 to be up.. 2025-06-10 09:19:03,071 - DEBUG - VM is in ACTIVE state now 2025-06-10 09:19:03,071 - INFO - VM name : ctest-TestRoutersBasic-43487918-70443717 2025-06-10 09:19:03,164 - DEBUG - VM ctest-TestRoutersBasic-43487918-70443717 ID is 7f09e59b-fa5d-4b0a-8d97-7049d33945c0 2025-06-10 09:19:03,164 - DEBUG - VM ctest-TestRoutersBasic-43487918-70443717 launched on Node cn-jenkins-deploy-platform-ansible-os-3429-1 2025-06-10 09:19:03,253 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-machine/7f09e59b-fa5d-4b0a-8d97-7049d33945c0 2025-06-10 09:19:03,266 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-machine-interface/3f4f9153-942d-42ac-86cc-beeca3a20a6f 2025-06-10 09:19:04,519 - 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.14 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.344 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.344/1.739/3.135/1.395 ms') 2025-06-10 09:19:04,519 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-43487918-70443717 passed 2025-06-10 09:19:04,679 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-10 09:19:04,679 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-43487918-70443717, IP 98.129.211.195, Port 22 2025-06-10 09:19:04,839 - DEBUG - VM ctest-TestRoutersBasic-43487918-70443717 is ready for SSH connections 2025-06-10 09:19:04,839 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-10 09:19:04,840 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 98.129.211.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.56, gateway password: c0ntrail123 2025-06-10 09:19:04,840 - DEBUG - ping -s 56 -c 3 -W 1 98.129.211.195 2025-06-10 09:19:08,560 - DEBUG - PING 98.129.211.195 (98.129.211.195): 56 data bytes 64 bytes from 98.129.211.195: seq=0 ttl=62 time=4.831 ms 64 bytes from 98.129.211.195: seq=1 ttl=62 time=1.176 ms 64 bytes from 98.129.211.195: seq=2 ttl=62 time=0.895 ms --- 98.129.211.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.895/2.300/4.831 ms 2025-06-10 09:19:08,561 - INFO - Ping to IP 98.129.211.195 from VM ctest-TestRoutersBasic-43487918-89487253 passed 2025-06-10 09:19:08,561 - INFO - Deleting interface with subnet_id fcd7f753-c10e-40c7-a5c6-bdd55cb92501, port_id None from router 835f28af-3c14-41ae-b686-c394f3eb1834 2025-06-10 09:19:08,792 - INFO - Deleting VM ctest-TestRoutersBasic-43487918-70443717 2025-06-10 09:19:08,872 - INFO - Deleting VM ctest-TestRoutersBasic-43487918-89487253 2025-06-10 09:19:08,967 - INFO - Deleting VN ctest-ext_vn-46956361 2025-06-10 09:19:09,072 - DEBUG - VN 658b0be2-9711-4e71-a04b-ff32acd7cf9d still in use: Unable to complete operation on network 658b0be2-9711-4e71-a04b-ff32acd7cf9d. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-079f1d77-b258-40cc-b358-2d3098b610ec'] 2025-06-10 09:19:09,072 - WARNING - Deleting VN ctest-ext_vn-46956361 failed..Will retry 2025-06-10 09:19:11,200 - DEBUG - Response for deleting network () 2025-06-10 09:19:11,200 - INFO - Deleting VN ctest-vn-38365636 2025-06-10 09:19:11,339 - DEBUG - Response for deleting network () 2025-06-10 09:19:11,597 - DEBUG - No XMPP flaps were noticed during the test 2025-06-10 09:19:11,597 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31] 2025-06-10 09:19:11,597 - INFO - -------------------------------------------------------------------------------- 2025-06-10 09:19:12,357 - INFO - Deleted project: ctest-TestRoutersBasic-43487918, ID : c062df74-284d-427e-890f-b940cf32ea05