2025-03-17 02:20:30,665 - INFO - Domain Default found not creating 2025-03-17 02:20:30,820 - INFO - Project ctest-TestRoutersBasic-67087440 not found, creating it 2025-03-17 02:20:31,284 - INFO - Created Project:ctest-TestRoutersBasic-67087440, ID : aa763beb-0e96-4ca5-b566-bf80a74c6623 2025-03-17 02:20:32,805 - INFO - ================================================================================ 2025-03-17 02:20:32,805 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-03-17 02:20:32,805 - 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-03-17 02:20:33,061 - DEBUG - Nothing to compare xmpp stats {'10.0.0.44': {'10.20.0.23': '0'}} with 2025-03-17 02:20:33,061 - INFO - Initial checks done. Running the testcase now 2025-03-17 02:20:33,061 - INFO - 2025-03-17 02:20:33,749 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-67087440 2025-03-17 02:20:33,842 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-67087440 2025-03-17 02:20:34,158 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-67087440', 'default']} 2025-03-17 02:20:34,455 - DEBUG - Response for create_network : {'network': {'id': 'df1c0830-c97c-414e-a5f6-c25e06eda7b3', 'name': 'ctest-vn-49643074', 'tenant_id': 'aa763beb0e964ca5b566bf80a74c6623', 'project_id': 'aa763beb0e964ca5b566bf80a74c6623', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-67087440', 'ctest-vn-49643074'], 'port_security_enabled': True, 'description': ''}} 2025-03-17 02:20:34,676 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a23d77d1-357d-4ce0-96b9-50e948d36215', 'name': '', 'tenant_id': 'aa763beb0e964ca5b566bf80a74c6623', 'network_id': 'df1c0830-c97c-414e-a5f6-c25e06eda7b3', 'ip_version': 4, 'cidr': '132.47.203.64/26', 'allocation_pools': [{'start': '132.47.203.66', 'end': '132.47.203.126'}], 'gateway_ip': '132.47.203.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '132.47.203.66', 'tags': [], 'project_id': 'aa763beb0e964ca5b566bf80a74c6623'}} 2025-03-17 02:20:34,695 - INFO - Created VN ctest-vn-49643074 2025-03-17 02:20:34,750 - DEBUG - VN ctest-vn-49643074 UUID is df1c0830-c97c-414e-a5f6-c25e06eda7b3 2025-03-17 02:20:35,063 - DEBUG - Response for create_network : {'network': {'id': '883ec7e4-05cc-455c-a93c-8a3d8a9db37a', 'name': 'ctest-ext_vn-65889315', 'tenant_id': 'aa763beb0e964ca5b566bf80a74c6623', 'project_id': 'aa763beb0e964ca5b566bf80a74c6623', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-67087440', 'ctest-ext_vn-65889315'], 'port_security_enabled': True, 'description': ''}} 2025-03-17 02:20:35,252 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e11b0d03-0223-48fc-9dad-769756c5f3f2', 'name': '', 'tenant_id': 'aa763beb0e964ca5b566bf80a74c6623', 'network_id': '883ec7e4-05cc-455c-a93c-8a3d8a9db37a', 'ip_version': 4, 'cidr': '45.164.166.0/26', 'allocation_pools': [{'start': '45.164.166.2', 'end': '45.164.166.62'}], 'gateway_ip': '45.164.166.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '45.164.166.2', 'tags': [], 'project_id': 'aa763beb0e964ca5b566bf80a74c6623'}} 2025-03-17 02:20:35,271 - INFO - Created VN ctest-ext_vn-65889315 2025-03-17 02:20:35,322 - DEBUG - VN ctest-ext_vn-65889315 UUID is 883ec7e4-05cc-455c-a93c-8a3d8a9db37a 2025-03-17 02:20:35,536 - DEBUG - Services list from nova: [, , ] 2025-03-17 02:20:36,536 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2888-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2888-1) 2025-03-17 02:20:37,716 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2888-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2888-1) 2025-03-17 02:20:37,804 - INFO - Setting gateway for router 68be1590-57e7-45df-b0e6-442004068596 to network 883ec7e4-05cc-455c-a93c-8a3d8a9db37a 2025-03-17 02:20:37,896 - INFO - Adding interface with subnet_id a23d77d1-357d-4ce0-96b9-50e948d36215, port_id None to router 68be1590-57e7-45df-b0e6-442004068596 2025-03-17 02:20:38,416 - INFO - Waiting for VM ctest-TestRoutersBasic-67087440-98923542 to be up.. 2025-03-17 02:20:38,589 - DEBUG - VM is in ACTIVE state now 2025-03-17 02:20:38,589 - INFO - VM name : ctest-TestRoutersBasic-67087440-98923542 2025-03-17 02:20:38,731 - DEBUG - VM ctest-TestRoutersBasic-67087440-98923542 ID is 04b571a1-b2b2-4ebc-8b0a-9cb1cd9fe10d 2025-03-17 02:20:38,760 - DEBUG - VM ctest-TestRoutersBasic-67087440-98923542 launched on Node cn-jenkins-deploy-platform-ansible-os-2888-1 2025-03-17 02:20:38,901 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine/04b571a1-b2b2-4ebc-8b0a-9cb1cd9fe10d 2025-03-17 02:20:39,217 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine/04b571a1-b2b2-4ebc-8b0a-9cb1cd9fe10d 2025-03-17 02:20:39,252 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine-interface/351786ca-0853-4fac-9f5c-fc389380a717 2025-03-17 02:20:42,549 - 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 1031ms') 2025-03-17 02:20:42,550 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-67087440-98923542 failed! 2025-03-17 02:20:42,606 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-67087440:ctest-vn-49643074 is 132.47.203.65 and allocation pool is NOT set 2025-03-17 02:20:46,674 - 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-03-17 02:20:46,674 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-67087440-98923542 failed! 2025-03-17 02:20:46,726 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-67087440:ctest-vn-49643074 is 132.47.203.65 and allocation pool is NOT set 2025-03-17 02:20:48,784 - 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=6.13 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.35 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 = 2.352/4.241/6.130/1.889 ms') 2025-03-17 02:20:48,785 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-67087440-98923542 passed 2025-03-17 02:20:48,934 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-17 02:20:48,934 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-67087440-98923542, IP 132.47.203.67, Port 22 2025-03-17 02:20:49,089 - DEBUG - VM ctest-TestRoutersBasic-67087440-98923542 is ready for SSH connections 2025-03-17 02:20:49,090 - INFO - Waiting for VM ctest-TestRoutersBasic-67087440-37441571 to be up.. 2025-03-17 02:20:49,177 - DEBUG - VM is in ACTIVE state now 2025-03-17 02:20:49,177 - INFO - VM name : ctest-TestRoutersBasic-67087440-37441571 2025-03-17 02:20:49,251 - DEBUG - VM ctest-TestRoutersBasic-67087440-37441571 ID is f8320691-adfc-42dc-bde8-4a206f73eb16 2025-03-17 02:20:49,251 - DEBUG - VM ctest-TestRoutersBasic-67087440-37441571 launched on Node cn-jenkins-deploy-platform-ansible-os-2888-1 2025-03-17 02:20:49,327 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine/f8320691-adfc-42dc-bde8-4a206f73eb16 2025-03-17 02:20:49,335 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine-interface/be676b45-57b1-461b-be5e-fff1c4410140 2025-03-17 02:20:50,572 - 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.23 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.964 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.964/3.099/5.234/2.135 ms') 2025-03-17 02:20:50,572 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-67087440-37441571 passed 2025-03-17 02:20:50,722 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-17 02:20:50,722 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-67087440-37441571, IP 45.164.166.3, Port 22 2025-03-17 02:20:50,878 - DEBUG - VM ctest-TestRoutersBasic-67087440-37441571 is ready for SSH connections 2025-03-17 02:20:50,878 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-17 02:20:50,878 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 45.164.166.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.44, gateway password: c0ntrail123 2025-03-17 02:20:50,879 - DEBUG - ping -s 56 -c 3 -W 1 45.164.166.3 2025-03-17 02:20:54,574 - DEBUG - PING 45.164.166.3 (45.164.166.3): 56 data bytes 64 bytes from 45.164.166.3: seq=0 ttl=62 time=7.663 ms 64 bytes from 45.164.166.3: seq=1 ttl=62 time=1.116 ms 64 bytes from 45.164.166.3: seq=2 ttl=62 time=0.826 ms --- 45.164.166.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.826/3.201/7.663 ms 2025-03-17 02:20:54,575 - INFO - Ping to IP 45.164.166.3 from VM ctest-TestRoutersBasic-67087440-98923542 passed 2025-03-17 02:20:54,575 - INFO - Deleting interface with subnet_id a23d77d1-357d-4ce0-96b9-50e948d36215, port_id None from router 68be1590-57e7-45df-b0e6-442004068596 2025-03-17 02:20:54,785 - INFO - Deleting VM ctest-TestRoutersBasic-67087440-37441571 2025-03-17 02:20:54,855 - INFO - Deleting VM ctest-TestRoutersBasic-67087440-98923542 2025-03-17 02:20:54,947 - INFO - Deleting VN ctest-ext_vn-65889315 2025-03-17 02:20:55,010 - DEBUG - VN 883ec7e4-05cc-455c-a93c-8a3d8a9db37a still in use: Unable to complete operation on network 883ec7e4-05cc-455c-a93c-8a3d8a9db37a. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-443b5744-5910-447e-b974-2beae33ce182'] 2025-03-17 02:20:55,010 - WARNING - Deleting VN ctest-ext_vn-65889315 failed..Will retry 2025-03-17 02:20:57,116 - DEBUG - Response for deleting network () 2025-03-17 02:20:57,117 - INFO - Deleting VN ctest-vn-49643074 2025-03-17 02:20:57,221 - DEBUG - Response for deleting network () 2025-03-17 02:20:57,480 - DEBUG - No XMPP flaps were noticed during the test 2025-03-17 02:20:57,480 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:25] 2025-03-17 02:20:57,481 - INFO - -------------------------------------------------------------------------------- 2025-03-17 02:20:58,152 - INFO - Deleted project: ctest-TestRoutersBasic-67087440, ID : aa763beb-0e96-4ca5-b566-bf80a74c6623