2025-06-26 08:39:04,852 - INFO - Domain Default found not creating 2025-06-26 08:39:05,047 - INFO - Project ctest-TestRoutersBasic-27254553 not found, creating it 2025-06-26 08:39:05,579 - INFO - Created Project:ctest-TestRoutersBasic-27254553, ID : 2e92609a-9ca7-4a6b-b983-61a03c7993b9 2025-06-26 08:39:07,360 - INFO - ================================================================================ 2025-06-26 08:39:07,360 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-06-26 08:39:07,361 - 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-06-26 08:39:07,638 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.254': '0'}} with 2025-06-26 08:39:07,638 - INFO - Initial checks done. Running the testcase now 2025-06-26 08:39:07,638 - INFO - 2025-06-26 08:39:08,507 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-27254553 2025-06-26 08:39:08,615 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-27254553 2025-06-26 08:39:08,958 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-27254553', 'default']} 2025-06-26 08:39:09,302 - DEBUG - Response for create_network : {'network': {'id': '447c259d-9989-4f79-9b45-f468280e289e', 'name': 'ctest-vn-48369777', 'tenant_id': '2e92609a9ca74a6bb98361a03c7993b9', 'project_id': '2e92609a9ca74a6bb98361a03c7993b9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-27254553', 'ctest-vn-48369777'], 'port_security_enabled': True, 'description': ''}} 2025-06-26 08:39:09,489 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a0598ac2-cb10-4a66-9f44-61199c6d6c14', 'name': '', 'tenant_id': '2e92609a9ca74a6bb98361a03c7993b9', 'network_id': '447c259d-9989-4f79-9b45-f468280e289e', 'ip_version': 4, 'cidr': '125.215.185.192/26', 'allocation_pools': [{'start': '125.215.185.194', 'end': '125.215.185.254'}], 'gateway_ip': '125.215.185.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '125.215.185.194', 'tags': [], 'project_id': '2e92609a9ca74a6bb98361a03c7993b9'}} 2025-06-26 08:39:09,511 - INFO - Created VN ctest-vn-48369777 2025-06-26 08:39:09,567 - DEBUG - VN ctest-vn-48369777 UUID is 447c259d-9989-4f79-9b45-f468280e289e 2025-06-26 08:39:09,928 - DEBUG - Response for create_network : {'network': {'id': '4d302842-230b-42da-a6bb-76bbce859094', 'name': 'ctest-ext_vn-37180380', 'tenant_id': '2e92609a9ca74a6bb98361a03c7993b9', 'project_id': '2e92609a9ca74a6bb98361a03c7993b9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-27254553', 'ctest-ext_vn-37180380'], 'port_security_enabled': True, 'description': ''}} 2025-06-26 08:39:10,162 - DEBUG - Response for create_subnet : {'subnet': {'id': '9b58e095-ccd1-4487-a621-c58caadd7aa5', 'name': '', 'tenant_id': '2e92609a9ca74a6bb98361a03c7993b9', 'network_id': '4d302842-230b-42da-a6bb-76bbce859094', 'ip_version': 4, 'cidr': '37.133.179.192/26', 'allocation_pools': [{'start': '37.133.179.194', 'end': '37.133.179.254'}], 'gateway_ip': '37.133.179.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '37.133.179.194', 'tags': [], 'project_id': '2e92609a9ca74a6bb98361a03c7993b9'}} 2025-06-26 08:39:10,185 - INFO - Created VN ctest-ext_vn-37180380 2025-06-26 08:39:10,243 - DEBUG - VN ctest-ext_vn-37180380 UUID is 4d302842-230b-42da-a6bb-76bbce859094 2025-06-26 08:39:10,459 - DEBUG - Services list from nova: [, , ] 2025-06-26 08:39:11,743 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3557-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3557-1) 2025-06-26 08:39:13,186 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3557-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3557-1) 2025-06-26 08:39:13,298 - INFO - Setting gateway for router 2c83c204-25cb-4aa5-9f16-1b0a4791dd02 to network 4d302842-230b-42da-a6bb-76bbce859094 2025-06-26 08:39:13,388 - INFO - Adding interface with subnet_id a0598ac2-cb10-4a66-9f44-61199c6d6c14, port_id None to router 2c83c204-25cb-4aa5-9f16-1b0a4791dd02 2025-06-26 08:39:13,880 - INFO - Waiting for VM ctest-TestRoutersBasic-27254553-71917538 to be up.. 2025-06-26 08:39:14,045 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-26 08:39:19,158 - DEBUG - VM is in ACTIVE state now 2025-06-26 08:39:19,158 - INFO - VM name : ctest-TestRoutersBasic-27254553-71917538 2025-06-26 08:39:19,277 - DEBUG - VM ctest-TestRoutersBasic-27254553-71917538 ID is 6b962804-27a0-4727-8b41-287ff6ebcf97 2025-06-26 08:39:19,312 - DEBUG - VM ctest-TestRoutersBasic-27254553-71917538 launched on Node cn-jenkins-deploy-platform-ansible-os-3557-1 2025-06-26 08:39:19,432 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/6b962804-27a0-4727-8b41-287ff6ebcf97 2025-06-26 08:39:19,801 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/6b962804-27a0-4727-8b41-287ff6ebcf97 2025-06-26 08:39:19,843 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine-interface/eb0c673b-59ee-4fae-9fef-05c1fb5c5763 2025-06-26 08:39:23,140 - 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 1014ms') 2025-06-26 08:39:23,140 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-27254553-71917538 failed! 2025-06-26 08:39:23,199 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-27254553:ctest-vn-48369777 is 125.215.185.193 and allocation pool is NOT set 2025-06-26 08:39:25,263 - 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=10.4 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.32 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.318/6.342/10.367/4.024 ms') 2025-06-26 08:39:25,264 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-27254553-71917538 passed 2025-06-26 08:39:25,427 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-26 08:39:25,427 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-27254553-71917538, IP 125.215.185.195, Port 22 2025-06-26 08:39:25,493 - 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-06-26 08:39:25,598 - DEBUG - VM ctest-TestRoutersBasic-27254553-71917538 is NOT ready for SSH connections, VM status: ACTIVE 2025-06-26 08:39:30,599 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-26 08:39:30,599 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-27254553-71917538, IP 125.215.185.195, Port 22 2025-06-26 08:39:30,769 - DEBUG - VM ctest-TestRoutersBasic-27254553-71917538 is ready for SSH connections 2025-06-26 08:39:30,769 - INFO - Waiting for VM ctest-TestRoutersBasic-27254553-30536473 to be up.. 2025-06-26 08:39:30,866 - DEBUG - VM is in ACTIVE state now 2025-06-26 08:39:30,866 - INFO - VM name : ctest-TestRoutersBasic-27254553-30536473 2025-06-26 08:39:30,969 - DEBUG - VM ctest-TestRoutersBasic-27254553-30536473 ID is 28423591-e67f-424a-b52e-5d4244fd6bc3 2025-06-26 08:39:30,969 - DEBUG - VM ctest-TestRoutersBasic-27254553-30536473 launched on Node cn-jenkins-deploy-platform-ansible-os-3557-1 2025-06-26 08:39:31,070 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/28423591-e67f-424a-b52e-5d4244fd6bc3 2025-06-26 08:39:31,081 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine-interface/e934524a-24a1-470a-a8dc-7abc380f9f2a 2025-06-26 08:39:32,345 - 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.03 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.426 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.426/2.726/5.027/2.300 ms') 2025-06-26 08:39:32,346 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-27254553-30536473 passed 2025-06-26 08:39:32,503 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-26 08:39:32,503 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-27254553-30536473, IP 37.133.179.195, Port 22 2025-06-26 08:39:32,673 - DEBUG - VM ctest-TestRoutersBasic-27254553-30536473 is ready for SSH connections 2025-06-26 08:39:32,674 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-26 08:39:32,674 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 37.133.179.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.48, gateway password: c0ntrail123 2025-06-26 08:39:32,674 - DEBUG - ping -s 56 -c 3 -W 1 37.133.179.195 2025-06-26 08:39:36,453 - DEBUG - PING 37.133.179.195 (37.133.179.195): 56 data bytes 64 bytes from 37.133.179.195: seq=0 ttl=62 time=7.733 ms 64 bytes from 37.133.179.195: seq=1 ttl=62 time=1.121 ms 64 bytes from 37.133.179.195: seq=2 ttl=62 time=1.271 ms --- 37.133.179.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.121/3.375/7.733 ms 2025-06-26 08:39:36,454 - INFO - Ping to IP 37.133.179.195 from VM ctest-TestRoutersBasic-27254553-71917538 passed 2025-06-26 08:39:36,454 - INFO - Deleting interface with subnet_id a0598ac2-cb10-4a66-9f44-61199c6d6c14, port_id None from router 2c83c204-25cb-4aa5-9f16-1b0a4791dd02 2025-06-26 08:39:36,713 - INFO - Deleting VM ctest-TestRoutersBasic-27254553-30536473 2025-06-26 08:39:36,792 - INFO - Deleting VM ctest-TestRoutersBasic-27254553-71917538 2025-06-26 08:39:36,887 - INFO - Deleting VN ctest-ext_vn-37180380 2025-06-26 08:39:36,977 - DEBUG - VN 4d302842-230b-42da-a6bb-76bbce859094 still in use: Unable to complete operation on network 4d302842-230b-42da-a6bb-76bbce859094. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-ac704d9c-a03f-44d7-9658-cc23748133cd'] 2025-06-26 08:39:36,977 - WARNING - Deleting VN ctest-ext_vn-37180380 failed..Will retry 2025-06-26 08:39:39,099 - DEBUG - Response for deleting network () 2025-06-26 08:39:39,099 - INFO - Deleting VN ctest-vn-48369777 2025-06-26 08:39:39,237 - DEBUG - Response for deleting network () 2025-06-26 08:39:39,512 - DEBUG - No XMPP flaps were noticed during the test
2025-06-26 08:39:39,512 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32]
2025-06-26 08:39:39,513 - INFO - -------------------------------------------------------------------------------- 2025-06-26 08:39:40,261 - INFO - Deleted project: ctest-TestRoutersBasic-27254553, ID : 2e92609a-9ca7-4a6b-b983-61a03c7993b9