2025-07-09 11:37:04,334 - INFO - Domain Default found not creating 2025-07-09 11:37:04,524 - INFO - Project ctest-TestRoutersBasic-63750486 not found, creating it 2025-07-09 11:37:05,053 - INFO - Created Project:ctest-TestRoutersBasic-63750486, ID : 17f4f831-cfd5-41a8-9644-dea1350fdffc 2025-07-09 11:37:06,886 - INFO - ================================================================================ 2025-07-09 11:37:06,887 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-07-09 11:37:06,887 - 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-07-09 11:37:07,147 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with 2025-07-09 11:37:07,147 - INFO - Initial checks done. Running the testcase now 2025-07-09 11:37:07,147 - INFO - 2025-07-09 11:37:07,958 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-63750486 2025-07-09 11:37:08,059 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-63750486 2025-07-09 11:37:08,395 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-63750486', 'default']} 2025-07-09 11:37:08,718 - DEBUG - Response for create_network : {'network': {'id': '92a23c6e-c543-4f99-abb6-5a108bb866ce', 'name': 'ctest-vn-19585045', 'tenant_id': '17f4f831cfd541a89644dea1350fdffc', 'project_id': '17f4f831cfd541a89644dea1350fdffc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-63750486', 'ctest-vn-19585045'], 'port_security_enabled': True, 'description': ''}} 2025-07-09 11:37:08,902 - DEBUG - Response for create_subnet : {'subnet': {'id': '1333d5f1-2bde-4c4d-bc4b-1157223425bb', 'name': '', 'tenant_id': '17f4f831cfd541a89644dea1350fdffc', 'network_id': '92a23c6e-c543-4f99-abb6-5a108bb866ce', 'ip_version': 4, 'cidr': '206.228.47.0/26', 'allocation_pools': [{'start': '206.228.47.2', 'end': '206.228.47.62'}], 'gateway_ip': '206.228.47.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '206.228.47.2', 'tags': [], 'project_id': '17f4f831cfd541a89644dea1350fdffc'}} 2025-07-09 11:37:08,925 - INFO - Created VN ctest-vn-19585045 2025-07-09 11:37:08,979 - DEBUG - VN ctest-vn-19585045 UUID is 92a23c6e-c543-4f99-abb6-5a108bb866ce 2025-07-09 11:37:09,357 - DEBUG - Response for create_network : {'network': {'id': '086b3add-76d5-412c-a8f8-c2dec9beb67e', 'name': 'ctest-ext_vn-60248818', 'tenant_id': '17f4f831cfd541a89644dea1350fdffc', 'project_id': '17f4f831cfd541a89644dea1350fdffc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-63750486', 'ctest-ext_vn-60248818'], 'port_security_enabled': True, 'description': ''}} 2025-07-09 11:37:09,529 - DEBUG - Response for create_subnet : {'subnet': {'id': '98d66ea2-b864-42cf-8823-8616252fffca', 'name': '', 'tenant_id': '17f4f831cfd541a89644dea1350fdffc', 'network_id': '086b3add-76d5-412c-a8f8-c2dec9beb67e', 'ip_version': 4, 'cidr': '89.231.108.64/26', 'allocation_pools': [{'start': '89.231.108.66', 'end': '89.231.108.126'}], 'gateway_ip': '89.231.108.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '89.231.108.66', 'tags': [], 'project_id': '17f4f831cfd541a89644dea1350fdffc'}} 2025-07-09 11:37:09,549 - INFO - Created VN ctest-ext_vn-60248818 2025-07-09 11:37:09,603 - DEBUG - VN ctest-ext_vn-60248818 UUID is 086b3add-76d5-412c-a8f8-c2dec9beb67e 2025-07-09 11:37:09,783 - DEBUG - Services list from nova: [, , ] 2025-07-09 11:37:10,930 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3617-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3617-1) 2025-07-09 11:37:12,222 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3617-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3617-1) 2025-07-09 11:37:12,330 - INFO - Setting gateway for router 7c016e61-3429-4ac4-8428-5be27b761027 to network 086b3add-76d5-412c-a8f8-c2dec9beb67e 2025-07-09 11:37:12,397 - INFO - Adding interface with subnet_id 1333d5f1-2bde-4c4d-bc4b-1157223425bb, port_id None to router 7c016e61-3429-4ac4-8428-5be27b761027 2025-07-09 11:37:12,920 - INFO - Waiting for VM ctest-TestRoutersBasic-63750486-29947640 to be up.. 2025-07-09 11:37:13,126 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-09 11:37:18,225 - DEBUG - VM is in ACTIVE state now 2025-07-09 11:37:18,225 - INFO - VM name : ctest-TestRoutersBasic-63750486-29947640 2025-07-09 11:37:18,316 - DEBUG - VM ctest-TestRoutersBasic-63750486-29947640 ID is 3b60cbd1-8f91-4c98-b176-83f1753599e5 2025-07-09 11:37:18,337 - DEBUG - VM ctest-TestRoutersBasic-63750486-29947640 launched on Node cn-jenkins-deploy-platform-ansible-os-3617-1 2025-07-09 11:37:18,428 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/3b60cbd1-8f91-4c98-b176-83f1753599e5 2025-07-09 11:37:18,775 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/3b60cbd1-8f91-4c98-b176-83f1753599e5 2025-07-09 11:37:18,812 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/bf10c4d8-4601-48ef-b9d1-bce2970594fa 2025-07-09 11:37:22,098 - 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 1032ms') 2025-07-09 11:37:22,098 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-63750486-29947640 failed! 2025-07-09 11:37:22,163 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-63750486:ctest-vn-19585045 is 206.228.47.1 and allocation pool is NOT set 2025-07-09 11:37:24,233 - 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.63 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.01 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 2.010/3.321/4.632/1.311 ms') 2025-07-09 11:37:24,233 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-63750486-29947640 passed 2025-07-09 11:37:24,400 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-09 11:37:24,400 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-63750486-29947640, IP 206.228.47.3, Port 22 2025-07-09 11:37:24,570 - DEBUG - VM ctest-TestRoutersBasic-63750486-29947640 is ready for SSH connections 2025-07-09 11:37:24,570 - INFO - Waiting for VM ctest-TestRoutersBasic-63750486-22110837 to be up.. 2025-07-09 11:37:24,717 - DEBUG - VM is in ACTIVE state now 2025-07-09 11:37:24,717 - INFO - VM name : ctest-TestRoutersBasic-63750486-22110837 2025-07-09 11:37:24,836 - DEBUG - VM ctest-TestRoutersBasic-63750486-22110837 ID is df066e6e-41ee-49f3-a14f-62899e7576a9 2025-07-09 11:37:24,837 - DEBUG - VM ctest-TestRoutersBasic-63750486-22110837 launched on Node cn-jenkins-deploy-platform-ansible-os-3617-1 2025-07-09 11:37:24,941 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/df066e6e-41ee-49f3-a14f-62899e7576a9 2025-07-09 11:37:24,953 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/24f8dc41-9fb0-4cb9-a668-38a97ea3b4ab 2025-07-09 11:37:26,231 - 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=4.14 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.21 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 = 1.214/2.675/4.137/1.461 ms') 2025-07-09 11:37:26,231 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-63750486-22110837 passed 2025-07-09 11:37:26,391 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-09 11:37:26,392 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-63750486-22110837, IP 89.231.108.67, Port 22 2025-07-09 11:37:26,463 - 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-07-09 11:37:26,574 - DEBUG - VM ctest-TestRoutersBasic-63750486-22110837 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-09 11:37:31,574 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-09 11:37:31,575 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-63750486-22110837, IP 89.231.108.67, Port 22 2025-07-09 11:37:31,750 - DEBUG - VM ctest-TestRoutersBasic-63750486-22110837 is ready for SSH connections 2025-07-09 11:37:31,750 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-09 11:37:31,750 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 89.231.108.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-07-09 11:37:31,751 - DEBUG - ping -s 56 -c 3 -W 1 89.231.108.67 2025-07-09 11:37:35,628 - DEBUG - PING 89.231.108.67 (89.231.108.67): 56 data bytes 64 bytes from 89.231.108.67: seq=0 ttl=62 time=7.072 ms 64 bytes from 89.231.108.67: seq=1 ttl=62 time=1.427 ms 64 bytes from 89.231.108.67: seq=2 ttl=62 time=1.283 ms --- 89.231.108.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.283/3.260/7.072 ms 2025-07-09 11:37:35,628 - INFO - Ping to IP 89.231.108.67 from VM ctest-TestRoutersBasic-63750486-29947640 passed 2025-07-09 11:37:35,629 - INFO - Deleting interface with subnet_id 1333d5f1-2bde-4c4d-bc4b-1157223425bb, port_id None from router 7c016e61-3429-4ac4-8428-5be27b761027 2025-07-09 11:37:35,892 - INFO - Deleting VM ctest-TestRoutersBasic-63750486-22110837 2025-07-09 11:37:35,996 - INFO - Deleting VM ctest-TestRoutersBasic-63750486-29947640 2025-07-09 11:37:36,115 - INFO - Deleting VN ctest-ext_vn-60248818 2025-07-09 11:37:36,234 - DEBUG - VN 086b3add-76d5-412c-a8f8-c2dec9beb67e still in use: Unable to complete operation on network 086b3add-76d5-412c-a8f8-c2dec9beb67e. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-c230a409-f039-4fa2-9786-eca921d56bc6'] 2025-07-09 11:37:36,234 - WARNING - Deleting VN ctest-ext_vn-60248818 failed..Will retry 2025-07-09 11:37:38,373 - DEBUG - Response for deleting network () 2025-07-09 11:37:38,373 - INFO - Deleting VN ctest-vn-19585045 2025-07-09 11:37:38,506 - DEBUG - Response for deleting network () 2025-07-09 11:37:38,789 - DEBUG - No XMPP flaps were noticed during the test
2025-07-09 11:37:38,790 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32]
2025-07-09 11:37:38,790 - INFO - -------------------------------------------------------------------------------- 2025-07-09 11:37:39,586 - INFO - Deleted project: ctest-TestRoutersBasic-63750486, ID : 17f4f831-cfd5-41a8-9644-dea1350fdffc