2024-10-31 11:35:53,581 - INFO - Domain Default found not creating 2024-10-31 11:35:53,777 - INFO - Project ctest-TestRoutersBasic-86256143 not found, creating it 2024-10-31 11:35:54,551 - INFO - Created Project:ctest-TestRoutersBasic-86256143, ID : 7bfb51df-c971-4f73-a8d8-fb3456f8c4eb 2024-10-31 11:35:56,464 - INFO - ================================================================================ 2024-10-31 11:35:56,464 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-10-31 11:35:56,464 - 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-31 11:35:56,732 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.5': '0'}} with 2024-10-31 11:35:56,732 - INFO - Initial checks done. Running the testcase now 2024-10-31 11:35:56,732 - INFO - 2024-10-31 11:35:57,727 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-86256143 2024-10-31 11:35:57,829 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-86256143 2024-10-31 11:35:58,212 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-86256143', 'default']} 2024-10-31 11:35:58,577 - DEBUG - Response for create_network : {'network': {'id': '684154e9-aa24-4846-adb7-c11cb0b89e8f', 'name': 'ctest-vn-10534458', 'tenant_id': '7bfb51dfc9714f73a8d8fb3456f8c4eb', 'project_id': '7bfb51dfc9714f73a8d8fb3456f8c4eb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-86256143', 'ctest-vn-10534458'], 'port_security_enabled': True, 'description': ''}} 2024-10-31 11:35:58,845 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e8fda22a-0c36-4897-9ade-c38cc55a5a48', 'name': '', 'tenant_id': '7bfb51dfc9714f73a8d8fb3456f8c4eb', 'network_id': '684154e9-aa24-4846-adb7-c11cb0b89e8f', 'ip_version': 4, 'cidr': '214.47.103.128/26', 'allocation_pools': [{'start': '214.47.103.130', 'end': '214.47.103.190'}], 'gateway_ip': '214.47.103.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '214.47.103.130', 'tags': [], 'project_id': '7bfb51dfc9714f73a8d8fb3456f8c4eb'}} 2024-10-31 11:35:58,876 - INFO - Created VN ctest-vn-10534458 2024-10-31 11:35:58,937 - DEBUG - VN ctest-vn-10534458 UUID is 684154e9-aa24-4846-adb7-c11cb0b89e8f 2024-10-31 11:35:59,410 - DEBUG - Response for create_network : {'network': {'id': '9534de54-5854-4bc0-a71e-a557e4f46c01', 'name': 'ctest-ext_vn-83689267', 'tenant_id': '7bfb51dfc9714f73a8d8fb3456f8c4eb', 'project_id': '7bfb51dfc9714f73a8d8fb3456f8c4eb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-86256143', 'ctest-ext_vn-83689267'], 'port_security_enabled': True, 'description': ''}} 2024-10-31 11:35:59,649 - DEBUG - Response for create_subnet : {'subnet': {'id': '6269aaaa-7d8f-4130-8784-4dcac8c73787', 'name': '', 'tenant_id': '7bfb51dfc9714f73a8d8fb3456f8c4eb', 'network_id': '9534de54-5854-4bc0-a71e-a557e4f46c01', 'ip_version': 4, 'cidr': '15.130.229.128/26', 'allocation_pools': [{'start': '15.130.229.130', 'end': '15.130.229.190'}], 'gateway_ip': '15.130.229.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '15.130.229.130', 'tags': [], 'project_id': '7bfb51dfc9714f73a8d8fb3456f8c4eb'}} 2024-10-31 11:35:59,674 - INFO - Created VN ctest-ext_vn-83689267 2024-10-31 11:35:59,736 - DEBUG - VN ctest-ext_vn-83689267 UUID is 9534de54-5854-4bc0-a71e-a557e4f46c01 2024-10-31 11:35:59,965 - DEBUG - Services list from nova: [, , ] 2024-10-31 11:36:01,229 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2184-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2184-1) 2024-10-31 11:36:03,013 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2184-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2184-1) 2024-10-31 11:36:03,175 - INFO - Setting gateway for router 1c0466ca-640a-43b4-9c58-b3ba646fa22b to network 9534de54-5854-4bc0-a71e-a557e4f46c01 2024-10-31 11:36:03,287 - INFO - Adding interface with subnet_id e8fda22a-0c36-4897-9ade-c38cc55a5a48, port_id None to router 1c0466ca-640a-43b4-9c58-b3ba646fa22b 2024-10-31 11:36:03,980 - INFO - Waiting for VM ctest-TestRoutersBasic-86256143-09571369 to be up.. 2024-10-31 11:36:04,216 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-31 11:36:09,335 - DEBUG - VM is in ACTIVE state now 2024-10-31 11:36:09,335 - INFO - VM name : ctest-TestRoutersBasic-86256143-09571369 2024-10-31 11:36:09,462 - DEBUG - VM ctest-TestRoutersBasic-86256143-09571369 ID is c4a41bab-0dfc-4957-9aa5-0be914f58fed 2024-10-31 11:36:09,493 - DEBUG - VM ctest-TestRoutersBasic-86256143-09571369 launched on Node cn-jenkins-deploy-platform-ansible-os-2184-1 2024-10-31 11:36:09,606 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/c4a41bab-0dfc-4957-9aa5-0be914f58fed 2024-10-31 11:36:09,960 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/c4a41bab-0dfc-4957-9aa5-0be914f58fed 2024-10-31 11:36:10,013 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/d582049e-7044-4413-81dd-5cba4f3d5f79 2024-10-31 11:36:13,311 - 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 1015ms') 2024-10-31 11:36:13,312 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-86256143-09571369 failed! 2024-10-31 11:36:13,385 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-86256143:ctest-vn-10534458 is 214.47.103.129 and allocation pool is NOT set 2024-10-31 11:36:15,450 - 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=9.17 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.38 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 = 1.377/5.273/9.169/3.896 ms') 2024-10-31 11:36:15,450 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-86256143-09571369 passed 2024-10-31 11:36:15,621 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-31 11:36:15,621 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-86256143-09571369, IP 214.47.103.131, Port 22 2024-10-31 11:36:15,795 - DEBUG - VM ctest-TestRoutersBasic-86256143-09571369 is ready for SSH connections 2024-10-31 11:36:15,795 - INFO - Waiting for VM ctest-TestRoutersBasic-86256143-97743964 to be up.. 2024-10-31 11:36:15,921 - DEBUG - VM is in ACTIVE state now 2024-10-31 11:36:15,921 - INFO - VM name : ctest-TestRoutersBasic-86256143-97743964 2024-10-31 11:36:16,053 - DEBUG - VM ctest-TestRoutersBasic-86256143-97743964 ID is 2bff420e-c614-4a8b-9d01-5bf6e2ac8996 2024-10-31 11:36:16,053 - DEBUG - VM ctest-TestRoutersBasic-86256143-97743964 launched on Node cn-jenkins-deploy-platform-ansible-os-2184-1 2024-10-31 11:36:16,173 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/2bff420e-c614-4a8b-9d01-5bf6e2ac8996 2024-10-31 11:36:16,187 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/834ceb4a-75e8-4ea3-a997-fc7fbbc4c6eb 2024-10-31 11:36:17,452 - 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=6.48 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.74 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.737/4.608/6.480/1.871 ms') 2024-10-31 11:36:17,453 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-86256143-97743964 passed 2024-10-31 11:36:17,613 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-31 11:36:17,613 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-86256143-97743964, IP 15.130.229.131, Port 22 2024-10-31 11:36:17,679 - 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-10-31 11:36:17,780 - DEBUG - VM ctest-TestRoutersBasic-86256143-97743964 is NOT ready for SSH connections, VM status: ACTIVE 2024-10-31 11:36:22,781 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-31 11:36:22,781 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-86256143-97743964, IP 15.130.229.131, Port 22 2024-10-31 11:36:22,937 - DEBUG - VM ctest-TestRoutersBasic-86256143-97743964 is ready for SSH connections 2024-10-31 11:36:22,937 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-31 11:36:22,937 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 15.130.229.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2024-10-31 11:36:22,937 - DEBUG - ping -s 56 -c 3 -W 1 15.130.229.131 2024-10-31 11:36:26,724 - DEBUG - PING 15.130.229.131 (15.130.229.131): 56 data bytes 64 bytes from 15.130.229.131: seq=0 ttl=62 time=6.558 ms 64 bytes from 15.130.229.131: seq=1 ttl=62 time=1.190 ms 64 bytes from 15.130.229.131: seq=2 ttl=62 time=1.084 ms --- 15.130.229.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.084/2.944/6.558 ms 2024-10-31 11:36:26,725 - INFO - Ping to IP 15.130.229.131 from VM ctest-TestRoutersBasic-86256143-09571369 passed 2024-10-31 11:36:26,725 - INFO - Deleting interface with subnet_id e8fda22a-0c36-4897-9ade-c38cc55a5a48, port_id None from router 1c0466ca-640a-43b4-9c58-b3ba646fa22b 2024-10-31 11:36:27,009 - INFO - Deleting VM ctest-TestRoutersBasic-86256143-97743964 2024-10-31 11:36:27,096 - INFO - Deleting VM ctest-TestRoutersBasic-86256143-09571369 2024-10-31 11:36:27,202 - INFO - Deleting VN ctest-ext_vn-83689267 2024-10-31 11:36:27,298 - DEBUG - VN 9534de54-5854-4bc0-a71e-a557e4f46c01 still in use: Unable to complete operation on network 9534de54-5854-4bc0-a71e-a557e4f46c01. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-93d9b33a-bc7f-4036-80cf-410a05aeb042'] 2024-10-31 11:36:27,298 - WARNING - Deleting VN ctest-ext_vn-83689267 failed..Will retry 2024-10-31 11:36:29,441 - DEBUG - Response for deleting network () 2024-10-31 11:36:29,442 - INFO - Deleting VN ctest-vn-10534458 2024-10-31 11:36:29,591 - DEBUG - Response for deleting network () 2024-10-31 11:36:29,855 - DEBUG - No XMPP flaps were noticed during the test
2024-10-31 11:36:29,855 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:33]
2024-10-31 11:36:29,855 - INFO - -------------------------------------------------------------------------------- 2024-10-31 11:36:30,674 - INFO - Deleted project: ctest-TestRoutersBasic-86256143, ID : 7bfb51df-c971-4f73-a8d8-fb3456f8c4eb