2025-11-05 22:31:07,038 - INFO - Domain Default found not creating 2025-11-05 22:31:07,203 - INFO - Project ctest-TestRoutersBasic-50991394 not found, creating it 2025-11-05 22:31:07,686 - INFO - Created Project:ctest-TestRoutersBasic-50991394, ID : 2a5e6e42-a21a-4322-af68-d3ef576b2ae9 2025-11-05 22:31:09,163 - INFO - ================================================================================ 2025-11-05 22:31:09,163 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-11-05 22:31:09,163 - 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-11-05 22:31:09,423 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.18': '0'}} with 2025-11-05 22:31:09,423 - INFO - Initial checks done. Running the testcase now 2025-11-05 22:31:09,423 - INFO - 2025-11-05 22:31:10,151 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-50991394 2025-11-05 22:31:10,248 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-50991394 2025-11-05 22:31:10,579 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-50991394', 'default']} 2025-11-05 22:31:10,887 - DEBUG - Response for create_network : {'network': {'id': 'dfea2962-0f8a-4362-a719-c2c4ec8a346a', 'name': 'ctest-vn-23445426', 'tenant_id': '2a5e6e42a21a4322af68d3ef576b2ae9', 'project_id': '2a5e6e42a21a4322af68d3ef576b2ae9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-50991394', 'ctest-vn-23445426'], 'port_security_enabled': True, 'description': ''}} 2025-11-05 22:31:11,062 - DEBUG - Response for create_subnet : {'subnet': {'id': '37c81810-8551-4b6c-ba24-fb6318f0004c', 'name': '', 'tenant_id': '2a5e6e42a21a4322af68d3ef576b2ae9', 'network_id': 'dfea2962-0f8a-4362-a719-c2c4ec8a346a', 'ip_version': 4, 'cidr': '38.255.167.192/26', 'allocation_pools': [{'start': '38.255.167.194', 'end': '38.255.167.254'}], 'gateway_ip': '38.255.167.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38.255.167.194', 'tags': [], 'project_id': '2a5e6e42a21a4322af68d3ef576b2ae9'}} 2025-11-05 22:31:11,081 - INFO - Created VN ctest-vn-23445426 2025-11-05 22:31:11,131 - DEBUG - VN ctest-vn-23445426 UUID is dfea2962-0f8a-4362-a719-c2c4ec8a346a 2025-11-05 22:31:11,458 - DEBUG - Response for create_network : {'network': {'id': '6eba5d45-e96a-4e03-b580-30ea484aeaf7', 'name': 'ctest-ext_vn-32543219', 'tenant_id': '2a5e6e42a21a4322af68d3ef576b2ae9', 'project_id': '2a5e6e42a21a4322af68d3ef576b2ae9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-50991394', 'ctest-ext_vn-32543219'], 'port_security_enabled': True, 'description': ''}} 2025-11-05 22:31:11,629 - DEBUG - Response for create_subnet : {'subnet': {'id': 'af5212f0-9db0-47cf-a62a-14172986015a', 'name': '', 'tenant_id': '2a5e6e42a21a4322af68d3ef576b2ae9', 'network_id': '6eba5d45-e96a-4e03-b580-30ea484aeaf7', 'ip_version': 4, 'cidr': '1.222.214.64/26', 'allocation_pools': [{'start': '1.222.214.66', 'end': '1.222.214.126'}], 'gateway_ip': '1.222.214.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '1.222.214.66', 'tags': [], 'project_id': '2a5e6e42a21a4322af68d3ef576b2ae9'}} 2025-11-05 22:31:11,649 - INFO - Created VN ctest-ext_vn-32543219 2025-11-05 22:31:11,703 - DEBUG - VN ctest-ext_vn-32543219 UUID is 6eba5d45-e96a-4e03-b580-30ea484aeaf7 2025-11-05 22:31:11,885 - DEBUG - Services list from nova: [, , ] 2025-11-05 22:31:12,937 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4658-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4658-1) 2025-11-05 22:31:14,115 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4658-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4658-1) 2025-11-05 22:31:14,199 - INFO - Setting gateway for router a5b0bf76-f0e4-4813-b454-7812d3556b21 to network 6eba5d45-e96a-4e03-b580-30ea484aeaf7 2025-11-05 22:31:14,271 - INFO - Adding interface with subnet_id 37c81810-8551-4b6c-ba24-fb6318f0004c, port_id None to router a5b0bf76-f0e4-4813-b454-7812d3556b21 2025-11-05 22:31:14,609 - INFO - Waiting for VM ctest-TestRoutersBasic-50991394-84191348 to be up.. 2025-11-05 22:31:14,738 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-05 22:31:19,815 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-05 22:31:24,894 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-05 22:31:29,976 - DEBUG - VM is in ACTIVE state now 2025-11-05 22:31:29,976 - INFO - VM name : ctest-TestRoutersBasic-50991394-84191348 2025-11-05 22:31:30,071 - DEBUG - VM ctest-TestRoutersBasic-50991394-84191348 ID is eedd4f26-2a77-4a07-9643-c53e3c0919d3 2025-11-05 22:31:30,092 - DEBUG - VM ctest-TestRoutersBasic-50991394-84191348 launched on Node cn-jenkins-deploy-platform-ansible-os-4658-1 2025-11-05 22:31:30,167 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/eedd4f26-2a77-4a07-9643-c53e3c0919d3 2025-11-05 22:31:30,466 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/eedd4f26-2a77-4a07-9643-c53e3c0919d3 2025-11-05 22:31:30,495 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/d1f1b03d-7d69-4430-b270-9f8e5a9c1dae 2025-11-05 22:31:33,753 - 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 1018ms') 2025-11-05 22:31:33,753 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-50991394-84191348 failed! 2025-11-05 22:31:33,807 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-50991394:ctest-vn-23445426 is 38.255.167.193 and allocation pool is NOT set 2025-11-05 22:31:37,880 - 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-11-05 22:31:37,881 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-50991394-84191348 failed! 2025-11-05 22:31:37,935 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-50991394:ctest-vn-23445426 is 38.255.167.193 and allocation pool is NOT set 2025-11-05 22:31:39,996 - 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.10 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.480 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.480/1.787/3.095/1.307 ms') 2025-11-05 22:31:39,996 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-50991394-84191348 passed 2025-11-05 22:31:40,153 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-05 22:31:40,153 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-50991394-84191348, IP 38.255.167.195, Port 22 2025-11-05 22:31:40,325 - DEBUG - VM ctest-TestRoutersBasic-50991394-84191348 is ready for SSH connections 2025-11-05 22:31:40,325 - INFO - Waiting for VM ctest-TestRoutersBasic-50991394-92396709 to be up.. 2025-11-05 22:31:40,415 - DEBUG - VM is in ACTIVE state now 2025-11-05 22:31:40,415 - INFO - VM name : ctest-TestRoutersBasic-50991394-92396709 2025-11-05 22:31:40,496 - DEBUG - VM ctest-TestRoutersBasic-50991394-92396709 ID is b278102d-a12b-499d-8134-822220c6c89a 2025-11-05 22:31:40,496 - DEBUG - VM ctest-TestRoutersBasic-50991394-92396709 launched on Node cn-jenkins-deploy-platform-ansible-os-4658-1 2025-11-05 22:31:40,581 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/b278102d-a12b-499d-8134-822220c6c89a 2025-11-05 22:31:40,592 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/0e813d48-1f02-4c48-810a-38af7498f498 2025-11-05 22:31:41,835 - 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.67 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=3.14 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 = 3.144/3.405/3.666/0.261 ms') 2025-11-05 22:31:41,835 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-50991394-92396709 passed 2025-11-05 22:31:41,983 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-05 22:31:41,983 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-50991394-92396709, IP 1.222.214.67, Port 22 2025-11-05 22:31:42,040 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-11-05 22:31:42,129 - DEBUG - VM ctest-TestRoutersBasic-50991394-92396709 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-05 22:31:47,129 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-05 22:31:47,130 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-50991394-92396709, IP 1.222.214.67, Port 22 2025-11-05 22:31:47,287 - DEBUG - VM ctest-TestRoutersBasic-50991394-92396709 is ready for SSH connections 2025-11-05 22:31:47,287 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-05 22:31:47,287 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 1.222.214.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-11-05 22:31:47,287 - DEBUG - ping -s 56 -c 3 -W 1 1.222.214.67 2025-11-05 22:31:50,978 - DEBUG - PING 1.222.214.67 (1.222.214.67): 56 data bytes 64 bytes from 1.222.214.67: seq=0 ttl=62 time=8.700 ms 64 bytes from 1.222.214.67: seq=1 ttl=62 time=1.136 ms 64 bytes from 1.222.214.67: seq=2 ttl=62 time=1.094 ms --- 1.222.214.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.094/3.643/8.700 ms 2025-11-05 22:31:50,978 - INFO - Ping to IP 1.222.214.67 from VM ctest-TestRoutersBasic-50991394-84191348 passed 2025-11-05 22:31:50,978 - INFO - Deleting interface with subnet_id 37c81810-8551-4b6c-ba24-fb6318f0004c, port_id None from router a5b0bf76-f0e4-4813-b454-7812d3556b21 2025-11-05 22:31:51,175 - INFO - Deleting VM ctest-TestRoutersBasic-50991394-92396709 2025-11-05 22:31:51,252 - INFO - Deleting VM ctest-TestRoutersBasic-50991394-84191348 2025-11-05 22:31:51,349 - INFO - Deleting VN ctest-ext_vn-32543219 2025-11-05 22:31:51,423 - DEBUG - VN 6eba5d45-e96a-4e03-b580-30ea484aeaf7 still in use: Unable to complete operation on network 6eba5d45-e96a-4e03-b580-30ea484aeaf7. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-ce92cf3e-d162-405c-8948-50ee3a7004bf'] 2025-11-05 22:31:51,423 - WARNING - Deleting VN ctest-ext_vn-32543219 failed..Will retry 2025-11-05 22:31:53,526 - DEBUG - Response for deleting network () 2025-11-05 22:31:53,527 - INFO - Deleting VN ctest-vn-23445426 2025-11-05 22:31:53,642 - DEBUG - Response for deleting network () 2025-11-05 22:31:53,898 - DEBUG - No XMPP flaps were noticed during the test
2025-11-05 22:31:53,898 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:44]
2025-11-05 22:31:53,898 - INFO - -------------------------------------------------------------------------------- 2025-11-05 22:31:54,607 - INFO - Deleted project: ctest-TestRoutersBasic-50991394, ID : 2a5e6e42-a21a-4322-af68-d3ef576b2ae9