2025-04-14 11:01:54,818 - INFO - Domain Default found not creating 2025-04-14 11:01:54,996 - INFO - Project ctest-TestRoutersBasic-28919891 not found, creating it 2025-04-14 11:01:55,502 - INFO - Created Project:ctest-TestRoutersBasic-28919891, ID : 329d4ff3-6766-4926-8295-2c40a67ed698 2025-04-14 11:01:57,037 - INFO - ================================================================================ 2025-04-14 11:01:57,038 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-04-14 11:01:57,038 - 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-04-14 11:01:57,294 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-04-14 11:01:57,294 - INFO - Initial checks done. Running the testcase now 2025-04-14 11:01:57,294 - INFO - 2025-04-14 11:01:58,025 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-28919891 2025-04-14 11:01:58,127 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-28919891 2025-04-14 11:01:58,459 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-28919891', 'default']} 2025-04-14 11:01:58,810 - DEBUG - Response for create_network : {'network': {'id': '082db0a2-bf7e-4b3b-928d-16c67e2860dd', 'name': 'ctest-vn-11805287', 'tenant_id': '329d4ff36766492682952c40a67ed698', 'project_id': '329d4ff36766492682952c40a67ed698', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-28919891', 'ctest-vn-11805287'], 'port_security_enabled': True, 'description': ''}} 2025-04-14 11:01:59,029 - DEBUG - Response for create_subnet : {'subnet': {'id': '0559f8c5-9e5b-4fd2-ae6e-4f7b3d6afab5', 'name': '', 'tenant_id': '329d4ff36766492682952c40a67ed698', 'network_id': '082db0a2-bf7e-4b3b-928d-16c67e2860dd', 'ip_version': 4, 'cidr': '71.55.181.128/26', 'allocation_pools': [{'start': '71.55.181.130', 'end': '71.55.181.190'}], 'gateway_ip': '71.55.181.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '71.55.181.130', 'tags': [], 'project_id': '329d4ff36766492682952c40a67ed698'}} 2025-04-14 11:01:59,050 - INFO - Created VN ctest-vn-11805287 2025-04-14 11:01:59,103 - DEBUG - VN ctest-vn-11805287 UUID is 082db0a2-bf7e-4b3b-928d-16c67e2860dd 2025-04-14 11:01:59,463 - DEBUG - Response for create_network : {'network': {'id': 'd9a60f0b-c2b3-4a70-9cb5-46515c181767', 'name': 'ctest-ext_vn-98287476', 'tenant_id': '329d4ff36766492682952c40a67ed698', 'project_id': '329d4ff36766492682952c40a67ed698', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-28919891', 'ctest-ext_vn-98287476'], 'port_security_enabled': True, 'description': ''}} 2025-04-14 11:01:59,636 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b7c8bc72-5a55-444a-91f9-934e37fcf4a4', 'name': '', 'tenant_id': '329d4ff36766492682952c40a67ed698', 'network_id': 'd9a60f0b-c2b3-4a70-9cb5-46515c181767', 'ip_version': 4, 'cidr': '211.120.132.128/26', 'allocation_pools': [{'start': '211.120.132.130', 'end': '211.120.132.190'}], 'gateway_ip': '211.120.132.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '211.120.132.130', 'tags': [], 'project_id': '329d4ff36766492682952c40a67ed698'}} 2025-04-14 11:01:59,655 - INFO - Created VN ctest-ext_vn-98287476 2025-04-14 11:01:59,707 - DEBUG - VN ctest-ext_vn-98287476 UUID is d9a60f0b-c2b3-4a70-9cb5-46515c181767 2025-04-14 11:01:59,896 - DEBUG - Services list from nova: [, , ] 2025-04-14 11:02:00,963 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3090-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3090-1) 2025-04-14 11:02:02,175 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3090-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3090-1) 2025-04-14 11:02:02,271 - INFO - Setting gateway for router 3430ffbd-bf4e-4863-8095-b67adba8e4b0 to network d9a60f0b-c2b3-4a70-9cb5-46515c181767 2025-04-14 11:02:02,342 - INFO - Adding interface with subnet_id 0559f8c5-9e5b-4fd2-ae6e-4f7b3d6afab5, port_id None to router 3430ffbd-bf4e-4863-8095-b67adba8e4b0 2025-04-14 11:02:02,860 - INFO - Waiting for VM ctest-TestRoutersBasic-28919891-96405821 to be up.. 2025-04-14 11:02:03,073 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-14 11:02:08,174 - DEBUG - VM is in ACTIVE state now 2025-04-14 11:02:08,174 - INFO - VM name : ctest-TestRoutersBasic-28919891-96405821 2025-04-14 11:02:08,257 - DEBUG - VM ctest-TestRoutersBasic-28919891-96405821 ID is 677565aa-935c-4ab4-a423-5e8376d8a6fa 2025-04-14 11:02:08,277 - DEBUG - VM ctest-TestRoutersBasic-28919891-96405821 launched on Node cn-jenkins-deploy-platform-ansible-os-3090-1 2025-04-14 11:02:08,359 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/677565aa-935c-4ab4-a423-5e8376d8a6fa 2025-04-14 11:02:08,664 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/677565aa-935c-4ab4-a423-5e8376d8a6fa 2025-04-14 11:02:08,700 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/84b07269-54d8-450c-974d-bd4e3b557e78 2025-04-14 11:02:11,969 - 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 1010ms') 2025-04-14 11:02:11,969 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-28919891-96405821 failed! 2025-04-14 11:02:12,027 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-28919891:ctest-vn-11805287 is 71.55.181.129 and allocation pool is NOT set 2025-04-14 11:02:14,091 - 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.520 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.520/1.764/3.008/1.244 ms') 2025-04-14 11:02:14,091 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-28919891-96405821 passed 2025-04-14 11:02:14,259 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-14 11:02:14,259 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-28919891-96405821, IP 71.55.181.131, Port 22 2025-04-14 11:02:14,437 - DEBUG - VM ctest-TestRoutersBasic-28919891-96405821 is ready for SSH connections 2025-04-14 11:02:14,438 - INFO - Waiting for VM ctest-TestRoutersBasic-28919891-04555616 to be up.. 2025-04-14 11:02:14,543 - DEBUG - VM is in ACTIVE state now 2025-04-14 11:02:14,543 - INFO - VM name : ctest-TestRoutersBasic-28919891-04555616 2025-04-14 11:02:14,639 - DEBUG - VM ctest-TestRoutersBasic-28919891-04555616 ID is 8dc07077-9afe-449f-ace2-c6c4ef75560b 2025-04-14 11:02:14,639 - DEBUG - VM ctest-TestRoutersBasic-28919891-04555616 launched on Node cn-jenkins-deploy-platform-ansible-os-3090-1 2025-04-14 11:02:14,728 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/8dc07077-9afe-449f-ace2-c6c4ef75560b 2025-04-14 11:02:14,740 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/929cb076-87dc-4ebf-a124-548a7b3bb021 2025-04-14 11:02:15,992 - 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.15 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.375 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.375/2.262/4.149/1.887 ms') 2025-04-14 11:02:15,992 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-28919891-04555616 passed 2025-04-14 11:02:16,147 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-14 11:02:16,147 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-28919891-04555616, IP 211.120.132.131, Port 22 2025-04-14 11:02:16,316 - DEBUG - VM ctest-TestRoutersBasic-28919891-04555616 is ready for SSH connections 2025-04-14 11:02:16,317 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-14 11:02:16,317 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 211.120.132.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-04-14 11:02:16,317 - DEBUG - ping -s 56 -c 3 -W 1 211.120.132.131 2025-04-14 11:02:20,364 - DEBUG - PING 211.120.132.131 (211.120.132.131): 56 data bytes 64 bytes from 211.120.132.131: seq=0 ttl=62 time=7.143 ms 64 bytes from 211.120.132.131: seq=1 ttl=62 time=1.114 ms 64 bytes from 211.120.132.131: seq=2 ttl=62 time=1.538 ms --- 211.120.132.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.114/3.265/7.143 ms 2025-04-14 11:02:20,364 - INFO - Ping to IP 211.120.132.131 from VM ctest-TestRoutersBasic-28919891-96405821 passed 2025-04-14 11:02:20,364 - INFO - Deleting interface with subnet_id 0559f8c5-9e5b-4fd2-ae6e-4f7b3d6afab5, port_id None from router 3430ffbd-bf4e-4863-8095-b67adba8e4b0 2025-04-14 11:02:20,607 - INFO - Deleting VM ctest-TestRoutersBasic-28919891-04555616 2025-04-14 11:02:20,707 - INFO - Deleting VM ctest-TestRoutersBasic-28919891-96405821 2025-04-14 11:02:20,818 - INFO - Deleting VN ctest-ext_vn-98287476 2025-04-14 11:02:20,920 - DEBUG - VN d9a60f0b-c2b3-4a70-9cb5-46515c181767 still in use: Unable to complete operation on network d9a60f0b-c2b3-4a70-9cb5-46515c181767. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-68c9403a-badc-4e28-bdfa-e7b11d3b6ab8'] 2025-04-14 11:02:20,920 - WARNING - Deleting VN ctest-ext_vn-98287476 failed..Will retry 2025-04-14 11:02:23,040 - DEBUG - Response for deleting network () 2025-04-14 11:02:23,040 - INFO - Deleting VN ctest-vn-11805287 2025-04-14 11:02:23,191 - DEBUG - Response for deleting network () 2025-04-14 11:02:23,449 - DEBUG - No XMPP flaps were noticed during the test 2025-04-14 11:02:23,449 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2025-04-14 11:02:23,449 - INFO - -------------------------------------------------------------------------------- 2025-04-14 11:02:24,151 - INFO - Deleted project: ctest-TestRoutersBasic-28919891, ID : 329d4ff3-6766-4926-8295-2c40a67ed698