2025-01-08 12:13:13,168 - INFO - Domain Default found not creating 2025-01-08 12:13:13,312 - INFO - Project ctest-TestRoutersBasic-43311879 not found, creating it 2025-01-08 12:13:13,778 - INFO - Created Project:ctest-TestRoutersBasic-43311879, ID : 30352d3c-5c78-4a59-812f-ba0a1a6f897e 2025-01-08 12:13:15,253 - INFO - ================================================================================ 2025-01-08 12:13:15,253 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-01-08 12:13:15,253 - 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 2025-01-08 12:13:15,505 - DEBUG - Nothing to compare xmpp stats {'10.0.0.45': {'10.20.0.10': '0'}} with 2025-01-08 12:13:15,505 - INFO - Initial checks done. Running the testcase now 2025-01-08 12:13:15,505 - INFO - 2025-01-08 12:13:16,195 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-43311879 2025-01-08 12:13:16,292 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-43311879 2025-01-08 12:13:16,632 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-43311879', 'default']} 2025-01-08 12:13:16,941 - DEBUG - Response for create_network : {'network': {'id': '9cc25790-84f1-41ff-99da-ff3a850f74b2', 'name': 'ctest-vn-20901254', 'tenant_id': '30352d3c5c784a59812fba0a1a6f897e', 'project_id': '30352d3c5c784a59812fba0a1a6f897e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-43311879', 'ctest-vn-20901254'], 'port_security_enabled': True, 'description': ''}} 2025-01-08 12:13:17,115 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fb418a4d-6353-4366-9ebc-64d4e45a2779', 'name': '', 'tenant_id': '30352d3c5c784a59812fba0a1a6f897e', 'network_id': '9cc25790-84f1-41ff-99da-ff3a850f74b2', 'ip_version': 4, 'cidr': '170.229.112.128/26', 'allocation_pools': [{'start': '170.229.112.130', 'end': '170.229.112.190'}], 'gateway_ip': '170.229.112.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '170.229.112.130', 'tags': [], 'project_id': '30352d3c5c784a59812fba0a1a6f897e'}} 2025-01-08 12:13:17,132 - INFO - Created VN ctest-vn-20901254 2025-01-08 12:13:17,184 - DEBUG - VN ctest-vn-20901254 UUID is 9cc25790-84f1-41ff-99da-ff3a850f74b2 2025-01-08 12:13:17,546 - DEBUG - Response for create_network : {'network': {'id': '47de7b9c-133b-4fb8-9ee3-4e880a735ce4', 'name': 'ctest-ext_vn-78656724', 'tenant_id': '30352d3c5c784a59812fba0a1a6f897e', 'project_id': '30352d3c5c784a59812fba0a1a6f897e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-43311879', 'ctest-ext_vn-78656724'], 'port_security_enabled': True, 'description': ''}} 2025-01-08 12:13:17,757 - DEBUG - Response for create_subnet : {'subnet': {'id': '4a33fe1d-2a5a-4ef3-a551-f03cd5332253', 'name': '', 'tenant_id': '30352d3c5c784a59812fba0a1a6f897e', 'network_id': '47de7b9c-133b-4fb8-9ee3-4e880a735ce4', 'ip_version': 4, 'cidr': '209.33.228.128/26', 'allocation_pools': [{'start': '209.33.228.130', 'end': '209.33.228.190'}], 'gateway_ip': '209.33.228.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '209.33.228.130', 'tags': [], 'project_id': '30352d3c5c784a59812fba0a1a6f897e'}} 2025-01-08 12:13:17,776 - INFO - Created VN ctest-ext_vn-78656724 2025-01-08 12:13:17,836 - DEBUG - VN ctest-ext_vn-78656724 UUID is 47de7b9c-133b-4fb8-9ee3-4e880a735ce4 2025-01-08 12:13:18,014 - DEBUG - Services list from nova: [, , ] 2025-01-08 12:13:19,084 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2561-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2561-1) 2025-01-08 12:13:20,259 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2561-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2561-1) 2025-01-08 12:13:20,343 - INFO - Setting gateway for router 930eb643-a341-4647-aa3a-a5a56a85d31c to network 47de7b9c-133b-4fb8-9ee3-4e880a735ce4 2025-01-08 12:13:20,400 - INFO - Adding interface with subnet_id fb418a4d-6353-4366-9ebc-64d4e45a2779, port_id None to router 930eb643-a341-4647-aa3a-a5a56a85d31c 2025-01-08 12:13:20,859 - INFO - Waiting for VM ctest-TestRoutersBasic-43311879-28854954 to be up.. 2025-01-08 12:13:21,052 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-08 12:13:26,124 - DEBUG - VM is in ACTIVE state now 2025-01-08 12:13:26,124 - INFO - VM name : ctest-TestRoutersBasic-43311879-28854954 2025-01-08 12:13:26,209 - DEBUG - VM ctest-TestRoutersBasic-43311879-28854954 ID is f87b6cb6-0406-4045-b46a-b16e14662094 2025-01-08 12:13:26,228 - DEBUG - VM ctest-TestRoutersBasic-43311879-28854954 launched on Node cn-jenkins-deploy-platform-ansible-os-2561-1 2025-01-08 12:13:26,307 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine/f87b6cb6-0406-4045-b46a-b16e14662094 2025-01-08 12:13:26,604 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine/f87b6cb6-0406-4045-b46a-b16e14662094 2025-01-08 12:13:26,641 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine-interface/96d0e0e5-6b19-4753-b2e1-ec0f5511a3ed 2025-01-08 12:13:29,922 - 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 1030ms') 2025-01-08 12:13:29,922 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-43311879-28854954 failed! 2025-01-08 12:13:29,976 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-43311879:ctest-vn-20901254 is 170.229.112.129 and allocation pool is NOT set 2025-01-08 12:13:32,035 - 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.01 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.366 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.366/1.685/3.005/1.319 ms') 2025-01-08 12:13:32,035 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-43311879-28854954 passed 2025-01-08 12:13:32,184 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-08 12:13:32,184 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-43311879-28854954, IP 170.229.112.131, Port 22 2025-01-08 12:13:32,344 - DEBUG - VM ctest-TestRoutersBasic-43311879-28854954 is ready for SSH connections 2025-01-08 12:13:32,344 - INFO - Waiting for VM ctest-TestRoutersBasic-43311879-59677998 to be up.. 2025-01-08 12:13:32,420 - DEBUG - VM is in ACTIVE state now 2025-01-08 12:13:32,420 - INFO - VM name : ctest-TestRoutersBasic-43311879-59677998 2025-01-08 12:13:32,497 - DEBUG - VM ctest-TestRoutersBasic-43311879-59677998 ID is e4e22eba-74ad-463f-a0ea-581095cd848d 2025-01-08 12:13:32,497 - DEBUG - VM ctest-TestRoutersBasic-43311879-59677998 launched on Node cn-jenkins-deploy-platform-ansible-os-2561-1 2025-01-08 12:13:32,568 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine/e4e22eba-74ad-463f-a0ea-581095cd848d 2025-01-08 12:13:32,576 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine-interface/fb53d3b5-98ce-4030-b3de-7501b61c4299 2025-01-08 12:13:33,816 - 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=3.14 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.412 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.412/1.774/3.136/1.362 ms') 2025-01-08 12:13:33,816 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-43311879-59677998 passed 2025-01-08 12:13:33,964 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-08 12:13:33,964 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-43311879-59677998, IP 209.33.228.131, Port 22 2025-01-08 12:13:34,124 - DEBUG - VM ctest-TestRoutersBasic-43311879-59677998 is ready for SSH connections 2025-01-08 12:13:34,124 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-08 12:13:34,124 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 209.33.228.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.45, gateway password: c0ntrail123 2025-01-08 12:13:34,124 - DEBUG - ping -s 56 -c 3 -W 1 209.33.228.131 2025-01-08 12:13:38,166 - DEBUG - PING 209.33.228.131 (209.33.228.131): 56 data bytes 64 bytes from 209.33.228.131: seq=0 ttl=62 time=5.226 ms 64 bytes from 209.33.228.131: seq=1 ttl=62 time=0.797 ms 64 bytes from 209.33.228.131: seq=2 ttl=62 time=0.751 ms --- 209.33.228.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.751/2.258/5.226 ms 2025-01-08 12:13:38,166 - INFO - Ping to IP 209.33.228.131 from VM ctest-TestRoutersBasic-43311879-28854954 passed 2025-01-08 12:13:38,166 - INFO - Deleting interface with subnet_id fb418a4d-6353-4366-9ebc-64d4e45a2779, port_id None from router 930eb643-a341-4647-aa3a-a5a56a85d31c 2025-01-08 12:13:38,393 - INFO - Deleting VM ctest-TestRoutersBasic-43311879-59677998 2025-01-08 12:13:38,463 - INFO - Deleting VM ctest-TestRoutersBasic-43311879-28854954 2025-01-08 12:13:38,533 - INFO - Deleting VN ctest-ext_vn-78656724 2025-01-08 12:13:38,621 - DEBUG - VN 47de7b9c-133b-4fb8-9ee3-4e880a735ce4 still in use: Unable to complete operation on network 47de7b9c-133b-4fb8-9ee3-4e880a735ce4. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-5e3e55a8-5a45-4ef7-94ed-7c62e668e512'] 2025-01-08 12:13:38,622 - WARNING - Deleting VN ctest-ext_vn-78656724 failed..Will retry 2025-01-08 12:13:40,738 - DEBUG - Response for deleting network () 2025-01-08 12:13:40,739 - INFO - Deleting VN ctest-vn-20901254 2025-01-08 12:13:40,945 - DEBUG - Response for deleting network () 2025-01-08 12:13:41,197 - DEBUG - No XMPP flaps were noticed during the test 2025-01-08 12:13:41,197 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2025-01-08 12:13:41,197 - INFO - -------------------------------------------------------------------------------- 2025-01-08 12:13:41,854 - INFO - Deleted project: ctest-TestRoutersBasic-43311879, ID : 30352d3c-5c78-4a59-812f-ba0a1a6f897e