2024-10-19 09:05:31,153 - INFO - Domain Default found not creating 2024-10-19 09:05:31,344 - INFO - Project ctest-TestRoutersBasic-17953451 not found, creating it 2024-10-19 09:05:31,847 - INFO - Created Project:ctest-TestRoutersBasic-17953451, ID : d69e0c48-deaa-4c1b-b787-33ca399063db 2024-10-19 09:05:33,479 - INFO - ================================================================================ 2024-10-19 09:05:33,479 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-10-19 09:05:33,479 - 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-19 09:05:33,737 - DEBUG - Nothing to compare xmpp stats {'10.0.0.30': {'10.20.0.12': '0'}} with 2024-10-19 09:05:33,737 - INFO - Initial checks done. Running the testcase now 2024-10-19 09:05:33,738 - INFO - 2024-10-19 09:05:34,509 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-17953451 2024-10-19 09:05:34,611 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-17953451 2024-10-19 09:05:34,963 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-17953451', 'default']} 2024-10-19 09:05:35,327 - DEBUG - Response for create_network : {'network': {'id': 'bf8db0c1-5a33-4bb3-a759-fb76abc360ce', 'name': 'ctest-vn-55230732', 'tenant_id': 'd69e0c48deaa4c1bb78733ca399063db', 'project_id': 'd69e0c48deaa4c1bb78733ca399063db', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-17953451', 'ctest-vn-55230732'], 'port_security_enabled': True, 'description': ''}} 2024-10-19 09:05:35,602 - DEBUG - Response for create_subnet : {'subnet': {'id': '0f5d88a8-1ff1-4b8f-8457-95520d0dbcc0', 'name': '', 'tenant_id': 'd69e0c48deaa4c1bb78733ca399063db', 'network_id': 'bf8db0c1-5a33-4bb3-a759-fb76abc360ce', 'ip_version': 4, 'cidr': '35.11.123.128/26', 'allocation_pools': [{'start': '35.11.123.130', 'end': '35.11.123.190'}], 'gateway_ip': '35.11.123.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '35.11.123.130', 'tags': [], 'project_id': 'd69e0c48deaa4c1bb78733ca399063db'}} 2024-10-19 09:05:35,625 - INFO - Created VN ctest-vn-55230732 2024-10-19 09:05:35,687 - DEBUG - VN ctest-vn-55230732 UUID is bf8db0c1-5a33-4bb3-a759-fb76abc360ce 2024-10-19 09:05:36,073 - DEBUG - Response for create_network : {'network': {'id': 'd8d7759b-985c-4578-9313-f4ba47a86941', 'name': 'ctest-ext_vn-10529248', 'tenant_id': 'd69e0c48deaa4c1bb78733ca399063db', 'project_id': 'd69e0c48deaa4c1bb78733ca399063db', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-17953451', 'ctest-ext_vn-10529248'], 'port_security_enabled': True, 'description': ''}} 2024-10-19 09:05:36,262 - DEBUG - Response for create_subnet : {'subnet': {'id': '4dcaad51-8c9c-4f39-b0b9-a5960fc38b34', 'name': '', 'tenant_id': 'd69e0c48deaa4c1bb78733ca399063db', 'network_id': 'd8d7759b-985c-4578-9313-f4ba47a86941', 'ip_version': 4, 'cidr': '142.61.42.0/26', 'allocation_pools': [{'start': '142.61.42.2', 'end': '142.61.42.62'}], 'gateway_ip': '142.61.42.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '142.61.42.2', 'tags': [], 'project_id': 'd69e0c48deaa4c1bb78733ca399063db'}} 2024-10-19 09:05:36,285 - INFO - Created VN ctest-ext_vn-10529248 2024-10-19 09:05:36,343 - DEBUG - VN ctest-ext_vn-10529248 UUID is d8d7759b-985c-4578-9313-f4ba47a86941 2024-10-19 09:05:36,550 - DEBUG - Services list from nova: [, , ] 2024-10-19 09:05:37,700 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2115-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2115-1) 2024-10-19 09:05:39,068 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2115-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2115-1) 2024-10-19 09:05:39,163 - INFO - Setting gateway for router 09a192ba-b268-4f8b-8c55-609a77c7849c to network d8d7759b-985c-4578-9313-f4ba47a86941 2024-10-19 09:05:39,263 - INFO - Adding interface with subnet_id 0f5d88a8-1ff1-4b8f-8457-95520d0dbcc0, port_id None to router 09a192ba-b268-4f8b-8c55-609a77c7849c 2024-10-19 09:05:39,662 - INFO - Waiting for VM ctest-TestRoutersBasic-17953451-16521077 to be up.. 2024-10-19 09:05:39,847 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-19 09:05:44,942 - DEBUG - VM is in ACTIVE state now 2024-10-19 09:05:44,942 - INFO - VM name : ctest-TestRoutersBasic-17953451-16521077 2024-10-19 09:05:45,047 - DEBUG - VM ctest-TestRoutersBasic-17953451-16521077 ID is 2e36edf7-63c5-4ad2-bea1-f5ffdf194e00 2024-10-19 09:05:45,070 - DEBUG - VM ctest-TestRoutersBasic-17953451-16521077 launched on Node cn-jenkins-deploy-platform-ansible-os-2115-1 2024-10-19 09:05:45,154 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine/2e36edf7-63c5-4ad2-bea1-f5ffdf194e00 2024-10-19 09:05:45,472 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine/2e36edf7-63c5-4ad2-bea1-f5ffdf194e00 2024-10-19 09:05:45,513 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine-interface/a584755a-14f5-4a67-bdbd-6cd94ea54da5 2024-10-19 09:05:48,799 - 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 1024ms') 2024-10-19 09:05:48,799 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-17953451-16521077 failed! 2024-10-19 09:05:48,863 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-17953451:ctest-vn-55230732 is 35.11.123.129 and allocation pool is NOT set 2024-10-19 09:05:50,925 - 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.90 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.35 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 = 3.346/4.123/4.900/0.777 ms') 2024-10-19 09:05:50,925 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-17953451-16521077 passed 2024-10-19 09:05:51,087 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-19 09:05:51,088 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-17953451-16521077, IP 35.11.123.131, Port 22 2024-10-19 09:05:51,153 - 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-19 09:05:51,246 - DEBUG - VM ctest-TestRoutersBasic-17953451-16521077 is NOT ready for SSH connections, VM status: ACTIVE 2024-10-19 09:05:56,247 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-19 09:05:56,247 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-17953451-16521077, IP 35.11.123.131, Port 22 2024-10-19 09:05:56,403 - DEBUG - VM ctest-TestRoutersBasic-17953451-16521077 is ready for SSH connections 2024-10-19 09:05:56,403 - INFO - Waiting for VM ctest-TestRoutersBasic-17953451-18455076 to be up.. 2024-10-19 09:05:56,490 - DEBUG - VM is in ACTIVE state now 2024-10-19 09:05:56,490 - INFO - VM name : ctest-TestRoutersBasic-17953451-18455076 2024-10-19 09:05:56,580 - DEBUG - VM ctest-TestRoutersBasic-17953451-18455076 ID is eaf7e23f-f7d6-4bdb-8941-24da928a148e 2024-10-19 09:05:56,580 - DEBUG - VM ctest-TestRoutersBasic-17953451-18455076 launched on Node cn-jenkins-deploy-platform-ansible-os-2115-1 2024-10-19 09:05:56,670 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine/eaf7e23f-f7d6-4bdb-8941-24da928a148e 2024-10-19 09:05:56,693 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine-interface/d293fe2d-cbef-44d8-bc7c-b3d55dabfa32 2024-10-19 09:05:57,952 - 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.11 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.593 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.593/1.849/3.106/1.256 ms') 2024-10-19 09:05:57,952 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-17953451-18455076 passed 2024-10-19 09:05:58,124 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-19 09:05:58,124 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-17953451-18455076, IP 142.61.42.3, Port 22 2024-10-19 09:05:58,279 - DEBUG - VM ctest-TestRoutersBasic-17953451-18455076 is ready for SSH connections 2024-10-19 09:05:58,279 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-19 09:05:58,280 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 142.61.42.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.30, gateway password: c0ntrail123 2024-10-19 09:05:58,280 - DEBUG - ping -s 56 -c 3 -W 1 142.61.42.3 2024-10-19 09:06:01,990 - DEBUG - PING 142.61.42.3 (142.61.42.3): 56 data bytes 64 bytes from 142.61.42.3: seq=0 ttl=62 time=5.966 ms 64 bytes from 142.61.42.3: seq=1 ttl=62 time=1.283 ms 64 bytes from 142.61.42.3: seq=2 ttl=62 time=0.908 ms --- 142.61.42.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.908/2.719/5.966 ms 2024-10-19 09:06:01,991 - INFO - Ping to IP 142.61.42.3 from VM ctest-TestRoutersBasic-17953451-16521077 passed 2024-10-19 09:06:01,991 - INFO - Deleting interface with subnet_id 0f5d88a8-1ff1-4b8f-8457-95520d0dbcc0, port_id None from router 09a192ba-b268-4f8b-8c55-609a77c7849c 2024-10-19 09:06:02,308 - INFO - Deleting VM ctest-TestRoutersBasic-17953451-18455076 2024-10-19 09:06:02,392 - INFO - Deleting VM ctest-TestRoutersBasic-17953451-16521077 2024-10-19 09:06:02,490 - INFO - Deleting VN ctest-ext_vn-10529248 2024-10-19 09:06:02,581 - DEBUG - VN d8d7759b-985c-4578-9313-f4ba47a86941 still in use: Unable to complete operation on network d8d7759b-985c-4578-9313-f4ba47a86941. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-76301504-b555-4e27-89b0-4ce4da2f66f2'] 2024-10-19 09:06:02,581 - WARNING - Deleting VN ctest-ext_vn-10529248 failed..Will retry 2024-10-19 09:06:04,727 - DEBUG - Response for deleting network () 2024-10-19 09:06:04,728 - INFO - Deleting VN ctest-vn-55230732 2024-10-19 09:06:04,859 - DEBUG - Response for deleting network () 2024-10-19 09:06:05,129 - DEBUG - No XMPP flaps were noticed during the test 2024-10-19 09:06:05,129 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32] 2024-10-19 09:06:05,129 - INFO - -------------------------------------------------------------------------------- 2024-10-19 09:06:05,882 - INFO - Deleted project: ctest-TestRoutersBasic-17953451, ID : d69e0c48-deaa-4c1b-b787-33ca399063db