2025-03-25 12:31:50,660 - INFO - Domain Default found not creating 2025-03-25 12:31:50,851 - INFO - Project ctest-TestRoutersBasic-29047593 not found, creating it 2025-03-25 12:31:51,359 - INFO - Created Project:ctest-TestRoutersBasic-29047593, ID : 4c20adbc-198f-4153-8733-ba893e7f6aa4 2025-03-25 12:31:52,895 - INFO - ================================================================================ 2025-03-25 12:31:52,895 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-03-25 12:31:52,895 - 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-03-25 12:31:53,166 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.5': '0'}} with 2025-03-25 12:31:53,166 - INFO - Initial checks done. Running the testcase now 2025-03-25 12:31:53,166 - INFO - 2025-03-25 12:31:53,911 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-29047593 2025-03-25 12:31:54,007 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-29047593 2025-03-25 12:31:54,350 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-29047593', 'default']} 2025-03-25 12:31:54,714 - DEBUG - Response for create_network : {'network': {'id': 'df5e70ff-5a6f-4687-ac70-18496e00a4f4', 'name': 'ctest-vn-50540050', 'tenant_id': '4c20adbc198f41538733ba893e7f6aa4', 'project_id': '4c20adbc198f41538733ba893e7f6aa4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-29047593', 'ctest-vn-50540050'], 'port_security_enabled': True, 'description': ''}} 2025-03-25 12:31:54,892 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a3bb4409-8beb-4213-bfb5-db3d3c0e079e', 'name': '', 'tenant_id': '4c20adbc198f41538733ba893e7f6aa4', 'network_id': 'df5e70ff-5a6f-4687-ac70-18496e00a4f4', 'ip_version': 4, 'cidr': '93.37.56.128/26', 'allocation_pools': [{'start': '93.37.56.130', 'end': '93.37.56.190'}], 'gateway_ip': '93.37.56.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '93.37.56.130', 'tags': [], 'project_id': '4c20adbc198f41538733ba893e7f6aa4'}} 2025-03-25 12:31:54,911 - INFO - Created VN ctest-vn-50540050 2025-03-25 12:31:54,970 - DEBUG - VN ctest-vn-50540050 UUID is df5e70ff-5a6f-4687-ac70-18496e00a4f4 2025-03-25 12:31:55,322 - DEBUG - Response for create_network : {'network': {'id': '7d65b1d0-292c-4d7b-a38c-3062f07296bb', 'name': 'ctest-ext_vn-57386099', 'tenant_id': '4c20adbc198f41538733ba893e7f6aa4', 'project_id': '4c20adbc198f41538733ba893e7f6aa4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-29047593', 'ctest-ext_vn-57386099'], 'port_security_enabled': True, 'description': ''}} 2025-03-25 12:31:55,538 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fc4d5e42-801b-4e0a-a165-a46aedec4a64', 'name': '', 'tenant_id': '4c20adbc198f41538733ba893e7f6aa4', 'network_id': '7d65b1d0-292c-4d7b-a38c-3062f07296bb', 'ip_version': 4, 'cidr': '28.91.21.64/26', 'allocation_pools': [{'start': '28.91.21.66', 'end': '28.91.21.126'}], 'gateway_ip': '28.91.21.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '28.91.21.66', 'tags': [], 'project_id': '4c20adbc198f41538733ba893e7f6aa4'}} 2025-03-25 12:31:55,557 - INFO - Created VN ctest-ext_vn-57386099 2025-03-25 12:31:55,610 - DEBUG - VN ctest-ext_vn-57386099 UUID is 7d65b1d0-292c-4d7b-a38c-3062f07296bb 2025-03-25 12:31:55,789 - DEBUG - Services list from nova: [, , ] 2025-03-25 12:31:56,848 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2949-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2949-1) 2025-03-25 12:31:58,040 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2949-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2949-1) 2025-03-25 12:31:58,144 - INFO - Setting gateway for router 995d1521-f7a9-49b6-84a1-2729a8da4578 to network 7d65b1d0-292c-4d7b-a38c-3062f07296bb 2025-03-25 12:31:58,214 - INFO - Adding interface with subnet_id a3bb4409-8beb-4213-bfb5-db3d3c0e079e, port_id None to router 995d1521-f7a9-49b6-84a1-2729a8da4578 2025-03-25 12:31:58,675 - INFO - Waiting for VM ctest-TestRoutersBasic-29047593-17540399 to be up.. 2025-03-25 12:31:58,899 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-25 12:32:03,990 - DEBUG - VM is in ACTIVE state now 2025-03-25 12:32:03,990 - INFO - VM name : ctest-TestRoutersBasic-29047593-17540399 2025-03-25 12:32:04,088 - DEBUG - VM ctest-TestRoutersBasic-29047593-17540399 ID is 0a1dec3a-2a3e-44cb-96f7-036165ec67a3 2025-03-25 12:32:04,109 - DEBUG - VM ctest-TestRoutersBasic-29047593-17540399 launched on Node cn-jenkins-deploy-platform-ansible-os-2949-1 2025-03-25 12:32:04,202 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/0a1dec3a-2a3e-44cb-96f7-036165ec67a3 2025-03-25 12:32:04,509 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/0a1dec3a-2a3e-44cb-96f7-036165ec67a3 2025-03-25 12:32:04,545 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine-interface/edab4d2b-8944-40b2-bcd3-3bae417a9a2a 2025-03-25 12:32:07,818 - 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-03-25 12:32:07,818 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-29047593-17540399 failed! 2025-03-25 12:32:07,878 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-29047593:ctest-vn-50540050 is 93.37.56.129 and allocation pool is NOT set 2025-03-25 12:32:09,940 - 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=5.31 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.39 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 = 1.387/3.348/5.310/1.961 ms') 2025-03-25 12:32:09,940 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-29047593-17540399 passed 2025-03-25 12:32:10,095 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-25 12:32:10,095 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-29047593-17540399, IP 93.37.56.131, Port 22 2025-03-25 12:32:10,151 - 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-03-25 12:32:10,265 - DEBUG - VM ctest-TestRoutersBasic-29047593-17540399 is NOT ready for SSH connections, VM status: ACTIVE 2025-03-25 12:32:15,266 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-25 12:32:15,266 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-29047593-17540399, IP 93.37.56.131, Port 22 2025-03-25 12:32:15,433 - DEBUG - VM ctest-TestRoutersBasic-29047593-17540399 is ready for SSH connections 2025-03-25 12:32:15,433 - INFO - Waiting for VM ctest-TestRoutersBasic-29047593-97881470 to be up.. 2025-03-25 12:32:15,517 - DEBUG - VM is in ACTIVE state now 2025-03-25 12:32:15,517 - INFO - VM name : ctest-TestRoutersBasic-29047593-97881470 2025-03-25 12:32:15,595 - DEBUG - VM ctest-TestRoutersBasic-29047593-97881470 ID is 994658ed-3524-4427-8008-74fcacb15b0e 2025-03-25 12:32:15,595 - DEBUG - VM ctest-TestRoutersBasic-29047593-97881470 launched on Node cn-jenkins-deploy-platform-ansible-os-2949-1 2025-03-25 12:32:15,678 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/994658ed-3524-4427-8008-74fcacb15b0e 2025-03-25 12:32:15,689 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine-interface/9bff14cd-0404-408b-ba17-972ce847a436 2025-03-25 12:32:16,945 - 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.03 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.393 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 = 0.393/1.709/3.026/1.316 ms') 2025-03-25 12:32:16,945 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-29047593-97881470 passed 2025-03-25 12:32:17,102 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-25 12:32:17,103 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-29047593-97881470, IP 28.91.21.67, Port 22 2025-03-25 12:32:17,263 - DEBUG - VM ctest-TestRoutersBasic-29047593-97881470 is ready for SSH connections 2025-03-25 12:32:17,263 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-25 12:32:17,263 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 28.91.21.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.48, gateway password: c0ntrail123 2025-03-25 12:32:17,264 - DEBUG - ping -s 56 -c 3 -W 1 28.91.21.67 2025-03-25 12:32:20,966 - DEBUG - PING 28.91.21.67 (28.91.21.67): 56 data bytes 64 bytes from 28.91.21.67: seq=0 ttl=62 time=4.669 ms 64 bytes from 28.91.21.67: seq=1 ttl=62 time=0.903 ms 64 bytes from 28.91.21.67: seq=2 ttl=62 time=1.147 ms --- 28.91.21.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.903/2.239/4.669 ms 2025-03-25 12:32:20,966 - INFO - Ping to IP 28.91.21.67 from VM ctest-TestRoutersBasic-29047593-17540399 passed 2025-03-25 12:32:20,966 - INFO - Deleting interface with subnet_id a3bb4409-8beb-4213-bfb5-db3d3c0e079e, port_id None from router 995d1521-f7a9-49b6-84a1-2729a8da4578 2025-03-25 12:32:21,263 - INFO - Deleting VM ctest-TestRoutersBasic-29047593-97881470 2025-03-25 12:32:21,338 - INFO - Deleting VM ctest-TestRoutersBasic-29047593-17540399 2025-03-25 12:32:21,427 - INFO - Deleting VN ctest-ext_vn-57386099 2025-03-25 12:32:21,520 - DEBUG - VN 7d65b1d0-292c-4d7b-a38c-3062f07296bb still in use: Unable to complete operation on network 7d65b1d0-292c-4d7b-a38c-3062f07296bb. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-0d308c03-236d-477c-ad27-19cecafdd5da'] 2025-03-25 12:32:21,521 - WARNING - Deleting VN ctest-ext_vn-57386099 failed..Will retry 2025-03-25 12:32:23,642 - DEBUG - Response for deleting network () 2025-03-25 12:32:23,642 - INFO - Deleting VN ctest-vn-50540050 2025-03-25 12:32:23,777 - DEBUG - Response for deleting network () 2025-03-25 12:32:24,036 - DEBUG - No XMPP flaps were noticed during the test 2025-03-25 12:32:24,036 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32] 2025-03-25 12:32:24,036 - INFO - -------------------------------------------------------------------------------- 2025-03-25 12:32:24,706 - INFO - Deleted project: ctest-TestRoutersBasic-29047593, ID : 4c20adbc-198f-4153-8733-ba893e7f6aa4