2025-02-18 09:59:16,617 - INFO - Domain Default found not creating 2025-02-18 09:59:16,766 - INFO - Project ctest-TestRoutersBasic-21692662 not found, creating it 2025-02-18 09:59:17,232 - INFO - Created Project:ctest-TestRoutersBasic-21692662, ID : 19d4e4a4-4125-469c-969f-830e1a9baf95 2025-02-18 09:59:18,636 - INFO - ================================================================================ 2025-02-18 09:59:18,636 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-02-18 09:59:18,637 - 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-02-18 09:59:18,894 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.5': '0'}} with 2025-02-18 09:59:18,894 - INFO - Initial checks done. Running the testcase now 2025-02-18 09:59:18,894 - INFO - 2025-02-18 09:59:19,595 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-21692662 2025-02-18 09:59:19,694 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-21692662 2025-02-18 09:59:20,022 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-21692662', 'default']} 2025-02-18 09:59:20,319 - DEBUG - Response for create_network : {'network': {'id': 'b38788a7-39a3-4cea-bfa9-f25a894531c2', 'name': 'ctest-vn-88287543', 'tenant_id': '19d4e4a44125469c969f830e1a9baf95', 'project_id': '19d4e4a44125469c969f830e1a9baf95', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-21692662', 'ctest-vn-88287543'], 'port_security_enabled': True, 'description': ''}} 2025-02-18 09:59:20,529 - DEBUG - Response for create_subnet : {'subnet': {'id': '48e4c0f8-e0c8-458c-b223-8d2dd958c197', 'name': '', 'tenant_id': '19d4e4a44125469c969f830e1a9baf95', 'network_id': 'b38788a7-39a3-4cea-bfa9-f25a894531c2', 'ip_version': 4, 'cidr': '38.247.28.192/26', 'allocation_pools': [{'start': '38.247.28.194', 'end': '38.247.28.254'}], 'gateway_ip': '38.247.28.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38.247.28.194', 'tags': [], 'project_id': '19d4e4a44125469c969f830e1a9baf95'}} 2025-02-18 09:59:20,549 - INFO - Created VN ctest-vn-88287543 2025-02-18 09:59:20,602 - DEBUG - VN ctest-vn-88287543 UUID is b38788a7-39a3-4cea-bfa9-f25a894531c2 2025-02-18 09:59:20,916 - DEBUG - Response for create_network : {'network': {'id': '11c2c9d0-0631-4e5c-be2d-df9cedd4a072', 'name': 'ctest-ext_vn-77468513', 'tenant_id': '19d4e4a44125469c969f830e1a9baf95', 'project_id': '19d4e4a44125469c969f830e1a9baf95', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-21692662', 'ctest-ext_vn-77468513'], 'port_security_enabled': True, 'description': ''}} 2025-02-18 09:59:21,123 - DEBUG - Response for create_subnet : {'subnet': {'id': '68b75500-376c-4ff4-a275-7391cf001b01', 'name': '', 'tenant_id': '19d4e4a44125469c969f830e1a9baf95', 'network_id': '11c2c9d0-0631-4e5c-be2d-df9cedd4a072', 'ip_version': 4, 'cidr': '140.78.149.0/26', 'allocation_pools': [{'start': '140.78.149.2', 'end': '140.78.149.62'}], 'gateway_ip': '140.78.149.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '140.78.149.2', 'tags': [], 'project_id': '19d4e4a44125469c969f830e1a9baf95'}} 2025-02-18 09:59:21,142 - INFO - Created VN ctest-ext_vn-77468513 2025-02-18 09:59:21,194 - DEBUG - VN ctest-ext_vn-77468513 UUID is 11c2c9d0-0631-4e5c-be2d-df9cedd4a072 2025-02-18 09:59:21,365 - DEBUG - Services list from nova: [, , ] 2025-02-18 09:59:22,379 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2745-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2745-1) 2025-02-18 09:59:23,537 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2745-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2745-1) 2025-02-18 09:59:23,628 - INFO - Setting gateway for router d687b0ab-fff1-4688-b354-0f80281dec70 to network 11c2c9d0-0631-4e5c-be2d-df9cedd4a072 2025-02-18 09:59:23,697 - INFO - Adding interface with subnet_id 48e4c0f8-e0c8-458c-b223-8d2dd958c197, port_id None to router d687b0ab-fff1-4688-b354-0f80281dec70 2025-02-18 09:59:24,196 - INFO - Waiting for VM ctest-TestRoutersBasic-21692662-90202233 to be up.. 2025-02-18 09:59:24,439 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-02-18 09:59:29,516 - DEBUG - VM is in ACTIVE state now 2025-02-18 09:59:29,516 - INFO - VM name : ctest-TestRoutersBasic-21692662-90202233 2025-02-18 09:59:29,594 - DEBUG - VM ctest-TestRoutersBasic-21692662-90202233 ID is 74dea55c-645e-4dba-9013-c858f1ba280f 2025-02-18 09:59:29,613 - DEBUG - VM ctest-TestRoutersBasic-21692662-90202233 launched on Node cn-jenkins-deploy-platform-ansible-os-2745-1 2025-02-18 09:59:29,701 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/74dea55c-645e-4dba-9013-c858f1ba280f 2025-02-18 09:59:29,995 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/74dea55c-645e-4dba-9013-c858f1ba280f 2025-02-18 09:59:30,030 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/207fc3d0-4fba-402c-80a0-869b1dac1f79 2025-02-18 09:59:33,283 - 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 1007ms') 2025-02-18 09:59:33,283 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-21692662-90202233 failed! 2025-02-18 09:59:33,338 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-21692662:ctest-vn-88287543 is 38.247.28.193 and allocation pool is NOT set 2025-02-18 09:59:35,408 - 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=6.06 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.617 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 = 0.617/3.337/6.058/2.720 ms') 2025-02-18 09:59:35,408 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-21692662-90202233 passed 2025-02-18 09:59:35,562 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-18 09:59:35,562 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-21692662-90202233, IP 38.247.28.195, Port 22 2025-02-18 09:59:35,618 - 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-02-18 09:59:35,704 - DEBUG - VM ctest-TestRoutersBasic-21692662-90202233 is NOT ready for SSH connections, VM status: ACTIVE 2025-02-18 09:59:40,704 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-18 09:59:40,705 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-21692662-90202233, IP 38.247.28.195, Port 22 2025-02-18 09:59:40,862 - DEBUG - VM ctest-TestRoutersBasic-21692662-90202233 is ready for SSH connections 2025-02-18 09:59:40,862 - INFO - Waiting for VM ctest-TestRoutersBasic-21692662-62458888 to be up.. 2025-02-18 09:59:40,941 - DEBUG - VM is in ACTIVE state now 2025-02-18 09:59:40,941 - INFO - VM name : ctest-TestRoutersBasic-21692662-62458888 2025-02-18 09:59:41,016 - DEBUG - VM ctest-TestRoutersBasic-21692662-62458888 ID is 25fdc2c1-9196-4f25-9940-8cae0f442753 2025-02-18 09:59:41,016 - DEBUG - VM ctest-TestRoutersBasic-21692662-62458888 launched on Node cn-jenkins-deploy-platform-ansible-os-2745-1 2025-02-18 09:59:41,090 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/25fdc2c1-9196-4f25-9940-8cae0f442753 2025-02-18 09:59:41,099 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/52e2197f-9d6d-4b6a-927a-a52039b636f8 2025-02-18 09:59:42,338 - 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.64 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.405 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.405/1.524/2.643/1.119 ms') 2025-02-18 09:59:42,339 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-21692662-62458888 passed 2025-02-18 09:59:42,490 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-18 09:59:42,490 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-21692662-62458888, IP 140.78.149.3, Port 22 2025-02-18 09:59:42,646 - DEBUG - VM ctest-TestRoutersBasic-21692662-62458888 is ready for SSH connections 2025-02-18 09:59:42,646 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-18 09:59:42,646 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 140.78.149.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-02-18 09:59:42,646 - DEBUG - ping -s 56 -c 3 -W 1 140.78.149.3 2025-02-18 09:59:46,362 - DEBUG - PING 140.78.149.3 (140.78.149.3): 56 data bytes 64 bytes from 140.78.149.3: seq=0 ttl=62 time=5.583 ms 64 bytes from 140.78.149.3: seq=1 ttl=62 time=1.014 ms 64 bytes from 140.78.149.3: seq=2 ttl=62 time=0.945 ms --- 140.78.149.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.945/2.514/5.583 ms 2025-02-18 09:59:46,363 - INFO - Ping to IP 140.78.149.3 from VM ctest-TestRoutersBasic-21692662-90202233 passed 2025-02-18 09:59:46,363 - INFO - Deleting interface with subnet_id 48e4c0f8-e0c8-458c-b223-8d2dd958c197, port_id None from router d687b0ab-fff1-4688-b354-0f80281dec70 2025-02-18 09:59:46,586 - INFO - Deleting VM ctest-TestRoutersBasic-21692662-62458888 2025-02-18 09:59:46,659 - INFO - Deleting VM ctest-TestRoutersBasic-21692662-90202233 2025-02-18 09:59:46,746 - INFO - Deleting VN ctest-ext_vn-77468513 2025-02-18 09:59:46,823 - DEBUG - VN 11c2c9d0-0631-4e5c-be2d-df9cedd4a072 still in use: Unable to complete operation on network 11c2c9d0-0631-4e5c-be2d-df9cedd4a072. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-dade1df3-e206-447d-8731-f2acdea76bfc'] 2025-02-18 09:59:46,823 - WARNING - Deleting VN ctest-ext_vn-77468513 failed..Will retry 2025-02-18 09:59:48,926 - DEBUG - Response for deleting network () 2025-02-18 09:59:48,926 - INFO - Deleting VN ctest-vn-88287543 2025-02-18 09:59:49,042 - DEBUG - Response for deleting network () 2025-02-18 09:59:49,301 - DEBUG - No XMPP flaps were noticed during the test
2025-02-18 09:59:49,301 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31]
2025-02-18 09:59:49,301 - INFO - -------------------------------------------------------------------------------- 2025-02-18 09:59:49,978 - INFO - Deleted project: ctest-TestRoutersBasic-21692662, ID : 19d4e4a4-4125-469c-969f-830e1a9baf95