2025-01-12 08:39:47,102 - INFO - Domain Default found not creating 2025-01-12 08:39:47,250 - INFO - Project ctest-TestRoutersBasic-50742074 not found, creating it 2025-01-12 08:39:47,732 - INFO - Created Project:ctest-TestRoutersBasic-50742074, ID : 1c10b13c-4b69-4b15-921d-7880bf85ba69 2025-01-12 08:39:49,189 - INFO - ================================================================================ 2025-01-12 08:39:49,189 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-01-12 08:39:49,189 - 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-12 08:39:49,457 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.20.0.12': '0'}} with 2025-01-12 08:39:49,457 - INFO - Initial checks done. Running the testcase now 2025-01-12 08:39:49,457 - INFO - 2025-01-12 08:39:50,194 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-50742074 2025-01-12 08:39:50,295 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-50742074 2025-01-12 08:39:50,635 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-50742074', 'default']} 2025-01-12 08:39:50,962 - DEBUG - Response for create_network : {'network': {'id': '8ea02254-4cf3-41b7-b8bd-1eaa82891e1f', 'name': 'ctest-vn-31096033', 'tenant_id': '1c10b13c4b694b15921d7880bf85ba69', 'project_id': '1c10b13c4b694b15921d7880bf85ba69', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-50742074', 'ctest-vn-31096033'], 'port_security_enabled': True, 'description': ''}} 2025-01-12 08:39:51,145 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a45f5e30-6c96-4efc-af15-bc65e7095a46', 'name': '', 'tenant_id': '1c10b13c4b694b15921d7880bf85ba69', 'network_id': '8ea02254-4cf3-41b7-b8bd-1eaa82891e1f', 'ip_version': 4, 'cidr': '170.31.48.128/26', 'allocation_pools': [{'start': '170.31.48.130', 'end': '170.31.48.190'}], 'gateway_ip': '170.31.48.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '170.31.48.130', 'tags': [], 'project_id': '1c10b13c4b694b15921d7880bf85ba69'}} 2025-01-12 08:39:51,165 - INFO - Created VN ctest-vn-31096033 2025-01-12 08:39:51,219 - DEBUG - VN ctest-vn-31096033 UUID is 8ea02254-4cf3-41b7-b8bd-1eaa82891e1f 2025-01-12 08:39:51,576 - DEBUG - Response for create_network : {'network': {'id': '27b8b24e-6883-4f15-ab59-3610e99b49d6', 'name': 'ctest-ext_vn-36410940', 'tenant_id': '1c10b13c4b694b15921d7880bf85ba69', 'project_id': '1c10b13c4b694b15921d7880bf85ba69', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-50742074', 'ctest-ext_vn-36410940'], 'port_security_enabled': True, 'description': ''}} 2025-01-12 08:39:51,783 - DEBUG - Response for create_subnet : {'subnet': {'id': '6f55ed59-c7a6-4386-8038-d1dd2dca1860', 'name': '', 'tenant_id': '1c10b13c4b694b15921d7880bf85ba69', 'network_id': '27b8b24e-6883-4f15-ab59-3610e99b49d6', 'ip_version': 4, 'cidr': '2.106.68.192/26', 'allocation_pools': [{'start': '2.106.68.194', 'end': '2.106.68.254'}], 'gateway_ip': '2.106.68.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2.106.68.194', 'tags': [], 'project_id': '1c10b13c4b694b15921d7880bf85ba69'}} 2025-01-12 08:39:51,805 - INFO - Created VN ctest-ext_vn-36410940 2025-01-12 08:39:51,859 - DEBUG - VN ctest-ext_vn-36410940 UUID is 27b8b24e-6883-4f15-ab59-3610e99b49d6 2025-01-12 08:39:52,051 - DEBUG - Services list from nova: [, , ] 2025-01-12 08:39:53,096 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2602-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2602-1) 2025-01-12 08:39:54,259 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2602-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2602-1) 2025-01-12 08:39:54,361 - INFO - Setting gateway for router 760ad6da-92b5-42f4-9a38-c1c75a5a4620 to network 27b8b24e-6883-4f15-ab59-3610e99b49d6 2025-01-12 08:39:54,426 - INFO - Adding interface with subnet_id a45f5e30-6c96-4efc-af15-bc65e7095a46, port_id None to router 760ad6da-92b5-42f4-9a38-c1c75a5a4620 2025-01-12 08:39:54,753 - INFO - Waiting for VM ctest-TestRoutersBasic-50742074-02867772 to be up.. 2025-01-12 08:39:54,896 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-12 08:39:59,983 - DEBUG - VM is in ACTIVE state now 2025-01-12 08:39:59,984 - INFO - VM name : ctest-TestRoutersBasic-50742074-02867772 2025-01-12 08:40:00,076 - DEBUG - VM ctest-TestRoutersBasic-50742074-02867772 ID is de01d849-ae88-45b3-996e-524395668a73 2025-01-12 08:40:00,098 - DEBUG - VM ctest-TestRoutersBasic-50742074-02867772 launched on Node cn-jenkins-deploy-platform-ansible-os-2602-1 2025-01-12 08:40:00,187 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/de01d849-ae88-45b3-996e-524395668a73 2025-01-12 08:40:00,489 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/de01d849-ae88-45b3-996e-524395668a73 2025-01-12 08:40:00,533 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine-interface/30812a0a-5989-45f1-801a-bd43509ddb3d 2025-01-12 08:40:03,804 - 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 1025ms') 2025-01-12 08:40:03,804 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-50742074-02867772 failed! 2025-01-12 08:40:03,863 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-50742074:ctest-vn-31096033 is 170.31.48.129 and allocation pool is NOT set 2025-01-12 08:40:05,928 - 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=4.87 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.491 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.491/2.679/4.868/2.188 ms') 2025-01-12 08:40:05,928 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-50742074-02867772 passed 2025-01-12 08:40:06,039 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-12 08:40:06,039 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-50742074-02867772, IP 170.31.48.131, Port 22 2025-01-12 08:40:06,218 - DEBUG - VM ctest-TestRoutersBasic-50742074-02867772 is ready for SSH connections 2025-01-12 08:40:06,218 - INFO - Waiting for VM ctest-TestRoutersBasic-50742074-48845858 to be up.. 2025-01-12 08:40:06,316 - DEBUG - VM is in ACTIVE state now 2025-01-12 08:40:06,316 - INFO - VM name : ctest-TestRoutersBasic-50742074-48845858 2025-01-12 08:40:06,409 - DEBUG - VM ctest-TestRoutersBasic-50742074-48845858 ID is 8537a816-5c8b-47e3-bc26-b4da173187c2 2025-01-12 08:40:06,409 - DEBUG - VM ctest-TestRoutersBasic-50742074-48845858 launched on Node cn-jenkins-deploy-platform-ansible-os-2602-1 2025-01-12 08:40:06,499 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/8537a816-5c8b-47e3-bc26-b4da173187c2 2025-01-12 08:40:06,509 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine-interface/e9b97398-623d-4bbe-aff5-e0f31e756101 2025-01-12 08:40:07,758 - 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.18 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.696 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.696/1.937/3.178/1.241 ms') 2025-01-12 08:40:07,758 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-50742074-48845858 passed 2025-01-12 08:40:07,915 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-12 08:40:07,915 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-50742074-48845858, IP 2.106.68.195, Port 22 2025-01-12 08:40:08,078 - DEBUG - VM ctest-TestRoutersBasic-50742074-48845858 is ready for SSH connections 2025-01-12 08:40:08,078 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-12 08:40:08,079 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 2.106.68.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.17, gateway password: c0ntrail123 2025-01-12 08:40:08,079 - DEBUG - ping -s 56 -c 3 -W 1 2.106.68.195 2025-01-12 08:40:12,149 - DEBUG - PING 2.106.68.195 (2.106.68.195): 56 data bytes 64 bytes from 2.106.68.195: seq=0 ttl=62 time=11.138 ms 64 bytes from 2.106.68.195: seq=1 ttl=62 time=1.111 ms 64 bytes from 2.106.68.195: seq=2 ttl=62 time=1.967 ms --- 2.106.68.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.111/4.738/11.138 ms 2025-01-12 08:40:12,149 - INFO - Ping to IP 2.106.68.195 from VM ctest-TestRoutersBasic-50742074-02867772 passed 2025-01-12 08:40:12,149 - INFO - Deleting interface with subnet_id a45f5e30-6c96-4efc-af15-bc65e7095a46, port_id None from router 760ad6da-92b5-42f4-9a38-c1c75a5a4620 2025-01-12 08:40:12,379 - INFO - Deleting VM ctest-TestRoutersBasic-50742074-48845858 2025-01-12 08:40:12,450 - INFO - Deleting VM ctest-TestRoutersBasic-50742074-02867772 2025-01-12 08:40:12,548 - INFO - Deleting VN ctest-ext_vn-36410940 2025-01-12 08:40:12,620 - DEBUG - VN 27b8b24e-6883-4f15-ab59-3610e99b49d6 still in use: Unable to complete operation on network 27b8b24e-6883-4f15-ab59-3610e99b49d6. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-8da94e9a-8a16-44cf-aa29-6768c0917b17'] 2025-01-12 08:40:12,621 - WARNING - Deleting VN ctest-ext_vn-36410940 failed..Will retry 2025-01-12 08:40:14,732 - DEBUG - Response for deleting network () 2025-01-12 08:40:14,732 - INFO - Deleting VN ctest-vn-31096033 2025-01-12 08:40:14,844 - DEBUG - Response for deleting network () 2025-01-12 08:40:15,101 - DEBUG - No XMPP flaps were noticed during the test 2025-01-12 08:40:15,102 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2025-01-12 08:40:15,102 - INFO - -------------------------------------------------------------------------------- 2025-01-12 08:40:15,830 - INFO - Deleted project: ctest-TestRoutersBasic-50742074, ID : 1c10b13c-4b69-4b15-921d-7880bf85ba69