2025-04-08 14:28:53,914 - INFO - Domain Default found not creating 2025-04-08 14:28:54,062 - INFO - Project ctest-TestRoutersBasic-56246819 not found, creating it 2025-04-08 14:28:54,534 - INFO - Created Project:ctest-TestRoutersBasic-56246819, ID : 08d8be44-0088-41d6-ad79-80bf7261534c 2025-04-08 14:28:56,014 - INFO - ================================================================================ 2025-04-08 14:28:56,015 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-04-08 14:28:56,015 - 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-04-08 14:28:56,269 - DEBUG - Nothing to compare xmpp stats {'10.0.0.46': {'10.20.0.21': '0'}} with 2025-04-08 14:28:56,269 - INFO - Initial checks done. Running the testcase now 2025-04-08 14:28:56,270 - INFO - 2025-04-08 14:28:56,981 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-56246819 2025-04-08 14:28:57,079 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-56246819 2025-04-08 14:28:57,410 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-56246819', 'default']} 2025-04-08 14:28:57,721 - DEBUG - Response for create_network : {'network': {'id': 'a7295ec9-3f33-41f6-a655-e075bfdf8059', 'name': 'ctest-vn-89603906', 'tenant_id': '08d8be44008841d6ad7980bf7261534c', 'project_id': '08d8be44008841d6ad7980bf7261534c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-56246819', 'ctest-vn-89603906'], 'port_security_enabled': True, 'description': ''}} 2025-04-08 14:28:57,934 - DEBUG - Response for create_subnet : {'subnet': {'id': '47525ba3-7163-4126-996d-82e7809b9bb6', 'name': '', 'tenant_id': '08d8be44008841d6ad7980bf7261534c', 'network_id': 'a7295ec9-3f33-41f6-a655-e075bfdf8059', 'ip_version': 4, 'cidr': '62.48.130.128/26', 'allocation_pools': [{'start': '62.48.130.130', 'end': '62.48.130.190'}], 'gateway_ip': '62.48.130.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.48.130.130', 'tags': [], 'project_id': '08d8be44008841d6ad7980bf7261534c'}} 2025-04-08 14:28:57,952 - INFO - Created VN ctest-vn-89603906 2025-04-08 14:28:58,002 - DEBUG - VN ctest-vn-89603906 UUID is a7295ec9-3f33-41f6-a655-e075bfdf8059 2025-04-08 14:28:58,413 - DEBUG - Response for create_network : {'network': {'id': 'ccf89c06-54cd-4a54-a8bd-d2dc7b5550c4', 'name': 'ctest-ext_vn-27156989', 'tenant_id': '08d8be44008841d6ad7980bf7261534c', 'project_id': '08d8be44008841d6ad7980bf7261534c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-56246819', 'ctest-ext_vn-27156989'], 'port_security_enabled': True, 'description': ''}} 2025-04-08 14:28:58,573 - DEBUG - Response for create_subnet : {'subnet': {'id': '5e4ab5e0-de04-4885-bca7-04d6c6a3d1a6', 'name': '', 'tenant_id': '08d8be44008841d6ad7980bf7261534c', 'network_id': 'ccf89c06-54cd-4a54-a8bd-d2dc7b5550c4', 'ip_version': 4, 'cidr': '221.199.112.128/26', 'allocation_pools': [{'start': '221.199.112.130', 'end': '221.199.112.190'}], 'gateway_ip': '221.199.112.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '221.199.112.130', 'tags': [], 'project_id': '08d8be44008841d6ad7980bf7261534c'}} 2025-04-08 14:28:58,598 - INFO - Created VN ctest-ext_vn-27156989 2025-04-08 14:28:58,650 - DEBUG - VN ctest-ext_vn-27156989 UUID is ccf89c06-54cd-4a54-a8bd-d2dc7b5550c4 2025-04-08 14:28:58,815 - DEBUG - Services list from nova: [, , ] 2025-04-08 14:28:59,823 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3054-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3054-1) 2025-04-08 14:29:00,970 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3054-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3054-1) 2025-04-08 14:29:01,050 - INFO - Setting gateway for router 2eb94953-7f7f-42ef-8bc6-12310a10ea45 to network ccf89c06-54cd-4a54-a8bd-d2dc7b5550c4 2025-04-08 14:29:01,115 - INFO - Adding interface with subnet_id 47525ba3-7163-4126-996d-82e7809b9bb6, port_id None to router 2eb94953-7f7f-42ef-8bc6-12310a10ea45 2025-04-08 14:29:01,531 - INFO - Waiting for VM ctest-TestRoutersBasic-56246819-87583422 to be up.. 2025-04-08 14:29:01,701 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-08 14:29:06,783 - DEBUG - VM is in ACTIVE state now 2025-04-08 14:29:06,783 - INFO - VM name : ctest-TestRoutersBasic-56246819-87583422 2025-04-08 14:29:06,856 - DEBUG - VM ctest-TestRoutersBasic-56246819-87583422 ID is 2af86edd-6f2e-4ec9-bb4e-1912d5961d3b 2025-04-08 14:29:06,873 - DEBUG - VM ctest-TestRoutersBasic-56246819-87583422 launched on Node cn-jenkins-deploy-platform-ansible-os-3054-1 2025-04-08 14:29:06,947 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-machine/2af86edd-6f2e-4ec9-bb4e-1912d5961d3b 2025-04-08 14:29:07,250 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-machine/2af86edd-6f2e-4ec9-bb4e-1912d5961d3b 2025-04-08 14:29:07,282 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-machine-interface/755ca609-d53e-4f77-b799-1a86abb0211f 2025-04-08 14:29:10,561 - 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-04-08 14:29:10,561 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-56246819-87583422 failed! 2025-04-08 14:29:10,614 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-56246819:ctest-vn-89603906 is 62.48.130.129 and allocation pool is NOT set 2025-04-08 14:29:12,671 - 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.96 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.398 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.398/1.677/2.957/1.279 ms') 2025-04-08 14:29:12,671 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-56246819-87583422 passed 2025-04-08 14:29:12,778 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-08 14:29:12,778 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-56246819-87583422, IP 62.48.130.131, Port 22 2025-04-08 14:29:12,934 - DEBUG - VM ctest-TestRoutersBasic-56246819-87583422 is ready for SSH connections 2025-04-08 14:29:12,934 - INFO - Waiting for VM ctest-TestRoutersBasic-56246819-66728459 to be up.. 2025-04-08 14:29:13,012 - DEBUG - VM is in ACTIVE state now 2025-04-08 14:29:13,012 - INFO - VM name : ctest-TestRoutersBasic-56246819-66728459 2025-04-08 14:29:13,088 - DEBUG - VM ctest-TestRoutersBasic-56246819-66728459 ID is 2e776f85-a46b-4098-9d1f-5d444086bf59 2025-04-08 14:29:13,088 - DEBUG - VM ctest-TestRoutersBasic-56246819-66728459 launched on Node cn-jenkins-deploy-platform-ansible-os-3054-1 2025-04-08 14:29:13,169 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-machine/2e776f85-a46b-4098-9d1f-5d444086bf59 2025-04-08 14:29:13,181 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-machine-interface/eebcaacf-ca9e-42b4-b459-222d62d54f4f 2025-04-08 14:29:14,424 - 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=2.77 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.498 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 = 0.498/1.636/2.774/1.138 ms') 2025-04-08 14:29:14,424 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-56246819-66728459 passed 2025-04-08 14:29:14,574 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-08 14:29:14,575 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-56246819-66728459, IP 221.199.112.131, Port 22 2025-04-08 14:29:14,730 - DEBUG - VM ctest-TestRoutersBasic-56246819-66728459 is ready for SSH connections 2025-04-08 14:29:14,730 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-08 14:29:14,730 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 221.199.112.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.46, gateway password: c0ntrail123 2025-04-08 14:29:14,731 - DEBUG - ping -s 56 -c 3 -W 1 221.199.112.131 2025-04-08 14:29:18,418 - DEBUG - PING 221.199.112.131 (221.199.112.131): 56 data bytes 64 bytes from 221.199.112.131: seq=0 ttl=62 time=5.094 ms 64 bytes from 221.199.112.131: seq=1 ttl=62 time=1.051 ms 64 bytes from 221.199.112.131: seq=2 ttl=62 time=1.119 ms --- 221.199.112.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.051/2.421/5.094 ms 2025-04-08 14:29:18,418 - INFO - Ping to IP 221.199.112.131 from VM ctest-TestRoutersBasic-56246819-87583422 passed 2025-04-08 14:29:18,418 - INFO - Deleting interface with subnet_id 47525ba3-7163-4126-996d-82e7809b9bb6, port_id None from router 2eb94953-7f7f-42ef-8bc6-12310a10ea45 2025-04-08 14:29:18,618 - INFO - Deleting VM ctest-TestRoutersBasic-56246819-66728459 2025-04-08 14:29:18,686 - INFO - Deleting VM ctest-TestRoutersBasic-56246819-87583422 2025-04-08 14:29:18,760 - INFO - Deleting VN ctest-ext_vn-27156989 2025-04-08 14:29:18,831 - DEBUG - VN ccf89c06-54cd-4a54-a8bd-d2dc7b5550c4 still in use: Unable to complete operation on network ccf89c06-54cd-4a54-a8bd-d2dc7b5550c4. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-acba2715-4dc8-4860-bed0-749d81c1f79f'] 2025-04-08 14:29:18,831 - WARNING - Deleting VN ctest-ext_vn-27156989 failed..Will retry 2025-04-08 14:29:20,943 - DEBUG - Response for deleting network () 2025-04-08 14:29:20,943 - INFO - Deleting VN ctest-vn-89603906 2025-04-08 14:29:21,061 - DEBUG - Response for deleting network () 2025-04-08 14:29:21,324 - DEBUG - No XMPP flaps were noticed during the test 2025-04-08 14:29:21,324 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:25] 2025-04-08 14:29:21,324 - INFO - -------------------------------------------------------------------------------- 2025-04-08 14:29:22,042 - INFO - Deleted project: ctest-TestRoutersBasic-56246819, ID : 08d8be44-0088-41d6-ad79-80bf7261534c