2025-03-25 14:56:58,125 - INFO - Domain Default found not creating 2025-03-25 14:56:58,314 - INFO - Project ctest-TestRoutersBasic-03066621 not found, creating it 2025-03-25 14:56:58,845 - INFO - Created Project:ctest-TestRoutersBasic-03066621, ID : 0bef15eb-befb-43c7-a7f3-44d70c5dad41 2025-03-25 14:57:00,457 - INFO - ================================================================================ 2025-03-25 14:57:00,457 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-03-25 14:57:00,457 - 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-25 14:57:00,723 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.13': '0'}} with 2025-03-25 14:57:00,723 - INFO - Initial checks done. Running the testcase now 2025-03-25 14:57:00,723 - INFO - 2025-03-25 14:57:01,563 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-03066621 2025-03-25 14:57:01,664 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-03066621 2025-03-25 14:57:02,001 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-03066621', 'default']} 2025-03-25 14:57:02,371 - DEBUG - Response for create_network : {'network': {'id': '99a182f5-4cce-406f-83a3-fae5df75bf7a', 'name': 'ctest-vn-98647461', 'tenant_id': '0bef15ebbefb43c7a7f344d70c5dad41', 'project_id': '0bef15ebbefb43c7a7f344d70c5dad41', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-03066621', 'ctest-vn-98647461'], 'port_security_enabled': True, 'description': ''}} 2025-03-25 14:57:02,614 - DEBUG - Response for create_subnet : {'subnet': {'id': 'abefb1fc-8cd0-4d37-bded-d9639241c9b6', 'name': '', 'tenant_id': '0bef15ebbefb43c7a7f344d70c5dad41', 'network_id': '99a182f5-4cce-406f-83a3-fae5df75bf7a', 'ip_version': 4, 'cidr': '164.249.215.192/26', 'allocation_pools': [{'start': '164.249.215.194', 'end': '164.249.215.254'}], 'gateway_ip': '164.249.215.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '164.249.215.194', 'tags': [], 'project_id': '0bef15ebbefb43c7a7f344d70c5dad41'}} 2025-03-25 14:57:02,638 - INFO - Created VN ctest-vn-98647461 2025-03-25 14:57:02,692 - DEBUG - VN ctest-vn-98647461 UUID is 99a182f5-4cce-406f-83a3-fae5df75bf7a 2025-03-25 14:57:03,095 - DEBUG - Response for create_network : {'network': {'id': 'e74d872c-52fa-4d37-877d-b9f8bfeff1fa', 'name': 'ctest-ext_vn-58029996', 'tenant_id': '0bef15ebbefb43c7a7f344d70c5dad41', 'project_id': '0bef15ebbefb43c7a7f344d70c5dad41', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-03066621', 'ctest-ext_vn-58029996'], 'port_security_enabled': True, 'description': ''}} 2025-03-25 14:57:03,321 - DEBUG - Response for create_subnet : {'subnet': {'id': '6387d550-44b2-4f71-b356-13f6274c065b', 'name': '', 'tenant_id': '0bef15ebbefb43c7a7f344d70c5dad41', 'network_id': 'e74d872c-52fa-4d37-877d-b9f8bfeff1fa', 'ip_version': 4, 'cidr': '25.52.4.0/26', 'allocation_pools': [{'start': '25.52.4.2', 'end': '25.52.4.62'}], 'gateway_ip': '25.52.4.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25.52.4.2', 'tags': [], 'project_id': '0bef15ebbefb43c7a7f344d70c5dad41'}} 2025-03-25 14:57:03,346 - INFO - Created VN ctest-ext_vn-58029996 2025-03-25 14:57:03,404 - DEBUG - VN ctest-ext_vn-58029996 UUID is e74d872c-52fa-4d37-877d-b9f8bfeff1fa 2025-03-25 14:57:03,594 - DEBUG - Services list from nova: [, , ] 2025-03-25 14:57:04,770 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2951-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2951-1) 2025-03-25 14:57:06,130 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2951-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2951-1) 2025-03-25 14:57:06,221 - INFO - Setting gateway for router 3322d299-6675-4f53-89be-9061cd173e1a to network e74d872c-52fa-4d37-877d-b9f8bfeff1fa 2025-03-25 14:57:06,327 - INFO - Adding interface with subnet_id abefb1fc-8cd0-4d37-bded-d9639241c9b6, port_id None to router 3322d299-6675-4f53-89be-9061cd173e1a 2025-03-25 14:57:07,028 - INFO - Waiting for VM ctest-TestRoutersBasic-03066621-33525291 to be up.. 2025-03-25 14:57:07,207 - DEBUG - VM is in ACTIVE state now 2025-03-25 14:57:07,207 - INFO - VM name : ctest-TestRoutersBasic-03066621-33525291 2025-03-25 14:57:07,346 - DEBUG - VM ctest-TestRoutersBasic-03066621-33525291 ID is 66d8df67-9574-49ac-98ad-9f2896e48dab 2025-03-25 14:57:07,381 - DEBUG - VM ctest-TestRoutersBasic-03066621-33525291 launched on Node cn-jenkins-deploy-platform-ansible-os-2951-1 2025-03-25 14:57:07,505 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/66d8df67-9574-49ac-98ad-9f2896e48dab 2025-03-25 14:57:08,009 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/66d8df67-9574-49ac-98ad-9f2896e48dab 2025-03-25 14:57:08,056 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/6d0c0c34-26b4-4fdf-8216-75f92b3c6a5a 2025-03-25 14:57:11,358 - 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 1029ms') 2025-03-25 14:57:11,359 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-03066621-33525291 failed! 2025-03-25 14:57:11,420 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-03066621:ctest-vn-98647461 is 164.249.215.193 and allocation pool is NOT set 2025-03-25 14:57:15,487 - 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 1006ms') 2025-03-25 14:57:15,487 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-03066621-33525291 failed! 2025-03-25 14:57:15,548 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-03066621:ctest-vn-98647461 is 164.249.215.193 and allocation pool is NOT set 2025-03-25 14:57:17,615 - 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.28 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.12 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 3.117/3.199/3.281/0.082 ms') 2025-03-25 14:57:17,615 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-03066621-33525291 passed 2025-03-25 14:57:17,776 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-25 14:57:17,777 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-03066621-33525291, IP 164.249.215.195, Port 22 2025-03-25 14:57:17,832 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-03-25 14:57:17,925 - DEBUG - VM ctest-TestRoutersBasic-03066621-33525291 is NOT ready for SSH connections, VM status: ACTIVE 2025-03-25 14:57:22,926 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-25 14:57:22,926 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-03066621-33525291, IP 164.249.215.195, Port 22 2025-03-25 14:57:23,085 - DEBUG - VM ctest-TestRoutersBasic-03066621-33525291 is ready for SSH connections 2025-03-25 14:57:23,085 - INFO - Waiting for VM ctest-TestRoutersBasic-03066621-46073949 to be up.. 2025-03-25 14:57:23,178 - DEBUG - VM is in ACTIVE state now 2025-03-25 14:57:23,178 - INFO - VM name : ctest-TestRoutersBasic-03066621-46073949 2025-03-25 14:57:23,264 - DEBUG - VM ctest-TestRoutersBasic-03066621-46073949 ID is b808d223-ced0-4ee7-812c-372bbefbf8f6 2025-03-25 14:57:23,264 - DEBUG - VM ctest-TestRoutersBasic-03066621-46073949 launched on Node cn-jenkins-deploy-platform-ansible-os-2951-1 2025-03-25 14:57:23,349 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/b808d223-ced0-4ee7-812c-372bbefbf8f6 2025-03-25 14:57:23,361 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/1440c592-5267-4e1d-8179-3139906c3410 2025-03-25 14:57:24,616 - 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=3.25 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.564 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.564/1.909/3.254/1.345 ms') 2025-03-25 14:57:24,616 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-03066621-46073949 passed 2025-03-25 14:57:24,772 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-25 14:57:24,772 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-03066621-46073949, IP 25.52.4.3, Port 22 2025-03-25 14:57:24,928 - DEBUG - VM ctest-TestRoutersBasic-03066621-46073949 is ready for SSH connections 2025-03-25 14:57:24,928 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-25 14:57:24,928 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 25.52.4.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2025-03-25 14:57:24,929 - DEBUG - ping -s 56 -c 3 -W 1 25.52.4.3 2025-03-25 14:57:28,699 - DEBUG - PING 25.52.4.3 (25.52.4.3): 56 data bytes 64 bytes from 25.52.4.3: seq=0 ttl=62 time=7.182 ms 64 bytes from 25.52.4.3: seq=1 ttl=62 time=0.943 ms 64 bytes from 25.52.4.3: seq=2 ttl=62 time=1.270 ms --- 25.52.4.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.943/3.131/7.182 ms 2025-03-25 14:57:28,700 - INFO - Ping to IP 25.52.4.3 from VM ctest-TestRoutersBasic-03066621-33525291 passed 2025-03-25 14:57:28,700 - INFO - Deleting interface with subnet_id abefb1fc-8cd0-4d37-bded-d9639241c9b6, port_id None from router 3322d299-6675-4f53-89be-9061cd173e1a 2025-03-25 14:57:28,966 - INFO - Deleting VM ctest-TestRoutersBasic-03066621-46073949 2025-03-25 14:57:29,065 - INFO - Deleting VM ctest-TestRoutersBasic-03066621-33525291 2025-03-25 14:57:29,174 - INFO - Deleting VN ctest-ext_vn-58029996 2025-03-25 14:57:29,292 - DEBUG - VN e74d872c-52fa-4d37-877d-b9f8bfeff1fa still in use: Unable to complete operation on network e74d872c-52fa-4d37-877d-b9f8bfeff1fa. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-367b4690-aa0e-4c61-b6b7-b63e5636f8e9'] 2025-03-25 14:57:29,292 - WARNING - Deleting VN ctest-ext_vn-58029996 failed..Will retry 2025-03-25 14:57:31,420 - DEBUG - Response for deleting network () 2025-03-25 14:57:31,420 - INFO - Deleting VN ctest-vn-98647461 2025-03-25 14:57:31,569 - DEBUG - Response for deleting network () 2025-03-25 14:57:31,832 - DEBUG - No XMPP flaps were noticed during the test 2025-03-25 14:57:31,832 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31] 2025-03-25 14:57:31,832 - INFO - -------------------------------------------------------------------------------- 2025-03-25 14:57:32,606 - INFO - Deleted project: ctest-TestRoutersBasic-03066621, ID : 0bef15eb-befb-43c7-a7f3-44d70c5dad41