2024-10-24 13:08:53,225 - INFO - Domain Default found not creating 2024-10-24 13:08:53,437 - INFO - Project ctest-TestRoutersBasic-25264452 not found, creating it 2024-10-24 13:08:53,952 - INFO - Created Project:ctest-TestRoutersBasic-25264452, ID : 6dd14775-a76e-4a78-afa3-a408bd980cc3 2024-10-24 13:08:55,694 - INFO - ================================================================================ 2024-10-24 13:08:55,694 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-10-24 13:08:55,694 - 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-10-24 13:08:55,958 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.19': '0'}} with 2024-10-24 13:08:55,958 - INFO - Initial checks done. Running the testcase now 2024-10-24 13:08:55,958 - INFO - 2024-10-24 13:08:56,789 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-25264452 2024-10-24 13:08:56,893 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-25264452 2024-10-24 13:08:57,275 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-25264452', 'default']} 2024-10-24 13:08:57,642 - DEBUG - Response for create_network : {'network': {'id': 'bf0ac1e9-29e0-4765-8b15-af7df29b7533', 'name': 'ctest-vn-98222970', 'tenant_id': '6dd14775a76e4a78afa3a408bd980cc3', 'project_id': '6dd14775a76e4a78afa3a408bd980cc3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-25264452', 'ctest-vn-98222970'], 'port_security_enabled': True, 'description': ''}} 2024-10-24 13:08:57,881 - DEBUG - Response for create_subnet : {'subnet': {'id': '130b726b-901d-4abc-8cf1-9c3ddeb438fe', 'name': '', 'tenant_id': '6dd14775a76e4a78afa3a408bd980cc3', 'network_id': 'bf0ac1e9-29e0-4765-8b15-af7df29b7533', 'ip_version': 4, 'cidr': '24.218.216.0/26', 'allocation_pools': [{'start': '24.218.216.2', 'end': '24.218.216.62'}], 'gateway_ip': '24.218.216.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24.218.216.2', 'tags': [], 'project_id': '6dd14775a76e4a78afa3a408bd980cc3'}} 2024-10-24 13:08:57,910 - INFO - Created VN ctest-vn-98222970 2024-10-24 13:08:57,979 - DEBUG - VN ctest-vn-98222970 UUID is bf0ac1e9-29e0-4765-8b15-af7df29b7533 2024-10-24 13:08:58,413 - DEBUG - Response for create_network : {'network': {'id': 'dc9812ef-7c72-4256-99e5-7764ff613eaf', 'name': 'ctest-ext_vn-92548232', 'tenant_id': '6dd14775a76e4a78afa3a408bd980cc3', 'project_id': '6dd14775a76e4a78afa3a408bd980cc3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-25264452', 'ctest-ext_vn-92548232'], 'port_security_enabled': True, 'description': ''}} 2024-10-24 13:08:58,588 - DEBUG - Response for create_subnet : {'subnet': {'id': '28cc57c8-852f-479d-a5a3-27dfc3dfc7ae', 'name': '', 'tenant_id': '6dd14775a76e4a78afa3a408bd980cc3', 'network_id': 'dc9812ef-7c72-4256-99e5-7764ff613eaf', 'ip_version': 4, 'cidr': '44.79.70.128/26', 'allocation_pools': [{'start': '44.79.70.130', 'end': '44.79.70.190'}], 'gateway_ip': '44.79.70.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '44.79.70.130', 'tags': [], 'project_id': '6dd14775a76e4a78afa3a408bd980cc3'}} 2024-10-24 13:08:58,614 - INFO - Created VN ctest-ext_vn-92548232 2024-10-24 13:08:58,675 - DEBUG - VN ctest-ext_vn-92548232 UUID is dc9812ef-7c72-4256-99e5-7764ff613eaf 2024-10-24 13:08:58,894 - DEBUG - Services list from nova: [, , ] 2024-10-24 13:09:00,185 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2140-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2140-1) 2024-10-24 13:09:01,584 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2140-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2140-1) 2024-10-24 13:09:01,688 - INFO - Setting gateway for router f8810e1e-d10d-4a39-94c4-40ba64df1cda to network dc9812ef-7c72-4256-99e5-7764ff613eaf 2024-10-24 13:09:01,791 - INFO - Adding interface with subnet_id 130b726b-901d-4abc-8cf1-9c3ddeb438fe, port_id None to router f8810e1e-d10d-4a39-94c4-40ba64df1cda 2024-10-24 13:09:02,347 - INFO - Waiting for VM ctest-TestRoutersBasic-25264452-41708438 to be up.. 2024-10-24 13:09:02,619 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-24 13:09:07,724 - DEBUG - VM is in ACTIVE state now 2024-10-24 13:09:07,724 - INFO - VM name : ctest-TestRoutersBasic-25264452-41708438 2024-10-24 13:09:07,825 - DEBUG - VM ctest-TestRoutersBasic-25264452-41708438 ID is 97017adb-cc7a-46ef-8b9f-0eef85b7f751 2024-10-24 13:09:07,848 - DEBUG - VM ctest-TestRoutersBasic-25264452-41708438 launched on Node cn-jenkins-deploy-platform-ansible-os-2140-1 2024-10-24 13:09:07,966 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/97017adb-cc7a-46ef-8b9f-0eef85b7f751 2024-10-24 13:09:08,307 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/97017adb-cc7a-46ef-8b9f-0eef85b7f751 2024-10-24 13:09:08,353 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/acc7b87e-45c6-4009-a702-673a2ef07a43 2024-10-24 13:09:11,627 - 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') 2024-10-24 13:09:11,628 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-25264452-41708438 failed! 2024-10-24 13:09:11,691 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-25264452:ctest-vn-98222970 is 24.218.216.1 and allocation pool is NOT set 2024-10-24 13:09:13,757 - 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=11.1 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.60 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 = 2.602/6.866/11.130/4.264 ms') 2024-10-24 13:09:13,757 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-25264452-41708438 passed 2024-10-24 13:09:13,923 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 13:09:13,924 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-25264452-41708438, IP 24.218.216.3, Port 22 2024-10-24 13:09:13,979 - 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': ''} 2024-10-24 13:09:14,081 - DEBUG - VM ctest-TestRoutersBasic-25264452-41708438 is NOT ready for SSH connections, VM status: ACTIVE 2024-10-24 13:09:19,082 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 13:09:19,082 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-25264452-41708438, IP 24.218.216.3, Port 22 2024-10-24 13:09:19,253 - DEBUG - VM ctest-TestRoutersBasic-25264452-41708438 is ready for SSH connections 2024-10-24 13:09:19,253 - INFO - Waiting for VM ctest-TestRoutersBasic-25264452-00397670 to be up.. 2024-10-24 13:09:19,353 - DEBUG - VM is in ACTIVE state now 2024-10-24 13:09:19,354 - INFO - VM name : ctest-TestRoutersBasic-25264452-00397670 2024-10-24 13:09:19,444 - DEBUG - VM ctest-TestRoutersBasic-25264452-00397670 ID is 387452de-ecca-4577-b8b4-8984bd2cb4ab 2024-10-24 13:09:19,444 - DEBUG - VM ctest-TestRoutersBasic-25264452-00397670 launched on Node cn-jenkins-deploy-platform-ansible-os-2140-1 2024-10-24 13:09:19,533 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/387452de-ecca-4577-b8b4-8984bd2cb4ab 2024-10-24 13:09:19,545 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/5959671f-f731-4aed-b87f-f06392f7a2c9 2024-10-24 13:09:20,808 - 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.78 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.389 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.389/2.084/3.780/1.695 ms') 2024-10-24 13:09:20,808 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-25264452-00397670 passed 2024-10-24 13:09:20,976 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 13:09:20,976 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-25264452-00397670, IP 44.79.70.131, Port 22 2024-10-24 13:09:21,131 - DEBUG - VM ctest-TestRoutersBasic-25264452-00397670 is ready for SSH connections 2024-10-24 13:09:21,131 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 13:09:21,132 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 44.79.70.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2024-10-24 13:09:21,132 - DEBUG - ping -s 56 -c 3 -W 1 44.79.70.131 2024-10-24 13:09:24,927 - DEBUG - PING 44.79.70.131 (44.79.70.131): 56 data bytes 64 bytes from 44.79.70.131: seq=0 ttl=62 time=7.966 ms 64 bytes from 44.79.70.131: seq=1 ttl=62 time=1.068 ms 64 bytes from 44.79.70.131: seq=2 ttl=62 time=1.061 ms --- 44.79.70.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.061/3.365/7.966 ms 2024-10-24 13:09:24,928 - INFO - Ping to IP 44.79.70.131 from VM ctest-TestRoutersBasic-25264452-41708438 passed 2024-10-24 13:09:24,928 - INFO - Deleting interface with subnet_id 130b726b-901d-4abc-8cf1-9c3ddeb438fe, port_id None from router f8810e1e-d10d-4a39-94c4-40ba64df1cda 2024-10-24 13:09:25,202 - INFO - Deleting VM ctest-TestRoutersBasic-25264452-00397670 2024-10-24 13:09:25,278 - INFO - Deleting VM ctest-TestRoutersBasic-25264452-41708438 2024-10-24 13:09:25,387 - INFO - Deleting VN ctest-ext_vn-92548232 2024-10-24 13:09:25,492 - DEBUG - VN dc9812ef-7c72-4256-99e5-7764ff613eaf still in use: Unable to complete operation on network dc9812ef-7c72-4256-99e5-7764ff613eaf. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-d3c8d89e-403b-449a-bb3f-94f262d013c1'] 2024-10-24 13:09:25,492 - WARNING - Deleting VN ctest-ext_vn-92548232 failed..Will retry 2024-10-24 13:09:27,635 - DEBUG - Response for deleting network () 2024-10-24 13:09:27,635 - INFO - Deleting VN ctest-vn-98222970 2024-10-24 13:09:27,783 - DEBUG - Response for deleting network () 2024-10-24 13:09:28,042 - DEBUG - No XMPP flaps were noticed during the test
2024-10-24 13:09:28,043 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:33]
2024-10-24 13:09:28,043 - INFO - -------------------------------------------------------------------------------- 2024-10-24 13:09:28,850 - INFO - Deleted project: ctest-TestRoutersBasic-25264452, ID : 6dd14775-a76e-4a78-afa3-a408bd980cc3