2025-03-28 17:45:53,868 - INFO - Domain Default found not creating 2025-03-28 17:45:54,046 - INFO - Project ctest-TestRoutersBasic-67186442 not found, creating it 2025-03-28 17:45:54,529 - INFO - Created Project:ctest-TestRoutersBasic-67186442, ID : 2f3bca5a-aa24-4443-9443-16cd7259fe52 2025-03-28 17:45:55,996 - INFO - ================================================================================ 2025-03-28 17:45:55,996 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-03-28 17:45:55,996 - 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-28 17:45:56,255 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.7': '0'}} with 2025-03-28 17:45:56,255 - INFO - Initial checks done. Running the testcase now 2025-03-28 17:45:56,255 - INFO - 2025-03-28 17:45:56,969 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-67186442 2025-03-28 17:45:57,065 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-67186442 2025-03-28 17:45:57,397 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-67186442', 'default']} 2025-03-28 17:45:57,733 - DEBUG - Response for create_network : {'network': {'id': 'fc55c813-3777-48f4-94e4-20eb15464547', 'name': 'ctest-vn-39341486', 'tenant_id': '2f3bca5aaa244443944316cd7259fe52', 'project_id': '2f3bca5aaa244443944316cd7259fe52', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-67186442', 'ctest-vn-39341486'], 'port_security_enabled': True, 'description': ''}} 2025-03-28 17:45:57,958 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c173267f-0491-4c86-93da-241bc6760ee6', 'name': '', 'tenant_id': '2f3bca5aaa244443944316cd7259fe52', 'network_id': 'fc55c813-3777-48f4-94e4-20eb15464547', 'ip_version': 4, 'cidr': '37.151.13.0/26', 'allocation_pools': [{'start': '37.151.13.2', 'end': '37.151.13.62'}], 'gateway_ip': '37.151.13.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '37.151.13.2', 'tags': [], 'project_id': '2f3bca5aaa244443944316cd7259fe52'}} 2025-03-28 17:45:57,977 - INFO - Created VN ctest-vn-39341486 2025-03-28 17:45:58,029 - DEBUG - VN ctest-vn-39341486 UUID is fc55c813-3777-48f4-94e4-20eb15464547 2025-03-28 17:45:58,375 - DEBUG - Response for create_network : {'network': {'id': 'ca2f64ae-d528-4492-bf8c-0c4cd7e16cfc', 'name': 'ctest-ext_vn-01858439', 'tenant_id': '2f3bca5aaa244443944316cd7259fe52', 'project_id': '2f3bca5aaa244443944316cd7259fe52', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-67186442', 'ctest-ext_vn-01858439'], 'port_security_enabled': True, 'description': ''}} 2025-03-28 17:45:58,567 - DEBUG - Response for create_subnet : {'subnet': {'id': '5998971e-ed6f-47f0-9290-42ee1b4d9ee1', 'name': '', 'tenant_id': '2f3bca5aaa244443944316cd7259fe52', 'network_id': 'ca2f64ae-d528-4492-bf8c-0c4cd7e16cfc', 'ip_version': 4, 'cidr': '157.151.108.192/26', 'allocation_pools': [{'start': '157.151.108.194', 'end': '157.151.108.254'}], 'gateway_ip': '157.151.108.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '157.151.108.194', 'tags': [], 'project_id': '2f3bca5aaa244443944316cd7259fe52'}} 2025-03-28 17:45:58,585 - INFO - Created VN ctest-ext_vn-01858439 2025-03-28 17:45:58,637 - DEBUG - VN ctest-ext_vn-01858439 UUID is ca2f64ae-d528-4492-bf8c-0c4cd7e16cfc 2025-03-28 17:45:58,848 - DEBUG - Services list from nova: [, , ] 2025-03-28 17:45:59,865 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2993-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2993-1) 2025-03-28 17:46:01,045 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2993-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2993-1) 2025-03-28 17:46:01,127 - INFO - Setting gateway for router d92f1a3c-1461-406f-97ce-1cfdcf8b10cb to network ca2f64ae-d528-4492-bf8c-0c4cd7e16cfc 2025-03-28 17:46:01,214 - INFO - Adding interface with subnet_id c173267f-0491-4c86-93da-241bc6760ee6, port_id None to router d92f1a3c-1461-406f-97ce-1cfdcf8b10cb 2025-03-28 17:46:01,845 - INFO - Waiting for VM ctest-TestRoutersBasic-67186442-07222376 to be up.. 2025-03-28 17:46:02,002 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-28 17:46:07,095 - DEBUG - VM is in ACTIVE state now 2025-03-28 17:46:07,095 - INFO - VM name : ctest-TestRoutersBasic-67186442-07222376 2025-03-28 17:46:07,191 - DEBUG - VM ctest-TestRoutersBasic-67186442-07222376 ID is 4c5d8620-f174-441f-a69d-d0adbe14cb94 2025-03-28 17:46:07,215 - DEBUG - VM ctest-TestRoutersBasic-67186442-07222376 launched on Node cn-jenkins-deploy-platform-ansible-os-2993-1 2025-03-28 17:46:07,310 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/4c5d8620-f174-441f-a69d-d0adbe14cb94 2025-03-28 17:46:07,620 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/4c5d8620-f174-441f-a69d-d0adbe14cb94 2025-03-28 17:46:07,659 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/ce509077-8ee8-4e6d-87ed-a10b163bf6b9 2025-03-28 17:46:10,923 - 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 1017ms') 2025-03-28 17:46:10,923 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-67186442-07222376 failed! 2025-03-28 17:46:10,977 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-67186442:ctest-vn-39341486 is 37.151.13.1 and allocation pool is NOT set 2025-03-28 17:46:13,042 - 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.27 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.529 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.529/1.898/3.268/1.369 ms') 2025-03-28 17:46:13,042 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-67186442-07222376 passed 2025-03-28 17:46:13,197 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-28 17:46:13,197 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-67186442-07222376, IP 37.151.13.3, Port 22 2025-03-28 17:46:13,353 - DEBUG - VM ctest-TestRoutersBasic-67186442-07222376 is ready for SSH connections 2025-03-28 17:46:13,353 - INFO - Waiting for VM ctest-TestRoutersBasic-67186442-03313521 to be up.. 2025-03-28 17:46:13,433 - DEBUG - VM is in ACTIVE state now 2025-03-28 17:46:13,433 - INFO - VM name : ctest-TestRoutersBasic-67186442-03313521 2025-03-28 17:46:13,510 - DEBUG - VM ctest-TestRoutersBasic-67186442-03313521 ID is 973216c0-a2c2-4f8a-8ac3-ddd4e8c01e4b 2025-03-28 17:46:13,510 - DEBUG - VM ctest-TestRoutersBasic-67186442-03313521 launched on Node cn-jenkins-deploy-platform-ansible-os-2993-1 2025-03-28 17:46:13,585 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/973216c0-a2c2-4f8a-8ac3-ddd4e8c01e4b 2025-03-28 17:46:13,594 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/4e803713-c0df-43ff-a4c2-c313fe8b6905 2025-03-28 17:46:14,845 - 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.09 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.512 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.512/1.802/3.093/1.290 ms') 2025-03-28 17:46:14,846 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-67186442-03313521 passed 2025-03-28 17:46:15,005 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-28 17:46:15,005 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-67186442-03313521, IP 157.151.108.195, Port 22 2025-03-28 17:46:15,161 - DEBUG - VM ctest-TestRoutersBasic-67186442-03313521 is ready for SSH connections 2025-03-28 17:46:15,161 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-28 17:46:15,161 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 157.151.108.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.29, gateway password: c0ntrail123 2025-03-28 17:46:15,161 - DEBUG - ping -s 56 -c 3 -W 1 157.151.108.195 2025-03-28 17:46:18,871 - DEBUG - PING 157.151.108.195 (157.151.108.195): 56 data bytes 64 bytes from 157.151.108.195: seq=0 ttl=62 time=6.009 ms 64 bytes from 157.151.108.195: seq=1 ttl=62 time=0.985 ms 64 bytes from 157.151.108.195: seq=2 ttl=62 time=0.951 ms --- 157.151.108.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.951/2.648/6.009 ms 2025-03-28 17:46:18,872 - INFO - Ping to IP 157.151.108.195 from VM ctest-TestRoutersBasic-67186442-07222376 passed 2025-03-28 17:46:18,872 - INFO - Deleting interface with subnet_id c173267f-0491-4c86-93da-241bc6760ee6, port_id None from router d92f1a3c-1461-406f-97ce-1cfdcf8b10cb 2025-03-28 17:46:19,122 - INFO - Deleting VM ctest-TestRoutersBasic-67186442-03313521 2025-03-28 17:46:19,195 - INFO - Deleting VM ctest-TestRoutersBasic-67186442-07222376 2025-03-28 17:46:19,285 - INFO - Deleting VN ctest-ext_vn-01858439 2025-03-28 17:46:19,365 - DEBUG - VN ca2f64ae-d528-4492-bf8c-0c4cd7e16cfc still in use: Unable to complete operation on network ca2f64ae-d528-4492-bf8c-0c4cd7e16cfc. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-17edb6c2-2404-4e47-877e-74dccce2deb7'] 2025-03-28 17:46:19,365 - WARNING - Deleting VN ctest-ext_vn-01858439 failed..Will retry 2025-03-28 17:46:21,490 - DEBUG - Response for deleting network () 2025-03-28 17:46:21,490 - INFO - Deleting VN ctest-vn-39341486 2025-03-28 17:46:21,625 - DEBUG - Response for deleting network () 2025-03-28 17:46:21,883 - DEBUG - No XMPP flaps were noticed during the test 2025-03-28 17:46:21,883 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2025-03-28 17:46:21,883 - INFO - -------------------------------------------------------------------------------- 2025-03-28 17:46:22,584 - INFO - Deleted project: ctest-TestRoutersBasic-67186442, ID : 2f3bca5a-aa24-4443-9443-16cd7259fe52