2024-08-21 20:35:00,113 - INFO - Domain Default found not creating 2024-08-21 20:35:00,286 - INFO - Project ctest-TestRoutersBasic-95142704 not found, creating it 2024-08-21 20:35:00,762 - INFO - Created Project:ctest-TestRoutersBasic-95142704, ID : 8b0416c9-f921-477c-b1b0-cd0816dde871 2024-08-21 20:35:02,349 - INFO - ================================================================================ 2024-08-21 20:35:02,350 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-08-21 20:35:02,350 - 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 2024-08-21 20:35:02,607 - DEBUG - Nothing to compare xmpp stats {'10.0.0.42': {'10.20.0.10': '0'}} with 2024-08-21 20:35:02,607 - INFO - Initial checks done. Running the testcase now 2024-08-21 20:35:02,607 - INFO - 2024-08-21 20:35:03,442 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-95142704 2024-08-21 20:35:03,537 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-95142704 2024-08-21 20:35:03,865 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-95142704', 'default']} 2024-08-21 20:35:04,200 - DEBUG - Response for create_network : {'network': {'id': 'fcc6b7f1-c447-4a21-a2bf-d143ce18d28b', 'name': 'ctest-vn-25399888', 'tenant_id': '8b0416c9f921477cb1b0cd0816dde871', 'project_id': '8b0416c9f921477cb1b0cd0816dde871', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-95142704', 'ctest-vn-25399888'], 'port_security_enabled': True, 'description': ''}} 2024-08-21 20:35:04,437 - DEBUG - Response for create_subnet : {'subnet': {'id': '05dcbecf-ac8d-41ee-99fb-d17f4f51766d', 'name': '', 'tenant_id': '8b0416c9f921477cb1b0cd0816dde871', 'network_id': 'fcc6b7f1-c447-4a21-a2bf-d143ce18d28b', 'ip_version': 4, 'cidr': '71.115.20.0/26', 'allocation_pools': [{'start': '71.115.20.2', 'end': '71.115.20.62'}], 'gateway_ip': '71.115.20.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '71.115.20.2', 'tags': [], 'project_id': '8b0416c9f921477cb1b0cd0816dde871'}} 2024-08-21 20:35:04,463 - INFO - Created VN ctest-vn-25399888 2024-08-21 20:35:04,517 - DEBUG - VN ctest-vn-25399888 UUID is fcc6b7f1-c447-4a21-a2bf-d143ce18d28b 2024-08-21 20:35:04,860 - DEBUG - Response for create_network : {'network': {'id': '7ef3246c-a63c-4311-af9e-059446376182', 'name': 'ctest-ext_vn-68390213', 'tenant_id': '8b0416c9f921477cb1b0cd0816dde871', 'project_id': '8b0416c9f921477cb1b0cd0816dde871', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-95142704', 'ctest-ext_vn-68390213'], 'port_security_enabled': True, 'description': ''}} 2024-08-21 20:35:05,072 - DEBUG - Response for create_subnet : {'subnet': {'id': 'afd46992-7f14-47a7-89a2-0807b657ecae', 'name': '', 'tenant_id': '8b0416c9f921477cb1b0cd0816dde871', 'network_id': '7ef3246c-a63c-4311-af9e-059446376182', 'ip_version': 4, 'cidr': '198.117.94.0/26', 'allocation_pools': [{'start': '198.117.94.2', 'end': '198.117.94.62'}], 'gateway_ip': '198.117.94.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '198.117.94.2', 'tags': [], 'project_id': '8b0416c9f921477cb1b0cd0816dde871'}} 2024-08-21 20:35:05,095 - INFO - Created VN ctest-ext_vn-68390213 2024-08-21 20:35:05,145 - DEBUG - VN ctest-ext_vn-68390213 UUID is 7ef3246c-a63c-4311-af9e-059446376182 2024-08-21 20:35:05,310 - DEBUG - Services list from nova: [, , ] 2024-08-21 20:35:06,343 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1700-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1700-1) 2024-08-21 20:35:07,581 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1700-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1700-1) 2024-08-21 20:35:07,657 - INFO - Setting gateway for router 1abb3ed8-86f7-455f-b071-d4cc610887e3 to network 7ef3246c-a63c-4311-af9e-059446376182 2024-08-21 20:35:07,718 - INFO - Adding interface with subnet_id 05dcbecf-ac8d-41ee-99fb-d17f4f51766d, port_id None to router 1abb3ed8-86f7-455f-b071-d4cc610887e3 2024-08-21 20:35:08,222 - INFO - Waiting for VM ctest-TestRoutersBasic-95142704-02183393 to be up.. 2024-08-21 20:35:08,466 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-21 20:35:13,568 - DEBUG - VM is in ACTIVE state now 2024-08-21 20:35:13,568 - INFO - VM name : ctest-TestRoutersBasic-95142704-02183393 2024-08-21 20:35:13,660 - DEBUG - VM ctest-TestRoutersBasic-95142704-02183393 ID is 1ed029d2-aae9-4243-8093-337e434801a7 2024-08-21 20:35:13,679 - DEBUG - VM ctest-TestRoutersBasic-95142704-02183393 launched on Node cn-jenkins-deploy-platform-ansible-os-1700-1 2024-08-21 20:35:13,797 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/1ed029d2-aae9-4243-8093-337e434801a7 2024-08-21 20:35:14,117 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/1ed029d2-aae9-4243-8093-337e434801a7 2024-08-21 20:35:14,150 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/7cb90323-2489-42c5-925a-82eac70cc2f4 2024-08-21 20:35:17,425 - 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 1031ms') 2024-08-21 20:35:17,425 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-95142704-02183393 failed! 2024-08-21 20:35:17,481 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-95142704:ctest-vn-25399888 is 71.115.20.1 and allocation pool is NOT set 2024-08-21 20:35:19,537 - 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=2.84 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.335 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 = 0.335/1.585/2.835/1.250 ms') 2024-08-21 20:35:19,537 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-95142704-02183393 passed 2024-08-21 20:35:19,685 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 20:35:19,685 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-95142704-02183393, IP 71.115.20.3, Port 22 2024-08-21 20:35:19,837 - DEBUG - VM ctest-TestRoutersBasic-95142704-02183393 is ready for SSH connections 2024-08-21 20:35:19,837 - INFO - Waiting for VM ctest-TestRoutersBasic-95142704-13534885 to be up.. 2024-08-21 20:35:19,912 - DEBUG - VM is in ACTIVE state now 2024-08-21 20:35:19,912 - INFO - VM name : ctest-TestRoutersBasic-95142704-13534885 2024-08-21 20:35:19,995 - DEBUG - VM ctest-TestRoutersBasic-95142704-13534885 ID is a303f9e6-f21d-4913-9195-29cc91f930df 2024-08-21 20:35:19,995 - DEBUG - VM ctest-TestRoutersBasic-95142704-13534885 launched on Node cn-jenkins-deploy-platform-ansible-os-1700-1 2024-08-21 20:35:20,073 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/a303f9e6-f21d-4913-9195-29cc91f930df 2024-08-21 20:35:20,083 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/1e4faead-611a-46d2-8792-35cf75b20258 2024-08-21 20:35:21,333 - 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=8.16 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.86 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 = 2.858/5.510/8.162/2.652 ms') 2024-08-21 20:35:21,333 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-95142704-13534885 passed 2024-08-21 20:35:21,485 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 20:35:21,485 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-95142704-13534885, IP 198.117.94.3, Port 22 2024-08-21 20:35:21,540 - 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': ''} 2024-08-21 20:35:21,621 - DEBUG - VM ctest-TestRoutersBasic-95142704-13534885 is NOT ready for SSH connections, VM status: ACTIVE 2024-08-21 20:35:26,622 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 20:35:26,622 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-95142704-13534885, IP 198.117.94.3, Port 22 2024-08-21 20:35:26,777 - DEBUG - VM ctest-TestRoutersBasic-95142704-13534885 is ready for SSH connections 2024-08-21 20:35:26,777 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 20:35:26,777 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 198.117.94.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123 2024-08-21 20:35:26,777 - DEBUG - ping -s 56 -c 3 -W 1 198.117.94.3 2024-08-21 20:35:30,460 - DEBUG - PING 198.117.94.3 (198.117.94.3): 56 data bytes 64 bytes from 198.117.94.3: seq=0 ttl=62 time=6.421 ms 64 bytes from 198.117.94.3: seq=1 ttl=62 time=0.817 ms 64 bytes from 198.117.94.3: seq=2 ttl=62 time=0.780 ms --- 198.117.94.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.780/2.672/6.421 ms 2024-08-21 20:35:30,460 - INFO - Ping to IP 198.117.94.3 from VM ctest-TestRoutersBasic-95142704-02183393 passed 2024-08-21 20:35:30,460 - INFO - Deleting interface with subnet_id 05dcbecf-ac8d-41ee-99fb-d17f4f51766d, port_id None from router 1abb3ed8-86f7-455f-b071-d4cc610887e3 2024-08-21 20:35:31,047 - INFO - Deleting VM ctest-TestRoutersBasic-95142704-13534885 2024-08-21 20:35:31,121 - INFO - Deleting VM ctest-TestRoutersBasic-95142704-02183393 2024-08-21 20:35:31,203 - INFO - Deleting VN ctest-ext_vn-68390213 2024-08-21 20:35:31,286 - DEBUG - VN 7ef3246c-a63c-4311-af9e-059446376182 still in use: Unable to complete operation on network 7ef3246c-a63c-4311-af9e-059446376182. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-da826d09-f685-4695-bbbd-1f8dda664e7e'] 2024-08-21 20:35:31,287 - WARNING - Deleting VN ctest-ext_vn-68390213 failed..Will retry 2024-08-21 20:35:33,408 - DEBUG - Response for deleting network () 2024-08-21 20:35:33,408 - INFO - Deleting VN ctest-vn-25399888 2024-08-21 20:35:33,533 - DEBUG - Response for deleting network () 2024-08-21 20:35:33,788 - DEBUG - No XMPP flaps were noticed during the test 2024-08-21 20:35:33,788 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31] 2024-08-21 20:35:33,788 - INFO - -------------------------------------------------------------------------------- 2024-08-21 20:35:34,457 - INFO - Deleted project: ctest-TestRoutersBasic-95142704, ID : 8b0416c9-f921-477c-b1b0-cd0816dde871