2025-03-22 09:27:04,083 - INFO - Domain Default found not creating 2025-03-22 09:27:04,252 - INFO - Project ctest-TestRoutersBasic-97159196 not found, creating it 2025-03-22 09:27:04,770 - INFO - Created Project:ctest-TestRoutersBasic-97159196, ID : 8d122510-a36e-45eb-a599-ce6aa4d0e14c 2025-03-22 09:27:06,441 - INFO - ================================================================================ 2025-03-22 09:27:06,441 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-03-22 09:27:06,441 - 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-03-22 09:27:06,701 - DEBUG - Nothing to compare xmpp stats {'10.0.0.37': {'10.20.0.7': '0'}} with 2025-03-22 09:27:06,701 - INFO - Initial checks done. Running the testcase now 2025-03-22 09:27:06,701 - INFO - 2025-03-22 09:27:07,608 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-97159196 2025-03-22 09:27:07,709 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-97159196 2025-03-22 09:27:08,045 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-97159196', 'default']} 2025-03-22 09:27:08,392 - DEBUG - Response for create_network : {'network': {'id': '06fb6abc-4ba1-481d-9646-4efb71f34e51', 'name': 'ctest-vn-51688754', 'tenant_id': '8d122510a36e45eba599ce6aa4d0e14c', 'project_id': '8d122510a36e45eba599ce6aa4d0e14c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-97159196', 'ctest-vn-51688754'], 'port_security_enabled': True, 'description': ''}} 2025-03-22 09:27:08,587 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ed6b062f-85ae-4641-b5dc-602ef317db29', 'name': '', 'tenant_id': '8d122510a36e45eba599ce6aa4d0e14c', 'network_id': '06fb6abc-4ba1-481d-9646-4efb71f34e51', 'ip_version': 4, 'cidr': '111.66.29.128/26', 'allocation_pools': [{'start': '111.66.29.130', 'end': '111.66.29.190'}], 'gateway_ip': '111.66.29.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '111.66.29.130', 'tags': [], 'project_id': '8d122510a36e45eba599ce6aa4d0e14c'}} 2025-03-22 09:27:08,608 - INFO - Created VN ctest-vn-51688754 2025-03-22 09:27:08,661 - DEBUG - VN ctest-vn-51688754 UUID is 06fb6abc-4ba1-481d-9646-4efb71f34e51 2025-03-22 09:27:09,023 - DEBUG - Response for create_network : {'network': {'id': '85b31f3a-5bb7-4080-9238-ea05560b74b6', 'name': 'ctest-ext_vn-25513709', 'tenant_id': '8d122510a36e45eba599ce6aa4d0e14c', 'project_id': '8d122510a36e45eba599ce6aa4d0e14c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-97159196', 'ctest-ext_vn-25513709'], 'port_security_enabled': True, 'description': ''}} 2025-03-22 09:27:09,234 - DEBUG - Response for create_subnet : {'subnet': {'id': '85d60ba6-a2dd-4fad-9833-aa01b4d79e57', 'name': '', 'tenant_id': '8d122510a36e45eba599ce6aa4d0e14c', 'network_id': '85b31f3a-5bb7-4080-9238-ea05560b74b6', 'ip_version': 4, 'cidr': '137.212.37.0/26', 'allocation_pools': [{'start': '137.212.37.2', 'end': '137.212.37.62'}], 'gateway_ip': '137.212.37.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '137.212.37.2', 'tags': [], 'project_id': '8d122510a36e45eba599ce6aa4d0e14c'}} 2025-03-22 09:27:09,255 - INFO - Created VN ctest-ext_vn-25513709 2025-03-22 09:27:09,310 - DEBUG - VN ctest-ext_vn-25513709 UUID is 85b31f3a-5bb7-4080-9238-ea05560b74b6 2025-03-22 09:27:09,503 - DEBUG - Services list from nova: [, , ] 2025-03-22 09:27:10,649 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2936-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2936-1) 2025-03-22 09:27:11,952 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2936-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2936-1) 2025-03-22 09:27:12,031 - INFO - Setting gateway for router 19b3266b-71e6-4540-88f8-2d4eebe7ad98 to network 85b31f3a-5bb7-4080-9238-ea05560b74b6 2025-03-22 09:27:12,139 - INFO - Adding interface with subnet_id ed6b062f-85ae-4641-b5dc-602ef317db29, port_id None to router 19b3266b-71e6-4540-88f8-2d4eebe7ad98 2025-03-22 09:27:12,724 - INFO - Waiting for VM ctest-TestRoutersBasic-97159196-07944132 to be up.. 2025-03-22 09:27:12,951 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-22 09:27:18,055 - DEBUG - VM is in ACTIVE state now 2025-03-22 09:27:18,055 - INFO - VM name : ctest-TestRoutersBasic-97159196-07944132 2025-03-22 09:27:18,156 - DEBUG - VM ctest-TestRoutersBasic-97159196-07944132 ID is 6a5c684a-03a9-4c15-bb21-f7dbb4fbbd32 2025-03-22 09:27:18,180 - DEBUG - VM ctest-TestRoutersBasic-97159196-07944132 launched on Node cn-jenkins-deploy-platform-ansible-os-2936-1 2025-03-22 09:27:18,281 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine/6a5c684a-03a9-4c15-bb21-f7dbb4fbbd32 2025-03-22 09:27:18,631 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine/6a5c684a-03a9-4c15-bb21-f7dbb4fbbd32 2025-03-22 09:27:18,668 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine-interface/ec153800-ae83-4937-b565-44b7ae56c768 2025-03-22 09:27:21,955 - 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 1021ms') 2025-03-22 09:27:21,955 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-97159196-07944132 failed! 2025-03-22 09:27:22,013 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-97159196:ctest-vn-51688754 is 111.66.29.129 and allocation pool is NOT set 2025-03-22 09:27:24,073 - 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.45 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.845 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.845/2.647/4.449/1.802 ms') 2025-03-22 09:27:24,073 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-97159196-07944132 passed 2025-03-22 09:27:24,229 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-22 09:27:24,230 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-97159196-07944132, IP 111.66.29.131, Port 22 2025-03-22 09:27:24,385 - DEBUG - VM ctest-TestRoutersBasic-97159196-07944132 is ready for SSH connections 2025-03-22 09:27:24,385 - INFO - Waiting for VM ctest-TestRoutersBasic-97159196-27229647 to be up.. 2025-03-22 09:27:24,477 - DEBUG - VM is in ACTIVE state now 2025-03-22 09:27:24,477 - INFO - VM name : ctest-TestRoutersBasic-97159196-27229647 2025-03-22 09:27:24,561 - DEBUG - VM ctest-TestRoutersBasic-97159196-27229647 ID is da1c4acb-3504-41e5-8003-5dd09d2143ac 2025-03-22 09:27:24,561 - DEBUG - VM ctest-TestRoutersBasic-97159196-27229647 launched on Node cn-jenkins-deploy-platform-ansible-os-2936-1 2025-03-22 09:27:24,650 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine/da1c4acb-3504-41e5-8003-5dd09d2143ac 2025-03-22 09:27:24,660 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine-interface/d2ad4e98-05ab-4659-a63f-6af6ba0b998e 2025-03-22 09:27:25,910 - 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=4.91 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.988 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.988/2.948/4.908/1.960 ms') 2025-03-22 09:27:25,911 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-97159196-27229647 passed 2025-03-22 09:27:26,069 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-22 09:27:26,069 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-97159196-27229647, IP 137.212.37.3, Port 22 2025-03-22 09:27:26,228 - DEBUG - VM ctest-TestRoutersBasic-97159196-27229647 is ready for SSH connections 2025-03-22 09:27:26,229 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-22 09:27:26,229 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 137.212.37.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.37, gateway password: c0ntrail123 2025-03-22 09:27:26,229 - DEBUG - ping -s 56 -c 3 -W 1 137.212.37.3 2025-03-22 09:27:29,989 - DEBUG - PING 137.212.37.3 (137.212.37.3): 56 data bytes 64 bytes from 137.212.37.3: seq=0 ttl=62 time=4.741 ms 64 bytes from 137.212.37.3: seq=1 ttl=62 time=0.933 ms 64 bytes from 137.212.37.3: seq=2 ttl=62 time=0.931 ms --- 137.212.37.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.931/2.201/4.741 ms 2025-03-22 09:27:29,989 - INFO - Ping to IP 137.212.37.3 from VM ctest-TestRoutersBasic-97159196-07944132 passed 2025-03-22 09:27:29,989 - INFO - Deleting interface with subnet_id ed6b062f-85ae-4641-b5dc-602ef317db29, port_id None from router 19b3266b-71e6-4540-88f8-2d4eebe7ad98 2025-03-22 09:27:30,251 - INFO - Deleting VM ctest-TestRoutersBasic-97159196-27229647 2025-03-22 09:27:30,337 - INFO - Deleting VM ctest-TestRoutersBasic-97159196-07944132 2025-03-22 09:27:30,448 - INFO - Deleting VN ctest-ext_vn-25513709 2025-03-22 09:27:30,559 - DEBUG - VN 85b31f3a-5bb7-4080-9238-ea05560b74b6 still in use: Unable to complete operation on network 85b31f3a-5bb7-4080-9238-ea05560b74b6. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-91b816bc-dff0-4463-b101-a78e90e66d4e'] 2025-03-22 09:27:30,559 - WARNING - Deleting VN ctest-ext_vn-25513709 failed..Will retry 2025-03-22 09:27:32,687 - DEBUG - Response for deleting network () 2025-03-22 09:27:32,687 - INFO - Deleting VN ctest-vn-51688754 2025-03-22 09:27:32,824 - DEBUG - Response for deleting network () 2025-03-22 09:27:33,093 - DEBUG - No XMPP flaps were noticed during the test 2025-03-22 09:27:33,093 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:27] 2025-03-22 09:27:33,093 - INFO - -------------------------------------------------------------------------------- 2025-03-22 09:27:33,836 - INFO - Deleted project: ctest-TestRoutersBasic-97159196, ID : 8d122510-a36e-45eb-a599-ce6aa4d0e14c