2025-06-19 12:16:36,431 - INFO - Domain Default found not creating 2025-06-19 12:16:36,568 - INFO - Project ctest-TestRoutersBasic-78815577 not found, creating it 2025-06-19 12:16:37,018 - INFO - Created Project:ctest-TestRoutersBasic-78815577, ID : c64253de-4d47-4db4-b7e3-9f25763e1d8b 2025-06-19 12:16:38,516 - INFO - ================================================================================ 2025-06-19 12:16:38,516 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-06-19 12:16:38,517 - 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-19 12:16:38,772 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.17': '0'}} with 2025-06-19 12:16:38,772 - INFO - Initial checks done. Running the testcase now 2025-06-19 12:16:38,772 - INFO - 2025-06-19 12:16:39,570 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-78815577 2025-06-19 12:16:39,678 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-78815577 2025-06-19 12:16:40,010 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-78815577', 'default']} 2025-06-19 12:16:40,323 - DEBUG - Response for create_network : {'network': {'id': '2db97b7b-cae1-497a-b623-738a7c92634b', 'name': 'ctest-vn-68915237', 'tenant_id': 'c64253de4d474db4b7e39f25763e1d8b', 'project_id': 'c64253de4d474db4b7e39f25763e1d8b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-78815577', 'ctest-vn-68915237'], 'port_security_enabled': True, 'description': ''}} 2025-06-19 12:16:40,535 - DEBUG - Response for create_subnet : {'subnet': {'id': '9f291b15-3052-4052-982e-899ddddced9a', 'name': '', 'tenant_id': 'c64253de4d474db4b7e39f25763e1d8b', 'network_id': '2db97b7b-cae1-497a-b623-738a7c92634b', 'ip_version': 4, 'cidr': '74.74.58.128/26', 'allocation_pools': [{'start': '74.74.58.130', 'end': '74.74.58.190'}], 'gateway_ip': '74.74.58.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '74.74.58.130', 'tags': [], 'project_id': 'c64253de4d474db4b7e39f25763e1d8b'}} 2025-06-19 12:16:40,553 - INFO - Created VN ctest-vn-68915237 2025-06-19 12:16:40,606 - DEBUG - VN ctest-vn-68915237 UUID is 2db97b7b-cae1-497a-b623-738a7c92634b 2025-06-19 12:16:40,972 - DEBUG - Response for create_network : {'network': {'id': '4819dd9e-cab3-4946-a5a7-b1ef8b132182', 'name': 'ctest-ext_vn-36991575', 'tenant_id': 'c64253de4d474db4b7e39f25763e1d8b', 'project_id': 'c64253de4d474db4b7e39f25763e1d8b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-78815577', 'ctest-ext_vn-36991575'], 'port_security_enabled': True, 'description': ''}} 2025-06-19 12:16:41,179 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cb45723b-a321-499d-ae8f-43138a598eba', 'name': '', 'tenant_id': 'c64253de4d474db4b7e39f25763e1d8b', 'network_id': '4819dd9e-cab3-4946-a5a7-b1ef8b132182', 'ip_version': 4, 'cidr': '13.67.65.64/26', 'allocation_pools': [{'start': '13.67.65.66', 'end': '13.67.65.126'}], 'gateway_ip': '13.67.65.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '13.67.65.66', 'tags': [], 'project_id': 'c64253de4d474db4b7e39f25763e1d8b'}} 2025-06-19 12:16:41,197 - INFO - Created VN ctest-ext_vn-36991575 2025-06-19 12:16:41,250 - DEBUG - VN ctest-ext_vn-36991575 UUID is 4819dd9e-cab3-4946-a5a7-b1ef8b132182 2025-06-19 12:16:41,411 - DEBUG - Services list from nova: [, , ] 2025-06-19 12:16:42,491 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3492-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3492-1) 2025-06-19 12:16:43,713 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3492-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3492-1) 2025-06-19 12:16:43,791 - INFO - Setting gateway for router 11311dc5-a0c2-439b-9339-38143ff52fc9 to network 4819dd9e-cab3-4946-a5a7-b1ef8b132182 2025-06-19 12:16:43,856 - INFO - Adding interface with subnet_id 9f291b15-3052-4052-982e-899ddddced9a, port_id None to router 11311dc5-a0c2-439b-9339-38143ff52fc9 2025-06-19 12:16:44,153 - INFO - Waiting for VM ctest-TestRoutersBasic-78815577-44174768 to be up.. 2025-06-19 12:16:44,328 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-19 12:16:49,410 - DEBUG - VM is in ACTIVE state now 2025-06-19 12:16:49,410 - INFO - VM name : ctest-TestRoutersBasic-78815577-44174768 2025-06-19 12:16:49,490 - DEBUG - VM ctest-TestRoutersBasic-78815577-44174768 ID is cdcf724f-249f-401b-b85e-a22222659968 2025-06-19 12:16:49,510 - DEBUG - VM ctest-TestRoutersBasic-78815577-44174768 launched on Node cn-jenkins-deploy-platform-ansible-os-3492-1 2025-06-19 12:16:49,611 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine/cdcf724f-249f-401b-b85e-a22222659968 2025-06-19 12:16:49,950 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine/cdcf724f-249f-401b-b85e-a22222659968 2025-06-19 12:16:49,982 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine-interface/7755b2ad-c2ae-4136-a98f-bfd4f617a184 2025-06-19 12:16:53,251 - 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 1019ms') 2025-06-19 12:16:53,251 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-78815577-44174768 failed! 2025-06-19 12:16:53,310 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-78815577:ctest-vn-68915237 is 74.74.58.129 and allocation pool is NOT set 2025-06-19 12:16:55,367 - 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.50 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.449 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.449/1.972/3.495/1.523 ms') 2025-06-19 12:16:55,367 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-78815577-44174768 passed 2025-06-19 12:16:55,526 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-19 12:16:55,526 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-78815577-44174768, IP 74.74.58.131, Port 22 2025-06-19 12:16:55,682 - DEBUG - VM ctest-TestRoutersBasic-78815577-44174768 is ready for SSH connections 2025-06-19 12:16:55,682 - INFO - Waiting for VM ctest-TestRoutersBasic-78815577-84288987 to be up.. 2025-06-19 12:16:55,771 - DEBUG - VM is in ACTIVE state now 2025-06-19 12:16:55,771 - INFO - VM name : ctest-TestRoutersBasic-78815577-84288987 2025-06-19 12:16:55,855 - DEBUG - VM ctest-TestRoutersBasic-78815577-84288987 ID is 6257f67b-c16d-4b7e-aeea-b89f467cb698 2025-06-19 12:16:55,855 - DEBUG - VM ctest-TestRoutersBasic-78815577-84288987 launched on Node cn-jenkins-deploy-platform-ansible-os-3492-1 2025-06-19 12:16:55,932 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine/6257f67b-c16d-4b7e-aeea-b89f467cb698 2025-06-19 12:16:55,944 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine-interface/7050fa53-042f-4dae-90c1-248403460c8c 2025-06-19 12:16:57,187 - 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.23 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.77 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.772/2.999/4.226/1.227 ms') 2025-06-19 12:16:57,187 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-78815577-84288987 passed 2025-06-19 12:16:57,342 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-19 12:16:57,342 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-78815577-84288987, IP 13.67.65.67, Port 22 2025-06-19 12:16:57,408 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-06-19 12:16:57,489 - DEBUG - VM ctest-TestRoutersBasic-78815577-84288987 is NOT ready for SSH connections, VM status: ACTIVE 2025-06-19 12:17:02,489 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-19 12:17:02,490 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-78815577-84288987, IP 13.67.65.67, Port 22 2025-06-19 12:17:02,649 - DEBUG - VM ctest-TestRoutersBasic-78815577-84288987 is ready for SSH connections 2025-06-19 12:17:02,649 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-19 12:17:02,649 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 13.67.65.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.130, gateway password: c0ntrail123 2025-06-19 12:17:02,649 - DEBUG - ping -s 56 -c 3 -W 1 13.67.65.67 2025-06-19 12:17:06,716 - DEBUG - PING 13.67.65.67 (13.67.65.67): 56 data bytes 64 bytes from 13.67.65.67: seq=0 ttl=62 time=6.690 ms 64 bytes from 13.67.65.67: seq=1 ttl=62 time=0.907 ms 64 bytes from 13.67.65.67: seq=2 ttl=62 time=0.833 ms --- 13.67.65.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.833/2.810/6.690 ms 2025-06-19 12:17:06,716 - INFO - Ping to IP 13.67.65.67 from VM ctest-TestRoutersBasic-78815577-44174768 passed 2025-06-19 12:17:06,716 - INFO - Deleting interface with subnet_id 9f291b15-3052-4052-982e-899ddddced9a, port_id None from router 11311dc5-a0c2-439b-9339-38143ff52fc9 2025-06-19 12:17:06,912 - INFO - Deleting VM ctest-TestRoutersBasic-78815577-84288987 2025-06-19 12:17:06,979 - INFO - Deleting VM ctest-TestRoutersBasic-78815577-44174768 2025-06-19 12:17:07,068 - INFO - Deleting VN ctest-ext_vn-36991575 2025-06-19 12:17:07,131 - DEBUG - VN 4819dd9e-cab3-4946-a5a7-b1ef8b132182 still in use: Unable to complete operation on network 4819dd9e-cab3-4946-a5a7-b1ef8b132182. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-1c7a552b-1a63-4bf3-a18f-c568b9622275'] 2025-06-19 12:17:07,131 - WARNING - Deleting VN ctest-ext_vn-36991575 failed..Will retry 2025-06-19 12:17:09,238 - DEBUG - Response for deleting network () 2025-06-19 12:17:09,238 - INFO - Deleting VN ctest-vn-68915237 2025-06-19 12:17:09,353 - DEBUG - Response for deleting network () 2025-06-19 12:17:09,608 - DEBUG - No XMPP flaps were noticed during the test 2025-06-19 12:17:09,608 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31] 2025-06-19 12:17:09,608 - INFO - -------------------------------------------------------------------------------- 2025-06-19 12:17:10,436 - INFO - Deleted project: ctest-TestRoutersBasic-78815577, ID : c64253de-4d47-4db4-b7e3-9f25763e1d8b