2024-12-23 20:29:45,952 - INFO - Domain Default found not creating 2024-12-23 20:29:46,108 - INFO - Project ctest-TestRoutersBasic-75889132 not found, creating it 2024-12-23 20:29:46,589 - INFO - Created Project:ctest-TestRoutersBasic-75889132, ID : 7f2e0cb7-1c7d-486b-be7e-ac2cafa41801 2024-12-23 20:29:48,203 - INFO - ================================================================================ 2024-12-23 20:29:48,203 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-12-23 20:29:48,203 - 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 2024-12-23 20:29:48,458 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.20.0.6': '0'}} with 2024-12-23 20:29:48,458 - INFO - Initial checks done. Running the testcase now 2024-12-23 20:29:48,459 - INFO - 2024-12-23 20:29:49,174 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-75889132 2024-12-23 20:29:49,277 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-75889132 2024-12-23 20:29:49,612 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-75889132', 'default']} 2024-12-23 20:29:49,931 - DEBUG - Response for create_network : {'network': {'id': '246f62dd-cdf5-429f-8ac5-d5a96d444e7b', 'name': 'ctest-vn-42756903', 'tenant_id': '7f2e0cb71c7d486bbe7eac2cafa41801', 'project_id': '7f2e0cb71c7d486bbe7eac2cafa41801', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-75889132', 'ctest-vn-42756903'], 'port_security_enabled': True, 'description': ''}} 2024-12-23 20:29:50,116 - DEBUG - Response for create_subnet : {'subnet': {'id': '693be8aa-67db-4234-966b-94001cf4b7e7', 'name': '', 'tenant_id': '7f2e0cb71c7d486bbe7eac2cafa41801', 'network_id': '246f62dd-cdf5-429f-8ac5-d5a96d444e7b', 'ip_version': 4, 'cidr': '196.15.225.64/26', 'allocation_pools': [{'start': '196.15.225.66', 'end': '196.15.225.126'}], 'gateway_ip': '196.15.225.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '196.15.225.66', 'tags': [], 'project_id': '7f2e0cb71c7d486bbe7eac2cafa41801'}} 2024-12-23 20:29:50,136 - INFO - Created VN ctest-vn-42756903 2024-12-23 20:29:50,189 - DEBUG - VN ctest-vn-42756903 UUID is 246f62dd-cdf5-429f-8ac5-d5a96d444e7b 2024-12-23 20:29:50,518 - DEBUG - Response for create_network : {'network': {'id': 'a98885e0-87b8-4a69-99c4-4ce4e1a00b77', 'name': 'ctest-ext_vn-35507768', 'tenant_id': '7f2e0cb71c7d486bbe7eac2cafa41801', 'project_id': '7f2e0cb71c7d486bbe7eac2cafa41801', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-75889132', 'ctest-ext_vn-35507768'], 'port_security_enabled': True, 'description': ''}} 2024-12-23 20:29:50,690 - DEBUG - Response for create_subnet : {'subnet': {'id': '6a1d913e-299f-43e7-b64b-1436aba99152', 'name': '', 'tenant_id': '7f2e0cb71c7d486bbe7eac2cafa41801', 'network_id': 'a98885e0-87b8-4a69-99c4-4ce4e1a00b77', 'ip_version': 4, 'cidr': '221.107.124.0/26', 'allocation_pools': [{'start': '221.107.124.2', 'end': '221.107.124.62'}], 'gateway_ip': '221.107.124.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '221.107.124.2', 'tags': [], 'project_id': '7f2e0cb71c7d486bbe7eac2cafa41801'}} 2024-12-23 20:29:50,709 - INFO - Created VN ctest-ext_vn-35507768 2024-12-23 20:29:50,760 - DEBUG - VN ctest-ext_vn-35507768 UUID is a98885e0-87b8-4a69-99c4-4ce4e1a00b77 2024-12-23 20:29:50,935 - DEBUG - Services list from nova: [, , ] 2024-12-23 20:29:51,994 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2492-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2492-1) 2024-12-23 20:29:53,181 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2492-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2492-1) 2024-12-23 20:29:53,292 - INFO - Setting gateway for router fa04ff2a-2593-4aae-a5f0-57af1ddb06e1 to network a98885e0-87b8-4a69-99c4-4ce4e1a00b77 2024-12-23 20:29:53,347 - INFO - Adding interface with subnet_id 693be8aa-67db-4234-966b-94001cf4b7e7, port_id None to router fa04ff2a-2593-4aae-a5f0-57af1ddb06e1 2024-12-23 20:29:53,839 - INFO - Waiting for VM ctest-TestRoutersBasic-75889132-81981337 to be up.. 2024-12-23 20:29:54,028 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-12-23 20:29:59,115 - DEBUG - VM is in ACTIVE state now 2024-12-23 20:29:59,116 - INFO - VM name : ctest-TestRoutersBasic-75889132-81981337 2024-12-23 20:29:59,197 - DEBUG - VM ctest-TestRoutersBasic-75889132-81981337 ID is f2f9c1f4-e90f-4ca5-a27a-9114179e9119 2024-12-23 20:29:59,218 - DEBUG - VM ctest-TestRoutersBasic-75889132-81981337 launched on Node cn-jenkins-deploy-platform-ansible-os-2492-1 2024-12-23 20:29:59,297 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/f2f9c1f4-e90f-4ca5-a27a-9114179e9119 2024-12-23 20:29:59,595 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/f2f9c1f4-e90f-4ca5-a27a-9114179e9119 2024-12-23 20:29:59,632 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine-interface/86c346af-e1de-4f77-a79e-c33f182c472e 2024-12-23 20:30:02,909 - 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 1031ms') 2024-12-23 20:30:02,909 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-75889132-81981337 failed! 2024-12-23 20:30:02,964 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-75889132:ctest-vn-42756903 is 196.15.225.65 and allocation pool is NOT set 2024-12-23 20:30:05,028 - 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.16 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.551 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.551/1.857/3.164/1.306 ms') 2024-12-23 20:30:05,029 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-75889132-81981337 passed 2024-12-23 20:30:05,189 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-12-23 20:30:05,189 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-75889132-81981337, IP 196.15.225.67, Port 22 2024-12-23 20:30:05,355 - DEBUG - VM ctest-TestRoutersBasic-75889132-81981337 is ready for SSH connections 2024-12-23 20:30:05,355 - INFO - Waiting for VM ctest-TestRoutersBasic-75889132-24389635 to be up.. 2024-12-23 20:30:05,438 - DEBUG - VM is in ACTIVE state now 2024-12-23 20:30:05,438 - INFO - VM name : ctest-TestRoutersBasic-75889132-24389635 2024-12-23 20:30:05,517 - DEBUG - VM ctest-TestRoutersBasic-75889132-24389635 ID is 8860ac05-9e6f-4fec-85ac-2f358bdb0a4d 2024-12-23 20:30:05,518 - DEBUG - VM ctest-TestRoutersBasic-75889132-24389635 launched on Node cn-jenkins-deploy-platform-ansible-os-2492-1 2024-12-23 20:30:05,602 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/8860ac05-9e6f-4fec-85ac-2f358bdb0a4d 2024-12-23 20:30:05,612 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine-interface/7d55b595-acb1-45f6-ac39-740830f08d35 2024-12-23 20:30:06,862 - 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=2.83 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.440 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.440/1.637/2.834/1.197 ms') 2024-12-23 20:30:06,862 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-75889132-24389635 passed 2024-12-23 20:30:07,021 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-12-23 20:30:07,021 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-75889132-24389635, IP 221.107.124.3, Port 22 2024-12-23 20:30:07,184 - DEBUG - VM ctest-TestRoutersBasic-75889132-24389635 is ready for SSH connections 2024-12-23 20:30:07,185 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-12-23 20:30:07,185 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 221.107.124.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.24, gateway password: c0ntrail123 2024-12-23 20:30:07,185 - DEBUG - ping -s 56 -c 3 -W 1 221.107.124.3 2024-12-23 20:30:10,892 - DEBUG - PING 221.107.124.3 (221.107.124.3): 56 data bytes 64 bytes from 221.107.124.3: seq=0 ttl=62 time=8.645 ms 64 bytes from 221.107.124.3: seq=1 ttl=62 time=1.265 ms 64 bytes from 221.107.124.3: seq=2 ttl=62 time=1.081 ms --- 221.107.124.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.081/3.663/8.645 ms 2024-12-23 20:30:10,893 - INFO - Ping to IP 221.107.124.3 from VM ctest-TestRoutersBasic-75889132-81981337 passed 2024-12-23 20:30:10,893 - INFO - Deleting interface with subnet_id 693be8aa-67db-4234-966b-94001cf4b7e7, port_id None from router fa04ff2a-2593-4aae-a5f0-57af1ddb06e1 2024-12-23 20:30:11,400 - INFO - Deleting VM ctest-TestRoutersBasic-75889132-24389635 2024-12-23 20:30:11,482 - INFO - Deleting VM ctest-TestRoutersBasic-75889132-81981337 2024-12-23 20:30:11,596 - INFO - Deleting VN ctest-ext_vn-35507768 2024-12-23 20:30:11,760 - DEBUG - VN a98885e0-87b8-4a69-99c4-4ce4e1a00b77 still in use: Unable to complete operation on network a98885e0-87b8-4a69-99c4-4ce4e1a00b77. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-53000b7e-3757-4b62-944e-e2a7ee66873e'] 2024-12-23 20:30:11,760 - WARNING - Deleting VN ctest-ext_vn-35507768 failed..Will retry 2024-12-23 20:30:13,875 - DEBUG - Response for deleting network () 2024-12-23 20:30:13,875 - INFO - Deleting VN ctest-vn-42756903 2024-12-23 20:30:13,976 - DEBUG - Response for deleting network () 2024-12-23 20:30:14,237 - DEBUG - No XMPP flaps were noticed during the test 2024-12-23 20:30:14,237 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2024-12-23 20:30:14,237 - INFO - -------------------------------------------------------------------------------- 2024-12-23 20:30:14,931 - INFO - Deleted project: ctest-TestRoutersBasic-75889132, ID : 7f2e0cb7-1c7d-486b-be7e-ac2cafa41801