2025-12-10 02:28:41,795 - INFO - Domain Default found not creating 2025-12-10 02:28:41,992 - INFO - Project ctest-TestRoutersBasic-19757521 not found, creating it 2025-12-10 02:28:42,520 - INFO - Created Project:ctest-TestRoutersBasic-19757521, ID : 0d55743f-77d9-41e2-aab3-141c1edba283 2025-12-10 02:28:44,271 - INFO - ================================================================================ 2025-12-10 02:28:44,272 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-12-10 02:28:44,272 - 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-12-10 02:28:44,532 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with 2025-12-10 02:28:44,533 - INFO - Initial checks done. Running the testcase now 2025-12-10 02:28:44,533 - INFO - 2025-12-10 02:28:45,414 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-19757521 2025-12-10 02:28:45,508 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-19757521 2025-12-10 02:28:45,840 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-19757521', 'default']} 2025-12-10 02:28:46,156 - DEBUG - Response for create_network : {'network': {'id': '85188438-b491-4048-b5f0-01c360e2e718', 'name': 'ctest-vn-31063017', 'tenant_id': '0d55743f77d941e2aab3141c1edba283', 'project_id': '0d55743f77d941e2aab3141c1edba283', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-19757521', 'ctest-vn-31063017'], 'port_security_enabled': True, 'description': ''}} 2025-12-10 02:28:46,359 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd6c6f3dc-31f3-4a5c-86e7-7a8b86a518a0', 'name': '', 'tenant_id': '0d55743f77d941e2aab3141c1edba283', 'network_id': '85188438-b491-4048-b5f0-01c360e2e718', 'ip_version': 4, 'cidr': '137.49.198.192/26', 'allocation_pools': [{'start': '137.49.198.194', 'end': '137.49.198.254'}], 'gateway_ip': '137.49.198.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '137.49.198.194', 'tags': [], 'project_id': '0d55743f77d941e2aab3141c1edba283'}} 2025-12-10 02:28:46,379 - INFO - Created VN ctest-vn-31063017 2025-12-10 02:28:46,432 - DEBUG - VN ctest-vn-31063017 UUID is 85188438-b491-4048-b5f0-01c360e2e718 2025-12-10 02:28:46,760 - DEBUG - Response for create_network : {'network': {'id': 'cf175583-1423-4e9d-aaa8-0b961226f6a9', 'name': 'ctest-ext_vn-21879856', 'tenant_id': '0d55743f77d941e2aab3141c1edba283', 'project_id': '0d55743f77d941e2aab3141c1edba283', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-19757521', 'ctest-ext_vn-21879856'], 'port_security_enabled': True, 'description': ''}} 2025-12-10 02:28:46,977 - DEBUG - Response for create_subnet : {'subnet': {'id': '1797d8b3-0515-43eb-b97c-e93d841cd76c', 'name': '', 'tenant_id': '0d55743f77d941e2aab3141c1edba283', 'network_id': 'cf175583-1423-4e9d-aaa8-0b961226f6a9', 'ip_version': 4, 'cidr': '41.229.36.64/26', 'allocation_pools': [{'start': '41.229.36.66', 'end': '41.229.36.126'}], 'gateway_ip': '41.229.36.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '41.229.36.66', 'tags': [], 'project_id': '0d55743f77d941e2aab3141c1edba283'}} 2025-12-10 02:28:46,997 - INFO - Created VN ctest-ext_vn-21879856 2025-12-10 02:28:47,052 - DEBUG - VN ctest-ext_vn-21879856 UUID is cf175583-1423-4e9d-aaa8-0b961226f6a9 2025-12-10 02:28:47,240 - DEBUG - Services list from nova: [, , ] 2025-12-10 02:28:48,437 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4874-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4874-1) 2025-12-10 02:28:49,757 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4874-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4874-1) 2025-12-10 02:28:49,850 - INFO - Setting gateway for router 77096ab4-33cb-4a35-a207-923c9478c390 to network cf175583-1423-4e9d-aaa8-0b961226f6a9 2025-12-10 02:28:49,916 - INFO - Adding interface with subnet_id d6c6f3dc-31f3-4a5c-86e7-7a8b86a518a0, port_id None to router 77096ab4-33cb-4a35-a207-923c9478c390 2025-12-10 02:28:50,288 - INFO - Waiting for VM ctest-TestRoutersBasic-19757521-11447589 to be up.. 2025-12-10 02:28:50,434 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-12-10 02:28:55,530 - DEBUG - VM is in ACTIVE state now 2025-12-10 02:28:55,530 - INFO - VM name : ctest-TestRoutersBasic-19757521-11447589 2025-12-10 02:28:55,622 - DEBUG - VM ctest-TestRoutersBasic-19757521-11447589 ID is c6a19dbe-acce-4d03-bd94-0b70d1271943 2025-12-10 02:28:55,648 - DEBUG - VM ctest-TestRoutersBasic-19757521-11447589 launched on Node cn-jenkins-deploy-platform-ansible-os-4874-1 2025-12-10 02:28:55,746 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/c6a19dbe-acce-4d03-bd94-0b70d1271943 2025-12-10 02:28:56,097 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/c6a19dbe-acce-4d03-bd94-0b70d1271943 2025-12-10 02:28:56,136 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/2437efdd-b9c7-40c3-bd3a-03899af9d6fb 2025-12-10 02:28:59,392 - 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 1001ms') 2025-12-10 02:28:59,392 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-19757521-11447589 failed! 2025-12-10 02:28:59,448 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-19757521:ctest-vn-31063017 is 137.49.198.193 and allocation pool is NOT set 2025-12-10 02:29:01,507 - 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.03 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.851 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.851/2.441/4.031/1.590 ms') 2025-12-10 02:29:01,507 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-19757521-11447589 passed 2025-12-10 02:29:01,664 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-10 02:29:01,664 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-19757521-11447589, IP 137.49.198.195, Port 22 2025-12-10 02:29:01,830 - DEBUG - VM ctest-TestRoutersBasic-19757521-11447589 is ready for SSH connections 2025-12-10 02:29:01,830 - INFO - Waiting for VM ctest-TestRoutersBasic-19757521-26380067 to be up.. 2025-12-10 02:29:01,935 - DEBUG - VM is in ACTIVE state now 2025-12-10 02:29:01,935 - INFO - VM name : ctest-TestRoutersBasic-19757521-26380067 2025-12-10 02:29:02,027 - DEBUG - VM ctest-TestRoutersBasic-19757521-26380067 ID is c55e76a5-4c43-4d3f-811a-b83606ee2c2b 2025-12-10 02:29:02,028 - DEBUG - VM ctest-TestRoutersBasic-19757521-26380067 launched on Node cn-jenkins-deploy-platform-ansible-os-4874-1 2025-12-10 02:29:02,118 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/c55e76a5-4c43-4d3f-811a-b83606ee2c2b 2025-12-10 02:29:02,128 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/9423d00d-245b-44ca-9bf0-80573635761c 2025-12-10 02:29:03,373 - 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.52 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.68 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 = 2.682/3.102/3.522/0.420 ms') 2025-12-10 02:29:03,373 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-19757521-26380067 passed 2025-12-10 02:29:03,528 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-10 02:29:03,528 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-19757521-26380067, IP 41.229.36.67, Port 22 2025-12-10 02:29:03,594 - 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-12-10 02:29:03,672 - DEBUG - VM ctest-TestRoutersBasic-19757521-26380067 is NOT ready for SSH connections, VM status: ACTIVE 2025-12-10 02:29:08,672 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-10 02:29:08,672 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-19757521-26380067, IP 41.229.36.67, Port 22 2025-12-10 02:29:08,837 - DEBUG - VM ctest-TestRoutersBasic-19757521-26380067 is ready for SSH connections 2025-12-10 02:29:08,837 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-10 02:29:08,838 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 41.229.36.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-12-10 02:29:08,838 - DEBUG - ping -s 56 -c 3 -W 1 41.229.36.67 2025-12-10 02:29:12,607 - DEBUG - PING 41.229.36.67 (41.229.36.67): 56 data bytes 64 bytes from 41.229.36.67: seq=0 ttl=62 time=7.080 ms 64 bytes from 41.229.36.67: seq=1 ttl=62 time=0.995 ms 64 bytes from 41.229.36.67: seq=2 ttl=62 time=1.584 ms --- 41.229.36.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.995/3.219/7.080 ms 2025-12-10 02:29:12,607 - INFO - Ping to IP 41.229.36.67 from VM ctest-TestRoutersBasic-19757521-11447589 passed 2025-12-10 02:29:12,607 - INFO - Deleting interface with subnet_id d6c6f3dc-31f3-4a5c-86e7-7a8b86a518a0, port_id None from router 77096ab4-33cb-4a35-a207-923c9478c390 2025-12-10 02:29:12,838 - INFO - Deleting VM ctest-TestRoutersBasic-19757521-26380067 2025-12-10 02:29:12,926 - INFO - Deleting VM ctest-TestRoutersBasic-19757521-11447589 2025-12-10 02:29:13,028 - INFO - Deleting VN ctest-ext_vn-21879856 2025-12-10 02:29:13,118 - DEBUG - VN cf175583-1423-4e9d-aaa8-0b961226f6a9 still in use: Unable to complete operation on network cf175583-1423-4e9d-aaa8-0b961226f6a9. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-47076888-e556-4218-8912-35851577b4fd'] 2025-12-10 02:29:13,118 - WARNING - Deleting VN ctest-ext_vn-21879856 failed..Will retry 2025-12-10 02:29:15,256 - DEBUG - Response for deleting network () 2025-12-10 02:29:15,257 - INFO - Deleting VN ctest-vn-31063017 2025-12-10 02:29:15,371 - DEBUG - Response for deleting network () 2025-12-10 02:29:15,631 - DEBUG - No XMPP flaps were noticed during the test
2025-12-10 02:29:15,631 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31]
2025-12-10 02:29:15,631 - INFO - -------------------------------------------------------------------------------- 2025-12-10 02:29:16,408 - INFO - Deleted project: ctest-TestRoutersBasic-19757521, ID : 0d55743f-77d9-41e2-aab3-141c1edba283