2025-01-20 02:18:56,295 - INFO - Domain Default found not creating 2025-01-20 02:18:56,669 - INFO - Project ctest-TestRoutersBasic-14108397 not found, creating it 2025-01-20 02:18:58,133 - INFO - Created Project:ctest-TestRoutersBasic-14108397, ID : 4b82850d-2578-4195-9cb9-0c76bb1800fb 2025-01-20 02:19:00,080 - INFO - ================================================================================ 2025-01-20 02:19:00,080 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-01-20 02:19:00,080 - 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-20 02:19:01,403 - WARNING - Test is running with cores: {'10.0.0.22': ['core.contrail-collec.1.cn-jenkins-deploy-platform-ansible-os-2650-2.1737337815'], '10.0.0.49': ['core.contrail-collec.1.cn-jenkins-deploy-platform-ansible-os-2650-3.1737337623', 'core.contrail-collec.1.cn-jenkins-deploy-platform-ansible-os-2650-3.1737337815']} 2025-01-20 02:19:01,424 - DEBUG - Nothing to compare xmpp stats {'10.0.0.45': {'10.20.0.18': '0', '10.20.0.7': '0'}, '10.0.0.56': {'10.20.0.18': '0', '10.20.0.11': '0'}} with 2025-01-20 02:19:01,424 - INFO - Initial checks done. Running the testcase now 2025-01-20 02:19:01,424 - INFO - 2025-01-20 02:19:02,281 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-14108397 2025-01-20 02:19:02,350 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-14108397 2025-01-20 02:19:02,704 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-14108397', 'default']} 2025-01-20 02:19:03,256 - DEBUG - Response for create_network : {'network': {'id': '4541424c-9c96-4c57-af67-23e58c4a63d6', 'name': 'ctest-vn-44164393', 'tenant_id': '4b82850d257841959cb90c76bb1800fb', 'project_id': '4b82850d257841959cb90c76bb1800fb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-14108397', 'ctest-vn-44164393'], 'port_security_enabled': True, 'description': ''}} 2025-01-20 02:19:03,604 - DEBUG - Response for create_subnet : {'subnet': {'id': '469e4556-27cd-405b-8fb1-afa34b18e5cb', 'name': '', 'tenant_id': '4b82850d257841959cb90c76bb1800fb', 'network_id': '4541424c-9c96-4c57-af67-23e58c4a63d6', 'ip_version': 4, 'cidr': '95.23.84.64/26', 'allocation_pools': [{'start': '95.23.84.66', 'end': '95.23.84.126'}], 'gateway_ip': '95.23.84.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '95.23.84.66', 'tags': [], 'project_id': '4b82850d257841959cb90c76bb1800fb'}} 2025-01-20 02:19:03,633 - INFO - Created VN ctest-vn-44164393 2025-01-20 02:19:03,649 - DEBUG - VN ctest-vn-44164393 UUID is 4541424c-9c96-4c57-af67-23e58c4a63d6 2025-01-20 02:19:04,206 - DEBUG - Response for create_network : {'network': {'id': '452ae93b-bc42-47b0-b5c5-9f201b83fff3', 'name': 'ctest-ext_vn-62634925', 'tenant_id': '4b82850d257841959cb90c76bb1800fb', 'project_id': '4b82850d257841959cb90c76bb1800fb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-14108397', 'ctest-ext_vn-62634925'], 'port_security_enabled': True, 'description': ''}} 2025-01-20 02:19:04,508 - DEBUG - Response for create_subnet : {'subnet': {'id': '55c5ed8e-77e5-4446-81df-993f6ba06ded', 'name': '', 'tenant_id': '4b82850d257841959cb90c76bb1800fb', 'network_id': '452ae93b-bc42-47b0-b5c5-9f201b83fff3', 'ip_version': 4, 'cidr': '131.214.230.64/26', 'allocation_pools': [{'start': '131.214.230.66', 'end': '131.214.230.126'}], 'gateway_ip': '131.214.230.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '131.214.230.66', 'tags': [], 'project_id': '4b82850d257841959cb90c76bb1800fb'}} 2025-01-20 02:19:04,565 - INFO - Created VN ctest-ext_vn-62634925 2025-01-20 02:19:04,585 - DEBUG - VN ctest-ext_vn-62634925 UUID is 452ae93b-bc42-47b0-b5c5-9f201b83fff3 2025-01-20 02:19:04,792 - DEBUG - Services list from nova: [, , , ] 2025-01-20 02:19:06,114 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-2650-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-2650-2) 2025-01-20 02:19:07,818 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-2650-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-2650-1) 2025-01-20 02:19:08,004 - INFO - Setting gateway for router fcf145fc-7448-4efe-be87-c90391a7b7bc to network 452ae93b-bc42-47b0-b5c5-9f201b83fff3 2025-01-20 02:19:08,143 - INFO - Adding interface with subnet_id 469e4556-27cd-405b-8fb1-afa34b18e5cb, port_id None to router fcf145fc-7448-4efe-be87-c90391a7b7bc 2025-01-20 02:19:08,912 - INFO - Waiting for VM ctest-TestRoutersBasic-14108397-66094011 to be up.. 2025-01-20 02:19:09,254 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-20 02:19:14,403 - DEBUG - VM is in ACTIVE state now 2025-01-20 02:19:14,404 - INFO - VM name : ctest-TestRoutersBasic-14108397-66094011 2025-01-20 02:19:14,524 - DEBUG - VM ctest-TestRoutersBasic-14108397-66094011 ID is b8633236-f17e-4eda-bdfc-b9362914289f 2025-01-20 02:19:14,575 - DEBUG - VM ctest-TestRoutersBasic-14108397-66094011 launched on Node an-jenkins-deploy-platform-ansible-os-2650-2 2025-01-20 02:19:14,854 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/b8633236-f17e-4eda-bdfc-b9362914289f 2025-01-20 02:19:15,164 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/b8633236-f17e-4eda-bdfc-b9362914289f 2025-01-20 02:19:15,222 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine-interface/12583078-c3b6-43ff-9176-d0db77540735 2025-01-20 02:19:18,468 - 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 1007ms') 2025-01-20 02:19:18,469 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-14108397-66094011 failed! 2025-01-20 02:19:18,492 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-14108397:ctest-vn-44164393 is 95.23.84.65 and allocation pool is NOT set 2025-01-20 02:19:20,557 - 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=8.71 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.43 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 3.425/6.065/8.706/2.640 ms') 2025-01-20 02:19:20,557 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-14108397-66094011 passed 2025-01-20 02:19:20,679 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-20 02:19:20,679 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-14108397-66094011, IP 95.23.84.67, Port 22 2025-01-20 02:19:20,859 - DEBUG - VM ctest-TestRoutersBasic-14108397-66094011 is ready for SSH connections 2025-01-20 02:19:20,860 - INFO - Waiting for VM ctest-TestRoutersBasic-14108397-46580659 to be up.. 2025-01-20 02:19:20,980 - DEBUG - VM is in ACTIVE state now 2025-01-20 02:19:20,980 - INFO - VM name : ctest-TestRoutersBasic-14108397-46580659 2025-01-20 02:19:21,112 - DEBUG - VM ctest-TestRoutersBasic-14108397-46580659 ID is 66ec1626-156a-4ebc-821d-500291614935 2025-01-20 02:19:21,112 - DEBUG - VM ctest-TestRoutersBasic-14108397-46580659 launched on Node an-jenkins-deploy-platform-ansible-os-2650-1 2025-01-20 02:19:21,319 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/66ec1626-156a-4ebc-821d-500291614935 2025-01-20 02:19:21,341 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine-interface/d5be54ca-c7d6-4c81-8981-f119e80d55a4 2025-01-20 02:19:22,597 - 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=6.13 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.32 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 2.319/4.225/6.131/1.906 ms') 2025-01-20 02:19:22,597 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-14108397-46580659 passed 2025-01-20 02:19:22,725 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-20 02:19:22,725 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-14108397-46580659, IP 131.214.230.67, Port 22 2025-01-20 02:19:22,794 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-01-20 02:19:22,900 - DEBUG - VM ctest-TestRoutersBasic-14108397-46580659 is NOT ready for SSH connections, VM status: ACTIVE 2025-01-20 02:19:27,902 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-20 02:19:27,902 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-14108397-46580659, IP 131.214.230.67, Port 22 2025-01-20 02:19:28,074 - DEBUG - VM ctest-TestRoutersBasic-14108397-46580659 is ready for SSH connections 2025-01-20 02:19:28,074 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-20 02:19:28,074 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 131.214.230.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.56, gateway password: c0ntrail123 2025-01-20 02:19:28,075 - DEBUG - ping -s 56 -c 3 -W 1 131.214.230.67 2025-01-20 02:19:31,860 - DEBUG - PING 131.214.230.67 (131.214.230.67): 56 data bytes 64 bytes from 131.214.230.67: seq=0 ttl=62 time=9.277 ms 64 bytes from 131.214.230.67: seq=1 ttl=62 time=1.494 ms 64 bytes from 131.214.230.67: seq=2 ttl=62 time=1.507 ms --- 131.214.230.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.494/4.092/9.277 ms 2025-01-20 02:19:31,860 - INFO - Ping to IP 131.214.230.67 from VM ctest-TestRoutersBasic-14108397-66094011 passed 2025-01-20 02:19:31,860 - INFO - Deleting interface with subnet_id 469e4556-27cd-405b-8fb1-afa34b18e5cb, port_id None from router fcf145fc-7448-4efe-be87-c90391a7b7bc 2025-01-20 02:19:32,427 - INFO - Deleting VM ctest-TestRoutersBasic-14108397-46580659 2025-01-20 02:19:32,588 - INFO - Deleting VM ctest-TestRoutersBasic-14108397-66094011 2025-01-20 02:19:32,764 - INFO - Deleting VN ctest-ext_vn-62634925 2025-01-20 02:19:32,911 - DEBUG - VN 452ae93b-bc42-47b0-b5c5-9f201b83fff3 still in use: Unable to complete operation on network 452ae93b-bc42-47b0-b5c5-9f201b83fff3. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-466ff4b7-64e2-40a2-b0b5-a167e0915672'] 2025-01-20 02:19:32,911 - WARNING - Deleting VN ctest-ext_vn-62634925 failed..Will retry 2025-01-20 02:19:35,159 - DEBUG - Response for deleting network () 2025-01-20 02:19:35,159 - INFO - Deleting VN ctest-vn-44164393 2025-01-20 02:19:35,397 - DEBUG - Response for deleting network () 2025-01-20 02:19:36,696 - DEBUG - No XMPP flaps were noticed during the test 2025-01-20 02:19:36,696 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:36] 2025-01-20 02:19:36,696 - INFO - -------------------------------------------------------------------------------- 2025-01-20 02:19:37,535 - INFO - Deleted project: ctest-TestRoutersBasic-14108397, ID : 4b82850d-2578-4195-9cb9-0c76bb1800fb