2025-08-07 02:43:38,742 - INFO - Domain Default found not creating 2025-08-07 02:43:38,905 - INFO - Project ctest-TestRoutersBasic-68119912 not found, creating it 2025-08-07 02:43:39,467 - INFO - Created Project:ctest-TestRoutersBasic-68119912, ID : aa528b4f-d71c-4e73-ae62-8eb568de57fb 2025-08-07 02:43:41,125 - INFO - ================================================================================ 2025-08-07 02:43:41,125 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-08-07 02:43:41,126 - 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-08-07 02:43:42,393 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.17': '0', '10.20.0.25': '0'}, '10.0.0.61': {'10.20.0.17': '0', '10.20.0.25': '0'}} with 2025-08-07 02:43:42,393 - INFO - Initial checks done. Running the testcase now 2025-08-07 02:43:42,393 - INFO - 2025-08-07 02:43:43,155 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-68119912 2025-08-07 02:43:43,222 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-68119912 2025-08-07 02:43:43,562 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-68119912', 'default']} 2025-08-07 02:43:43,990 - DEBUG - Response for create_network : {'network': {'id': '8dda533b-9e6e-4983-b1f7-5b9c88496450', 'name': 'ctest-vn-52448145', 'tenant_id': 'aa528b4fd71c4e73ae628eb568de57fb', 'project_id': 'aa528b4fd71c4e73ae628eb568de57fb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-68119912', 'ctest-vn-52448145'], 'port_security_enabled': True, 'description': ''}} 2025-08-07 02:43:44,237 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b73e37e5-236c-44e1-9f14-691414b630af', 'name': '', 'tenant_id': 'aa528b4fd71c4e73ae628eb568de57fb', 'network_id': '8dda533b-9e6e-4983-b1f7-5b9c88496450', 'ip_version': 4, 'cidr': '133.250.201.64/26', 'allocation_pools': [{'start': '133.250.201.66', 'end': '133.250.201.126'}], 'gateway_ip': '133.250.201.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '133.250.201.66', 'tags': [], 'project_id': 'aa528b4fd71c4e73ae628eb568de57fb'}} 2025-08-07 02:43:44,271 - INFO - Created VN ctest-vn-52448145 2025-08-07 02:43:44,287 - DEBUG - VN ctest-vn-52448145 UUID is 8dda533b-9e6e-4983-b1f7-5b9c88496450 2025-08-07 02:43:44,809 - DEBUG - Response for create_network : {'network': {'id': 'e26ef277-d788-4036-acbc-e98687f4b181', 'name': 'ctest-ext_vn-28864438', 'tenant_id': 'aa528b4fd71c4e73ae628eb568de57fb', 'project_id': 'aa528b4fd71c4e73ae628eb568de57fb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-68119912', 'ctest-ext_vn-28864438'], 'port_security_enabled': True, 'description': ''}} 2025-08-07 02:43:45,047 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd33ee0e8-7789-42de-873b-60df9d10e6ba', 'name': '', 'tenant_id': 'aa528b4fd71c4e73ae628eb568de57fb', 'network_id': 'e26ef277-d788-4036-acbc-e98687f4b181', 'ip_version': 4, 'cidr': '142.122.12.128/26', 'allocation_pools': [{'start': '142.122.12.130', 'end': '142.122.12.190'}], 'gateway_ip': '142.122.12.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '142.122.12.130', 'tags': [], 'project_id': 'aa528b4fd71c4e73ae628eb568de57fb'}} 2025-08-07 02:43:45,075 - INFO - Created VN ctest-ext_vn-28864438 2025-08-07 02:43:45,089 - DEBUG - VN ctest-ext_vn-28864438 UUID is e26ef277-d788-4036-acbc-e98687f4b181 2025-08-07 02:43:45,267 - DEBUG - Services list from nova: [, , , ] 2025-08-07 02:43:46,550 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3767-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3767-2) 2025-08-07 02:43:47,928 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3767-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3767-1) 2025-08-07 02:43:48,048 - INFO - Setting gateway for router c089eb66-a782-40a6-8442-f13d30276dae to network e26ef277-d788-4036-acbc-e98687f4b181 2025-08-07 02:43:48,146 - INFO - Adding interface with subnet_id b73e37e5-236c-44e1-9f14-691414b630af, port_id None to router c089eb66-a782-40a6-8442-f13d30276dae 2025-08-07 02:43:48,618 - INFO - Waiting for VM ctest-TestRoutersBasic-68119912-62582086 to be up.. 2025-08-07 02:43:48,769 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-07 02:43:53,860 - DEBUG - VM is in ACTIVE state now 2025-08-07 02:43:53,861 - INFO - VM name : ctest-TestRoutersBasic-68119912-62582086 2025-08-07 02:43:53,945 - DEBUG - VM ctest-TestRoutersBasic-68119912-62582086 ID is 35e950e1-f27b-4f08-b2d4-bc76253ccd1b 2025-08-07 02:43:53,970 - DEBUG - VM ctest-TestRoutersBasic-68119912-62582086 launched on Node an-jenkins-deploy-platform-ansible-os-3767-2 2025-08-07 02:43:54,057 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/35e950e1-f27b-4f08-b2d4-bc76253ccd1b 2025-08-07 02:43:54,361 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/35e950e1-f27b-4f08-b2d4-bc76253ccd1b 2025-08-07 02:43:54,398 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine-interface/68390545-bb49-4256-9d34-cfc552067adb 2025-08-07 02:43:57,635 - 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 1023ms') 2025-08-07 02:43:57,635 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-68119912-62582086 failed! 2025-08-07 02:43:57,656 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-68119912:ctest-vn-52448145 is 133.250.201.65 and allocation pool is NOT set 2025-08-07 02:43:59,714 - 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.07 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.462 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.462/1.264/2.066/0.802 ms') 2025-08-07 02:43:59,714 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-68119912-62582086 passed 2025-08-07 02:43:59,838 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-07 02:43:59,838 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-68119912-62582086, IP 133.250.201.67, Port 22 2025-08-07 02:43:59,897 - 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-08-07 02:43:59,988 - DEBUG - VM ctest-TestRoutersBasic-68119912-62582086 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-07 02:44:04,989 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-07 02:44:04,989 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-68119912-62582086, IP 133.250.201.67, Port 22 2025-08-07 02:44:05,157 - DEBUG - VM ctest-TestRoutersBasic-68119912-62582086 is ready for SSH connections 2025-08-07 02:44:05,157 - INFO - Waiting for VM ctest-TestRoutersBasic-68119912-61744226 to be up.. 2025-08-07 02:44:05,252 - DEBUG - VM is in ACTIVE state now 2025-08-07 02:44:05,252 - INFO - VM name : ctest-TestRoutersBasic-68119912-61744226 2025-08-07 02:44:05,361 - DEBUG - VM ctest-TestRoutersBasic-68119912-61744226 ID is 90225f7c-8bb6-482f-b9a7-47d86be35da0 2025-08-07 02:44:05,361 - DEBUG - VM ctest-TestRoutersBasic-68119912-61744226 launched on Node an-jenkins-deploy-platform-ansible-os-3767-1 2025-08-07 02:44:05,469 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/90225f7c-8bb6-482f-b9a7-47d86be35da0 2025-08-07 02:44:05,483 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine-interface/cc2391b7-a5dd-4b39-91dd-ec4eed8475e1 2025-08-07 02:44:06,704 - 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.26 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.536 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.536/1.896/3.257/1.360 ms') 2025-08-07 02:44:06,704 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-68119912-61744226 passed 2025-08-07 02:44:06,825 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-07 02:44:06,825 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-68119912-61744226, IP 142.122.12.131, Port 22 2025-08-07 02:44:07,006 - DEBUG - VM ctest-TestRoutersBasic-68119912-61744226 is ready for SSH connections 2025-08-07 02:44:07,006 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-07 02:44:07,006 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 142.122.12.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.61, gateway password: c0ntrail123 2025-08-07 02:44:07,007 - DEBUG - ping -s 56 -c 3 -W 1 142.122.12.131 2025-08-07 02:44:11,006 - DEBUG - PING 142.122.12.131 (142.122.12.131): 56 data bytes 64 bytes from 142.122.12.131: seq=0 ttl=62 time=7.819 ms 64 bytes from 142.122.12.131: seq=1 ttl=62 time=1.286 ms 64 bytes from 142.122.12.131: seq=2 ttl=62 time=1.461 ms --- 142.122.12.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.286/3.522/7.819 ms 2025-08-07 02:44:11,006 - INFO - Ping to IP 142.122.12.131 from VM ctest-TestRoutersBasic-68119912-62582086 passed 2025-08-07 02:44:11,006 - INFO - Deleting interface with subnet_id b73e37e5-236c-44e1-9f14-691414b630af, port_id None from router c089eb66-a782-40a6-8442-f13d30276dae 2025-08-07 02:44:11,440 - INFO - Deleting VM ctest-TestRoutersBasic-68119912-61744226 2025-08-07 02:44:11,541 - INFO - Deleting VM ctest-TestRoutersBasic-68119912-62582086 2025-08-07 02:44:11,655 - INFO - Deleting VN ctest-ext_vn-28864438 2025-08-07 02:44:11,806 - DEBUG - VN e26ef277-d788-4036-acbc-e98687f4b181 still in use: Unable to complete operation on network e26ef277-d788-4036-acbc-e98687f4b181. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-7ee19024-b491-43c2-97bc-1e6631e7e3a9'] 2025-08-07 02:44:11,807 - WARNING - Deleting VN ctest-ext_vn-28864438 failed..Will retry 2025-08-07 02:44:13,983 - DEBUG - Response for deleting network () 2025-08-07 02:44:13,983 - INFO - Deleting VN ctest-vn-52448145 2025-08-07 02:44:14,178 - DEBUG - Response for deleting network () 2025-08-07 02:44:15,461 - DEBUG - No XMPP flaps were noticed during the test 2025-08-07 02:44:15,461 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:34] 2025-08-07 02:44:15,462 - INFO - -------------------------------------------------------------------------------- 2025-08-07 02:44:16,238 - INFO - Deleted project: ctest-TestRoutersBasic-68119912, ID : aa528b4f-d71c-4e73-ae62-8eb568de57fb