2025-12-11 02:12:06,266 - INFO - Domain Default found not creating 2025-12-11 02:12:06,458 - INFO - Project ctest-TestRoutersBasic-69393467 not found, creating it 2025-12-11 02:12:06,946 - INFO - Created Project:ctest-TestRoutersBasic-69393467, ID : 37c019cd-a655-4a53-8152-1b1ed50f80c9 2025-12-11 02:12:08,525 - INFO - ================================================================================ 2025-12-11 02:12:08,525 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-12-11 02:12:08,525 - 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-11 02:12:08,788 - DEBUG - Nothing to compare xmpp stats {'10.0.0.56': {'10.20.0.129': '0'}} with 2025-12-11 02:12:08,788 - INFO - Initial checks done. Running the testcase now 2025-12-11 02:12:08,788 - INFO - 2025-12-11 02:12:09,538 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-69393467 2025-12-11 02:12:09,634 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-69393467 2025-12-11 02:12:09,966 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-69393467', 'default']} 2025-12-11 02:12:10,257 - DEBUG - Response for create_network : {'network': {'id': '8f79906d-167f-4e2e-bd7c-9c3382735fec', 'name': 'ctest-vn-97072712', 'tenant_id': '37c019cda6554a5381521b1ed50f80c9', 'project_id': '37c019cda6554a5381521b1ed50f80c9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-69393467', 'ctest-vn-97072712'], 'port_security_enabled': True, 'description': ''}} 2025-12-11 02:12:10,416 - DEBUG - Response for create_subnet : {'subnet': {'id': '1c5158fd-25e5-4ceb-af00-e16046dfb1cc', 'name': '', 'tenant_id': '37c019cda6554a5381521b1ed50f80c9', 'network_id': '8f79906d-167f-4e2e-bd7c-9c3382735fec', 'ip_version': 4, 'cidr': '100.144.55.0/26', 'allocation_pools': [{'start': '100.144.55.2', 'end': '100.144.55.62'}], 'gateway_ip': '100.144.55.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '100.144.55.2', 'tags': [], 'project_id': '37c019cda6554a5381521b1ed50f80c9'}} 2025-12-11 02:12:10,435 - INFO - Created VN ctest-vn-97072712 2025-12-11 02:12:10,490 - DEBUG - VN ctest-vn-97072712 UUID is 8f79906d-167f-4e2e-bd7c-9c3382735fec 2025-12-11 02:12:10,822 - DEBUG - Response for create_network : {'network': {'id': '3acbb426-a322-4e9b-97e9-cef21ed115fe', 'name': 'ctest-ext_vn-61239782', 'tenant_id': '37c019cda6554a5381521b1ed50f80c9', 'project_id': '37c019cda6554a5381521b1ed50f80c9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-69393467', 'ctest-ext_vn-61239782'], 'port_security_enabled': True, 'description': ''}} 2025-12-11 02:12:11,016 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e55a1976-9285-4ee3-8f2c-c9d2a3604733', 'name': '', 'tenant_id': '37c019cda6554a5381521b1ed50f80c9', 'network_id': '3acbb426-a322-4e9b-97e9-cef21ed115fe', 'ip_version': 4, 'cidr': '28.233.66.192/26', 'allocation_pools': [{'start': '28.233.66.194', 'end': '28.233.66.254'}], 'gateway_ip': '28.233.66.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '28.233.66.194', 'tags': [], 'project_id': '37c019cda6554a5381521b1ed50f80c9'}} 2025-12-11 02:12:11,036 - INFO - Created VN ctest-ext_vn-61239782 2025-12-11 02:12:11,090 - DEBUG - VN ctest-ext_vn-61239782 UUID is 3acbb426-a322-4e9b-97e9-cef21ed115fe 2025-12-11 02:12:11,264 - DEBUG - Services list from nova: [, , ] 2025-12-11 02:12:12,333 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4882-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4882-1) 2025-12-11 02:12:13,543 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4882-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4882-1) 2025-12-11 02:12:13,623 - INFO - Setting gateway for router f1e19ed3-cf5e-4217-8c56-1f57bf8d0fd9 to network 3acbb426-a322-4e9b-97e9-cef21ed115fe 2025-12-11 02:12:13,684 - INFO - Adding interface with subnet_id 1c5158fd-25e5-4ceb-af00-e16046dfb1cc, port_id None to router f1e19ed3-cf5e-4217-8c56-1f57bf8d0fd9 2025-12-11 02:12:14,010 - INFO - Waiting for VM ctest-TestRoutersBasic-69393467-86223601 to be up.. 2025-12-11 02:12:14,164 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-12-11 02:12:19,247 - DEBUG - VM is in ACTIVE state now 2025-12-11 02:12:19,247 - INFO - VM name : ctest-TestRoutersBasic-69393467-86223601 2025-12-11 02:12:19,336 - DEBUG - VM ctest-TestRoutersBasic-69393467-86223601 ID is 8f263d8a-fef0-4620-9994-3310857ce7db 2025-12-11 02:12:19,356 - DEBUG - VM ctest-TestRoutersBasic-69393467-86223601 launched on Node cn-jenkins-deploy-platform-ansible-os-4882-1 2025-12-11 02:12:19,434 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-machine/8f263d8a-fef0-4620-9994-3310857ce7db 2025-12-11 02:12:19,733 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-machine/8f263d8a-fef0-4620-9994-3310857ce7db 2025-12-11 02:12:19,779 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-machine-interface/0bb47547-cafb-44f3-b51d-33f2990c3ce3 2025-12-11 02:12:23,040 - 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-12-11 02:12:23,040 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-69393467-86223601 failed! 2025-12-11 02:12:23,094 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-69393467:ctest-vn-97072712 is 100.144.55.1 and allocation pool is NOT set 2025-12-11 02:12:25,157 - 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=9.23 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.72 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.724/5.978/9.233/3.254 ms') 2025-12-11 02:12:25,158 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-69393467-86223601 passed 2025-12-11 02:12:25,306 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-11 02:12:25,306 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-69393467-86223601, IP 100.144.55.3, Port 22 2025-12-11 02:12:25,372 - 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-11 02:12:25,451 - DEBUG - VM ctest-TestRoutersBasic-69393467-86223601 is NOT ready for SSH connections, VM status: ACTIVE 2025-12-11 02:12:30,452 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-11 02:12:30,452 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-69393467-86223601, IP 100.144.55.3, Port 22 2025-12-11 02:12:30,633 - DEBUG - VM ctest-TestRoutersBasic-69393467-86223601 is ready for SSH connections 2025-12-11 02:12:30,633 - INFO - Waiting for VM ctest-TestRoutersBasic-69393467-43702148 to be up.. 2025-12-11 02:12:30,725 - DEBUG - VM is in ACTIVE state now 2025-12-11 02:12:30,725 - INFO - VM name : ctest-TestRoutersBasic-69393467-43702148 2025-12-11 02:12:30,806 - DEBUG - VM ctest-TestRoutersBasic-69393467-43702148 ID is 945a0390-78b3-4a02-a895-c767cd078ee2 2025-12-11 02:12:30,806 - DEBUG - VM ctest-TestRoutersBasic-69393467-43702148 launched on Node cn-jenkins-deploy-platform-ansible-os-4882-1 2025-12-11 02:12:30,882 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-machine/945a0390-78b3-4a02-a895-c767cd078ee2 2025-12-11 02:12:30,891 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-machine-interface/42d56a08-531d-416d-9a8d-7c42488430e7 2025-12-11 02:12:32,125 - 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.15 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.451 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.451/1.801/3.152/1.350 ms') 2025-12-11 02:12:32,125 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-69393467-43702148 passed 2025-12-11 02:12:32,278 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-11 02:12:32,278 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-69393467-43702148, IP 28.233.66.195, Port 22 2025-12-11 02:12:32,442 - DEBUG - VM ctest-TestRoutersBasic-69393467-43702148 is ready for SSH connections 2025-12-11 02:12:32,442 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-11 02:12:32,442 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 28.233.66.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.56, gateway password: c0ntrail123 2025-12-11 02:12:32,442 - DEBUG - ping -s 56 -c 3 -W 1 28.233.66.195 2025-12-11 02:12:36,134 - DEBUG - PING 28.233.66.195 (28.233.66.195): 56 data bytes 64 bytes from 28.233.66.195: seq=0 ttl=62 time=5.540 ms 64 bytes from 28.233.66.195: seq=1 ttl=62 time=1.192 ms 64 bytes from 28.233.66.195: seq=2 ttl=62 time=1.082 ms --- 28.233.66.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.082/2.604/5.540 ms 2025-12-11 02:12:36,134 - INFO - Ping to IP 28.233.66.195 from VM ctest-TestRoutersBasic-69393467-86223601 passed 2025-12-11 02:12:36,134 - INFO - Deleting interface with subnet_id 1c5158fd-25e5-4ceb-af00-e16046dfb1cc, port_id None from router f1e19ed3-cf5e-4217-8c56-1f57bf8d0fd9 2025-12-11 02:12:36,313 - INFO - Deleting VM ctest-TestRoutersBasic-69393467-43702148 2025-12-11 02:12:36,396 - INFO - Deleting VM ctest-TestRoutersBasic-69393467-86223601 2025-12-11 02:12:36,499 - INFO - Deleting VN ctest-ext_vn-61239782 2025-12-11 02:12:36,569 - DEBUG - VN 3acbb426-a322-4e9b-97e9-cef21ed115fe still in use: Unable to complete operation on network 3acbb426-a322-4e9b-97e9-cef21ed115fe. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-c51a164c-b3f4-4ea2-85b4-2d53d2cb7a46'] 2025-12-11 02:12:36,570 - WARNING - Deleting VN ctest-ext_vn-61239782 failed..Will retry 2025-12-11 02:12:38,668 - DEBUG - Response for deleting network () 2025-12-11 02:12:38,668 - INFO - Deleting VN ctest-vn-97072712 2025-12-11 02:12:38,764 - DEBUG - Response for deleting network () 2025-12-11 02:12:39,020 - DEBUG - No XMPP flaps were noticed during the test 2025-12-11 02:12:39,020 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31] 2025-12-11 02:12:39,020 - INFO - -------------------------------------------------------------------------------- 2025-12-11 02:12:39,710 - INFO - Deleted project: ctest-TestRoutersBasic-69393467, ID : 37c019cd-a655-4a53-8152-1b1ed50f80c9