2025-11-03 02:27:32,526 - INFO - Domain Default found not creating 2025-11-03 02:27:32,695 - INFO - Project ctest-TestRoutersBasic-70855743 not found, creating it 2025-11-03 02:27:33,151 - INFO - Created Project:ctest-TestRoutersBasic-70855743, ID : 634c5d7d-a012-4f1f-82c1-6adbc357999c 2025-11-03 02:27:34,650 - INFO - ================================================================================ 2025-11-03 02:27:34,650 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-11-03 02:27:34,650 - 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-11-03 02:27:34,908 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.18': '0'}} with 2025-11-03 02:27:34,908 - INFO - Initial checks done. Running the testcase now 2025-11-03 02:27:34,908 - INFO - 2025-11-03 02:27:35,610 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-70855743 2025-11-03 02:27:35,703 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-70855743 2025-11-03 02:27:36,023 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-70855743', 'default']} 2025-11-03 02:27:36,305 - DEBUG - Response for create_network : {'network': {'id': '24a35652-088e-493b-b060-3cba1a4929ba', 'name': 'ctest-vn-51952366', 'tenant_id': '634c5d7da0124f1f82c16adbc357999c', 'project_id': '634c5d7da0124f1f82c16adbc357999c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-70855743', 'ctest-vn-51952366'], 'port_security_enabled': True, 'description': ''}} 2025-11-03 02:27:36,522 - DEBUG - Response for create_subnet : {'subnet': {'id': '967cf541-7e88-4c82-b8c7-8b49c979a245', 'name': '', 'tenant_id': '634c5d7da0124f1f82c16adbc357999c', 'network_id': '24a35652-088e-493b-b060-3cba1a4929ba', 'ip_version': 4, 'cidr': '7.85.247.0/26', 'allocation_pools': [{'start': '7.85.247.2', 'end': '7.85.247.62'}], 'gateway_ip': '7.85.247.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '7.85.247.2', 'tags': [], 'project_id': '634c5d7da0124f1f82c16adbc357999c'}} 2025-11-03 02:27:36,539 - INFO - Created VN ctest-vn-51952366 2025-11-03 02:27:36,591 - DEBUG - VN ctest-vn-51952366 UUID is 24a35652-088e-493b-b060-3cba1a4929ba 2025-11-03 02:27:36,925 - DEBUG - Response for create_network : {'network': {'id': '81463370-f27d-4d69-879e-3b7759fc5603', 'name': 'ctest-ext_vn-30431623', 'tenant_id': '634c5d7da0124f1f82c16adbc357999c', 'project_id': '634c5d7da0124f1f82c16adbc357999c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-70855743', 'ctest-ext_vn-30431623'], 'port_security_enabled': True, 'description': ''}} 2025-11-03 02:27:37,140 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd277dd55-dfa4-4bde-ba9b-fe440077451f', 'name': '', 'tenant_id': '634c5d7da0124f1f82c16adbc357999c', 'network_id': '81463370-f27d-4d69-879e-3b7759fc5603', 'ip_version': 4, 'cidr': '15.8.108.128/26', 'allocation_pools': [{'start': '15.8.108.130', 'end': '15.8.108.190'}], 'gateway_ip': '15.8.108.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '15.8.108.130', 'tags': [], 'project_id': '634c5d7da0124f1f82c16adbc357999c'}} 2025-11-03 02:27:37,156 - INFO - Created VN ctest-ext_vn-30431623 2025-11-03 02:27:37,211 - DEBUG - VN ctest-ext_vn-30431623 UUID is 81463370-f27d-4d69-879e-3b7759fc5603 2025-11-03 02:27:37,368 - DEBUG - Services list from nova: [, , ] 2025-11-03 02:27:38,394 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4598-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4598-1) 2025-11-03 02:27:39,505 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4598-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4598-1) 2025-11-03 02:27:39,582 - INFO - Setting gateway for router de32b13f-46a4-45f3-95e8-e0f42514b1f4 to network 81463370-f27d-4d69-879e-3b7759fc5603 2025-11-03 02:27:39,657 - INFO - Adding interface with subnet_id 967cf541-7e88-4c82-b8c7-8b49c979a245, port_id None to router de32b13f-46a4-45f3-95e8-e0f42514b1f4 2025-11-03 02:27:39,945 - INFO - Waiting for VM ctest-TestRoutersBasic-70855743-20966294 to be up.. 2025-11-03 02:27:40,046 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-03 02:27:45,118 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-03 02:27:50,190 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-03 02:27:55,266 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-03 02:28:00,351 - DEBUG - VM is in ACTIVE state now 2025-11-03 02:28:00,352 - INFO - VM name : ctest-TestRoutersBasic-70855743-20966294 2025-11-03 02:28:00,435 - DEBUG - VM ctest-TestRoutersBasic-70855743-20966294 ID is bd7f3b5a-75bd-42e0-a209-b48ec0a3bf35 2025-11-03 02:28:00,453 - DEBUG - VM ctest-TestRoutersBasic-70855743-20966294 launched on Node cn-jenkins-deploy-platform-ansible-os-4598-1 2025-11-03 02:28:00,529 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/bd7f3b5a-75bd-42e0-a209-b48ec0a3bf35 2025-11-03 02:28:00,824 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/bd7f3b5a-75bd-42e0-a209-b48ec0a3bf35 2025-11-03 02:28:00,855 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/ccba20d1-414f-44e9-a979-35c9931bda0d 2025-11-03 02:28:04,111 - 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 1003ms') 2025-11-03 02:28:04,111 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-70855743-20966294 failed! 2025-11-03 02:28:04,167 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-70855743:ctest-vn-51952366 is 7.85.247.1 and allocation pool is NOT set 2025-11-03 02:28:06,235 - 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=6.44 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.75 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 = 2.751/4.596/6.442/1.845 ms') 2025-11-03 02:28:06,236 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-70855743-20966294 passed 2025-11-03 02:28:06,383 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-03 02:28:06,383 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-70855743-20966294, IP 7.85.247.3, Port 22 2025-11-03 02:28:06,552 - DEBUG - VM ctest-TestRoutersBasic-70855743-20966294 is ready for SSH connections 2025-11-03 02:28:06,552 - INFO - Waiting for VM ctest-TestRoutersBasic-70855743-31462056 to be up.. 2025-11-03 02:28:06,624 - DEBUG - VM is in ACTIVE state now 2025-11-03 02:28:06,624 - INFO - VM name : ctest-TestRoutersBasic-70855743-31462056 2025-11-03 02:28:06,701 - DEBUG - VM ctest-TestRoutersBasic-70855743-31462056 ID is ba793a1b-d887-44f6-9a8e-c12803c079e1 2025-11-03 02:28:06,701 - DEBUG - VM ctest-TestRoutersBasic-70855743-31462056 launched on Node cn-jenkins-deploy-platform-ansible-os-4598-1 2025-11-03 02:28:06,782 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/ba793a1b-d887-44f6-9a8e-c12803c079e1 2025-11-03 02:28:06,791 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/b7e1c1b9-1819-420d-89b0-4ab12cdf2d25 2025-11-03 02:28:08,034 - 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.08 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=3.25 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 = 3.083/3.166/3.249/0.083 ms') 2025-11-03 02:28:08,034 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-70855743-31462056 passed 2025-11-03 02:28:08,187 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-03 02:28:08,187 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-70855743-31462056, IP 15.8.108.131, Port 22 2025-11-03 02:28:08,253 - 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-11-03 02:28:08,339 - DEBUG - VM ctest-TestRoutersBasic-70855743-31462056 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-03 02:28:13,340 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-03 02:28:13,340 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-70855743-31462056, IP 15.8.108.131, Port 22 2025-11-03 02:28:13,505 - DEBUG - VM ctest-TestRoutersBasic-70855743-31462056 is ready for SSH connections 2025-11-03 02:28:13,506 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-03 02:28:13,506 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 15.8.108.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-11-03 02:28:13,506 - DEBUG - ping -s 56 -c 3 -W 1 15.8.108.131 2025-11-03 02:28:17,211 - DEBUG - PING 15.8.108.131 (15.8.108.131): 56 data bytes 64 bytes from 15.8.108.131: seq=0 ttl=62 time=5.845 ms 64 bytes from 15.8.108.131: seq=1 ttl=62 time=0.933 ms 64 bytes from 15.8.108.131: seq=2 ttl=62 time=1.507 ms --- 15.8.108.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.933/2.761/5.845 ms 2025-11-03 02:28:17,211 - INFO - Ping to IP 15.8.108.131 from VM ctest-TestRoutersBasic-70855743-20966294 passed 2025-11-03 02:28:17,211 - INFO - Deleting interface with subnet_id 967cf541-7e88-4c82-b8c7-8b49c979a245, port_id None from router de32b13f-46a4-45f3-95e8-e0f42514b1f4 2025-11-03 02:28:17,416 - INFO - Deleting VM ctest-TestRoutersBasic-70855743-31462056 2025-11-03 02:28:17,486 - INFO - Deleting VM ctest-TestRoutersBasic-70855743-20966294 2025-11-03 02:28:17,577 - INFO - Deleting VN ctest-ext_vn-30431623 2025-11-03 02:28:17,640 - DEBUG - VN 81463370-f27d-4d69-879e-3b7759fc5603 still in use: Unable to complete operation on network 81463370-f27d-4d69-879e-3b7759fc5603. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-addd62d9-f78e-4d09-8fda-0db9e23ed9fa'] 2025-11-03 02:28:17,641 - WARNING - Deleting VN ctest-ext_vn-30431623 failed..Will retry 2025-11-03 02:28:19,748 - DEBUG - Response for deleting network () 2025-11-03 02:28:19,748 - INFO - Deleting VN ctest-vn-51952366 2025-11-03 02:28:19,868 - DEBUG - Response for deleting network () 2025-11-03 02:28:20,141 - DEBUG - No XMPP flaps were noticed during the test 2025-11-03 02:28:20,141 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:46] 2025-11-03 02:28:20,141 - INFO - -------------------------------------------------------------------------------- 2025-11-03 02:28:20,821 - INFO - Deleted project: ctest-TestRoutersBasic-70855743, ID : 634c5d7d-a012-4f1f-82c1-6adbc357999c