2025-01-04 18:50:55,870 - INFO - Domain Default found not creating 2025-01-04 18:50:56,019 - INFO - Project ctest-TestRoutersBasic-12984164 not found, creating it 2025-01-04 18:50:56,493 - INFO - Created Project:ctest-TestRoutersBasic-12984164, ID : e71e078c-f24d-45a6-8a5d-4d9221087e47 2025-01-04 18:50:58,060 - INFO - ================================================================================ 2025-01-04 18:50:58,060 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-01-04 18:50:58,060 - 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-04 18:50:58,320 - DEBUG - Nothing to compare xmpp stats {'10.0.0.44': {'10.20.0.14': '0'}} with 2025-01-04 18:50:58,320 - INFO - Initial checks done. Running the testcase now 2025-01-04 18:50:58,320 - INFO - 2025-01-04 18:50:59,025 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-12984164 2025-01-04 18:50:59,122 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-12984164 2025-01-04 18:50:59,454 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-12984164', 'default']} 2025-01-04 18:50:59,773 - DEBUG - Response for create_network : {'network': {'id': '8dff786c-04b8-452a-b4ca-d9d89c812cfc', 'name': 'ctest-vn-89467820', 'tenant_id': 'e71e078cf24d45a68a5d4d9221087e47', 'project_id': 'e71e078cf24d45a68a5d4d9221087e47', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-12984164', 'ctest-vn-89467820'], 'port_security_enabled': True, 'description': ''}} 2025-01-04 18:50:59,991 - DEBUG - Response for create_subnet : {'subnet': {'id': '8bd2ce61-95a3-49dc-8cef-16d32c0bf87f', 'name': '', 'tenant_id': 'e71e078cf24d45a68a5d4d9221087e47', 'network_id': '8dff786c-04b8-452a-b4ca-d9d89c812cfc', 'ip_version': 4, 'cidr': '151.238.178.0/26', 'allocation_pools': [{'start': '151.238.178.2', 'end': '151.238.178.62'}], 'gateway_ip': '151.238.178.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '151.238.178.2', 'tags': [], 'project_id': 'e71e078cf24d45a68a5d4d9221087e47'}} 2025-01-04 18:51:00,015 - INFO - Created VN ctest-vn-89467820 2025-01-04 18:51:00,074 - DEBUG - VN ctest-vn-89467820 UUID is 8dff786c-04b8-452a-b4ca-d9d89c812cfc 2025-01-04 18:51:00,396 - DEBUG - Response for create_network : {'network': {'id': 'd3753cf7-bdb8-4b66-b14a-1b9e32ea0133', 'name': 'ctest-ext_vn-39651557', 'tenant_id': 'e71e078cf24d45a68a5d4d9221087e47', 'project_id': 'e71e078cf24d45a68a5d4d9221087e47', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-12984164', 'ctest-ext_vn-39651557'], 'port_security_enabled': True, 'description': ''}} 2025-01-04 18:51:00,574 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f384aa7f-393d-4d67-85b8-2127660b2c36', 'name': '', 'tenant_id': 'e71e078cf24d45a68a5d4d9221087e47', 'network_id': 'd3753cf7-bdb8-4b66-b14a-1b9e32ea0133', 'ip_version': 4, 'cidr': '210.248.181.192/26', 'allocation_pools': [{'start': '210.248.181.194', 'end': '210.248.181.254'}], 'gateway_ip': '210.248.181.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '210.248.181.194', 'tags': [], 'project_id': 'e71e078cf24d45a68a5d4d9221087e47'}} 2025-01-04 18:51:00,600 - INFO - Created VN ctest-ext_vn-39651557 2025-01-04 18:51:00,654 - DEBUG - VN ctest-ext_vn-39651557 UUID is d3753cf7-bdb8-4b66-b14a-1b9e32ea0133 2025-01-04 18:51:00,838 - DEBUG - Services list from nova: [, , ] 2025-01-04 18:51:01,907 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2526-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2526-1) 2025-01-04 18:51:03,135 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2526-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2526-1) 2025-01-04 18:51:03,229 - INFO - Setting gateway for router e726f52f-ab1a-4a86-a81b-9b40fb7e25a4 to network d3753cf7-bdb8-4b66-b14a-1b9e32ea0133 2025-01-04 18:51:03,288 - INFO - Adding interface with subnet_id 8bd2ce61-95a3-49dc-8cef-16d32c0bf87f, port_id None to router e726f52f-ab1a-4a86-a81b-9b40fb7e25a4 2025-01-04 18:51:03,815 - INFO - Waiting for VM ctest-TestRoutersBasic-12984164-49963304 to be up.. 2025-01-04 18:51:04,085 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-04 18:51:09,175 - DEBUG - VM is in ACTIVE state now 2025-01-04 18:51:09,175 - INFO - VM name : ctest-TestRoutersBasic-12984164-49963304 2025-01-04 18:51:09,268 - DEBUG - VM ctest-TestRoutersBasic-12984164-49963304 ID is 5dfa97cb-789b-448b-8087-7f63d4cf3cf1 2025-01-04 18:51:09,290 - DEBUG - VM ctest-TestRoutersBasic-12984164-49963304 launched on Node cn-jenkins-deploy-platform-ansible-os-2526-1 2025-01-04 18:51:09,388 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine/5dfa97cb-789b-448b-8087-7f63d4cf3cf1 2025-01-04 18:51:09,683 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine/5dfa97cb-789b-448b-8087-7f63d4cf3cf1 2025-01-04 18:51:09,722 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine-interface/4d9d5534-06a0-4284-9f4e-15cd209ffcc0 2025-01-04 18:51:12,980 - 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 1022ms') 2025-01-04 18:51:12,980 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-12984164-49963304 failed! 2025-01-04 18:51:13,038 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-12984164:ctest-vn-89467820 is 151.238.178.1 and allocation pool is NOT set 2025-01-04 18:51:15,096 - 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.73 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.443 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 = 0.443/2.084/3.725/1.641 ms') 2025-01-04 18:51:15,096 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-12984164-49963304 passed 2025-01-04 18:51:15,246 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-04 18:51:15,246 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-12984164-49963304, IP 151.238.178.3, Port 22 2025-01-04 18:51:15,401 - DEBUG - VM ctest-TestRoutersBasic-12984164-49963304 is ready for SSH connections 2025-01-04 18:51:15,401 - INFO - Waiting for VM ctest-TestRoutersBasic-12984164-77075508 to be up.. 2025-01-04 18:51:15,485 - DEBUG - VM is in ACTIVE state now 2025-01-04 18:51:15,485 - INFO - VM name : ctest-TestRoutersBasic-12984164-77075508 2025-01-04 18:51:15,571 - DEBUG - VM ctest-TestRoutersBasic-12984164-77075508 ID is 5594733b-75d6-4271-8998-d312f6af6755 2025-01-04 18:51:15,571 - DEBUG - VM ctest-TestRoutersBasic-12984164-77075508 launched on Node cn-jenkins-deploy-platform-ansible-os-2526-1 2025-01-04 18:51:15,666 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine/5594733b-75d6-4271-8998-d312f6af6755 2025-01-04 18:51:15,676 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine-interface/48fd9083-5fb9-48f1-b541-ed3ea77e7ad1 2025-01-04 18:51:16,916 - 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=5.02 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.11 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 = 2.111/3.567/5.024/1.456 ms') 2025-01-04 18:51:16,917 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-12984164-77075508 passed 2025-01-04 18:51:17,070 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-04 18:51:17,070 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-12984164-77075508, IP 210.248.181.195, Port 22 2025-01-04 18:51:17,235 - DEBUG - VM ctest-TestRoutersBasic-12984164-77075508 is ready for SSH connections 2025-01-04 18:51:17,236 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-04 18:51:17,236 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 210.248.181.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.44, gateway password: c0ntrail123 2025-01-04 18:51:17,236 - DEBUG - ping -s 56 -c 3 -W 1 210.248.181.195 2025-01-04 18:51:21,318 - DEBUG - PING 210.248.181.195 (210.248.181.195): 56 data bytes 64 bytes from 210.248.181.195: seq=0 ttl=62 time=7.697 ms 64 bytes from 210.248.181.195: seq=1 ttl=62 time=0.994 ms 64 bytes from 210.248.181.195: seq=2 ttl=62 time=0.908 ms --- 210.248.181.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.908/3.199/7.697 ms 2025-01-04 18:51:21,318 - INFO - Ping to IP 210.248.181.195 from VM ctest-TestRoutersBasic-12984164-49963304 passed 2025-01-04 18:51:21,319 - INFO - Deleting interface with subnet_id 8bd2ce61-95a3-49dc-8cef-16d32c0bf87f, port_id None from router e726f52f-ab1a-4a86-a81b-9b40fb7e25a4 2025-01-04 18:51:21,523 - INFO - Deleting VM ctest-TestRoutersBasic-12984164-77075508 2025-01-04 18:51:21,594 - INFO - Deleting VM ctest-TestRoutersBasic-12984164-49963304 2025-01-04 18:51:21,672 - INFO - Deleting VN ctest-ext_vn-39651557 2025-01-04 18:51:21,738 - DEBUG - VN d3753cf7-bdb8-4b66-b14a-1b9e32ea0133 still in use: Unable to complete operation on network d3753cf7-bdb8-4b66-b14a-1b9e32ea0133. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-0d46d286-c585-4c24-968b-c5554cd0adaf'] 2025-01-04 18:51:21,738 - WARNING - Deleting VN ctest-ext_vn-39651557 failed..Will retry 2025-01-04 18:51:23,843 - DEBUG - Response for deleting network () 2025-01-04 18:51:23,843 - INFO - Deleting VN ctest-vn-89467820 2025-01-04 18:51:23,952 - DEBUG - Response for deleting network () 2025-01-04 18:51:24,217 - DEBUG - No XMPP flaps were noticed during the test 2025-01-04 18:51:24,217 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2025-01-04 18:51:24,217 - INFO - -------------------------------------------------------------------------------- 2025-01-04 18:51:24,922 - INFO - Deleted project: ctest-TestRoutersBasic-12984164, ID : e71e078c-f24d-45a6-8a5d-4d9221087e47