The swift api client connection does not respect the OPENSTACK_SSL_NO_VERIFY setting in local_settings.py.
This results in a test deployment with self signed certificates not being able to use the Horizon project containers web interface with an SSL verification error.
A patch would be something like this:
diff -Naur openstack-dashboard/openstack_dashboard/api/swift.py openstack-dashboard.new/openstack_dashboard/api/swift.py
--- openstack-dashboard/openstack_dashboard/api/swift.py 2014-04-22 21:44:37.293082690 +0000
+++ openstack-dashboard.new/openstack_dashboard/api/swift.py 2014-04-22 21:47:57.541082727 +0000
@@ -108,6 +108,7 @@
def swift_api(request):
endpoint = base.url_for(request, 'object-store')
+ insecure = getattr(settings, 'OPENSTACK_SSL_NO_VERIFY', False)
cacert = getattr(settings, 'OPENSTACK_SSL_CACERT', None)
LOG.debug('Swift connection created using token "%s" and url "%s"'
% (request.user.token.id, endpoint))
@@ -117,6 +118,7 @@
preauthtoken=request.user.token.id,
preauthurl=endpoint,
cacert=cacert,
+ insecure=insecure,
auth_version="2.0")
Thanks for the bug report and patch Daryl. Could you submit the patch to Gerrit following the OpenStack process described at https:/ /wiki.openstack .org/wiki/ HowToContribute #If_you. 27re_a_ developer ? If you hit any issue or have a question, feel free to pop up on IRC at #openstack-horizon, people are happy to help.