2024-11-07 11:53:06,547 - INFO - Domain Default found not creating 2024-11-07 11:53:06,744 - INFO - Project ctest-TestRoutersBasic-37273558 not found, creating it 2024-11-07 11:53:07,313 - INFO - Created Project:ctest-TestRoutersBasic-37273558, ID : d46bae93-5741-4019-a313-b3884029714d 2024-11-07 11:53:09,007 - INFO - ================================================================================ 2024-11-07 11:53:09,007 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-11-07 11:53:09,007 - 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-07 11:53:09,270 - DEBUG - Nothing to compare xmpp stats {'10.0.0.28': {'10.20.0.8': '0'}} with 2024-11-07 11:53:09,270 - INFO - Initial checks done. Running the testcase now 2024-11-07 11:53:09,270 - INFO - 2024-11-07 11:53:10,030 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-37273558 2024-11-07 11:53:10,132 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-37273558 2024-11-07 11:53:10,488 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-37273558', 'default']} 2024-11-07 11:53:10,841 - DEBUG - Response for create_network : {'network': {'id': '6f19ad00-a2f5-4924-aaf7-85031cc83335', 'name': 'ctest-vn-92453550', 'tenant_id': 'd46bae9357414019a313b3884029714d', 'project_id': 'd46bae9357414019a313b3884029714d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-37273558', 'ctest-vn-92453550'], 'port_security_enabled': True, 'description': ''}} 2024-11-07 11:53:11,081 - DEBUG - Response for create_subnet : {'subnet': {'id': '434598fb-6e96-4065-b8b6-1b380f20a7d9', 'name': '', 'tenant_id': 'd46bae9357414019a313b3884029714d', 'network_id': '6f19ad00-a2f5-4924-aaf7-85031cc83335', 'ip_version': 4, 'cidr': '152.165.207.128/26', 'allocation_pools': [{'start': '152.165.207.130', 'end': '152.165.207.190'}], 'gateway_ip': '152.165.207.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '152.165.207.130', 'tags': [], 'project_id': 'd46bae9357414019a313b3884029714d'}} 2024-11-07 11:53:11,107 - INFO - Created VN ctest-vn-92453550 2024-11-07 11:53:11,172 - DEBUG - VN ctest-vn-92453550 UUID is 6f19ad00-a2f5-4924-aaf7-85031cc83335 2024-11-07 11:53:11,557 - DEBUG - Response for create_network : {'network': {'id': '333a2ecf-6952-462d-8144-fcf6442ac947', 'name': 'ctest-ext_vn-34316355', 'tenant_id': 'd46bae9357414019a313b3884029714d', 'project_id': 'd46bae9357414019a313b3884029714d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-37273558', 'ctest-ext_vn-34316355'], 'port_security_enabled': True, 'description': ''}} 2024-11-07 11:53:11,789 - DEBUG - Response for create_subnet : {'subnet': {'id': '675dfc0a-760d-4399-9626-0b85efa75498', 'name': '', 'tenant_id': 'd46bae9357414019a313b3884029714d', 'network_id': '333a2ecf-6952-462d-8144-fcf6442ac947', 'ip_version': 4, 'cidr': '105.25.30.0/26', 'allocation_pools': [{'start': '105.25.30.2', 'end': '105.25.30.62'}], 'gateway_ip': '105.25.30.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '105.25.30.2', 'tags': [], 'project_id': 'd46bae9357414019a313b3884029714d'}} 2024-11-07 11:53:11,811 - INFO - Created VN ctest-ext_vn-34316355 2024-11-07 11:53:11,872 - DEBUG - VN ctest-ext_vn-34316355 UUID is 333a2ecf-6952-462d-8144-fcf6442ac947 2024-11-07 11:53:12,065 - DEBUG - Services list from nova: [, , ] 2024-11-07 11:53:13,213 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2217-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2217-1) 2024-11-07 11:53:14,497 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2217-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2217-1) 2024-11-07 11:53:14,580 - INFO - Setting gateway for router b6f7bd84-34b0-4115-b196-0fbbc4255214 to network 333a2ecf-6952-462d-8144-fcf6442ac947 2024-11-07 11:53:14,671 - INFO - Adding interface with subnet_id 434598fb-6e96-4065-b8b6-1b380f20a7d9, port_id None to router b6f7bd84-34b0-4115-b196-0fbbc4255214 2024-11-07 11:53:15,220 - INFO - Waiting for VM ctest-TestRoutersBasic-37273558-10310192 to be up.. 2024-11-07 11:53:15,497 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-07 11:53:20,600 - DEBUG - VM is in ACTIVE state now 2024-11-07 11:53:20,600 - INFO - VM name : ctest-TestRoutersBasic-37273558-10310192 2024-11-07 11:53:20,732 - DEBUG - VM ctest-TestRoutersBasic-37273558-10310192 ID is 7f842e66-9ba2-48c7-8109-048fcee2c6a2 2024-11-07 11:53:20,755 - DEBUG - VM ctest-TestRoutersBasic-37273558-10310192 launched on Node cn-jenkins-deploy-platform-ansible-os-2217-1 2024-11-07 11:53:20,908 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/7f842e66-9ba2-48c7-8109-048fcee2c6a2 2024-11-07 11:53:21,225 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/7f842e66-9ba2-48c7-8109-048fcee2c6a2 2024-11-07 11:53:21,270 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine-interface/d20aea37-1b58-4475-b76d-cce69820764c 2024-11-07 11:53:24,566 - 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 1010ms') 2024-11-07 11:53:24,566 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-37273558-10310192 failed! 2024-11-07 11:53:24,632 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-37273558:ctest-vn-92453550 is 152.165.207.129 and allocation pool is NOT set 2024-11-07 11:53:26,694 - 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=2.54 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.489 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.489/1.512/2.536/1.023 ms') 2024-11-07 11:53:26,694 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-37273558-10310192 passed 2024-11-07 11:53:26,856 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 11:53:26,856 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-37273558-10310192, IP 152.165.207.131, Port 22 2024-11-07 11:53:27,022 - DEBUG - VM ctest-TestRoutersBasic-37273558-10310192 is ready for SSH connections 2024-11-07 11:53:27,022 - INFO - Waiting for VM ctest-TestRoutersBasic-37273558-73423440 to be up.. 2024-11-07 11:53:27,129 - DEBUG - VM is in ACTIVE state now 2024-11-07 11:53:27,129 - INFO - VM name : ctest-TestRoutersBasic-37273558-73423440 2024-11-07 11:53:27,220 - DEBUG - VM ctest-TestRoutersBasic-37273558-73423440 ID is 128504f3-f8e1-4998-a716-d385cac2614b 2024-11-07 11:53:27,220 - DEBUG - VM ctest-TestRoutersBasic-37273558-73423440 launched on Node cn-jenkins-deploy-platform-ansible-os-2217-1 2024-11-07 11:53:27,306 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/128504f3-f8e1-4998-a716-d385cac2614b 2024-11-07 11:53:27,319 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine-interface/245082af-c19a-483d-89e4-f824ff6cabd0 2024-11-07 11:53:28,577 - 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=5.16 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.04 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 = 2.039/3.601/5.163/1.562 ms') 2024-11-07 11:53:28,577 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-37273558-73423440 passed 2024-11-07 11:53:28,744 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 11:53:28,744 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-37273558-73423440, IP 105.25.30.3, Port 22 2024-11-07 11:53:28,899 - DEBUG - VM ctest-TestRoutersBasic-37273558-73423440 is ready for SSH connections 2024-11-07 11:53:28,899 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 11:53:28,900 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 105.25.30.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.28, gateway password: c0ntrail123 2024-11-07 11:53:28,900 - DEBUG - ping -s 56 -c 3 -W 1 105.25.30.3 2024-11-07 11:53:32,635 - DEBUG - PING 105.25.30.3 (105.25.30.3): 56 data bytes 64 bytes from 105.25.30.3: seq=0 ttl=62 time=5.157 ms 64 bytes from 105.25.30.3: seq=1 ttl=62 time=1.095 ms 64 bytes from 105.25.30.3: seq=2 ttl=62 time=1.127 ms --- 105.25.30.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.095/2.459/5.157 ms 2024-11-07 11:53:32,635 - INFO - Ping to IP 105.25.30.3 from VM ctest-TestRoutersBasic-37273558-10310192 passed 2024-11-07 11:53:32,635 - INFO - Deleting interface with subnet_id 434598fb-6e96-4065-b8b6-1b380f20a7d9, port_id None from router b6f7bd84-34b0-4115-b196-0fbbc4255214 2024-11-07 11:53:32,854 - INFO - Deleting VM ctest-TestRoutersBasic-37273558-73423440 2024-11-07 11:53:32,933 - INFO - Deleting VM ctest-TestRoutersBasic-37273558-10310192 2024-11-07 11:53:33,026 - INFO - Deleting VN ctest-ext_vn-34316355 2024-11-07 11:53:33,125 - DEBUG - VN 333a2ecf-6952-462d-8144-fcf6442ac947 still in use: Unable to complete operation on network 333a2ecf-6952-462d-8144-fcf6442ac947. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-191eae36-6ac3-4e5a-99de-896a5cbfa71b'] 2024-11-07 11:53:33,125 - WARNING - Deleting VN ctest-ext_vn-34316355 failed..Will retry 2024-11-07 11:53:35,269 - DEBUG - Response for deleting network () 2024-11-07 11:53:35,269 - INFO - Deleting VN ctest-vn-92453550 2024-11-07 11:53:35,427 - DEBUG - Response for deleting network () 2024-11-07 11:53:35,686 - DEBUG - No XMPP flaps were noticed during the test
2024-11-07 11:53:35,687 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26]
2024-11-07 11:53:35,687 - INFO - -------------------------------------------------------------------------------- 2024-11-07 11:53:36,417 - INFO - Deleted project: ctest-TestRoutersBasic-37273558, ID : d46bae93-5741-4019-a313-b3884029714d