2025-04-14 11:23:20,650 - INFO - Domain Default found not creating 2025-04-14 11:23:20,834 - INFO - Project ctest-TestRoutersBasic-61394414 not found, creating it 2025-04-14 11:23:21,353 - INFO - Created Project:ctest-TestRoutersBasic-61394414, ID : 74ea3d1a-b23b-485d-8cb1-ebedbccced66 2025-04-14 11:23:22,991 - INFO - ================================================================================ 2025-04-14 11:23:22,992 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-04-14 11:23:22,992 - 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-04-14 11:23:23,250 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2025-04-14 11:23:23,250 - INFO - Initial checks done. Running the testcase now 2025-04-14 11:23:23,251 - INFO - 2025-04-14 11:23:24,153 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-61394414 2025-04-14 11:23:24,252 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-61394414 2025-04-14 11:23:24,591 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-61394414', 'default']} 2025-04-14 11:23:24,924 - DEBUG - Response for create_network : {'network': {'id': 'f791ac25-845f-4b55-b781-5c09c5eb0eb5', 'name': 'ctest-vn-56891667', 'tenant_id': '74ea3d1ab23b485d8cb1ebedbccced66', 'project_id': '74ea3d1ab23b485d8cb1ebedbccced66', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-61394414', 'ctest-vn-56891667'], 'port_security_enabled': True, 'description': ''}} 2025-04-14 11:23:25,108 - DEBUG - Response for create_subnet : {'subnet': {'id': '8b7441d5-3954-4a1e-8700-5f05e6068041', 'name': '', 'tenant_id': '74ea3d1ab23b485d8cb1ebedbccced66', 'network_id': 'f791ac25-845f-4b55-b781-5c09c5eb0eb5', 'ip_version': 4, 'cidr': '150.124.89.192/26', 'allocation_pools': [{'start': '150.124.89.194', 'end': '150.124.89.254'}], 'gateway_ip': '150.124.89.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '150.124.89.194', 'tags': [], 'project_id': '74ea3d1ab23b485d8cb1ebedbccced66'}} 2025-04-14 11:23:25,134 - INFO - Created VN ctest-vn-56891667 2025-04-14 11:23:25,191 - DEBUG - VN ctest-vn-56891667 UUID is f791ac25-845f-4b55-b781-5c09c5eb0eb5 2025-04-14 11:23:25,609 - DEBUG - Response for create_network : {'network': {'id': '1f3b821d-425a-4765-9a3e-5655a7116afb', 'name': 'ctest-ext_vn-17894414', 'tenant_id': '74ea3d1ab23b485d8cb1ebedbccced66', 'project_id': '74ea3d1ab23b485d8cb1ebedbccced66', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-61394414', 'ctest-ext_vn-17894414'], 'port_security_enabled': True, 'description': ''}} 2025-04-14 11:23:25,802 - DEBUG - Response for create_subnet : {'subnet': {'id': '158b94a0-52c1-41cf-bb71-a37c382166c6', 'name': '', 'tenant_id': '74ea3d1ab23b485d8cb1ebedbccced66', 'network_id': '1f3b821d-425a-4765-9a3e-5655a7116afb', 'ip_version': 4, 'cidr': '178.106.116.128/26', 'allocation_pools': [{'start': '178.106.116.130', 'end': '178.106.116.190'}], 'gateway_ip': '178.106.116.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '178.106.116.130', 'tags': [], 'project_id': '74ea3d1ab23b485d8cb1ebedbccced66'}} 2025-04-14 11:23:25,828 - INFO - Created VN ctest-ext_vn-17894414 2025-04-14 11:23:25,883 - DEBUG - VN ctest-ext_vn-17894414 UUID is 1f3b821d-425a-4765-9a3e-5655a7116afb 2025-04-14 11:23:26,073 - DEBUG - Services list from nova: [, , ] 2025-04-14 11:23:27,261 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3093-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3093-1) 2025-04-14 11:23:28,605 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3093-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3093-1) 2025-04-14 11:23:28,721 - INFO - Setting gateway for router dac44915-0071-4ba7-8885-1f8861da0129 to network 1f3b821d-425a-4765-9a3e-5655a7116afb 2025-04-14 11:23:28,828 - INFO - Adding interface with subnet_id 8b7441d5-3954-4a1e-8700-5f05e6068041, port_id None to router dac44915-0071-4ba7-8885-1f8861da0129 2025-04-14 11:23:29,330 - INFO - Waiting for VM ctest-TestRoutersBasic-61394414-93675799 to be up.. 2025-04-14 11:23:29,520 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-14 11:23:34,607 - DEBUG - VM is in ACTIVE state now 2025-04-14 11:23:34,608 - INFO - VM name : ctest-TestRoutersBasic-61394414-93675799 2025-04-14 11:23:34,701 - DEBUG - VM ctest-TestRoutersBasic-61394414-93675799 ID is cc017d94-d2c8-4a5c-afc1-b18929b81fe3 2025-04-14 11:23:34,726 - DEBUG - VM ctest-TestRoutersBasic-61394414-93675799 launched on Node cn-jenkins-deploy-platform-ansible-os-3093-1 2025-04-14 11:23:34,813 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/cc017d94-d2c8-4a5c-afc1-b18929b81fe3 2025-04-14 11:23:35,153 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/cc017d94-d2c8-4a5c-afc1-b18929b81fe3 2025-04-14 11:23:35,194 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/c76d3b30-ca32-432e-b3a2-36ba37784b13 2025-04-14 11:23:38,461 - 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 1012ms') 2025-04-14 11:23:38,461 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-61394414-93675799 failed! 2025-04-14 11:23:38,523 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-61394414:ctest-vn-56891667 is 150.124.89.193 and allocation pool is NOT set 2025-04-14 11:23:40,584 - 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.65 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.95 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 = 2.945/3.299/3.654/0.354 ms') 2025-04-14 11:23:40,584 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-61394414-93675799 passed 2025-04-14 11:23:40,739 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-14 11:23:40,739 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-61394414-93675799, IP 150.124.89.195, Port 22 2025-04-14 11:23:40,898 - DEBUG - VM ctest-TestRoutersBasic-61394414-93675799 is ready for SSH connections 2025-04-14 11:23:40,899 - INFO - Waiting for VM ctest-TestRoutersBasic-61394414-88291622 to be up.. 2025-04-14 11:23:40,991 - DEBUG - VM is in ACTIVE state now 2025-04-14 11:23:40,991 - INFO - VM name : ctest-TestRoutersBasic-61394414-88291622 2025-04-14 11:23:41,094 - DEBUG - VM ctest-TestRoutersBasic-61394414-88291622 ID is 657f5559-8306-4e4e-bde9-8ec32b91b2b8 2025-04-14 11:23:41,094 - DEBUG - VM ctest-TestRoutersBasic-61394414-88291622 launched on Node cn-jenkins-deploy-platform-ansible-os-3093-1 2025-04-14 11:23:41,210 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/657f5559-8306-4e4e-bde9-8ec32b91b2b8 2025-04-14 11:23:41,220 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/e8fd7337-ad55-4a89-b8cf-be636931e6b8 2025-04-14 11:23:42,474 - 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.24 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=3.79 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.236/3.511/3.787/0.275 ms') 2025-04-14 11:23:42,474 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-61394414-88291622 passed 2025-04-14 11:23:42,631 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-14 11:23:42,632 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-61394414-88291622, IP 178.106.116.131, Port 22 2025-04-14 11:23:42,801 - DEBUG - VM ctest-TestRoutersBasic-61394414-88291622 is ready for SSH connections 2025-04-14 11:23:42,802 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-14 11:23:42,802 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 178.106.116.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-04-14 11:23:42,802 - DEBUG - ping -s 56 -c 3 -W 1 178.106.116.131 2025-04-14 11:23:46,582 - DEBUG - PING 178.106.116.131 (178.106.116.131): 56 data bytes 64 bytes from 178.106.116.131: seq=0 ttl=62 time=7.303 ms 64 bytes from 178.106.116.131: seq=1 ttl=62 time=1.011 ms 64 bytes from 178.106.116.131: seq=2 ttl=62 time=1.151 ms --- 178.106.116.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.011/3.155/7.303 ms 2025-04-14 11:23:46,582 - INFO - Ping to IP 178.106.116.131 from VM ctest-TestRoutersBasic-61394414-93675799 passed 2025-04-14 11:23:46,582 - INFO - Deleting interface with subnet_id 8b7441d5-3954-4a1e-8700-5f05e6068041, port_id None from router dac44915-0071-4ba7-8885-1f8861da0129 2025-04-14 11:23:46,802 - INFO - Deleting VM ctest-TestRoutersBasic-61394414-88291622 2025-04-14 11:23:46,897 - INFO - Deleting VM ctest-TestRoutersBasic-61394414-93675799 2025-04-14 11:23:47,007 - INFO - Deleting VN ctest-ext_vn-17894414 2025-04-14 11:23:47,089 - DEBUG - VN 1f3b821d-425a-4765-9a3e-5655a7116afb still in use: Unable to complete operation on network 1f3b821d-425a-4765-9a3e-5655a7116afb. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-fb671b8e-dadb-48f2-a2a2-b4969a9cfb43'] 2025-04-14 11:23:47,089 - WARNING - Deleting VN ctest-ext_vn-17894414 failed..Will retry 2025-04-14 11:23:49,220 - DEBUG - Response for deleting network () 2025-04-14 11:23:49,220 - INFO - Deleting VN ctest-vn-56891667 2025-04-14 11:23:49,350 - DEBUG - Response for deleting network () 2025-04-14 11:23:49,608 - DEBUG - No XMPP flaps were noticed during the test 2025-04-14 11:23:49,608 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:27] 2025-04-14 11:23:49,608 - INFO - -------------------------------------------------------------------------------- 2025-04-14 11:23:50,337 - INFO - Deleted project: ctest-TestRoutersBasic-61394414, ID : 74ea3d1a-b23b-485d-8cb1-ebedbccced66