2024-11-08 23:18:18,381 - INFO - Domain Default found not creating 2024-11-08 23:18:18,527 - INFO - Project ctest-TestRoutersBasic-50808356 not found, creating it 2024-11-08 23:18:19,231 - INFO - Created Project:ctest-TestRoutersBasic-50808356, ID : cd69b130-88f4-4ef8-ba23-edb3f5019094 2024-11-08 23:18:20,757 - INFO - ================================================================================ 2024-11-08 23:18:20,757 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-11-08 23:18:20,757 - 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-08 23:18:21,017 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.21': '0'}} with 2024-11-08 23:18:21,017 - INFO - Initial checks done. Running the testcase now 2024-11-08 23:18:21,017 - INFO - 2024-11-08 23:18:21,751 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-50808356 2024-11-08 23:18:21,852 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-50808356 2024-11-08 23:18:22,231 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-50808356', 'default']} 2024-11-08 23:18:22,590 - DEBUG - Response for create_network : {'network': {'id': '18ffd239-84d3-4ffd-8ede-e0c3c8f0567c', 'name': 'ctest-vn-31955890', 'tenant_id': 'cd69b13088f44ef8ba23edb3f5019094', 'project_id': 'cd69b13088f44ef8ba23edb3f5019094', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-50808356', 'ctest-vn-31955890'], 'port_security_enabled': True, 'description': ''}} 2024-11-08 23:18:22,775 - DEBUG - Response for create_subnet : {'subnet': {'id': '2437f96f-d4dc-44f5-a684-1d44b55388ad', 'name': '', 'tenant_id': 'cd69b13088f44ef8ba23edb3f5019094', 'network_id': '18ffd239-84d3-4ffd-8ede-e0c3c8f0567c', 'ip_version': 4, 'cidr': '31.201.215.192/26', 'allocation_pools': [{'start': '31.201.215.194', 'end': '31.201.215.254'}], 'gateway_ip': '31.201.215.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31.201.215.194', 'tags': [], 'project_id': 'cd69b13088f44ef8ba23edb3f5019094'}} 2024-11-08 23:18:22,840 - INFO - Created VN ctest-vn-31955890 2024-11-08 23:18:22,904 - DEBUG - VN ctest-vn-31955890 UUID is 18ffd239-84d3-4ffd-8ede-e0c3c8f0567c 2024-11-08 23:18:23,308 - DEBUG - Response for create_network : {'network': {'id': '9ccea074-5f3b-48bc-a0a0-e843cc339e92', 'name': 'ctest-ext_vn-94158083', 'tenant_id': 'cd69b13088f44ef8ba23edb3f5019094', 'project_id': 'cd69b13088f44ef8ba23edb3f5019094', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-50808356', 'ctest-ext_vn-94158083'], 'port_security_enabled': True, 'description': ''}} 2024-11-08 23:18:23,523 - DEBUG - Response for create_subnet : {'subnet': {'id': '916937b1-f799-40c6-8018-fe8bf6e84470', 'name': '', 'tenant_id': 'cd69b13088f44ef8ba23edb3f5019094', 'network_id': '9ccea074-5f3b-48bc-a0a0-e843cc339e92', 'ip_version': 4, 'cidr': '33.182.204.64/26', 'allocation_pools': [{'start': '33.182.204.66', 'end': '33.182.204.126'}], 'gateway_ip': '33.182.204.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33.182.204.66', 'tags': [], 'project_id': 'cd69b13088f44ef8ba23edb3f5019094'}} 2024-11-08 23:18:23,546 - INFO - Created VN ctest-ext_vn-94158083 2024-11-08 23:18:23,604 - DEBUG - VN ctest-ext_vn-94158083 UUID is 9ccea074-5f3b-48bc-a0a0-e843cc339e92 2024-11-08 23:18:23,785 - DEBUG - Services list from nova: [, , ] 2024-11-08 23:18:24,854 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2243-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2243-1) 2024-11-08 23:18:26,121 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2243-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2243-1) 2024-11-08 23:18:26,199 - INFO - Setting gateway for router 37915a63-9ccb-4253-86cf-2b4237da18aa to network 9ccea074-5f3b-48bc-a0a0-e843cc339e92 2024-11-08 23:18:26,290 - INFO - Adding interface with subnet_id 2437f96f-d4dc-44f5-a684-1d44b55388ad, port_id None to router 37915a63-9ccb-4253-86cf-2b4237da18aa 2024-11-08 23:18:26,751 - INFO - Waiting for VM ctest-TestRoutersBasic-50808356-55860357 to be up.. 2024-11-08 23:18:26,890 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-08 23:18:31,979 - DEBUG - VM is in ACTIVE state now 2024-11-08 23:18:31,979 - INFO - VM name : ctest-TestRoutersBasic-50808356-55860357 2024-11-08 23:18:32,065 - DEBUG - VM ctest-TestRoutersBasic-50808356-55860357 ID is 93c66ee1-7265-4642-a72a-0db8bb0b72e8 2024-11-08 23:18:32,082 - DEBUG - VM ctest-TestRoutersBasic-50808356-55860357 launched on Node cn-jenkins-deploy-platform-ansible-os-2243-1 2024-11-08 23:18:32,167 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/93c66ee1-7265-4642-a72a-0db8bb0b72e8 2024-11-08 23:18:32,481 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/93c66ee1-7265-4642-a72a-0db8bb0b72e8 2024-11-08 23:18:32,515 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/0b8bdae3-d83d-48c9-bc81-712b829f66cd 2024-11-08 23:18:35,775 - 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 1001ms') 2024-11-08 23:18:35,775 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-50808356-55860357 failed! 2024-11-08 23:18:35,839 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-50808356:ctest-vn-31955890 is 31.201.215.193 and allocation pool is NOT set 2024-11-08 23:18:37,905 - 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=5.13 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.397 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.397/2.761/5.125/2.364 ms') 2024-11-08 23:18:37,905 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-50808356-55860357 passed 2024-11-08 23:18:38,063 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 23:18:38,064 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-50808356-55860357, IP 31.201.215.195, Port 22 2024-11-08 23:18:38,224 - DEBUG - VM ctest-TestRoutersBasic-50808356-55860357 is ready for SSH connections 2024-11-08 23:18:38,224 - INFO - Waiting for VM ctest-TestRoutersBasic-50808356-58473088 to be up.. 2024-11-08 23:18:38,309 - DEBUG - VM is in ACTIVE state now 2024-11-08 23:18:38,310 - INFO - VM name : ctest-TestRoutersBasic-50808356-58473088 2024-11-08 23:18:38,379 - DEBUG - VM ctest-TestRoutersBasic-50808356-58473088 ID is 992c8fb1-2111-4c02-89eb-0e43e61bc1f5 2024-11-08 23:18:38,379 - DEBUG - VM ctest-TestRoutersBasic-50808356-58473088 launched on Node cn-jenkins-deploy-platform-ansible-os-2243-1 2024-11-08 23:18:38,454 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/992c8fb1-2111-4c02-89eb-0e43e61bc1f5 2024-11-08 23:18:38,464 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/755a4c18-0e87-4f64-b27e-36d49455e976 2024-11-08 23:18:39,719 - 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.95 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.390 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.390/1.669/2.949/1.279 ms') 2024-11-08 23:18:39,719 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-50808356-58473088 passed 2024-11-08 23:18:39,871 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 23:18:39,872 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-50808356-58473088, IP 33.182.204.67, Port 22 2024-11-08 23:18:40,031 - DEBUG - VM ctest-TestRoutersBasic-50808356-58473088 is ready for SSH connections 2024-11-08 23:18:40,031 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 23:18:40,031 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 33.182.204.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.29, gateway password: c0ntrail123 2024-11-08 23:18:40,031 - DEBUG - ping -s 56 -c 3 -W 1 33.182.204.67 2024-11-08 23:18:43,994 - DEBUG - PING 33.182.204.67 (33.182.204.67): 56 data bytes 64 bytes from 33.182.204.67: seq=0 ttl=62 time=4.156 ms 64 bytes from 33.182.204.67: seq=1 ttl=62 time=1.100 ms 64 bytes from 33.182.204.67: seq=2 ttl=62 time=0.804 ms --- 33.182.204.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.804/2.020/4.156 ms 2024-11-08 23:18:43,995 - INFO - Ping to IP 33.182.204.67 from VM ctest-TestRoutersBasic-50808356-55860357 passed 2024-11-08 23:18:43,995 - INFO - Deleting interface with subnet_id 2437f96f-d4dc-44f5-a684-1d44b55388ad, port_id None from router 37915a63-9ccb-4253-86cf-2b4237da18aa 2024-11-08 23:18:44,203 - INFO - Deleting VM ctest-TestRoutersBasic-50808356-58473088 2024-11-08 23:18:44,280 - INFO - Deleting VM ctest-TestRoutersBasic-50808356-55860357 2024-11-08 23:18:44,368 - INFO - Deleting VN ctest-ext_vn-94158083 2024-11-08 23:18:44,448 - DEBUG - VN 9ccea074-5f3b-48bc-a0a0-e843cc339e92 still in use: Unable to complete operation on network 9ccea074-5f3b-48bc-a0a0-e843cc339e92. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-696af561-1162-4fb0-9723-c7a840447d21'] 2024-11-08 23:18:44,449 - WARNING - Deleting VN ctest-ext_vn-94158083 failed..Will retry 2024-11-08 23:18:46,553 - DEBUG - Response for deleting network () 2024-11-08 23:18:46,553 - INFO - Deleting VN ctest-vn-31955890 2024-11-08 23:18:46,656 - DEBUG - Response for deleting network () 2024-11-08 23:18:46,908 - DEBUG - No XMPP flaps were noticed during the test
2024-11-08 23:18:46,908 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26]
2024-11-08 23:18:46,909 - INFO - -------------------------------------------------------------------------------- 2024-11-08 23:18:47,627 - INFO - Deleted project: ctest-TestRoutersBasic-50808356, ID : cd69b130-88f4-4ef8-ba23-edb3f5019094