2025-02-10 17:39:07,398 - INFO - Domain Default found not creating 2025-02-10 17:39:07,550 - INFO - Project ctest-TestRoutersBasic-68286082 not found, creating it 2025-02-10 17:39:08,008 - INFO - Created Project:ctest-TestRoutersBasic-68286082, ID : d9dfb78e-4ad7-4fb6-90f6-7e8e978ac5ee 2025-02-10 17:39:09,379 - INFO - ================================================================================ 2025-02-10 17:39:09,379 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-02-10 17:39:09,379 - 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-02-10 17:39:09,638 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.18': '0'}} with 2025-02-10 17:39:09,638 - INFO - Initial checks done. Running the testcase now 2025-02-10 17:39:09,638 - INFO - 2025-02-10 17:39:10,315 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-68286082 2025-02-10 17:39:10,412 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-68286082 2025-02-10 17:39:10,740 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-68286082', 'default']} 2025-02-10 17:39:11,023 - DEBUG - Response for create_network : {'network': {'id': '44bbca51-4ea4-4101-809c-ae58487756cf', 'name': 'ctest-vn-00749892', 'tenant_id': 'd9dfb78e4ad74fb690f67e8e978ac5ee', 'project_id': 'd9dfb78e4ad74fb690f67e8e978ac5ee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-68286082', 'ctest-vn-00749892'], 'port_security_enabled': True, 'description': ''}} 2025-02-10 17:39:11,216 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f0780c8b-7eef-45a0-8806-b1a761774a2d', 'name': '', 'tenant_id': 'd9dfb78e4ad74fb690f67e8e978ac5ee', 'network_id': '44bbca51-4ea4-4101-809c-ae58487756cf', 'ip_version': 4, 'cidr': '64.214.120.64/26', 'allocation_pools': [{'start': '64.214.120.66', 'end': '64.214.120.126'}], 'gateway_ip': '64.214.120.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '64.214.120.66', 'tags': [], 'project_id': 'd9dfb78e4ad74fb690f67e8e978ac5ee'}} 2025-02-10 17:39:11,232 - INFO - Created VN ctest-vn-00749892 2025-02-10 17:39:11,284 - DEBUG - VN ctest-vn-00749892 UUID is 44bbca51-4ea4-4101-809c-ae58487756cf 2025-02-10 17:39:11,639 - DEBUG - Response for create_network : {'network': {'id': '1ce9e23f-0a74-4e70-8b85-231a0c4bb77c', 'name': 'ctest-ext_vn-49550510', 'tenant_id': 'd9dfb78e4ad74fb690f67e8e978ac5ee', 'project_id': 'd9dfb78e4ad74fb690f67e8e978ac5ee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-68286082', 'ctest-ext_vn-49550510'], 'port_security_enabled': True, 'description': ''}} 2025-02-10 17:39:11,853 - DEBUG - Response for create_subnet : {'subnet': {'id': '3cd8e6cb-0ffb-4fc7-9fd6-d533e355331a', 'name': '', 'tenant_id': 'd9dfb78e4ad74fb690f67e8e978ac5ee', 'network_id': '1ce9e23f-0a74-4e70-8b85-231a0c4bb77c', 'ip_version': 4, 'cidr': '82.252.38.0/26', 'allocation_pools': [{'start': '82.252.38.2', 'end': '82.252.38.62'}], 'gateway_ip': '82.252.38.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '82.252.38.2', 'tags': [], 'project_id': 'd9dfb78e4ad74fb690f67e8e978ac5ee'}} 2025-02-10 17:39:11,869 - INFO - Created VN ctest-ext_vn-49550510 2025-02-10 17:39:11,920 - DEBUG - VN ctest-ext_vn-49550510 UUID is 1ce9e23f-0a74-4e70-8b85-231a0c4bb77c 2025-02-10 17:39:12,081 - DEBUG - Services list from nova: [, , ] 2025-02-10 17:39:13,053 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2716-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2716-1) 2025-02-10 17:39:14,127 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2716-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2716-1) 2025-02-10 17:39:14,204 - INFO - Setting gateway for router 20a81efd-d6e7-49a4-8fb4-7b1396db0725 to network 1ce9e23f-0a74-4e70-8b85-231a0c4bb77c 2025-02-10 17:39:14,262 - INFO - Adding interface with subnet_id f0780c8b-7eef-45a0-8806-b1a761774a2d, port_id None to router 20a81efd-d6e7-49a4-8fb4-7b1396db0725 2025-02-10 17:39:14,674 - INFO - Waiting for VM ctest-TestRoutersBasic-68286082-67371765 to be up.. 2025-02-10 17:39:14,825 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-02-10 17:39:19,896 - DEBUG - VM is in ACTIVE state now 2025-02-10 17:39:19,896 - INFO - VM name : ctest-TestRoutersBasic-68286082-67371765 2025-02-10 17:39:19,964 - DEBUG - VM ctest-TestRoutersBasic-68286082-67371765 ID is 2bf7e91e-fc2b-4af8-bd63-d94b483567a5 2025-02-10 17:39:19,981 - DEBUG - VM ctest-TestRoutersBasic-68286082-67371765 launched on Node cn-jenkins-deploy-platform-ansible-os-2716-1 2025-02-10 17:39:20,055 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/2bf7e91e-fc2b-4af8-bd63-d94b483567a5 2025-02-10 17:39:20,351 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/2bf7e91e-fc2b-4af8-bd63-d94b483567a5 2025-02-10 17:39:20,381 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/30e7511a-badd-4c0b-addd-bc132aa78e9f 2025-02-10 17:39:23,639 - 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 1019ms') 2025-02-10 17:39:23,639 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-68286082-67371765 failed! 2025-02-10 17:39:23,704 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-68286082:ctest-vn-00749892 is 64.214.120.65 and allocation pool is NOT set 2025-02-10 17:39:25,764 - 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=2.68 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.367 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.367/1.523/2.679/1.156 ms') 2025-02-10 17:39:25,764 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-68286082-67371765 passed 2025-02-10 17:39:25,932 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-10 17:39:25,932 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-68286082-67371765, IP 64.214.120.67, Port 22 2025-02-10 17:39:26,088 - DEBUG - VM ctest-TestRoutersBasic-68286082-67371765 is ready for SSH connections 2025-02-10 17:39:26,088 - INFO - Waiting for VM ctest-TestRoutersBasic-68286082-81226067 to be up.. 2025-02-10 17:39:26,165 - DEBUG - VM is in ACTIVE state now 2025-02-10 17:39:26,165 - INFO - VM name : ctest-TestRoutersBasic-68286082-81226067 2025-02-10 17:39:26,234 - DEBUG - VM ctest-TestRoutersBasic-68286082-81226067 ID is 62e10f8d-a012-4863-82e1-bb9542399cca 2025-02-10 17:39:26,234 - DEBUG - VM ctest-TestRoutersBasic-68286082-81226067 launched on Node cn-jenkins-deploy-platform-ansible-os-2716-1 2025-02-10 17:39:26,303 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/62e10f8d-a012-4863-82e1-bb9542399cca 2025-02-10 17:39:26,312 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/dd17b235-1688-4eaa-afb9-ef996450a768 2025-02-10 17:39:27,550 - 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.42 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.585 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.585/2.504/4.424/1.919 ms') 2025-02-10 17:39:27,550 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-68286082-81226067 passed 2025-02-10 17:39:27,708 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-10 17:39:27,708 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-68286082-81226067, IP 82.252.38.3, Port 22 2025-02-10 17:39:27,860 - DEBUG - VM ctest-TestRoutersBasic-68286082-81226067 is ready for SSH connections 2025-02-10 17:39:27,860 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-10 17:39:27,860 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 82.252.38.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2025-02-10 17:39:27,860 - DEBUG - ping -s 56 -c 3 -W 1 82.252.38.3 2025-02-10 17:39:31,824 - DEBUG - PING 82.252.38.3 (82.252.38.3): 56 data bytes 64 bytes from 82.252.38.3: seq=0 ttl=62 time=7.009 ms 64 bytes from 82.252.38.3: seq=1 ttl=62 time=0.822 ms 64 bytes from 82.252.38.3: seq=2 ttl=62 time=0.914 ms --- 82.252.38.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.822/2.915/7.009 ms 2025-02-10 17:39:31,824 - INFO - Ping to IP 82.252.38.3 from VM ctest-TestRoutersBasic-68286082-67371765 passed 2025-02-10 17:39:31,824 - INFO - Deleting interface with subnet_id f0780c8b-7eef-45a0-8806-b1a761774a2d, port_id None from router 20a81efd-d6e7-49a4-8fb4-7b1396db0725 2025-02-10 17:39:32,016 - INFO - Deleting VM ctest-TestRoutersBasic-68286082-81226067 2025-02-10 17:39:32,083 - INFO - Deleting VM ctest-TestRoutersBasic-68286082-67371765 2025-02-10 17:39:32,167 - INFO - Deleting VN ctest-ext_vn-49550510 2025-02-10 17:39:32,234 - DEBUG - VN 1ce9e23f-0a74-4e70-8b85-231a0c4bb77c still in use: Unable to complete operation on network 1ce9e23f-0a74-4e70-8b85-231a0c4bb77c. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-9d7ba572-5193-4da6-94b3-2b169dd6c35f'] 2025-02-10 17:39:32,234 - WARNING - Deleting VN ctest-ext_vn-49550510 failed..Will retry 2025-02-10 17:39:34,339 - DEBUG - Response for deleting network () 2025-02-10 17:39:34,339 - INFO - Deleting VN ctest-vn-00749892 2025-02-10 17:39:34,460 - DEBUG - Response for deleting network () 2025-02-10 17:39:34,714 - DEBUG - No XMPP flaps were noticed during the test 2025-02-10 17:39:34,715 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:25] 2025-02-10 17:39:34,715 - INFO - -------------------------------------------------------------------------------- 2025-02-10 17:39:35,389 - INFO - Deleted project: ctest-TestRoutersBasic-68286082, ID : d9dfb78e-4ad7-4fb6-90f6-7e8e978ac5ee