While trying to run defcore list of tests URL with refstack , i get insecure error even i have provided insecure to refstack CLI.
(.venv)CI-2:~/workspace/refstack_cloud_compute/refstack-client # ./refstack-client test --insecure -c '.tempest/etc/tempest.conf' -v --test-list "https://refstack.openstack.org/api/v1/guidelines/next/tests?target=object&type=required&alias=true&flag=false"
InsecurePlatformWarning
/var/lib/jenkins/workspace/refstack_cloud_compute/refstack-client/.venv/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:838: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/security.html
InsecureRequestWarning)
2016-10-13 09:24:03,283 refstack_client:403 INFO Starting Tempest test...
2016-10-13 09:24:03,283 refstack_client:413 INFO Normalizing test list...
Option "verbose" from group "DEFAULT" is deprecated for removal. Its value may be silently ignored in the future.
/var/lib/jenkins/workspace/refstack_cloud_compute/refstack-client/.venv/lib/python2.7/site-packages/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
2016-10-13 09:24:17,558 refstack_client.list_parser:109 ERROR Error reading the passed in test list file.
Traceback (most recent call last):
File "./refstack-client", line 31, in <module>
raise SystemExit(getattr(test, args.func)())
File "/var/lib/jenkins/workspace/refstack_cloud_compute/refstack-client/refstack_client/refstack_client.py", line 417, in test
list_file = parser.create_whitelist(self.args.test_list)
File "/var/lib/jenkins/workspace/refstack_cloud_compute/refstack-client/refstack_client/list_parser.py", line 219, in create_whitelist
normalized_list = open(self.get_normalized_test_list(list_location),
File "/var/lib/jenkins/workspace/refstack_cloud_compute/refstack-client/refstack_client/list_parser.py", line 203, in get_normalized_test_list
base_test_ids = self._get_base_test_ids_from_list_file(list_location)
File "/var/lib/jenkins/workspace/refstack_cloud_compute/refstack-client/refstack_client/list_parser.py", line 95, in _get_base_test_ids_from_list_file
response = requests.get(list_location)
File "/var/lib/jenkins/workspace/refstack_cloud_compute/refstack-client/.venv/lib/python2.7/site-packages/requests/api.py", line 70, in get
return request('get', url, params=params, **kwargs)
File "/var/lib/jenkins/workspace/refstack_cloud_compute/refstack-client/.venv/lib/python2.7/site-packages/requests/api.py", line 56, in request
return session.request(method=method, url=url, **kwargs)
File "/var/lib/jenkins/workspace/refstack_cloud_compute/refstack-client/.venv/lib/python2.7/site-packages/requests/sessions.py", line 475, in request
resp = self.send(prep, **send_kwargs)
File "/var/lib/jenkins/workspace/refstack_cloud_compute/refstack-client/.venv/lib/python2.7/site-packages/requests/sessions.py", line 596, in send
r = adapter.send(request, **kwargs)
File "/var/lib/jenkins/workspace/refstack_cloud_compute/refstack-client/.venv/lib/python2.7/site-packages/requests/adapters.py", line 497, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: [Errno 1] _ssl.c:523: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
It should respect "insecure" even when trying to retrieve the tests via a HTTPS based URL
The RefStack team is investigating the failure condition. Thanks for opening thus big!