2025-12-01 17:33:33,687 - INFO - Domain Default found not creating 2025-12-01 17:33:33,921 - INFO - Project ctest-TestRoutersBasic-76076785 not found, creating it 2025-12-01 17:33:34,458 - INFO - Created Project:ctest-TestRoutersBasic-76076785, ID : 92cf6927-f3c3-465f-8530-25dc00443034 2025-12-01 17:33:36,335 - INFO - ================================================================================ 2025-12-01 17:33:36,336 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-12-01 17:33:36,336 - 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-01 17:33:36,616 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.14': '0'}} with 2025-12-01 17:33:36,616 - INFO - Initial checks done. Running the testcase now 2025-12-01 17:33:36,616 - INFO - 2025-12-01 17:33:37,456 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-76076785 2025-12-01 17:33:37,555 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-76076785 2025-12-01 17:33:37,883 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-76076785', 'default']} 2025-12-01 17:33:38,215 - DEBUG - Response for create_network : {'network': {'id': '124d482c-2c93-4091-b366-177c9011f243', 'name': 'ctest-vn-94562593', 'tenant_id': '92cf6927f3c3465f853025dc00443034', 'project_id': '92cf6927f3c3465f853025dc00443034', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-76076785', 'ctest-vn-94562593'], 'port_security_enabled': True, 'description': ''}} 2025-12-01 17:33:38,479 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eec98a9b-f05a-4b55-8a51-269220e9dd3a', 'name': '', 'tenant_id': '92cf6927f3c3465f853025dc00443034', 'network_id': '124d482c-2c93-4091-b366-177c9011f243', 'ip_version': 4, 'cidr': '156.114.181.128/26', 'allocation_pools': [{'start': '156.114.181.130', 'end': '156.114.181.190'}], 'gateway_ip': '156.114.181.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '156.114.181.130', 'tags': [], 'project_id': '92cf6927f3c3465f853025dc00443034'}} 2025-12-01 17:33:38,500 - INFO - Created VN ctest-vn-94562593 2025-12-01 17:33:38,560 - DEBUG - VN ctest-vn-94562593 UUID is 124d482c-2c93-4091-b366-177c9011f243 2025-12-01 17:33:38,898 - DEBUG - Response for create_network : {'network': {'id': '593bc5e7-ffed-46a3-b1d0-c5dd79f7e2c8', 'name': 'ctest-ext_vn-35929724', 'tenant_id': '92cf6927f3c3465f853025dc00443034', 'project_id': '92cf6927f3c3465f853025dc00443034', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-76076785', 'ctest-ext_vn-35929724'], 'port_security_enabled': True, 'description': ''}} 2025-12-01 17:33:39,134 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dbeed303-c42e-44a9-ab0c-0acb738ada7a', 'name': '', 'tenant_id': '92cf6927f3c3465f853025dc00443034', 'network_id': '593bc5e7-ffed-46a3-b1d0-c5dd79f7e2c8', 'ip_version': 4, 'cidr': '78.219.36.64/26', 'allocation_pools': [{'start': '78.219.36.66', 'end': '78.219.36.126'}], 'gateway_ip': '78.219.36.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '78.219.36.66', 'tags': [], 'project_id': '92cf6927f3c3465f853025dc00443034'}} 2025-12-01 17:33:39,175 - INFO - Created VN ctest-ext_vn-35929724 2025-12-01 17:33:39,231 - DEBUG - VN ctest-ext_vn-35929724 UUID is 593bc5e7-ffed-46a3-b1d0-c5dd79f7e2c8 2025-12-01 17:33:39,413 - DEBUG - Services list from nova: [, , ] 2025-12-01 17:33:40,628 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4831-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4831-1) 2025-12-01 17:33:42,003 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4831-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4831-1) 2025-12-01 17:33:42,088 - INFO - Setting gateway for router 2523d596-330b-4615-8423-50459fca9ecc to network 593bc5e7-ffed-46a3-b1d0-c5dd79f7e2c8 2025-12-01 17:33:42,160 - INFO - Adding interface with subnet_id eec98a9b-f05a-4b55-8a51-269220e9dd3a, port_id None to router 2523d596-330b-4615-8423-50459fca9ecc 2025-12-01 17:33:42,567 - INFO - Waiting for VM ctest-TestRoutersBasic-76076785-11226498 to be up.. 2025-12-01 17:33:42,754 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-12-01 17:33:47,852 - DEBUG - VM is in ACTIVE state now 2025-12-01 17:33:47,852 - INFO - VM name : ctest-TestRoutersBasic-76076785-11226498 2025-12-01 17:33:47,942 - DEBUG - VM ctest-TestRoutersBasic-76076785-11226498 ID is 497afa56-4e95-4939-a4db-a4aa2aee91c8 2025-12-01 17:33:47,966 - DEBUG - VM ctest-TestRoutersBasic-76076785-11226498 launched on Node cn-jenkins-deploy-platform-ansible-os-4831-1 2025-12-01 17:33:48,054 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-machine/497afa56-4e95-4939-a4db-a4aa2aee91c8 2025-12-01 17:33:48,405 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-machine/497afa56-4e95-4939-a4db-a4aa2aee91c8 2025-12-01 17:33:48,455 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-machine-interface/fcb8a21a-caf3-43a8-99aa-17be5423e314 2025-12-01 17:33:51,726 - 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 1000ms') 2025-12-01 17:33:51,726 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-76076785-11226498 failed! 2025-12-01 17:33:51,783 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-76076785:ctest-vn-94562593 is 156.114.181.129 and allocation pool is NOT set 2025-12-01 17:33:53,857 - 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.09 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.68 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 2.684/3.386/4.088/0.702 ms') 2025-12-01 17:33:53,857 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-76076785-11226498 passed 2025-12-01 17:33:54,011 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-01 17:33:54,011 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-76076785-11226498, IP 156.114.181.131, Port 22 2025-12-01 17:33:54,077 - 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-12-01 17:33:54,181 - DEBUG - VM ctest-TestRoutersBasic-76076785-11226498 is NOT ready for SSH connections, VM status: ACTIVE 2025-12-01 17:33:59,181 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-01 17:33:59,181 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-76076785-11226498, IP 156.114.181.131, Port 22 2025-12-01 17:33:59,358 - DEBUG - VM ctest-TestRoutersBasic-76076785-11226498 is ready for SSH connections 2025-12-01 17:33:59,359 - INFO - Waiting for VM ctest-TestRoutersBasic-76076785-09378660 to be up.. 2025-12-01 17:33:59,484 - DEBUG - VM is in ACTIVE state now 2025-12-01 17:33:59,484 - INFO - VM name : ctest-TestRoutersBasic-76076785-09378660 2025-12-01 17:33:59,587 - DEBUG - VM ctest-TestRoutersBasic-76076785-09378660 ID is 58122867-21d6-4ee1-939a-4fdd8ffcac54 2025-12-01 17:33:59,589 - DEBUG - VM ctest-TestRoutersBasic-76076785-09378660 launched on Node cn-jenkins-deploy-platform-ansible-os-4831-1 2025-12-01 17:33:59,694 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-machine/58122867-21d6-4ee1-939a-4fdd8ffcac54 2025-12-01 17:33:59,703 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-machine-interface/dc2c16e2-0736-4039-8cbe-63374cabfd7f 2025-12-01 17:34:00,967 - 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.86 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.430 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.430/2.145/3.861/1.715 ms') 2025-12-01 17:34:00,967 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-76076785-09378660 passed 2025-12-01 17:34:01,127 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-01 17:34:01,128 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-76076785-09378660, IP 78.219.36.67, Port 22 2025-12-01 17:34:01,310 - DEBUG - VM ctest-TestRoutersBasic-76076785-09378660 is ready for SSH connections 2025-12-01 17:34:01,310 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-01 17:34:01,310 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 78.219.36.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.129, gateway password: c0ntrail123 2025-12-01 17:34:01,311 - DEBUG - ping -s 56 -c 3 -W 1 78.219.36.67 2025-12-01 17:34:05,156 - DEBUG - PING 78.219.36.67 (78.219.36.67): 56 data bytes 64 bytes from 78.219.36.67: seq=0 ttl=62 time=10.688 ms 64 bytes from 78.219.36.67: seq=1 ttl=62 time=1.438 ms 64 bytes from 78.219.36.67: seq=2 ttl=62 time=1.626 ms --- 78.219.36.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.438/4.584/10.688 ms 2025-12-01 17:34:05,156 - INFO - Ping to IP 78.219.36.67 from VM ctest-TestRoutersBasic-76076785-11226498 passed 2025-12-01 17:34:05,156 - INFO - Deleting interface with subnet_id eec98a9b-f05a-4b55-8a51-269220e9dd3a, port_id None from router 2523d596-330b-4615-8423-50459fca9ecc 2025-12-01 17:34:05,386 - INFO - Deleting VM ctest-TestRoutersBasic-76076785-09378660 2025-12-01 17:34:05,508 - INFO - Deleting VM ctest-TestRoutersBasic-76076785-11226498 2025-12-01 17:34:05,607 - INFO - Deleting VN ctest-ext_vn-35929724 2025-12-01 17:34:05,710 - DEBUG - VN 593bc5e7-ffed-46a3-b1d0-c5dd79f7e2c8 still in use: Unable to complete operation on network 593bc5e7-ffed-46a3-b1d0-c5dd79f7e2c8. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-3cfd3efb-19c4-48f8-8936-728dde551fa1'] 2025-12-01 17:34:05,710 - WARNING - Deleting VN ctest-ext_vn-35929724 failed..Will retry 2025-12-01 17:34:07,849 - DEBUG - Response for deleting network () 2025-12-01 17:34:07,849 - INFO - Deleting VN ctest-vn-94562593 2025-12-01 17:34:07,971 - DEBUG - Response for deleting network () 2025-12-01 17:34:08,245 - DEBUG - No XMPP flaps were noticed during the test
2025-12-01 17:34:08,245 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32]
2025-12-01 17:34:08,245 - INFO - -------------------------------------------------------------------------------- 2025-12-01 17:34:09,050 - INFO - Deleted project: ctest-TestRoutersBasic-76076785, ID : 92cf6927-f3c3-465f-8530-25dc00443034