2025-08-10 20:53:51,524 - INFO - Domain Default found not creating 2025-08-10 20:53:51,678 - INFO - Project ctest-TestRoutersBasic-71215472 not found, creating it 2025-08-10 20:53:52,210 - INFO - Created Project:ctest-TestRoutersBasic-71215472, ID : a6ec98b0-aab1-4313-90b8-2542cdafd37c 2025-08-10 20:53:53,597 - INFO - ================================================================================ 2025-08-10 20:53:53,597 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-08-10 20:53:53,597 - 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-10 20:53:54,847 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.25': '0', '10.20.0.17': '0'}, '10.0.0.50': {'10.20.0.25': '0', '10.20.0.17': '0'}} with 2025-08-10 20:53:54,847 - INFO - Initial checks done. Running the testcase now 2025-08-10 20:53:54,847 - INFO - 2025-08-10 20:53:55,536 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-71215472 2025-08-10 20:53:55,592 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-71215472 2025-08-10 20:53:55,908 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-71215472', 'default']} 2025-08-10 20:53:56,296 - DEBUG - Response for create_network : {'network': {'id': '1ce5b3d3-86c3-45bb-a6eb-5d08d4b8831d', 'name': 'ctest-vn-79800309', 'tenant_id': 'a6ec98b0aab1431390b82542cdafd37c', 'project_id': 'a6ec98b0aab1431390b82542cdafd37c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-71215472', 'ctest-vn-79800309'], 'port_security_enabled': True, 'description': ''}} 2025-08-10 20:53:56,554 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cd73e39c-0ab6-4e78-9520-c85ae9160292', 'name': '', 'tenant_id': 'a6ec98b0aab1431390b82542cdafd37c', 'network_id': '1ce5b3d3-86c3-45bb-a6eb-5d08d4b8831d', 'ip_version': 4, 'cidr': '53.100.63.192/26', 'allocation_pools': [{'start': '53.100.63.194', 'end': '53.100.63.254'}], 'gateway_ip': '53.100.63.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '53.100.63.194', 'tags': [], 'project_id': 'a6ec98b0aab1431390b82542cdafd37c'}} 2025-08-10 20:53:56,573 - INFO - Created VN ctest-vn-79800309 2025-08-10 20:53:56,586 - DEBUG - VN ctest-vn-79800309 UUID is 1ce5b3d3-86c3-45bb-a6eb-5d08d4b8831d 2025-08-10 20:53:56,988 - DEBUG - Response for create_network : {'network': {'id': 'f0945b17-f623-4a96-a508-53f3d2be8f85', 'name': 'ctest-ext_vn-19454494', 'tenant_id': 'a6ec98b0aab1431390b82542cdafd37c', 'project_id': 'a6ec98b0aab1431390b82542cdafd37c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-71215472', 'ctest-ext_vn-19454494'], 'port_security_enabled': True, 'description': ''}} 2025-08-10 20:53:57,196 - DEBUG - Response for create_subnet : {'subnet': {'id': '7e2b7ec6-aac5-497f-bea7-13bf20406c92', 'name': '', 'tenant_id': 'a6ec98b0aab1431390b82542cdafd37c', 'network_id': 'f0945b17-f623-4a96-a508-53f3d2be8f85', 'ip_version': 4, 'cidr': '116.36.244.192/26', 'allocation_pools': [{'start': '116.36.244.194', 'end': '116.36.244.254'}], 'gateway_ip': '116.36.244.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '116.36.244.194', 'tags': [], 'project_id': 'a6ec98b0aab1431390b82542cdafd37c'}} 2025-08-10 20:53:57,215 - INFO - Created VN ctest-ext_vn-19454494 2025-08-10 20:53:57,225 - DEBUG - VN ctest-ext_vn-19454494 UUID is f0945b17-f623-4a96-a508-53f3d2be8f85 2025-08-10 20:53:57,369 - DEBUG - Services list from nova: [, , , ] 2025-08-10 20:53:58,281 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3790-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3790-1) 2025-08-10 20:53:59,387 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3790-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3790-2) 2025-08-10 20:53:59,505 - INFO - Setting gateway for router dd74e968-e7fd-42b9-93d4-7a5e3cfd08fa to network f0945b17-f623-4a96-a508-53f3d2be8f85 2025-08-10 20:53:59,594 - INFO - Adding interface with subnet_id cd73e39c-0ab6-4e78-9520-c85ae9160292, port_id None to router dd74e968-e7fd-42b9-93d4-7a5e3cfd08fa 2025-08-10 20:53:59,955 - INFO - Waiting for VM ctest-TestRoutersBasic-71215472-31377795 to be up.. 2025-08-10 20:54:00,096 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-10 20:54:05,173 - DEBUG - VM is in ACTIVE state now 2025-08-10 20:54:05,173 - INFO - VM name : ctest-TestRoutersBasic-71215472-31377795 2025-08-10 20:54:05,243 - DEBUG - VM ctest-TestRoutersBasic-71215472-31377795 ID is 566ceb4d-ae37-4abd-9f05-bc75dd784b9a 2025-08-10 20:54:05,267 - DEBUG - VM ctest-TestRoutersBasic-71215472-31377795 launched on Node an-jenkins-deploy-platform-ansible-os-3790-1 2025-08-10 20:54:05,333 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/566ceb4d-ae37-4abd-9f05-bc75dd784b9a 2025-08-10 20:54:05,640 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/566ceb4d-ae37-4abd-9f05-bc75dd784b9a 2025-08-10 20:54:05,684 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine-interface/bf05484d-ae7c-4ca8-8763-dbc1e09ba017 2025-08-10 20:54:08,905 - 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=2 ttl=63 time=11.4 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1028ms\r\nrtt min/avg/max/mdev = 11.388/11.388/11.388/0.000 ms') 2025-08-10 20:54:08,905 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-71215472-31377795 passed 2025-08-10 20:54:09,015 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-10 20:54:09,015 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-71215472-31377795, IP 53.100.63.195, Port 22 2025-08-10 20:54:09,072 - 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-10 20:54:09,145 - DEBUG - VM ctest-TestRoutersBasic-71215472-31377795 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-10 20:54:14,146 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-10 20:54:14,146 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-71215472-31377795, IP 53.100.63.195, Port 22 2025-08-10 20:54:14,307 - DEBUG - VM ctest-TestRoutersBasic-71215472-31377795 is ready for SSH connections 2025-08-10 20:54:14,307 - INFO - Waiting for VM ctest-TestRoutersBasic-71215472-03374500 to be up.. 2025-08-10 20:54:14,378 - DEBUG - VM is in ACTIVE state now 2025-08-10 20:54:14,378 - INFO - VM name : ctest-TestRoutersBasic-71215472-03374500 2025-08-10 20:54:14,442 - DEBUG - VM ctest-TestRoutersBasic-71215472-03374500 ID is ee85fe28-ef15-4df9-a6bb-fb581caca6f5 2025-08-10 20:54:14,442 - DEBUG - VM ctest-TestRoutersBasic-71215472-03374500 launched on Node an-jenkins-deploy-platform-ansible-os-3790-2 2025-08-10 20:54:14,507 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/ee85fe28-ef15-4df9-a6bb-fb581caca6f5 2025-08-10 20:54:14,516 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine-interface/e75d9525-c403-45f8-8f26-548bfc80d013 2025-08-10 20:54:15,706 - 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.50 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.280 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.280/1.389/2.498/1.109 ms') 2025-08-10 20:54:15,706 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-71215472-03374500 passed 2025-08-10 20:54:15,825 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-10 20:54:15,825 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-71215472-03374500, IP 116.36.244.195, Port 22 2025-08-10 20:54:15,982 - DEBUG - VM ctest-TestRoutersBasic-71215472-03374500 is ready for SSH connections 2025-08-10 20:54:15,982 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-10 20:54:15,982 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 116.36.244.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-08-10 20:54:15,982 - DEBUG - ping -s 56 -c 3 -W 1 116.36.244.195 2025-08-10 20:54:19,585 - DEBUG - PING 116.36.244.195 (116.36.244.195): 56 data bytes 64 bytes from 116.36.244.195: seq=0 ttl=62 time=6.709 ms 64 bytes from 116.36.244.195: seq=1 ttl=62 time=0.810 ms 64 bytes from 116.36.244.195: seq=2 ttl=62 time=1.059 ms --- 116.36.244.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.810/2.859/6.709 ms 2025-08-10 20:54:19,585 - INFO - Ping to IP 116.36.244.195 from VM ctest-TestRoutersBasic-71215472-31377795 passed 2025-08-10 20:54:19,585 - INFO - Deleting interface with subnet_id cd73e39c-0ab6-4e78-9520-c85ae9160292, port_id None from router dd74e968-e7fd-42b9-93d4-7a5e3cfd08fa 2025-08-10 20:54:19,877 - INFO - Deleting VM ctest-TestRoutersBasic-71215472-03374500 2025-08-10 20:54:19,976 - INFO - Deleting VM ctest-TestRoutersBasic-71215472-31377795 2025-08-10 20:54:20,058 - INFO - Deleting VN ctest-ext_vn-19454494 2025-08-10 20:54:20,179 - DEBUG - VN f0945b17-f623-4a96-a508-53f3d2be8f85 still in use: Unable to complete operation on network f0945b17-f623-4a96-a508-53f3d2be8f85. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-7816021b-ce04-4441-acbe-40401317db68'] 2025-08-10 20:54:20,179 - WARNING - Deleting VN ctest-ext_vn-19454494 failed..Will retry 2025-08-10 20:54:22,360 - DEBUG - Response for deleting network () 2025-08-10 20:54:22,360 - INFO - Deleting VN ctest-vn-79800309 2025-08-10 20:54:22,517 - DEBUG - Response for deleting network () 2025-08-10 20:54:23,758 - DEBUG - No XMPP flaps were noticed during the test 2025-08-10 20:54:23,758 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:30] 2025-08-10 20:54:23,758 - INFO - -------------------------------------------------------------------------------- 2025-08-10 20:54:24,403 - INFO - Deleted project: ctest-TestRoutersBasic-71215472, ID : a6ec98b0-aab1-4313-90b8-2542cdafd37c