2025-12-29 11:30:05,356 - INFO - Domain Default found not creating 2025-12-29 11:30:05,564 - INFO - Project ctest-TestRoutersBasic-69332397 not found, creating it 2025-12-29 11:30:06,084 - INFO - Created Project:ctest-TestRoutersBasic-69332397, ID : e3cb8dd9-e641-4029-a305-3bfddf8015a0 2025-12-29 11:30:07,677 - INFO - ================================================================================ 2025-12-29 11:30:07,677 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-12-29 11:30:07,677 - 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-29 11:30:07,935 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with 2025-12-29 11:30:07,935 - INFO - Initial checks done. Running the testcase now 2025-12-29 11:30:07,935 - INFO - 2025-12-29 11:30:08,683 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-69332397 2025-12-29 11:30:08,780 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-69332397 2025-12-29 11:30:09,111 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-69332397', 'default']} 2025-12-29 11:30:09,424 - DEBUG - Response for create_network : {'network': {'id': '7636d96f-934e-48c7-889d-853357e10391', 'name': 'ctest-vn-00824941', 'tenant_id': 'e3cb8dd9e6414029a3053bfddf8015a0', 'project_id': 'e3cb8dd9e6414029a3053bfddf8015a0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-69332397', 'ctest-vn-00824941'], 'port_security_enabled': True, 'description': ''}} 2025-12-29 11:30:09,666 - DEBUG - Response for create_subnet : {'subnet': {'id': '1cc9d655-dbb6-41e3-81a2-bb6b3fe603c7', 'name': '', 'tenant_id': 'e3cb8dd9e6414029a3053bfddf8015a0', 'network_id': '7636d96f-934e-48c7-889d-853357e10391', 'ip_version': 4, 'cidr': '38.85.151.128/26', 'allocation_pools': [{'start': '38.85.151.130', 'end': '38.85.151.190'}], 'gateway_ip': '38.85.151.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38.85.151.130', 'tags': [], 'project_id': 'e3cb8dd9e6414029a3053bfddf8015a0'}} 2025-12-29 11:30:09,687 - INFO - Created VN ctest-vn-00824941 2025-12-29 11:30:09,743 - DEBUG - VN ctest-vn-00824941 UUID is 7636d96f-934e-48c7-889d-853357e10391 2025-12-29 11:30:10,070 - DEBUG - Response for create_network : {'network': {'id': 'b2bb13f2-cba7-422c-8ddf-13354d9db483', 'name': 'ctest-ext_vn-27335814', 'tenant_id': 'e3cb8dd9e6414029a3053bfddf8015a0', 'project_id': 'e3cb8dd9e6414029a3053bfddf8015a0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-69332397', 'ctest-ext_vn-27335814'], 'port_security_enabled': True, 'description': ''}} 2025-12-29 11:30:10,278 - DEBUG - Response for create_subnet : {'subnet': {'id': '43352ff1-c6d9-4b75-9d34-22c9f2a1c015', 'name': '', 'tenant_id': 'e3cb8dd9e6414029a3053bfddf8015a0', 'network_id': 'b2bb13f2-cba7-422c-8ddf-13354d9db483', 'ip_version': 4, 'cidr': '133.65.188.64/26', 'allocation_pools': [{'start': '133.65.188.66', 'end': '133.65.188.126'}], 'gateway_ip': '133.65.188.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '133.65.188.66', 'tags': [], 'project_id': 'e3cb8dd9e6414029a3053bfddf8015a0'}} 2025-12-29 11:30:10,298 - INFO - Created VN ctest-ext_vn-27335814 2025-12-29 11:30:10,351 - DEBUG - VN ctest-ext_vn-27335814 UUID is b2bb13f2-cba7-422c-8ddf-13354d9db483 2025-12-29 11:30:10,529 - DEBUG - Services list from nova: [, , ] 2025-12-29 11:30:11,583 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4936-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4936-1) 2025-12-29 11:30:12,776 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4936-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4936-1) 2025-12-29 11:30:12,858 - INFO - Setting gateway for router 3554e32d-7319-468a-9b67-24532139c26e to network b2bb13f2-cba7-422c-8ddf-13354d9db483 2025-12-29 11:30:12,923 - INFO - Adding interface with subnet_id 1cc9d655-dbb6-41e3-81a2-bb6b3fe603c7, port_id None to router 3554e32d-7319-468a-9b67-24532139c26e 2025-12-29 11:30:13,256 - INFO - Waiting for VM ctest-TestRoutersBasic-69332397-22646734 to be up.. 2025-12-29 11:30:13,453 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-12-29 11:30:18,533 - DEBUG - VM is in ACTIVE state now 2025-12-29 11:30:18,533 - INFO - VM name : ctest-TestRoutersBasic-69332397-22646734 2025-12-29 11:30:18,611 - DEBUG - VM ctest-TestRoutersBasic-69332397-22646734 ID is f90bbe66-f13e-4e4d-be5c-6a41b246fae5 2025-12-29 11:30:18,634 - DEBUG - VM ctest-TestRoutersBasic-69332397-22646734 launched on Node cn-jenkins-deploy-platform-ansible-os-4936-1 2025-12-29 11:30:18,714 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/f90bbe66-f13e-4e4d-be5c-6a41b246fae5 2025-12-29 11:30:19,013 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/f90bbe66-f13e-4e4d-be5c-6a41b246fae5 2025-12-29 11:30:19,052 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/e6ab9754-334b-47ea-97d4-1c73b9686762 2025-12-29 11:30:22,315 - 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 1012ms') 2025-12-29 11:30:22,315 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-69332397-22646734 failed! 2025-12-29 11:30:22,376 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-69332397:ctest-vn-00824941 is 38.85.151.129 and allocation pool is NOT set 2025-12-29 11:30:24,436 - 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.00 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.69 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 = 1.694/2.846/3.998/1.152 ms') 2025-12-29 11:30:24,436 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-69332397-22646734 passed 2025-12-29 11:30:24,587 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-29 11:30:24,588 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-69332397-22646734, IP 38.85.151.131, Port 22 2025-12-29 11:30:24,654 - 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-29 11:30:24,756 - DEBUG - VM ctest-TestRoutersBasic-69332397-22646734 is NOT ready for SSH connections, VM status: ACTIVE 2025-12-29 11:30:29,757 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-29 11:30:29,757 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-69332397-22646734, IP 38.85.151.131, Port 22 2025-12-29 11:30:29,915 - DEBUG - VM ctest-TestRoutersBasic-69332397-22646734 is ready for SSH connections 2025-12-29 11:30:29,915 - INFO - Waiting for VM ctest-TestRoutersBasic-69332397-44985058 to be up.. 2025-12-29 11:30:29,997 - DEBUG - VM is in ACTIVE state now 2025-12-29 11:30:29,997 - INFO - VM name : ctest-TestRoutersBasic-69332397-44985058 2025-12-29 11:30:30,073 - DEBUG - VM ctest-TestRoutersBasic-69332397-44985058 ID is 23f581cd-71af-4fb8-bf1d-49d860947f69 2025-12-29 11:30:30,074 - DEBUG - VM ctest-TestRoutersBasic-69332397-44985058 launched on Node cn-jenkins-deploy-platform-ansible-os-4936-1 2025-12-29 11:30:30,155 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/23f581cd-71af-4fb8-bf1d-49d860947f69 2025-12-29 11:30:30,164 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/b3eacf2f-dde3-40a1-ad9c-9ae5f89444b9 2025-12-29 11:30:31,402 - 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=2.89 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.557 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 = 0.557/1.725/2.894/1.168 ms') 2025-12-29 11:30:31,402 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-69332397-44985058 passed 2025-12-29 11:30:31,556 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-29 11:30:31,556 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-69332397-44985058, IP 133.65.188.67, Port 22 2025-12-29 11:30:31,711 - DEBUG - VM ctest-TestRoutersBasic-69332397-44985058 is ready for SSH connections 2025-12-29 11:30:31,711 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-29 11:30:31,711 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 133.65.188.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-12-29 11:30:31,711 - DEBUG - ping -s 56 -c 3 -W 1 133.65.188.67 2025-12-29 11:30:35,508 - DEBUG - PING 133.65.188.67 (133.65.188.67): 56 data bytes 64 bytes from 133.65.188.67: seq=0 ttl=62 time=6.024 ms 64 bytes from 133.65.188.67: seq=1 ttl=62 time=1.082 ms 64 bytes from 133.65.188.67: seq=2 ttl=62 time=1.083 ms --- 133.65.188.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.082/2.729/6.024 ms 2025-12-29 11:30:35,508 - INFO - Ping to IP 133.65.188.67 from VM ctest-TestRoutersBasic-69332397-22646734 passed 2025-12-29 11:30:35,509 - INFO - Deleting interface with subnet_id 1cc9d655-dbb6-41e3-81a2-bb6b3fe603c7, port_id None from router 3554e32d-7319-468a-9b67-24532139c26e 2025-12-29 11:30:35,730 - INFO - Deleting VM ctest-TestRoutersBasic-69332397-44985058 2025-12-29 11:30:35,822 - INFO - Deleting VM ctest-TestRoutersBasic-69332397-22646734 2025-12-29 11:30:35,955 - INFO - Deleting VN ctest-ext_vn-27335814 2025-12-29 11:30:36,075 - DEBUG - VN b2bb13f2-cba7-422c-8ddf-13354d9db483 still in use: Unable to complete operation on network b2bb13f2-cba7-422c-8ddf-13354d9db483. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-19636974-dd49-4fec-bb96-7a432b8d5068'] 2025-12-29 11:30:36,075 - WARNING - Deleting VN ctest-ext_vn-27335814 failed..Will retry 2025-12-29 11:30:38,202 - DEBUG - Response for deleting network () 2025-12-29 11:30:38,202 - INFO - Deleting VN ctest-vn-00824941 2025-12-29 11:30:38,313 - DEBUG - Response for deleting network () 2025-12-29 11:30:38,577 - DEBUG - No XMPP flaps were noticed during the test
2025-12-29 11:30:38,577 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31]
2025-12-29 11:30:38,577 - INFO - -------------------------------------------------------------------------------- 2025-12-29 11:30:39,295 - INFO - Deleted project: ctest-TestRoutersBasic-69332397, ID : e3cb8dd9-e641-4029-a305-3bfddf8015a0