2025-01-13 11:43:37,667 - INFO - Domain Default found not creating 2025-01-13 11:43:37,837 - INFO - Project ctest-TestRoutersBasic-27989324 not found, creating it 2025-01-13 11:43:38,337 - INFO - Created Project:ctest-TestRoutersBasic-27989324, ID : 542b30e0-cb2f-4de0-9e03-3149483c2089 2025-01-13 11:43:39,871 - INFO - ================================================================================ 2025-01-13 11:43:39,871 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-01-13 11:43:39,871 - 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-13 11:43:40,134 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.24': '0'}} with 2025-01-13 11:43:40,134 - INFO - Initial checks done. Running the testcase now 2025-01-13 11:43:40,134 - INFO - 2025-01-13 11:43:40,875 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-27989324 2025-01-13 11:43:40,971 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-27989324 2025-01-13 11:43:41,319 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-27989324', 'default']} 2025-01-13 11:43:41,658 - DEBUG - Response for create_network : {'network': {'id': 'ab17c7d3-1fcc-409b-b833-fa24bdc7ee3c', 'name': 'ctest-vn-58466145', 'tenant_id': '542b30e0cb2f4de09e033149483c2089', 'project_id': '542b30e0cb2f4de09e033149483c2089', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-27989324', 'ctest-vn-58466145'], 'port_security_enabled': True, 'description': ''}} 2025-01-13 11:43:41,908 - DEBUG - Response for create_subnet : {'subnet': {'id': '4c00dffe-357a-4740-baab-50bcd4ea6c84', 'name': '', 'tenant_id': '542b30e0cb2f4de09e033149483c2089', 'network_id': 'ab17c7d3-1fcc-409b-b833-fa24bdc7ee3c', 'ip_version': 4, 'cidr': '25.53.52.128/26', 'allocation_pools': [{'start': '25.53.52.130', 'end': '25.53.52.190'}], 'gateway_ip': '25.53.52.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25.53.52.130', 'tags': [], 'project_id': '542b30e0cb2f4de09e033149483c2089'}} 2025-01-13 11:43:41,928 - INFO - Created VN ctest-vn-58466145 2025-01-13 11:43:41,987 - DEBUG - VN ctest-vn-58466145 UUID is ab17c7d3-1fcc-409b-b833-fa24bdc7ee3c 2025-01-13 11:43:42,362 - DEBUG - Response for create_network : {'network': {'id': 'e8a4c8a6-0aa8-4b7e-82e8-41836bb3587e', 'name': 'ctest-ext_vn-42241678', 'tenant_id': '542b30e0cb2f4de09e033149483c2089', 'project_id': '542b30e0cb2f4de09e033149483c2089', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-27989324', 'ctest-ext_vn-42241678'], 'port_security_enabled': True, 'description': ''}} 2025-01-13 11:43:42,552 - DEBUG - Response for create_subnet : {'subnet': {'id': '1dc76652-8e2b-4f0b-b317-16b6899b3b7a', 'name': '', 'tenant_id': '542b30e0cb2f4de09e033149483c2089', 'network_id': 'e8a4c8a6-0aa8-4b7e-82e8-41836bb3587e', 'ip_version': 4, 'cidr': '200.128.161.128/26', 'allocation_pools': [{'start': '200.128.161.130', 'end': '200.128.161.190'}], 'gateway_ip': '200.128.161.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '200.128.161.130', 'tags': [], 'project_id': '542b30e0cb2f4de09e033149483c2089'}} 2025-01-13 11:43:42,575 - INFO - Created VN ctest-ext_vn-42241678 2025-01-13 11:43:42,627 - DEBUG - VN ctest-ext_vn-42241678 UUID is e8a4c8a6-0aa8-4b7e-82e8-41836bb3587e 2025-01-13 11:43:42,801 - DEBUG - Services list from nova: [, , ] 2025-01-13 11:43:43,872 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2611-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2611-1) 2025-01-13 11:43:45,114 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2611-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2611-1) 2025-01-13 11:43:45,197 - INFO - Setting gateway for router 25002599-d144-43fd-b6a7-ddde494b86e8 to network e8a4c8a6-0aa8-4b7e-82e8-41836bb3587e 2025-01-13 11:43:45,289 - INFO - Adding interface with subnet_id 4c00dffe-357a-4740-baab-50bcd4ea6c84, port_id None to router 25002599-d144-43fd-b6a7-ddde494b86e8 2025-01-13 11:43:45,768 - INFO - Waiting for VM ctest-TestRoutersBasic-27989324-35124794 to be up.. 2025-01-13 11:43:45,952 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-13 11:43:51,033 - DEBUG - VM is in ACTIVE state now 2025-01-13 11:43:51,033 - INFO - VM name : ctest-TestRoutersBasic-27989324-35124794 2025-01-13 11:43:51,156 - DEBUG - VM ctest-TestRoutersBasic-27989324-35124794 ID is af2242ed-7537-45a8-ad53-5eb1c8e79e19 2025-01-13 11:43:51,178 - DEBUG - VM ctest-TestRoutersBasic-27989324-35124794 launched on Node cn-jenkins-deploy-platform-ansible-os-2611-1 2025-01-13 11:43:51,299 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/af2242ed-7537-45a8-ad53-5eb1c8e79e19 2025-01-13 11:43:51,599 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/af2242ed-7537-45a8-ad53-5eb1c8e79e19 2025-01-13 11:43:51,639 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/e9214e9e-9933-483f-bbd3-6be4e674191e 2025-01-13 11:43:54,904 - 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 1016ms') 2025-01-13 11:43:54,905 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-27989324-35124794 failed! 2025-01-13 11:43:54,963 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-27989324:ctest-vn-58466145 is 25.53.52.129 and allocation pool is NOT set 2025-01-13 11:43:57,023 - 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.99 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.556 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.556/1.770/2.985/1.214 ms') 2025-01-13 11:43:57,023 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-27989324-35124794 passed 2025-01-13 11:43:57,179 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-13 11:43:57,179 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-27989324-35124794, IP 25.53.52.131, Port 22 2025-01-13 11:43:57,346 - DEBUG - VM ctest-TestRoutersBasic-27989324-35124794 is ready for SSH connections 2025-01-13 11:43:57,346 - INFO - Waiting for VM ctest-TestRoutersBasic-27989324-26678196 to be up.. 2025-01-13 11:43:57,453 - DEBUG - VM is in ACTIVE state now 2025-01-13 11:43:57,453 - INFO - VM name : ctest-TestRoutersBasic-27989324-26678196 2025-01-13 11:43:57,548 - DEBUG - VM ctest-TestRoutersBasic-27989324-26678196 ID is 9b29b403-7609-4b51-8074-765b79af4f8d 2025-01-13 11:43:57,548 - DEBUG - VM ctest-TestRoutersBasic-27989324-26678196 launched on Node cn-jenkins-deploy-platform-ansible-os-2611-1 2025-01-13 11:43:57,632 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/9b29b403-7609-4b51-8074-765b79af4f8d 2025-01-13 11:43:57,642 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/b6117cf8-a357-4e6f-95df-d0e20494515e 2025-01-13 11:43:58,902 - 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.40 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.11 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 = 1.107/3.253/5.399/2.146 ms') 2025-01-13 11:43:58,902 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-27989324-26678196 passed 2025-01-13 11:43:59,071 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-13 11:43:59,071 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-27989324-26678196, IP 200.128.161.131, Port 22 2025-01-13 11:43:59,231 - DEBUG - VM ctest-TestRoutersBasic-27989324-26678196 is ready for SSH connections 2025-01-13 11:43:59,231 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-13 11:43:59,231 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 200.128.161.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2025-01-13 11:43:59,231 - DEBUG - ping -s 56 -c 3 -W 1 200.128.161.131 2025-01-13 11:44:03,303 - DEBUG - PING 200.128.161.131 (200.128.161.131): 56 data bytes 64 bytes from 200.128.161.131: seq=0 ttl=62 time=9.117 ms 64 bytes from 200.128.161.131: seq=1 ttl=62 time=1.182 ms 64 bytes from 200.128.161.131: seq=2 ttl=62 time=1.095 ms --- 200.128.161.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.095/3.798/9.117 ms 2025-01-13 11:44:03,303 - INFO - Ping to IP 200.128.161.131 from VM ctest-TestRoutersBasic-27989324-35124794 passed 2025-01-13 11:44:03,304 - INFO - Deleting interface with subnet_id 4c00dffe-357a-4740-baab-50bcd4ea6c84, port_id None from router 25002599-d144-43fd-b6a7-ddde494b86e8 2025-01-13 11:44:03,567 - INFO - Deleting VM ctest-TestRoutersBasic-27989324-26678196 2025-01-13 11:44:03,668 - INFO - Deleting VM ctest-TestRoutersBasic-27989324-35124794 2025-01-13 11:44:03,750 - INFO - Deleting VN ctest-ext_vn-42241678 2025-01-13 11:44:03,830 - DEBUG - VN e8a4c8a6-0aa8-4b7e-82e8-41836bb3587e still in use: Unable to complete operation on network e8a4c8a6-0aa8-4b7e-82e8-41836bb3587e. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-73f94ce4-df31-4fd5-beba-48ae780019d5'] 2025-01-13 11:44:03,830 - WARNING - Deleting VN ctest-ext_vn-42241678 failed..Will retry 2025-01-13 11:44:05,964 - DEBUG - Response for deleting network () 2025-01-13 11:44:05,964 - INFO - Deleting VN ctest-vn-58466145 2025-01-13 11:44:06,100 - DEBUG - Response for deleting network () 2025-01-13 11:44:06,368 - DEBUG - No XMPP flaps were noticed during the test
2025-01-13 11:44:06,368 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:27]
2025-01-13 11:44:06,368 - INFO - -------------------------------------------------------------------------------- 2025-01-13 11:44:07,079 - INFO - Deleted project: ctest-TestRoutersBasic-27989324, ID : 542b30e0-cb2f-4de0-9e03-3149483c2089