2024-09-17 06:58:12,666 - INFO - Domain Default found not creating 2024-09-17 06:58:13,140 - INFO - Project ctest-TestRoutersBasic-46023248 not found, creating it 2024-09-17 06:58:14,004 - INFO - Created Project:ctest-TestRoutersBasic-46023248, ID : 06c31343-5119-46a9-8505-56a1f2783ee5 2024-09-17 06:58:16,235 - INFO - ================================================================================ 2024-09-17 06:58:16,236 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-17 06:58:16,236 - 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-09-17 06:58:16,563 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.10': '0'}} with 2024-09-17 06:58:16,563 - INFO - Initial checks done. Running the testcase now 2024-09-17 06:58:16,563 - INFO - 2024-09-17 06:58:17,544 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-46023248 2024-09-17 06:58:17,652 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-46023248 2024-09-17 06:58:18,032 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-46023248', 'default']} 2024-09-17 06:58:18,571 - DEBUG - Response for create_network : {'network': {'id': '79e511a8-c2ff-4d05-960a-856a97e17875', 'name': 'ctest-vn-73917545', 'tenant_id': '06c31343511946a9850556a1f2783ee5', 'project_id': '06c31343511946a9850556a1f2783ee5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-46023248', 'ctest-vn-73917545'], 'port_security_enabled': True, 'description': ''}} 2024-09-17 06:58:18,810 - DEBUG - Response for create_subnet : {'subnet': {'id': '2402a04b-3381-4d1d-aaae-d2958837f8d0', 'name': '', 'tenant_id': '06c31343511946a9850556a1f2783ee5', 'network_id': '79e511a8-c2ff-4d05-960a-856a97e17875', 'ip_version': 4, 'cidr': '78.202.19.0/26', 'allocation_pools': [{'start': '78.202.19.2', 'end': '78.202.19.62'}], 'gateway_ip': '78.202.19.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '78.202.19.2', 'tags': [], 'project_id': '06c31343511946a9850556a1f2783ee5'}} 2024-09-17 06:58:18,832 - INFO - Created VN ctest-vn-73917545 2024-09-17 06:58:18,892 - DEBUG - VN ctest-vn-73917545 UUID is 79e511a8-c2ff-4d05-960a-856a97e17875 2024-09-17 06:58:19,478 - DEBUG - Response for create_network : {'network': {'id': 'd1bf5355-4175-443f-897e-2d6e3ab72dd6', 'name': 'ctest-ext_vn-24844195', 'tenant_id': '06c31343511946a9850556a1f2783ee5', 'project_id': '06c31343511946a9850556a1f2783ee5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-46023248', 'ctest-ext_vn-24844195'], 'port_security_enabled': True, 'description': ''}} 2024-09-17 06:58:19,717 - DEBUG - Response for create_subnet : {'subnet': {'id': '9733f75d-8eee-422c-94df-108754a6bdfa', 'name': '', 'tenant_id': '06c31343511946a9850556a1f2783ee5', 'network_id': 'd1bf5355-4175-443f-897e-2d6e3ab72dd6', 'ip_version': 4, 'cidr': '31.167.198.64/26', 'allocation_pools': [{'start': '31.167.198.66', 'end': '31.167.198.126'}], 'gateway_ip': '31.167.198.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31.167.198.66', 'tags': [], 'project_id': '06c31343511946a9850556a1f2783ee5'}} 2024-09-17 06:58:19,739 - INFO - Created VN ctest-ext_vn-24844195 2024-09-17 06:58:19,800 - DEBUG - VN ctest-ext_vn-24844195 UUID is d1bf5355-4175-443f-897e-2d6e3ab72dd6 2024-09-17 06:58:20,079 - DEBUG - Services list from nova: [, , ] 2024-09-17 06:58:21,691 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1953-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1953-1) 2024-09-17 06:58:23,077 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1953-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1953-1) 2024-09-17 06:58:23,172 - INFO - Setting gateway for router a548d490-5194-4cac-a242-d36b02858da6 to network d1bf5355-4175-443f-897e-2d6e3ab72dd6 2024-09-17 06:58:23,256 - INFO - Adding interface with subnet_id 2402a04b-3381-4d1d-aaae-d2958837f8d0, port_id None to router a548d490-5194-4cac-a242-d36b02858da6 2024-09-17 06:58:23,714 - INFO - Waiting for VM ctest-TestRoutersBasic-46023248-12149555 to be up.. 2024-09-17 06:58:23,954 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-17 06:58:29,089 - DEBUG - VM is in ACTIVE state now 2024-09-17 06:58:29,089 - INFO - VM name : ctest-TestRoutersBasic-46023248-12149555 2024-09-17 06:58:29,213 - DEBUG - VM ctest-TestRoutersBasic-46023248-12149555 ID is 0d4154eb-1c39-4d15-95b4-4043fc3c91ab 2024-09-17 06:58:29,247 - DEBUG - VM ctest-TestRoutersBasic-46023248-12149555 launched on Node cn-jenkins-deploy-platform-ansible-os-1953-1 2024-09-17 06:58:29,376 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine/0d4154eb-1c39-4d15-95b4-4043fc3c91ab 2024-09-17 06:58:29,721 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine/0d4154eb-1c39-4d15-95b4-4043fc3c91ab 2024-09-17 06:58:29,814 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine-interface/c2f41893-17eb-472e-bf5c-2bc372ccca55 2024-09-17 06:58:33,190 - 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 1025ms') 2024-09-17 06:58:33,191 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-46023248-12149555 failed! 2024-09-17 06:58:33,268 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-46023248:ctest-vn-73917545 is 78.202.19.1 and allocation pool is NOT set 2024-09-17 06:58:35,346 - 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=5.68 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.567 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.567/3.122/5.678/2.555 ms') 2024-09-17 06:58:35,346 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-46023248-12149555 passed 2024-09-17 06:58:35,528 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 06:58:35,529 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-46023248-12149555, IP 78.202.19.3, Port 22 2024-09-17 06:58:35,599 - 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-09-17 06:58:35,807 - DEBUG - VM ctest-TestRoutersBasic-46023248-12149555 is NOT ready for SSH connections, VM status: ACTIVE 2024-09-17 06:58:40,808 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 06:58:40,809 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-46023248-12149555, IP 78.202.19.3, Port 22 2024-09-17 06:58:41,006 - DEBUG - VM ctest-TestRoutersBasic-46023248-12149555 is ready for SSH connections 2024-09-17 06:58:41,006 - INFO - Waiting for VM ctest-TestRoutersBasic-46023248-69731017 to be up.. 2024-09-17 06:58:41,152 - DEBUG - VM is in ACTIVE state now 2024-09-17 06:58:41,152 - INFO - VM name : ctest-TestRoutersBasic-46023248-69731017 2024-09-17 06:58:41,293 - DEBUG - VM ctest-TestRoutersBasic-46023248-69731017 ID is 03985cbf-7c37-4454-972b-2c60bab1a176 2024-09-17 06:58:41,294 - DEBUG - VM ctest-TestRoutersBasic-46023248-69731017 launched on Node cn-jenkins-deploy-platform-ansible-os-1953-1 2024-09-17 06:58:41,420 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine/03985cbf-7c37-4454-972b-2c60bab1a176 2024-09-17 06:58:41,438 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine-interface/7c480946-f086-45dc-b8dc-254b5c4b4f86 2024-09-17 06:58:42,738 - 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=10.2 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.917 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.917/5.555/10.193/4.638 ms') 2024-09-17 06:58:42,738 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-46023248-69731017 passed 2024-09-17 06:58:42,956 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 06:58:42,956 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-46023248-69731017, IP 31.167.198.67, Port 22 2024-09-17 06:58:43,158 - DEBUG - VM ctest-TestRoutersBasic-46023248-69731017 is ready for SSH connections 2024-09-17 06:58:43,158 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 06:58:43,159 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 31.167.198.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.57, gateway password: c0ntrail123 2024-09-17 06:58:43,159 - DEBUG - ping -s 56 -c 3 -W 1 31.167.198.67 2024-09-17 06:58:47,195 - DEBUG - PING 31.167.198.67 (31.167.198.67): 56 data bytes 64 bytes from 31.167.198.67: seq=0 ttl=62 time=8.064 ms 64 bytes from 31.167.198.67: seq=1 ttl=62 time=1.372 ms 64 bytes from 31.167.198.67: seq=2 ttl=62 time=2.612 ms --- 31.167.198.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.372/4.016/8.064 ms 2024-09-17 06:58:47,195 - INFO - Ping to IP 31.167.198.67 from VM ctest-TestRoutersBasic-46023248-12149555 passed 2024-09-17 06:58:47,196 - INFO - Deleting interface with subnet_id 2402a04b-3381-4d1d-aaae-d2958837f8d0, port_id None from router a548d490-5194-4cac-a242-d36b02858da6 2024-09-17 06:58:47,555 - INFO - Deleting VM ctest-TestRoutersBasic-46023248-69731017 2024-09-17 06:58:47,638 - INFO - Deleting VM ctest-TestRoutersBasic-46023248-12149555 2024-09-17 06:58:47,728 - INFO - Deleting VN ctest-ext_vn-24844195 2024-09-17 06:58:47,802 - DEBUG - VN d1bf5355-4175-443f-897e-2d6e3ab72dd6 still in use: Unable to complete operation on network d1bf5355-4175-443f-897e-2d6e3ab72dd6. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-43e6e86a-6e25-4420-b6ea-2773d59fb1e6'] 2024-09-17 06:58:47,802 - WARNING - Deleting VN ctest-ext_vn-24844195 failed..Will retry 2024-09-17 06:58:50,036 - DEBUG - Response for deleting network () 2024-09-17 06:58:50,036 - INFO - Deleting VN ctest-vn-73917545 2024-09-17 06:58:50,201 - DEBUG - Response for deleting network () 2024-09-17 06:58:50,500 - DEBUG - No XMPP flaps were noticed during the test 2024-09-17 06:58:50,500 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:34] 2024-09-17 06:58:50,500 - INFO - -------------------------------------------------------------------------------- 2024-09-17 06:58:51,428 - INFO - Deleted project: ctest-TestRoutersBasic-46023248, ID : 06c31343-5119-46a9-8505-56a1f2783ee5