2025-12-09 01:11:32,859 - INFO - Domain Default found not creating 2025-12-09 01:11:33,031 - INFO - Project ctest-TestRoutersBasic-41465391 not found, creating it 2025-12-09 01:11:33,505 - INFO - Created Project:ctest-TestRoutersBasic-41465391, ID : 8ec2dafe-9866-43e8-a5b0-79c7f45f4516 2025-12-09 01:11:35,114 - INFO - ================================================================================ 2025-12-09 01:11:35,114 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-12-09 01:11:35,114 - 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-09 01:11:35,368 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with 2025-12-09 01:11:35,368 - INFO - Initial checks done. Running the testcase now 2025-12-09 01:11:35,368 - INFO - 2025-12-09 01:11:36,158 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-41465391 2025-12-09 01:11:36,255 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-41465391 2025-12-09 01:11:36,571 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-41465391', 'default']} 2025-12-09 01:11:36,859 - DEBUG - Response for create_network : {'network': {'id': 'b4b93ef6-f9c2-4a34-b0e4-57f32aa34a68', 'name': 'ctest-vn-78601790', 'tenant_id': '8ec2dafe986643e8a5b079c7f45f4516', 'project_id': '8ec2dafe986643e8a5b079c7f45f4516', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-41465391', 'ctest-vn-78601790'], 'port_security_enabled': True, 'description': ''}} 2025-12-09 01:11:37,046 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f348abdd-169b-4dd5-a263-9b4b749f30ed', 'name': '', 'tenant_id': '8ec2dafe986643e8a5b079c7f45f4516', 'network_id': 'b4b93ef6-f9c2-4a34-b0e4-57f32aa34a68', 'ip_version': 4, 'cidr': '145.71.241.0/26', 'allocation_pools': [{'start': '145.71.241.2', 'end': '145.71.241.62'}], 'gateway_ip': '145.71.241.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '145.71.241.2', 'tags': [], 'project_id': '8ec2dafe986643e8a5b079c7f45f4516'}} 2025-12-09 01:11:37,066 - INFO - Created VN ctest-vn-78601790 2025-12-09 01:11:37,119 - DEBUG - VN ctest-vn-78601790 UUID is b4b93ef6-f9c2-4a34-b0e4-57f32aa34a68 2025-12-09 01:11:37,454 - DEBUG - Response for create_network : {'network': {'id': '26ce54a0-ab82-404e-9b11-494be8cad3e8', 'name': 'ctest-ext_vn-63529933', 'tenant_id': '8ec2dafe986643e8a5b079c7f45f4516', 'project_id': '8ec2dafe986643e8a5b079c7f45f4516', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-41465391', 'ctest-ext_vn-63529933'], 'port_security_enabled': True, 'description': ''}} 2025-12-09 01:11:37,647 - DEBUG - Response for create_subnet : {'subnet': {'id': '69cc5686-fc18-46c2-b218-c116b316c1a9', 'name': '', 'tenant_id': '8ec2dafe986643e8a5b079c7f45f4516', 'network_id': '26ce54a0-ab82-404e-9b11-494be8cad3e8', 'ip_version': 4, 'cidr': '149.133.213.0/26', 'allocation_pools': [{'start': '149.133.213.2', 'end': '149.133.213.62'}], 'gateway_ip': '149.133.213.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '149.133.213.2', 'tags': [], 'project_id': '8ec2dafe986643e8a5b079c7f45f4516'}} 2025-12-09 01:11:37,663 - INFO - Created VN ctest-ext_vn-63529933 2025-12-09 01:11:37,715 - DEBUG - VN ctest-ext_vn-63529933 UUID is 26ce54a0-ab82-404e-9b11-494be8cad3e8 2025-12-09 01:11:37,912 - DEBUG - Services list from nova: [, , ] 2025-12-09 01:11:39,003 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4863-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4863-1) 2025-12-09 01:11:40,208 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4863-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4863-1) 2025-12-09 01:11:40,281 - INFO - Setting gateway for router 2b77d9ba-27e1-4599-a969-7a8bce38482f to network 26ce54a0-ab82-404e-9b11-494be8cad3e8 2025-12-09 01:11:40,363 - INFO - Adding interface with subnet_id f348abdd-169b-4dd5-a263-9b4b749f30ed, port_id None to router 2b77d9ba-27e1-4599-a969-7a8bce38482f 2025-12-09 01:11:40,720 - INFO - Waiting for VM ctest-TestRoutersBasic-41465391-86787884 to be up.. 2025-12-09 01:11:40,893 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-12-09 01:11:45,965 - DEBUG - VM is in ACTIVE state now 2025-12-09 01:11:45,965 - INFO - VM name : ctest-TestRoutersBasic-41465391-86787884 2025-12-09 01:11:46,031 - DEBUG - VM ctest-TestRoutersBasic-41465391-86787884 ID is a45814a9-f86b-4ac7-ae39-1c61a9bf24dc 2025-12-09 01:11:46,048 - DEBUG - VM ctest-TestRoutersBasic-41465391-86787884 launched on Node cn-jenkins-deploy-platform-ansible-os-4863-1 2025-12-09 01:11:46,119 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/a45814a9-f86b-4ac7-ae39-1c61a9bf24dc 2025-12-09 01:11:46,455 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/a45814a9-f86b-4ac7-ae39-1c61a9bf24dc 2025-12-09 01:11:46,489 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/2449a8c0-944b-446d-9381-1fefbac69e5a 2025-12-09 01:11:49,740 - 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 1022ms') 2025-12-09 01:11:49,740 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-41465391-86787884 failed! 2025-12-09 01:11:49,795 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-41465391:ctest-vn-78601790 is 145.71.241.1 and allocation pool is NOT set 2025-12-09 01:11:51,860 - 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.58 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.00 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 = 3.001/3.290/3.579/0.289 ms') 2025-12-09 01:11:51,860 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-41465391-86787884 passed 2025-12-09 01:11:52,007 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-09 01:11:52,007 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-41465391-86787884, IP 145.71.241.3, Port 22 2025-12-09 01:11:52,062 - 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-09 01:11:52,137 - DEBUG - VM ctest-TestRoutersBasic-41465391-86787884 is NOT ready for SSH connections, VM status: ACTIVE 2025-12-09 01:11:57,137 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-09 01:11:57,137 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-41465391-86787884, IP 145.71.241.3, Port 22 2025-12-09 01:11:57,294 - DEBUG - VM ctest-TestRoutersBasic-41465391-86787884 is ready for SSH connections 2025-12-09 01:11:57,294 - INFO - Waiting for VM ctest-TestRoutersBasic-41465391-61492899 to be up.. 2025-12-09 01:11:57,374 - DEBUG - VM is in ACTIVE state now 2025-12-09 01:11:57,374 - INFO - VM name : ctest-TestRoutersBasic-41465391-61492899 2025-12-09 01:11:57,448 - DEBUG - VM ctest-TestRoutersBasic-41465391-61492899 ID is 71ad0421-885a-45aa-b61d-0c440f382b5c 2025-12-09 01:11:57,449 - DEBUG - VM ctest-TestRoutersBasic-41465391-61492899 launched on Node cn-jenkins-deploy-platform-ansible-os-4863-1 2025-12-09 01:11:57,521 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/71ad0421-885a-45aa-b61d-0c440f382b5c 2025-12-09 01:11:57,530 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/b8592738-e332-4ed3-af20-ffa11f6f1746 2025-12-09 01:11:58,763 - 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.03 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 1001ms\r\nrtt min/avg/max/mdev = 0.498/1.763/3.028/1.265 ms') 2025-12-09 01:11:58,763 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-41465391-61492899 passed 2025-12-09 01:11:58,911 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-09 01:11:58,911 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-41465391-61492899, IP 149.133.213.3, Port 22 2025-12-09 01:11:59,067 - DEBUG - VM ctest-TestRoutersBasic-41465391-61492899 is ready for SSH connections 2025-12-09 01:11:59,067 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-09 01:11:59,067 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 149.133.213.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-12-09 01:11:59,067 - DEBUG - ping -s 56 -c 3 -W 1 149.133.213.3 2025-12-09 01:12:02,849 - DEBUG - PING 149.133.213.3 (149.133.213.3): 56 data bytes 64 bytes from 149.133.213.3: seq=0 ttl=62 time=7.305 ms 64 bytes from 149.133.213.3: seq=1 ttl=62 time=0.870 ms 64 bytes from 149.133.213.3: seq=2 ttl=62 time=0.939 ms --- 149.133.213.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.870/3.038/7.305 ms 2025-12-09 01:12:02,849 - INFO - Ping to IP 149.133.213.3 from VM ctest-TestRoutersBasic-41465391-86787884 passed 2025-12-09 01:12:02,849 - INFO - Deleting interface with subnet_id f348abdd-169b-4dd5-a263-9b4b749f30ed, port_id None from router 2b77d9ba-27e1-4599-a969-7a8bce38482f 2025-12-09 01:12:03,036 - INFO - Deleting VM ctest-TestRoutersBasic-41465391-61492899 2025-12-09 01:12:03,113 - INFO - Deleting VM ctest-TestRoutersBasic-41465391-86787884 2025-12-09 01:12:03,193 - INFO - Deleting VN ctest-ext_vn-63529933 2025-12-09 01:12:03,257 - DEBUG - VN 26ce54a0-ab82-404e-9b11-494be8cad3e8 still in use: Unable to complete operation on network 26ce54a0-ab82-404e-9b11-494be8cad3e8. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-95e5c956-0700-4c18-8d64-66f51f28a6b8'] 2025-12-09 01:12:03,257 - WARNING - Deleting VN ctest-ext_vn-63529933 failed..Will retry 2025-12-09 01:12:05,355 - DEBUG - Response for deleting network () 2025-12-09 01:12:05,355 - INFO - Deleting VN ctest-vn-78601790 2025-12-09 01:12:05,459 - DEBUG - Response for deleting network () 2025-12-09 01:12:05,722 - DEBUG - No XMPP flaps were noticed during the test
2025-12-09 01:12:05,722 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:30]
2025-12-09 01:12:05,723 - INFO - -------------------------------------------------------------------------------- 2025-12-09 01:12:06,457 - INFO - Deleted project: ctest-TestRoutersBasic-41465391, ID : 8ec2dafe-9866-43e8-a5b0-79c7f45f4516