2025-04-21 02:17:03,718 - INFO - Domain Default found not creating 2025-04-21 02:17:03,883 - INFO - Project ctest-TestRoutersBasic-76554910 not found, creating it 2025-04-21 02:17:04,368 - INFO - Created Project:ctest-TestRoutersBasic-76554910, ID : 2ee07cc2-dd08-4b94-a8dc-ebf4031fccb8 2025-04-21 02:17:05,798 - INFO - ================================================================================ 2025-04-21 02:17:05,799 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-04-21 02:17:05,799 - 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-21 02:17:06,055 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.17': '0'}} with 2025-04-21 02:17:06,055 - INFO - Initial checks done. Running the testcase now 2025-04-21 02:17:06,055 - INFO - 2025-04-21 02:17:06,754 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-76554910 2025-04-21 02:17:06,857 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-76554910 2025-04-21 02:17:07,180 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-76554910', 'default']} 2025-04-21 02:17:07,467 - DEBUG - Response for create_network : {'network': {'id': '36177ef4-820d-4b52-be71-d003b9a7396f', 'name': 'ctest-vn-14878611', 'tenant_id': '2ee07cc2dd084b94a8dcebf4031fccb8', 'project_id': '2ee07cc2dd084b94a8dcebf4031fccb8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-76554910', 'ctest-vn-14878611'], 'port_security_enabled': True, 'description': ''}} 2025-04-21 02:17:07,642 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cf8b0c39-c666-43a5-a994-3ad929640424', 'name': '', 'tenant_id': '2ee07cc2dd084b94a8dcebf4031fccb8', 'network_id': '36177ef4-820d-4b52-be71-d003b9a7396f', 'ip_version': 4, 'cidr': '46.198.144.64/26', 'allocation_pools': [{'start': '46.198.144.66', 'end': '46.198.144.126'}], 'gateway_ip': '46.198.144.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '46.198.144.66', 'tags': [], 'project_id': '2ee07cc2dd084b94a8dcebf4031fccb8'}} 2025-04-21 02:17:07,658 - INFO - Created VN ctest-vn-14878611 2025-04-21 02:17:07,713 - DEBUG - VN ctest-vn-14878611 UUID is 36177ef4-820d-4b52-be71-d003b9a7396f 2025-04-21 02:17:08,058 - DEBUG - Response for create_network : {'network': {'id': 'bab3388c-9127-4982-8c30-eb74ce37cd00', 'name': 'ctest-ext_vn-35612543', 'tenant_id': '2ee07cc2dd084b94a8dcebf4031fccb8', 'project_id': '2ee07cc2dd084b94a8dcebf4031fccb8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-76554910', 'ctest-ext_vn-35612543'], 'port_security_enabled': True, 'description': ''}} 2025-04-21 02:17:08,289 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd8b84814-6959-4223-a8a1-b20fea95ed1e', 'name': '', 'tenant_id': '2ee07cc2dd084b94a8dcebf4031fccb8', 'network_id': 'bab3388c-9127-4982-8c30-eb74ce37cd00', 'ip_version': 4, 'cidr': '37.229.139.0/26', 'allocation_pools': [{'start': '37.229.139.2', 'end': '37.229.139.62'}], 'gateway_ip': '37.229.139.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '37.229.139.2', 'tags': [], 'project_id': '2ee07cc2dd084b94a8dcebf4031fccb8'}} 2025-04-21 02:17:08,310 - INFO - Created VN ctest-ext_vn-35612543 2025-04-21 02:17:08,361 - DEBUG - VN ctest-ext_vn-35612543 UUID is bab3388c-9127-4982-8c30-eb74ce37cd00 2025-04-21 02:17:08,565 - DEBUG - Services list from nova: [, , ] 2025-04-21 02:17:09,586 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3143-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3143-1) 2025-04-21 02:17:10,698 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3143-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3143-1) 2025-04-21 02:17:10,773 - INFO - Setting gateway for router ea918763-bf24-4a51-9332-c946ba561ef3 to network bab3388c-9127-4982-8c30-eb74ce37cd00 2025-04-21 02:17:10,827 - INFO - Adding interface with subnet_id cf8b0c39-c666-43a5-a994-3ad929640424, port_id None to router ea918763-bf24-4a51-9332-c946ba561ef3 2025-04-21 02:17:11,221 - INFO - Waiting for VM ctest-TestRoutersBasic-76554910-99195040 to be up.. 2025-04-21 02:17:11,357 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-21 02:17:16,431 - DEBUG - VM is in ACTIVE state now 2025-04-21 02:17:16,432 - INFO - VM name : ctest-TestRoutersBasic-76554910-99195040 2025-04-21 02:17:16,509 - DEBUG - VM ctest-TestRoutersBasic-76554910-99195040 ID is 4f86092c-c097-4bb0-a6b5-c4b5a5a53b29 2025-04-21 02:17:16,527 - DEBUG - VM ctest-TestRoutersBasic-76554910-99195040 launched on Node cn-jenkins-deploy-platform-ansible-os-3143-1 2025-04-21 02:17:16,602 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine/4f86092c-c097-4bb0-a6b5-c4b5a5a53b29 2025-04-21 02:17:16,897 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine/4f86092c-c097-4bb0-a6b5-c4b5a5a53b29 2025-04-21 02:17:16,928 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine-interface/9799c48e-4ac5-4206-9b80-94f356a6f179 2025-04-21 02:17:20,174 - 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 1011ms') 2025-04-21 02:17:20,174 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-76554910-99195040 failed! 2025-04-21 02:17:20,233 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-76554910:ctest-vn-14878611 is 46.198.144.65 and allocation pool is NOT set 2025-04-21 02:17:22,290 - 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.06 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.392 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.392/1.728/3.064/1.336 ms') 2025-04-21 02:17:22,290 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-76554910-99195040 passed 2025-04-21 02:17:22,441 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-21 02:17:22,441 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-76554910-99195040, IP 46.198.144.67, Port 22 2025-04-21 02:17:22,596 - DEBUG - VM ctest-TestRoutersBasic-76554910-99195040 is ready for SSH connections 2025-04-21 02:17:22,597 - INFO - Waiting for VM ctest-TestRoutersBasic-76554910-92305280 to be up.. 2025-04-21 02:17:22,682 - DEBUG - VM is in ACTIVE state now 2025-04-21 02:17:22,682 - INFO - VM name : ctest-TestRoutersBasic-76554910-92305280 2025-04-21 02:17:22,757 - DEBUG - VM ctest-TestRoutersBasic-76554910-92305280 ID is feadfe14-b377-4611-b974-bba5e0a935f3 2025-04-21 02:17:22,758 - DEBUG - VM ctest-TestRoutersBasic-76554910-92305280 launched on Node cn-jenkins-deploy-platform-ansible-os-3143-1 2025-04-21 02:17:22,842 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine/feadfe14-b377-4611-b974-bba5e0a935f3 2025-04-21 02:17:22,854 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine-interface/662e0e03-0a8c-4724-aca8-38755a6e692c 2025-04-21 02:17:24,097 - 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.53 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.525 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.525/3.026/5.527/2.501 ms') 2025-04-21 02:17:24,098 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-76554910-92305280 passed 2025-04-21 02:17:24,253 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-21 02:17:24,253 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-76554910-92305280, IP 37.229.139.3, Port 22 2025-04-21 02:17:24,408 - DEBUG - VM ctest-TestRoutersBasic-76554910-92305280 is ready for SSH connections 2025-04-21 02:17:24,408 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-21 02:17:24,408 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 37.229.139.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.130, gateway password: c0ntrail123 2025-04-21 02:17:24,409 - DEBUG - ping -s 56 -c 3 -W 1 37.229.139.3 2025-04-21 02:17:28,408 - DEBUG - PING 37.229.139.3 (37.229.139.3): 56 data bytes 64 bytes from 37.229.139.3: seq=0 ttl=62 time=6.583 ms 64 bytes from 37.229.139.3: seq=1 ttl=62 time=0.780 ms 64 bytes from 37.229.139.3: seq=2 ttl=62 time=0.795 ms --- 37.229.139.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.780/2.719/6.583 ms 2025-04-21 02:17:28,408 - INFO - Ping to IP 37.229.139.3 from VM ctest-TestRoutersBasic-76554910-99195040 passed 2025-04-21 02:17:28,408 - INFO - Deleting interface with subnet_id cf8b0c39-c666-43a5-a994-3ad929640424, port_id None from router ea918763-bf24-4a51-9332-c946ba561ef3 2025-04-21 02:17:28,595 - INFO - Deleting VM ctest-TestRoutersBasic-76554910-92305280 2025-04-21 02:17:28,662 - INFO - Deleting VM ctest-TestRoutersBasic-76554910-99195040 2025-04-21 02:17:28,735 - INFO - Deleting VN ctest-ext_vn-35612543 2025-04-21 02:17:28,805 - DEBUG - VN bab3388c-9127-4982-8c30-eb74ce37cd00 still in use: Unable to complete operation on network bab3388c-9127-4982-8c30-eb74ce37cd00. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-2b4d482c-5e7e-46e3-b016-4cdcfaa0c470'] 2025-04-21 02:17:28,805 - WARNING - Deleting VN ctest-ext_vn-35612543 failed..Will retry 2025-04-21 02:17:30,924 - DEBUG - Response for deleting network () 2025-04-21 02:17:30,924 - INFO - Deleting VN ctest-vn-14878611 2025-04-21 02:17:31,022 - DEBUG - Response for deleting network () 2025-04-21 02:17:31,279 - DEBUG - No XMPP flaps were noticed during the test 2025-04-21 02:17:31,279 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2025-04-21 02:17:31,279 - INFO - -------------------------------------------------------------------------------- 2025-04-21 02:17:31,946 - INFO - Deleted project: ctest-TestRoutersBasic-76554910, ID : 2ee07cc2-dd08-4b94-a8dc-ebf4031fccb8