Hello,
I cannot install my OpenStack environment using Cloudify, because of SSL certificate verification error. My OpenStack endpoint is accessible only with HTTPS, but I have tried to use various insecure modes. With no success. I'm using the pre-packaged Cloudify 4.2 image and try to install OpenStack environment with following command:
cfy install cloudify-environment-setup-latest/openstack-blueprint.yaml -i cloudify-environment-setup-latest/inputs/openstack.yaml
using GitHub repo example:
https://github.com/cloudify-examples/cloudify-environment-setupThe error is:
File "/opt/mgmtworker/env/plugins/default_tenant/cloudify-openstack-plugin-2.5.0/lib/python2.7/site-packages/keystoneauth1/identity/base.py", line 136, in get_access
self.auth_ref = self.get_auth_ref(session)
File "/opt/mgmtworker/env/plugins/default_tenant/cloudify-openstack-plugin-2.5.0/lib/python2.7/site-packages/keystoneauth1/identity/generic/base.py", line 198, in get_auth_ref
return self._plugin.get_auth_ref(session, **kwargs)
File "/opt/mgmtworker/env/plugins/default_tenant/cloudify-openstack-plugin-2.5.0/lib/python2.7/site-packages/keystoneauth1/identity/v2.py", line 65, in get_auth_ref
authenticated=False, log=False)
File "/opt/mgmtworker/env/plugins/default_tenant/cloudify-openstack-plugin-2.5.0/lib/python2.7/site-packages/keystoneauth1/session.py", line 766, in post
return self.request(url, 'POST', **kwargs)
File "/opt/mgmtworker/env/plugins/default_tenant/cloudify-openstack-plugin-2.5.0/lib/python2.7/site-packages/positional/__init__.py", line 108, in inner
return wrapped(*args, **kwargs)
File "/opt/mgmtworker/env/plugins/default_tenant/cloudify-openstack-plugin-2.5.0/lib/python2.7/site-packages/keystoneauth1/session.py", line 616, in request
resp = send(**kwargs)
File "/opt/mgmtworker/env/plugins/default_tenant/cloudify-openstack-plugin-2.5.0/lib/python2.7/site-packages/keystoneauth1/session.py", line 678, in _send_request
raise exceptions.SSLError(msg)
SSLError: SSL exception connecting to https://-url-/v2.0/tokens: HTTPSConnectionPool(host='-url-', port=5000): Max retries exceeded with url: /v2.0/tokens (Caused by SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:579)'),))
I've tried already different workarounds:
1) Set "export CLOUDIFY_SSL_TRUST_ALL=true;" does not bring any result.
2) By setting custom configuration in openstack-blueprint.yaml:
custom_configuration:
nova_client:
insecure: true
keystone_client:
insecure: true
neutron_client:
insecure: true
cinder_client:
insecure: true
The result is that requests are sent to HTTP instead of HTTPS, but this is useless as my endpoint is not accesible via HTTP.
What I only need is to set flag "--insecure" / "-k" as it is possible with cURL. With cURL I'm able to access my endpoint using -k option. I would like to have the same behaviour with Cloudify..
Please, help me with this annoying issue.