2025-03-28 10:22:21,994 - INFO - Domain Default found not creating 2025-03-28 10:22:22,144 - INFO - Project ctest-TestRoutersBasic-98812688 not found, creating it 2025-03-28 10:22:22,629 - INFO - Created Project:ctest-TestRoutersBasic-98812688, ID : af4941ff-c30b-4ee4-8a61-8fd15dac0fc7 2025-03-28 10:22:24,205 - INFO - ================================================================================ 2025-03-28 10:22:24,206 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-03-28 10:22:24,206 - 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 10:22:24,468 - DEBUG - Nothing to compare xmpp stats {'10.0.0.42': {'10.20.0.7': '0'}} with 2025-03-28 10:22:24,468 - INFO - Initial checks done. Running the testcase now 2025-03-28 10:22:24,468 - INFO - 2025-03-28 10:22:25,183 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-98812688 2025-03-28 10:22:25,287 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-98812688 2025-03-28 10:22:25,615 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-98812688', 'default']} 2025-03-28 10:22:25,930 - DEBUG - Response for create_network : {'network': {'id': '10c652b8-675f-4646-aebe-671b7fb5f9fa', 'name': 'ctest-vn-96251724', 'tenant_id': 'af4941ffc30b4ee48a618fd15dac0fc7', 'project_id': 'af4941ffc30b4ee48a618fd15dac0fc7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-98812688', 'ctest-vn-96251724'], 'port_security_enabled': True, 'description': ''}} 2025-03-28 10:22:26,133 - DEBUG - Response for create_subnet : {'subnet': {'id': '1848f171-5b1e-4d25-ab0e-3fe04efdcb40', 'name': '', 'tenant_id': 'af4941ffc30b4ee48a618fd15dac0fc7', 'network_id': '10c652b8-675f-4646-aebe-671b7fb5f9fa', 'ip_version': 4, 'cidr': '155.241.140.64/26', 'allocation_pools': [{'start': '155.241.140.66', 'end': '155.241.140.126'}], 'gateway_ip': '155.241.140.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '155.241.140.66', 'tags': [], 'project_id': 'af4941ffc30b4ee48a618fd15dac0fc7'}} 2025-03-28 10:22:26,152 - INFO - Created VN ctest-vn-96251724 2025-03-28 10:22:26,207 - DEBUG - VN ctest-vn-96251724 UUID is 10c652b8-675f-4646-aebe-671b7fb5f9fa 2025-03-28 10:22:26,563 - DEBUG - Response for create_network : {'network': {'id': '31815082-1b68-4299-9126-c540258b360a', 'name': 'ctest-ext_vn-80256128', 'tenant_id': 'af4941ffc30b4ee48a618fd15dac0fc7', 'project_id': 'af4941ffc30b4ee48a618fd15dac0fc7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-98812688', 'ctest-ext_vn-80256128'], 'port_security_enabled': True, 'description': ''}} 2025-03-28 10:22:26,788 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bf17a2cc-9953-432b-bf08-d0bf8a245f69', 'name': '', 'tenant_id': 'af4941ffc30b4ee48a618fd15dac0fc7', 'network_id': '31815082-1b68-4299-9126-c540258b360a', 'ip_version': 4, 'cidr': '165.89.60.0/26', 'allocation_pools': [{'start': '165.89.60.2', 'end': '165.89.60.62'}], 'gateway_ip': '165.89.60.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '165.89.60.2', 'tags': [], 'project_id': 'af4941ffc30b4ee48a618fd15dac0fc7'}} 2025-03-28 10:22:26,805 - INFO - Created VN ctest-ext_vn-80256128 2025-03-28 10:22:26,859 - DEBUG - VN ctest-ext_vn-80256128 UUID is 31815082-1b68-4299-9126-c540258b360a 2025-03-28 10:22:27,034 - DEBUG - Services list from nova: [, , ] 2025-03-28 10:22:28,078 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2986-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2986-1) 2025-03-28 10:22:29,318 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2986-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2986-1) 2025-03-28 10:22:29,443 - INFO - Setting gateway for router 77b447c7-03aa-4208-84e3-b1055a7b3561 to network 31815082-1b68-4299-9126-c540258b360a 2025-03-28 10:22:29,562 - INFO - Adding interface with subnet_id 1848f171-5b1e-4d25-ab0e-3fe04efdcb40, port_id None to router 77b447c7-03aa-4208-84e3-b1055a7b3561 2025-03-28 10:22:30,068 - INFO - Waiting for VM ctest-TestRoutersBasic-98812688-64551752 to be up.. 2025-03-28 10:22:30,304 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-28 10:22:35,424 - DEBUG - VM is in ACTIVE state now 2025-03-28 10:22:35,424 - INFO - VM name : ctest-TestRoutersBasic-98812688-64551752 2025-03-28 10:22:35,523 - DEBUG - VM ctest-TestRoutersBasic-98812688-64551752 ID is 94df2037-f168-46bc-bac9-0d0540aa1916 2025-03-28 10:22:35,549 - DEBUG - VM ctest-TestRoutersBasic-98812688-64551752 launched on Node cn-jenkins-deploy-platform-ansible-os-2986-1 2025-03-28 10:22:35,644 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/94df2037-f168-46bc-bac9-0d0540aa1916 2025-03-28 10:22:35,946 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/94df2037-f168-46bc-bac9-0d0540aa1916 2025-03-28 10:22:35,979 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/c32b5c81-5651-4d32-af77-dbe996b538ec 2025-03-28 10:22:39,257 - 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 1026ms') 2025-03-28 10:22:39,257 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-98812688-64551752 failed! 2025-03-28 10:22:39,311 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-98812688:ctest-vn-96251724 is 155.241.140.65 and allocation pool is NOT set 2025-03-28 10:22:41,376 - 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.84 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.517 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.517/2.176/3.835/1.659 ms') 2025-03-28 10:22:41,376 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-98812688-64551752 passed 2025-03-28 10:22:41,539 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-28 10:22:41,539 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-98812688-64551752, IP 155.241.140.67, Port 22 2025-03-28 10:22:41,707 - DEBUG - VM ctest-TestRoutersBasic-98812688-64551752 is ready for SSH connections 2025-03-28 10:22:41,707 - INFO - Waiting for VM ctest-TestRoutersBasic-98812688-81577314 to be up.. 2025-03-28 10:22:41,793 - DEBUG - VM is in ACTIVE state now 2025-03-28 10:22:41,793 - INFO - VM name : ctest-TestRoutersBasic-98812688-81577314 2025-03-28 10:22:41,895 - DEBUG - VM ctest-TestRoutersBasic-98812688-81577314 ID is cdcbe3ff-649e-4c89-b8f9-ffc22cda722a 2025-03-28 10:22:41,896 - DEBUG - VM ctest-TestRoutersBasic-98812688-81577314 launched on Node cn-jenkins-deploy-platform-ansible-os-2986-1 2025-03-28 10:22:41,981 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/cdcbe3ff-649e-4c89-b8f9-ffc22cda722a 2025-03-28 10:22:41,991 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/1a065b14-f037-4ac6-81f7-ff628eb5ea54 2025-03-28 10:22:43,243 - 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.71 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.469 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.469/2.089/3.710/1.620 ms') 2025-03-28 10:22:43,244 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-98812688-81577314 passed 2025-03-28 10:22:43,399 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-28 10:22:43,399 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-98812688-81577314, IP 165.89.60.3, Port 22 2025-03-28 10:22:43,554 - DEBUG - VM ctest-TestRoutersBasic-98812688-81577314 is ready for SSH connections 2025-03-28 10:22:43,554 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-28 10:22:43,555 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 165.89.60.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123 2025-03-28 10:22:43,555 - DEBUG - ping -s 56 -c 3 -W 1 165.89.60.3 2025-03-28 10:22:47,271 - DEBUG - PING 165.89.60.3 (165.89.60.3): 56 data bytes 64 bytes from 165.89.60.3: seq=0 ttl=62 time=7.567 ms 64 bytes from 165.89.60.3: seq=1 ttl=62 time=1.032 ms 64 bytes from 165.89.60.3: seq=2 ttl=62 time=0.794 ms --- 165.89.60.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.794/3.131/7.567 ms 2025-03-28 10:22:47,271 - INFO - Ping to IP 165.89.60.3 from VM ctest-TestRoutersBasic-98812688-64551752 passed 2025-03-28 10:22:47,271 - INFO - Deleting interface with subnet_id 1848f171-5b1e-4d25-ab0e-3fe04efdcb40, port_id None from router 77b447c7-03aa-4208-84e3-b1055a7b3561 2025-03-28 10:22:47,496 - INFO - Deleting VM ctest-TestRoutersBasic-98812688-81577314 2025-03-28 10:22:47,572 - INFO - Deleting VM ctest-TestRoutersBasic-98812688-64551752 2025-03-28 10:22:47,655 - INFO - Deleting VN ctest-ext_vn-80256128 2025-03-28 10:22:47,722 - DEBUG - VN 31815082-1b68-4299-9126-c540258b360a still in use: Unable to complete operation on network 31815082-1b68-4299-9126-c540258b360a. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-b6b6196e-3e23-4821-a930-c7792998411f'] 2025-03-28 10:22:47,722 - WARNING - Deleting VN ctest-ext_vn-80256128 failed..Will retry 2025-03-28 10:22:49,857 - DEBUG - Response for deleting network () 2025-03-28 10:22:49,857 - INFO - Deleting VN ctest-vn-96251724 2025-03-28 10:22:49,988 - DEBUG - Response for deleting network () 2025-03-28 10:22:50,258 - DEBUG - No XMPP flaps were noticed during the test 2025-03-28 10:22:50,258 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2025-03-28 10:22:50,258 - INFO - -------------------------------------------------------------------------------- 2025-03-28 10:22:50,944 - INFO - Deleted project: ctest-TestRoutersBasic-98812688, ID : af4941ff-c30b-4ee4-8a61-8fd15dac0fc7