2024-11-05 11:50:45,309 - INFO - Domain Default found not creating 2024-11-05 11:50:45,505 - INFO - Project ctest-TestRoutersBasic-53335372 not found, creating it 2024-11-05 11:50:46,035 - INFO - Created Project:ctest-TestRoutersBasic-53335372, ID : 6f8775a2-3f17-4d69-aee5-9a6b38f8c9e9 2024-11-05 11:50:47,703 - INFO - ================================================================================ 2024-11-05 11:50:47,703 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-11-05 11:50:47,703 - 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-11-05 11:50:47,977 - DEBUG - Nothing to compare xmpp stats {'10.0.0.40': {'10.20.0.29': '0'}} with 2024-11-05 11:50:47,977 - INFO - Initial checks done. Running the testcase now 2024-11-05 11:50:47,977 - INFO - 2024-11-05 11:50:48,838 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-53335372 2024-11-05 11:50:48,939 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-53335372 2024-11-05 11:50:49,283 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-53335372', 'default']} 2024-11-05 11:50:49,624 - DEBUG - Response for create_network : {'network': {'id': 'ab31920c-331f-4b18-bed2-ba6b2ca510c5', 'name': 'ctest-vn-89350127', 'tenant_id': '6f8775a23f174d69aee59a6b38f8c9e9', 'project_id': '6f8775a23f174d69aee59a6b38f8c9e9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-53335372', 'ctest-vn-89350127'], 'port_security_enabled': True, 'description': ''}} 2024-11-05 11:50:49,803 - DEBUG - Response for create_subnet : {'subnet': {'id': 'da378562-69a9-46e2-88a3-99c710c15827', 'name': '', 'tenant_id': '6f8775a23f174d69aee59a6b38f8c9e9', 'network_id': 'ab31920c-331f-4b18-bed2-ba6b2ca510c5', 'ip_version': 4, 'cidr': '99.20.116.0/26', 'allocation_pools': [{'start': '99.20.116.2', 'end': '99.20.116.62'}], 'gateway_ip': '99.20.116.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '99.20.116.2', 'tags': [], 'project_id': '6f8775a23f174d69aee59a6b38f8c9e9'}} 2024-11-05 11:50:49,825 - INFO - Created VN ctest-vn-89350127 2024-11-05 11:50:49,883 - DEBUG - VN ctest-vn-89350127 UUID is ab31920c-331f-4b18-bed2-ba6b2ca510c5 2024-11-05 11:50:50,430 - DEBUG - Response for create_network : {'network': {'id': '101f397c-5208-460e-94c7-c74a39c6c5d6', 'name': 'ctest-ext_vn-28323335', 'tenant_id': '6f8775a23f174d69aee59a6b38f8c9e9', 'project_id': '6f8775a23f174d69aee59a6b38f8c9e9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-53335372', 'ctest-ext_vn-28323335'], 'port_security_enabled': True, 'description': ''}} 2024-11-05 11:50:50,632 - DEBUG - Response for create_subnet : {'subnet': {'id': '20a89538-86d9-4c87-84d0-185bb56e32bb', 'name': '', 'tenant_id': '6f8775a23f174d69aee59a6b38f8c9e9', 'network_id': '101f397c-5208-460e-94c7-c74a39c6c5d6', 'ip_version': 4, 'cidr': '116.209.82.0/26', 'allocation_pools': [{'start': '116.209.82.2', 'end': '116.209.82.62'}], 'gateway_ip': '116.209.82.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '116.209.82.2', 'tags': [], 'project_id': '6f8775a23f174d69aee59a6b38f8c9e9'}} 2024-11-05 11:50:50,655 - INFO - Created VN ctest-ext_vn-28323335 2024-11-05 11:50:50,715 - DEBUG - VN ctest-ext_vn-28323335 UUID is 101f397c-5208-460e-94c7-c74a39c6c5d6 2024-11-05 11:50:50,931 - DEBUG - Services list from nova: [, , ] 2024-11-05 11:50:52,119 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2199-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2199-1) 2024-11-05 11:50:53,484 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2199-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2199-1) 2024-11-05 11:50:53,582 - INFO - Setting gateway for router c210efb7-7a5b-47e5-b97b-44820fd6abcb to network 101f397c-5208-460e-94c7-c74a39c6c5d6 2024-11-05 11:50:53,684 - INFO - Adding interface with subnet_id da378562-69a9-46e2-88a3-99c710c15827, port_id None to router c210efb7-7a5b-47e5-b97b-44820fd6abcb 2024-11-05 11:50:54,290 - INFO - Waiting for VM ctest-TestRoutersBasic-53335372-76916513 to be up.. 2024-11-05 11:50:54,548 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-05 11:50:59,654 - DEBUG - VM is in ACTIVE state now 2024-11-05 11:50:59,654 - INFO - VM name : ctest-TestRoutersBasic-53335372-76916513 2024-11-05 11:50:59,781 - DEBUG - VM ctest-TestRoutersBasic-53335372-76916513 ID is 873b3d98-5249-445f-a8d8-81aefc576a9e 2024-11-05 11:50:59,812 - DEBUG - VM ctest-TestRoutersBasic-53335372-76916513 launched on Node cn-jenkins-deploy-platform-ansible-os-2199-1 2024-11-05 11:50:59,922 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/873b3d98-5249-445f-a8d8-81aefc576a9e 2024-11-05 11:51:00,262 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/873b3d98-5249-445f-a8d8-81aefc576a9e 2024-11-05 11:51:00,303 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine-interface/efacf887-f841-4bb5-8fe6-7cde73fd9172 2024-11-05 11:51:03,575 - 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 1005ms') 2024-11-05 11:51:03,575 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-53335372-76916513 failed! 2024-11-05 11:51:03,643 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-53335372:ctest-vn-89350127 is 99.20.116.1 and allocation pool is NOT set 2024-11-05 11:51:05,703 - 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.88 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.41 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 = 1.413/3.145/4.877/1.732 ms') 2024-11-05 11:51:05,703 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-53335372-76916513 passed 2024-11-05 11:51:05,867 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-05 11:51:05,867 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-53335372-76916513, IP 99.20.116.3, Port 22 2024-11-05 11:51:06,023 - DEBUG - VM ctest-TestRoutersBasic-53335372-76916513 is ready for SSH connections 2024-11-05 11:51:06,023 - INFO - Waiting for VM ctest-TestRoutersBasic-53335372-84120598 to be up.. 2024-11-05 11:51:06,118 - DEBUG - VM is in ACTIVE state now 2024-11-05 11:51:06,118 - INFO - VM name : ctest-TestRoutersBasic-53335372-84120598 2024-11-05 11:51:06,206 - DEBUG - VM ctest-TestRoutersBasic-53335372-84120598 ID is d065274a-ff37-4015-856f-9ff7196f3ef5 2024-11-05 11:51:06,206 - DEBUG - VM ctest-TestRoutersBasic-53335372-84120598 launched on Node cn-jenkins-deploy-platform-ansible-os-2199-1 2024-11-05 11:51:06,297 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/d065274a-ff37-4015-856f-9ff7196f3ef5 2024-11-05 11:51:06,311 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine-interface/dc34c9d2-aee5-48db-aa28-c7004237609a 2024-11-05 11:51:07,579 - 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.13 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.474 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.474/2.301/4.128/1.827 ms') 2024-11-05 11:51:07,579 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-53335372-84120598 passed 2024-11-05 11:51:07,743 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-05 11:51:07,744 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-53335372-84120598, IP 116.209.82.3, Port 22 2024-11-05 11:51:07,809 - 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-11-05 11:51:07,895 - DEBUG - VM ctest-TestRoutersBasic-53335372-84120598 is NOT ready for SSH connections, VM status: ACTIVE 2024-11-05 11:51:12,896 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-05 11:51:12,896 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-53335372-84120598, IP 116.209.82.3, Port 22 2024-11-05 11:51:13,055 - DEBUG - VM ctest-TestRoutersBasic-53335372-84120598 is ready for SSH connections 2024-11-05 11:51:13,055 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-05 11:51:13,056 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 116.209.82.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.40, gateway password: c0ntrail123 2024-11-05 11:51:13,056 - DEBUG - ping -s 56 -c 3 -W 1 116.209.82.3 2024-11-05 11:51:16,851 - DEBUG - PING 116.209.82.3 (116.209.82.3): 56 data bytes 64 bytes from 116.209.82.3: seq=0 ttl=62 time=9.170 ms 64 bytes from 116.209.82.3: seq=1 ttl=62 time=1.609 ms 64 bytes from 116.209.82.3: seq=2 ttl=62 time=1.043 ms --- 116.209.82.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.043/3.940/9.170 ms 2024-11-05 11:51:16,851 - INFO - Ping to IP 116.209.82.3 from VM ctest-TestRoutersBasic-53335372-76916513 passed 2024-11-05 11:51:16,852 - INFO - Deleting interface with subnet_id da378562-69a9-46e2-88a3-99c710c15827, port_id None from router c210efb7-7a5b-47e5-b97b-44820fd6abcb 2024-11-05 11:51:17,122 - INFO - Deleting VM ctest-TestRoutersBasic-53335372-84120598 2024-11-05 11:51:17,208 - INFO - Deleting VM ctest-TestRoutersBasic-53335372-76916513 2024-11-05 11:51:17,302 - INFO - Deleting VN ctest-ext_vn-28323335 2024-11-05 11:51:17,404 - DEBUG - VN 101f397c-5208-460e-94c7-c74a39c6c5d6 still in use: Unable to complete operation on network 101f397c-5208-460e-94c7-c74a39c6c5d6. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-7014a01c-95c4-404e-8e91-a8e88da8d529'] 2024-11-05 11:51:17,404 - WARNING - Deleting VN ctest-ext_vn-28323335 failed..Will retry 2024-11-05 11:51:19,527 - DEBUG - Response for deleting network () 2024-11-05 11:51:19,527 - INFO - Deleting VN ctest-vn-89350127 2024-11-05 11:51:19,647 - DEBUG - Response for deleting network () 2024-11-05 11:51:19,910 - DEBUG - No XMPP flaps were noticed during the test
2024-11-05 11:51:19,910 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32]
2024-11-05 11:51:19,910 - INFO - -------------------------------------------------------------------------------- 2024-11-05 11:51:20,694 - INFO - Deleted project: ctest-TestRoutersBasic-53335372, ID : 6f8775a2-3f17-4d69-aee5-9a6b38f8c9e9