2024-11-10 21:58:35,718 - INFO - Domain Default found not creating 2024-11-10 21:58:35,906 - INFO - Project ctest-TestRoutersBasic-84026524 not found, creating it 2024-11-10 21:58:36,430 - INFO - Created Project:ctest-TestRoutersBasic-84026524, ID : 453bf083-383e-4e76-97f0-7eee5f346177 2024-11-10 21:58:38,036 - INFO - ================================================================================ 2024-11-10 21:58:38,036 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-11-10 21:58:38,036 - 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 21:58:38,307 - DEBUG - Nothing to compare xmpp stats {'10.0.0.47': {'10.20.0.5': '0'}} with 2024-11-10 21:58:38,307 - INFO - Initial checks done. Running the testcase now 2024-11-10 21:58:38,307 - INFO - 2024-11-10 21:58:39,062 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-84026524 2024-11-10 21:58:39,162 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-84026524 2024-11-10 21:58:39,502 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-84026524', 'default']} 2024-11-10 21:58:39,837 - DEBUG - Response for create_network : {'network': {'id': '84bd1c77-e136-447f-8786-3a6347a8d9a0', 'name': 'ctest-vn-05660022', 'tenant_id': '453bf083383e4e7697f07eee5f346177', 'project_id': '453bf083383e4e7697f07eee5f346177', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-84026524', 'ctest-vn-05660022'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 21:58:40,079 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ff9fd48f-5a30-46e3-b8df-7aeae8c0349d', 'name': '', 'tenant_id': '453bf083383e4e7697f07eee5f346177', 'network_id': '84bd1c77-e136-447f-8786-3a6347a8d9a0', 'ip_version': 4, 'cidr': '148.219.112.0/26', 'allocation_pools': [{'start': '148.219.112.2', 'end': '148.219.112.62'}], 'gateway_ip': '148.219.112.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '148.219.112.2', 'tags': [], 'project_id': '453bf083383e4e7697f07eee5f346177'}} 2024-11-10 21:58:40,098 - INFO - Created VN ctest-vn-05660022 2024-11-10 21:58:40,154 - DEBUG - VN ctest-vn-05660022 UUID is 84bd1c77-e136-447f-8786-3a6347a8d9a0 2024-11-10 21:58:40,509 - DEBUG - Response for create_network : {'network': {'id': '8daa4a36-a7f2-4d8f-ba73-8d48a28e9b30', 'name': 'ctest-ext_vn-42265670', 'tenant_id': '453bf083383e4e7697f07eee5f346177', 'project_id': '453bf083383e4e7697f07eee5f346177', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-84026524', 'ctest-ext_vn-42265670'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 21:58:40,700 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ed5d995d-116d-4740-88bb-569382938954', 'name': '', 'tenant_id': '453bf083383e4e7697f07eee5f346177', 'network_id': '8daa4a36-a7f2-4d8f-ba73-8d48a28e9b30', 'ip_version': 4, 'cidr': '2.82.7.128/26', 'allocation_pools': [{'start': '2.82.7.130', 'end': '2.82.7.190'}], 'gateway_ip': '2.82.7.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2.82.7.130', 'tags': [], 'project_id': '453bf083383e4e7697f07eee5f346177'}} 2024-11-10 21:58:40,721 - INFO - Created VN ctest-ext_vn-42265670 2024-11-10 21:58:40,778 - DEBUG - VN ctest-ext_vn-42265670 UUID is 8daa4a36-a7f2-4d8f-ba73-8d48a28e9b30 2024-11-10 21:58:40,971 - DEBUG - Services list from nova: [, , ] 2024-11-10 21:58:42,090 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2266-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2266-1) 2024-11-10 21:58:43,322 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2266-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2266-1) 2024-11-10 21:58:43,416 - INFO - Setting gateway for router 94ab159f-ff10-4158-9a52-3f6dae4f5f02 to network 8daa4a36-a7f2-4d8f-ba73-8d48a28e9b30 2024-11-10 21:58:43,490 - INFO - Adding interface with subnet_id ff9fd48f-5a30-46e3-b8df-7aeae8c0349d, port_id None to router 94ab159f-ff10-4158-9a52-3f6dae4f5f02 2024-11-10 21:58:43,934 - INFO - Waiting for VM ctest-TestRoutersBasic-84026524-72609995 to be up.. 2024-11-10 21:58:44,115 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-10 21:58:49,198 - DEBUG - VM is in ACTIVE state now 2024-11-10 21:58:49,198 - INFO - VM name : ctest-TestRoutersBasic-84026524-72609995 2024-11-10 21:58:49,280 - DEBUG - VM ctest-TestRoutersBasic-84026524-72609995 ID is e81ce3c5-3e0f-4e19-ba33-9b7cf5d4b0a4 2024-11-10 21:58:49,301 - DEBUG - VM ctest-TestRoutersBasic-84026524-72609995 launched on Node cn-jenkins-deploy-platform-ansible-os-2266-1 2024-11-10 21:58:49,400 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine/e81ce3c5-3e0f-4e19-ba33-9b7cf5d4b0a4 2024-11-10 21:58:49,708 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine/e81ce3c5-3e0f-4e19-ba33-9b7cf5d4b0a4 2024-11-10 21:58:49,745 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine-interface/3eeb12cc-5e92-45e3-8a38-5b7e09784d92 2024-11-10 21:58:53,022 - 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 1019ms') 2024-11-10 21:58:53,022 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-84026524-72609995 failed! 2024-11-10 21:58:53,095 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-84026524:ctest-vn-05660022 is 148.219.112.1 and allocation pool is NOT set 2024-11-10 21:58:55,151 - 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.93 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.376 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.376/1.654/2.932/1.278 ms') 2024-11-10 21:58:55,151 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-84026524-72609995 passed 2024-11-10 21:58:55,310 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 21:58:55,310 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-84026524-72609995, IP 148.219.112.3, Port 22 2024-11-10 21:58:55,470 - DEBUG - VM ctest-TestRoutersBasic-84026524-72609995 is ready for SSH connections 2024-11-10 21:58:55,470 - INFO - Waiting for VM ctest-TestRoutersBasic-84026524-07205168 to be up.. 2024-11-10 21:58:55,557 - DEBUG - VM is in ACTIVE state now 2024-11-10 21:58:55,557 - INFO - VM name : ctest-TestRoutersBasic-84026524-07205168 2024-11-10 21:58:55,645 - DEBUG - VM ctest-TestRoutersBasic-84026524-07205168 ID is 2a96c8c5-5e04-4dfc-b39c-0cb7ae54430a 2024-11-10 21:58:55,645 - DEBUG - VM ctest-TestRoutersBasic-84026524-07205168 launched on Node cn-jenkins-deploy-platform-ansible-os-2266-1 2024-11-10 21:58:55,730 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine/2a96c8c5-5e04-4dfc-b39c-0cb7ae54430a 2024-11-10 21:58:55,741 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine-interface/54d26806-c89c-4231-be57-fe8d319b72d8 2024-11-10 21:58:56,996 - 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.99 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.428 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 = 0.428/1.706/2.985/1.278 ms') 2024-11-10 21:58:56,996 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-84026524-07205168 passed 2024-11-10 21:58:57,154 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 21:58:57,154 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-84026524-07205168, IP 2.82.7.131, Port 22 2024-11-10 21:58:57,310 - DEBUG - VM ctest-TestRoutersBasic-84026524-07205168 is ready for SSH connections 2024-11-10 21:58:57,310 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 21:58:57,310 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 2.82.7.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.47, gateway password: c0ntrail123 2024-11-10 21:58:57,310 - DEBUG - ping -s 56 -c 3 -W 1 2.82.7.131 2024-11-10 21:59:01,351 - DEBUG - PING 2.82.7.131 (2.82.7.131): 56 data bytes 64 bytes from 2.82.7.131: seq=0 ttl=62 time=6.494 ms 64 bytes from 2.82.7.131: seq=1 ttl=62 time=0.931 ms 64 bytes from 2.82.7.131: seq=2 ttl=62 time=1.253 ms --- 2.82.7.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.931/2.892/6.494 ms 2024-11-10 21:59:01,351 - INFO - Ping to IP 2.82.7.131 from VM ctest-TestRoutersBasic-84026524-72609995 passed 2024-11-10 21:59:01,351 - INFO - Deleting interface with subnet_id ff9fd48f-5a30-46e3-b8df-7aeae8c0349d, port_id None from router 94ab159f-ff10-4158-9a52-3f6dae4f5f02 2024-11-10 21:59:01,617 - INFO - Deleting VM ctest-TestRoutersBasic-84026524-07205168 2024-11-10 21:59:01,691 - INFO - Deleting VM ctest-TestRoutersBasic-84026524-72609995 2024-11-10 21:59:01,762 - INFO - Deleting VN ctest-ext_vn-42265670 2024-11-10 21:59:01,839 - DEBUG - VN 8daa4a36-a7f2-4d8f-ba73-8d48a28e9b30 still in use: Unable to complete operation on network 8daa4a36-a7f2-4d8f-ba73-8d48a28e9b30. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-184fb84c-3cdf-4181-b952-4fe466db9c09'] 2024-11-10 21:59:01,839 - WARNING - Deleting VN ctest-ext_vn-42265670 failed..Will retry 2024-11-10 21:59:03,966 - DEBUG - Response for deleting network () 2024-11-10 21:59:03,966 - INFO - Deleting VN ctest-vn-05660022 2024-11-10 21:59:04,120 - DEBUG - Response for deleting network () 2024-11-10 21:59:04,376 - DEBUG - No XMPP flaps were noticed during the test
2024-11-10 21:59:04,376 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26]
2024-11-10 21:59:04,376 - INFO - -------------------------------------------------------------------------------- 2024-11-10 21:59:05,080 - INFO - Deleted project: ctest-TestRoutersBasic-84026524, ID : 453bf083-383e-4e76-97f0-7eee5f346177