2024-11-10 20:53:01,281 - INFO - Domain Default found not creating 2024-11-10 20:53:01,500 - INFO - Project ctest-TestRoutersBasic-23657738 not found, creating it 2024-11-10 20:53:02,088 - INFO - Created Project:ctest-TestRoutersBasic-23657738, ID : 26bdb223-0218-4b63-902f-eabff8448f79 2024-11-10 20:53:03,901 - INFO - ================================================================================ 2024-11-10 20:53:03,901 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-11-10 20:53:03,901 - 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-11-10 20:53:04,159 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.21': '0'}} with 2024-11-10 20:53:04,159 - INFO - Initial checks done. Running the testcase now 2024-11-10 20:53:04,159 - INFO - 2024-11-10 20:53:04,910 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-23657738 2024-11-10 20:53:05,020 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-23657738 2024-11-10 20:53:05,391 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-23657738', 'default']} 2024-11-10 20:53:05,758 - DEBUG - Response for create_network : {'network': {'id': 'd3960171-b98d-45fa-a114-fda873fabab8', 'name': 'ctest-vn-43695849', 'tenant_id': '26bdb22302184b63902feabff8448f79', 'project_id': '26bdb22302184b63902feabff8448f79', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-23657738', 'ctest-vn-43695849'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 20:53:05,977 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cff269d3-7336-4de4-8485-eeee9460d7a8', 'name': '', 'tenant_id': '26bdb22302184b63902feabff8448f79', 'network_id': 'd3960171-b98d-45fa-a114-fda873fabab8', 'ip_version': 4, 'cidr': '131.104.148.192/26', 'allocation_pools': [{'start': '131.104.148.194', 'end': '131.104.148.254'}], 'gateway_ip': '131.104.148.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '131.104.148.194', 'tags': [], 'project_id': '26bdb22302184b63902feabff8448f79'}} 2024-11-10 20:53:06,004 - INFO - Created VN ctest-vn-43695849 2024-11-10 20:53:06,067 - DEBUG - VN ctest-vn-43695849 UUID is d3960171-b98d-45fa-a114-fda873fabab8 2024-11-10 20:53:06,517 - DEBUG - Response for create_network : {'network': {'id': 'd8f6d7ac-16c1-4923-a7ad-4d1448673147', 'name': 'ctest-ext_vn-71116001', 'tenant_id': '26bdb22302184b63902feabff8448f79', 'project_id': '26bdb22302184b63902feabff8448f79', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-23657738', 'ctest-ext_vn-71116001'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 20:53:06,709 - DEBUG - Response for create_subnet : {'subnet': {'id': '368da592-7965-4d37-aef8-bd38a0033327', 'name': '', 'tenant_id': '26bdb22302184b63902feabff8448f79', 'network_id': 'd8f6d7ac-16c1-4923-a7ad-4d1448673147', 'ip_version': 4, 'cidr': '220.130.163.0/26', 'allocation_pools': [{'start': '220.130.163.2', 'end': '220.130.163.62'}], 'gateway_ip': '220.130.163.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '220.130.163.2', 'tags': [], 'project_id': '26bdb22302184b63902feabff8448f79'}} 2024-11-10 20:53:06,737 - INFO - Created VN ctest-ext_vn-71116001 2024-11-10 20:53:06,799 - DEBUG - VN ctest-ext_vn-71116001 UUID is d8f6d7ac-16c1-4923-a7ad-4d1448673147 2024-11-10 20:53:07,027 - DEBUG - Services list from nova: [, , ] 2024-11-10 20:53:08,170 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2264-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2264-1) 2024-11-10 20:53:09,487 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2264-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2264-1) 2024-11-10 20:53:09,630 - INFO - Setting gateway for router ab585c85-a093-4126-9fa6-860ea1c32c82 to network d8f6d7ac-16c1-4923-a7ad-4d1448673147 2024-11-10 20:53:09,730 - INFO - Adding interface with subnet_id cff269d3-7336-4de4-8485-eeee9460d7a8, port_id None to router ab585c85-a093-4126-9fa6-860ea1c32c82 2024-11-10 20:53:10,135 - INFO - Waiting for VM ctest-TestRoutersBasic-23657738-59976429 to be up.. 2024-11-10 20:53:10,311 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-10 20:53:15,429 - DEBUG - VM is in ACTIVE state now 2024-11-10 20:53:15,429 - INFO - VM name : ctest-TestRoutersBasic-23657738-59976429 2024-11-10 20:53:15,535 - DEBUG - VM ctest-TestRoutersBasic-23657738-59976429 ID is 667fac49-41bc-40a1-8f52-a6f449d32139 2024-11-10 20:53:15,560 - DEBUG - VM ctest-TestRoutersBasic-23657738-59976429 launched on Node cn-jenkins-deploy-platform-ansible-os-2264-1 2024-11-10 20:53:15,675 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/667fac49-41bc-40a1-8f52-a6f449d32139 2024-11-10 20:53:16,124 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/667fac49-41bc-40a1-8f52-a6f449d32139 2024-11-10 20:53:16,170 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/d52dc965-7416-477b-ae4e-add0d8c4a66a 2024-11-10 20:53:19,456 - 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 1016ms') 2024-11-10 20:53:19,457 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-23657738-59976429 failed! 2024-11-10 20:53:19,519 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-23657738:ctest-vn-43695849 is 131.104.148.193 and allocation pool is NOT set 2024-11-10 20:53:21,592 - 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.44 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.695 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.695/2.065/3.435/1.370 ms') 2024-11-10 20:53:21,592 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-23657738-59976429 passed 2024-11-10 20:53:21,756 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 20:53:21,756 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-23657738-59976429, IP 131.104.148.195, Port 22 2024-11-10 20:53:21,925 - DEBUG - VM ctest-TestRoutersBasic-23657738-59976429 is ready for SSH connections 2024-11-10 20:53:21,925 - INFO - Waiting for VM ctest-TestRoutersBasic-23657738-35036681 to be up.. 2024-11-10 20:53:22,029 - DEBUG - VM is in ACTIVE state now 2024-11-10 20:53:22,029 - INFO - VM name : ctest-TestRoutersBasic-23657738-35036681 2024-11-10 20:53:22,117 - DEBUG - VM ctest-TestRoutersBasic-23657738-35036681 ID is 1cd2d031-f6c9-41ae-9f4f-66aa88af7cec 2024-11-10 20:53:22,118 - DEBUG - VM ctest-TestRoutersBasic-23657738-35036681 launched on Node cn-jenkins-deploy-platform-ansible-os-2264-1 2024-11-10 20:53:22,210 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/1cd2d031-f6c9-41ae-9f4f-66aa88af7cec 2024-11-10 20:53:22,222 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/5cad12bc-d0d4-45a3-b158-3436d123d798 2024-11-10 20:53:23,486 - 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=4.05 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.81 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 = 1.812/2.932/4.053/1.120 ms') 2024-11-10 20:53:23,486 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-23657738-35036681 passed 2024-11-10 20:53:23,653 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 20:53:23,653 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-23657738-35036681, IP 220.130.163.3, Port 22 2024-11-10 20:53:23,822 - DEBUG - VM ctest-TestRoutersBasic-23657738-35036681 is ready for SSH connections 2024-11-10 20:53:23,822 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 20:53:23,822 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 220.130.163.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.41, gateway password: c0ntrail123 2024-11-10 20:53:23,822 - DEBUG - ping -s 56 -c 3 -W 1 220.130.163.3 2024-11-10 20:53:27,586 - DEBUG - PING 220.130.163.3 (220.130.163.3): 56 data bytes 64 bytes from 220.130.163.3: seq=0 ttl=62 time=5.849 ms 64 bytes from 220.130.163.3: seq=1 ttl=62 time=1.182 ms 64 bytes from 220.130.163.3: seq=2 ttl=62 time=1.683 ms --- 220.130.163.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.182/2.904/5.849 ms 2024-11-10 20:53:27,586 - INFO - Ping to IP 220.130.163.3 from VM ctest-TestRoutersBasic-23657738-59976429 passed 2024-11-10 20:53:27,586 - INFO - Deleting interface with subnet_id cff269d3-7336-4de4-8485-eeee9460d7a8, port_id None from router ab585c85-a093-4126-9fa6-860ea1c32c82 2024-11-10 20:53:27,864 - INFO - Deleting VM ctest-TestRoutersBasic-23657738-35036681 2024-11-10 20:53:27,943 - INFO - Deleting VM ctest-TestRoutersBasic-23657738-59976429 2024-11-10 20:53:28,047 - INFO - Deleting VN ctest-ext_vn-71116001 2024-11-10 20:53:28,137 - DEBUG - VN d8f6d7ac-16c1-4923-a7ad-4d1448673147 still in use: Unable to complete operation on network d8f6d7ac-16c1-4923-a7ad-4d1448673147. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-9e609a58-40fd-40f4-bc39-d79d3ec553e7'] 2024-11-10 20:53:28,138 - WARNING - Deleting VN ctest-ext_vn-71116001 failed..Will retry 2024-11-10 20:53:30,310 - DEBUG - Response for deleting network () 2024-11-10 20:53:30,310 - INFO - Deleting VN ctest-vn-43695849 2024-11-10 20:53:30,443 - DEBUG - Response for deleting network () 2024-11-10 20:53:30,698 - DEBUG - No XMPP flaps were noticed during the test
2024-11-10 20:53:30,698 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:27]
2024-11-10 20:53:30,698 - INFO - -------------------------------------------------------------------------------- 2024-11-10 20:53:31,439 - INFO - Deleted project: ctest-TestRoutersBasic-23657738, ID : 26bdb223-0218-4b63-902f-eabff8448f79