2025-03-20 17:06:23,750 - INFO - Domain Default found not creating 2025-03-20 17:06:23,912 - INFO - Project ctest-TestRoutersBasic-60552207 not found, creating it 2025-03-20 17:06:24,414 - INFO - Created Project:ctest-TestRoutersBasic-60552207, ID : e62ca8cf-10b3-4e01-8f9d-0eed0f06c005 2025-03-20 17:06:25,994 - INFO - ================================================================================ 2025-03-20 17:06:25,997 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-03-20 17:06:25,997 - 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-20 17:06:26,252 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.5': '0'}} with 2025-03-20 17:06:26,252 - INFO - Initial checks done. Running the testcase now 2025-03-20 17:06:26,252 - INFO - 2025-03-20 17:06:27,069 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-60552207 2025-03-20 17:06:27,169 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-60552207 2025-03-20 17:06:27,505 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-60552207', 'default']} 2025-03-20 17:06:27,834 - DEBUG - Response for create_network : {'network': {'id': '432bdad0-4a7a-4186-b3b5-6164aebb29b8', 'name': 'ctest-vn-76409396', 'tenant_id': 'e62ca8cf10b34e018f9d0eed0f06c005', 'project_id': 'e62ca8cf10b34e018f9d0eed0f06c005', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-60552207', 'ctest-vn-76409396'], 'port_security_enabled': True, 'description': ''}} 2025-03-20 17:06:28,012 - DEBUG - Response for create_subnet : {'subnet': {'id': '262d09ff-ff79-4cfc-9be1-06d46c00df74', 'name': '', 'tenant_id': 'e62ca8cf10b34e018f9d0eed0f06c005', 'network_id': '432bdad0-4a7a-4186-b3b5-6164aebb29b8', 'ip_version': 4, 'cidr': '157.90.183.64/26', 'allocation_pools': [{'start': '157.90.183.66', 'end': '157.90.183.126'}], 'gateway_ip': '157.90.183.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '157.90.183.66', 'tags': [], 'project_id': 'e62ca8cf10b34e018f9d0eed0f06c005'}} 2025-03-20 17:06:28,031 - INFO - Created VN ctest-vn-76409396 2025-03-20 17:06:28,085 - DEBUG - VN ctest-vn-76409396 UUID is 432bdad0-4a7a-4186-b3b5-6164aebb29b8 2025-03-20 17:06:28,439 - DEBUG - Response for create_network : {'network': {'id': 'cded2d95-14c9-4e1e-869b-26fde5284076', 'name': 'ctest-ext_vn-88584481', 'tenant_id': 'e62ca8cf10b34e018f9d0eed0f06c005', 'project_id': 'e62ca8cf10b34e018f9d0eed0f06c005', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-60552207', 'ctest-ext_vn-88584481'], 'port_security_enabled': True, 'description': ''}} 2025-03-20 17:06:28,682 - DEBUG - Response for create_subnet : {'subnet': {'id': '36d78076-7fe9-4219-baf2-ccf407171bac', 'name': '', 'tenant_id': 'e62ca8cf10b34e018f9d0eed0f06c005', 'network_id': 'cded2d95-14c9-4e1e-869b-26fde5284076', 'ip_version': 4, 'cidr': '139.50.42.128/26', 'allocation_pools': [{'start': '139.50.42.130', 'end': '139.50.42.190'}], 'gateway_ip': '139.50.42.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '139.50.42.130', 'tags': [], 'project_id': 'e62ca8cf10b34e018f9d0eed0f06c005'}} 2025-03-20 17:06:28,702 - INFO - Created VN ctest-ext_vn-88584481 2025-03-20 17:06:28,757 - DEBUG - VN ctest-ext_vn-88584481 UUID is cded2d95-14c9-4e1e-869b-26fde5284076 2025-03-20 17:06:28,947 - DEBUG - Services list from nova: [, , ] 2025-03-20 17:06:30,057 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2930-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2930-1) 2025-03-20 17:06:31,290 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2930-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2930-1) 2025-03-20 17:06:31,379 - INFO - Setting gateway for router 1ab0082b-c88c-43e2-ba1d-e8ebeb506ce4 to network cded2d95-14c9-4e1e-869b-26fde5284076 2025-03-20 17:06:31,453 - INFO - Adding interface with subnet_id 262d09ff-ff79-4cfc-9be1-06d46c00df74, port_id None to router 1ab0082b-c88c-43e2-ba1d-e8ebeb506ce4 2025-03-20 17:06:31,911 - INFO - Waiting for VM ctest-TestRoutersBasic-60552207-53465469 to be up.. 2025-03-20 17:06:32,132 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-20 17:06:37,234 - DEBUG - VM is in ACTIVE state now 2025-03-20 17:06:37,235 - INFO - VM name : ctest-TestRoutersBasic-60552207-53465469 2025-03-20 17:06:37,336 - DEBUG - VM ctest-TestRoutersBasic-60552207-53465469 ID is f5b87a43-e87c-4066-a3e9-a33f7e188926 2025-03-20 17:06:37,359 - DEBUG - VM ctest-TestRoutersBasic-60552207-53465469 launched on Node cn-jenkins-deploy-platform-ansible-os-2930-1 2025-03-20 17:06:37,445 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/f5b87a43-e87c-4066-a3e9-a33f7e188926 2025-03-20 17:06:37,782 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/f5b87a43-e87c-4066-a3e9-a33f7e188926 2025-03-20 17:06:37,823 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/ddcfc1a5-d6af-4958-8f52-a6869db7e28d 2025-03-20 17:06:41,089 - 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 1017ms') 2025-03-20 17:06:41,089 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-60552207-53465469 failed! 2025-03-20 17:06:41,145 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-60552207:ctest-vn-76409396 is 157.90.183.65 and allocation pool is NOT set 2025-03-20 17:06:43,211 - 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=4.08 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.942 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.942/2.512/4.082/1.570 ms') 2025-03-20 17:06:43,212 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-60552207-53465469 passed 2025-03-20 17:06:43,325 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-20 17:06:43,325 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-60552207-53465469, IP 157.90.183.67, Port 22 2025-03-20 17:06:43,492 - DEBUG - VM ctest-TestRoutersBasic-60552207-53465469 is ready for SSH connections 2025-03-20 17:06:43,492 - INFO - Waiting for VM ctest-TestRoutersBasic-60552207-51962974 to be up.. 2025-03-20 17:06:43,580 - DEBUG - VM is in ACTIVE state now 2025-03-20 17:06:43,580 - INFO - VM name : ctest-TestRoutersBasic-60552207-51962974 2025-03-20 17:06:43,661 - DEBUG - VM ctest-TestRoutersBasic-60552207-51962974 ID is a2b37643-7df4-4b6d-91e3-84c634b7e0ef 2025-03-20 17:06:43,661 - DEBUG - VM ctest-TestRoutersBasic-60552207-51962974 launched on Node cn-jenkins-deploy-platform-ansible-os-2930-1 2025-03-20 17:06:43,747 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/a2b37643-7df4-4b6d-91e3-84c634b7e0ef 2025-03-20 17:06:43,758 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/4b702e31-2fa0-496e-9222-7b708468597e 2025-03-20 17:06:45,007 - 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.83 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.946 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.946/2.389/3.833/1.443 ms') 2025-03-20 17:06:45,007 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-60552207-51962974 passed 2025-03-20 17:06:45,165 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-20 17:06:45,165 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-60552207-51962974, IP 139.50.42.131, Port 22 2025-03-20 17:06:45,330 - DEBUG - VM ctest-TestRoutersBasic-60552207-51962974 is ready for SSH connections 2025-03-20 17:06:45,331 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-20 17:06:45,331 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 139.50.42.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2025-03-20 17:06:45,331 - DEBUG - ping -s 56 -c 3 -W 1 139.50.42.131 2025-03-20 17:06:49,472 - DEBUG - PING 139.50.42.131 (139.50.42.131): 56 data bytes 64 bytes from 139.50.42.131: seq=0 ttl=62 time=6.385 ms 64 bytes from 139.50.42.131: seq=1 ttl=62 time=0.951 ms 64 bytes from 139.50.42.131: seq=2 ttl=62 time=0.898 ms --- 139.50.42.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.898/2.744/6.385 ms 2025-03-20 17:06:49,472 - INFO - Ping to IP 139.50.42.131 from VM ctest-TestRoutersBasic-60552207-53465469 passed 2025-03-20 17:06:49,472 - INFO - Deleting interface with subnet_id 262d09ff-ff79-4cfc-9be1-06d46c00df74, port_id None from router 1ab0082b-c88c-43e2-ba1d-e8ebeb506ce4 2025-03-20 17:06:49,688 - INFO - Deleting VM ctest-TestRoutersBasic-60552207-51962974 2025-03-20 17:06:49,771 - INFO - Deleting VM ctest-TestRoutersBasic-60552207-53465469 2025-03-20 17:06:49,863 - INFO - Deleting VN ctest-ext_vn-88584481 2025-03-20 17:06:49,939 - DEBUG - VN cded2d95-14c9-4e1e-869b-26fde5284076 still in use: Unable to complete operation on network cded2d95-14c9-4e1e-869b-26fde5284076. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-e2f03c18-3688-4ba7-be77-28e524a172d4'] 2025-03-20 17:06:49,939 - WARNING - Deleting VN ctest-ext_vn-88584481 failed..Will retry 2025-03-20 17:06:52,070 - DEBUG - Response for deleting network () 2025-03-20 17:06:52,070 - INFO - Deleting VN ctest-vn-76409396 2025-03-20 17:06:52,216 - DEBUG - Response for deleting network () 2025-03-20 17:06:52,479 - DEBUG - No XMPP flaps were noticed during the test 2025-03-20 17:06:52,479 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:27] 2025-03-20 17:06:52,480 - INFO - -------------------------------------------------------------------------------- 2025-03-20 17:06:53,345 - INFO - Deleted project: ctest-TestRoutersBasic-60552207, ID : e62ca8cf-10b3-4e01-8f9d-0eed0f06c005