rhel-osp-director: Undercloud + SSL, unable to login to UI: "Something went wrong!" Environment: instack-undercloud-2.1.2-21.el7ost.noarch Steps to reproduce: 1. Install undercloud and enable SSL. 2. Run this w/a to access UI: "openstack role add --user admin --project service admin" 3. Attempt to login to UI Result: Something went wrong! An unexpected error has occurred. Try refreshing the page. If that doesn't help, contact your local administrator. Note: Checked on a setup without SSL and was able to login with no issues. Expected result: Shouldn't get this error upon login to UI.
Created attachment 1055093 [details] apache logs
could be related ? https://bugzilla.redhat.com/show_bug.cgi?id=1245192
This is from the horizon.log file: 2015-07-22 22:52:41,272 42773 INFO openstack_auth.forms Login successful for user "admin". 2015-07-22 22:52:45,393 42775 WARNING horizon.exceptions Recoverable error: [Errno 1] _ssl.c:504: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed 2015-07-22 22:52:45,409 42775 WARNING horizon.exceptions Recoverable error: [Errno 1] _ssl.c:504: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed 2015-07-22 22:52:45,425 42775 WARNING horizon.exceptions Recoverable error: [Errno 1] _ssl.c:504: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed 2015-07-22 22:52:45,441 42775 WARNING horizon.exceptions Recoverable error: [Errno 1] _ssl.c:504: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed 2015-07-22 22:52:45,457 42775 WARNING horizon.exceptions Recoverable error: [Errno 1] _ssl.c:504: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed 2015-07-22 22:52:45,474 42775 WARNING horizon.exceptions Recoverable error: [Errno 1] _ssl.c:504: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed 2015-07-22 22:52:45,491 42775 WARNING horizon.exceptions Recoverable error: [Errno 1] _ssl.c:504: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed 2015-07-22 22:52:45,507 42775 ERROR django.request Internal Server Error: /dashboard/infrastructure/ Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python2.7/site-packages/horizon/decorators.py", line 36, in dec return view_func(request, *args, **kwargs) File "/usr/lib/python2.7/site-packages/horizon/decorators.py", line 84, in dec return view_func(request, *args, **kwargs) File "/usr/lib/python2.7/site-packages/horizon/decorators.py", line 52, in dec return view_func(request, *args, **kwargs) File "/usr/lib/python2.7/site-packages/horizon/decorators.py", line 36, in dec return view_func(request, *args, **kwargs) File "/usr/lib/python2.7/site-packages/django/views/generic/base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "/usr/lib/python2.7/site-packages/django/views/generic/base.py", line 89, in dispatch return handler(request, *args, **kwargs) File "/usr/lib/python2.7/site-packages/tuskar_ui/infrastructure/overview/views.py", line 147, in get return super(IndexView, self).get(request, *args, **kwargs) File "/usr/lib/python2.7/site-packages/django/views/generic/edit.py", line 206, in get return self.render_to_response(self.get_context_data(form=form)) File "/usr/lib/python2.7/site-packages/tuskar_boxes/overview/views.py", line 190, in get_context_data context = super(IndexView, self).get_context_data(**kwargs) File "/usr/lib/python2.7/site-packages/tuskar_ui/infrastructure/overview/views.py", line 154, in get_context_data context.update(self.get_data(self.request, context)) File "/usr/lib/python2.7/site-packages/tuskar_boxes/overview/views.py", line 121, in get_data *args, **kwargs) File "/usr/lib/python2.7/site-packages/tuskar_ui/infrastructure/overview/views.py", line 222, in get_data messages = forms.validate_plan(request, plan) File "/usr/lib/python2.7/site-packages/tuskar_ui/infrastructure/overview/forms.py", line 108, in validate_plan maintenance=False)) File "/usr/lib/python2.7/site-packages/horizon/utils/memoized.py", line 90, in wrapped value = cache[key] = func(*args, **kwargs) File "/usr/lib/python2.7/site-packages/tuskar_ui/handle_errors.py", line 67, in wrapper redirect=_error_redirect) File "/usr/lib/python2.7/site-packages/horizon/exceptions.py", line 364, in handle six.reraise(exc_type, exc_value, exc_traceback) File "/usr/lib/python2.7/site-packages/tuskar_ui/handle_errors.py", line 62, in wrapper return func(*args, **kwargs) File "/usr/lib/python2.7/site-packages/tuskar_ui/api/node.py", line 226, in list maintenance=maintenance) File "/usr/lib/python2.7/site-packages/ironicclient/v1/node.py", line 88, in list return self._list(self._path(path), "nodes") File "/usr/lib/python2.7/site-packages/ironicclient/common/base.py", line 121, in _list resp, body = self.api.json_request('GET', url) File "/usr/lib/python2.7/site-packages/ironicclient/common/http.py", line 353, in json_request resp, body_iter = self._http_request(url, method, **kwargs) File "/usr/lib/python2.7/site-packages/ironicclient/common/http.py", line 162, in wrapper return func(self, url, method, **kwargs) File "/usr/lib/python2.7/site-packages/ironicclient/common/http.py", line 318, in _http_request raise exc.ConnectionRefused(message) ConnectionRefused: Error communicating with https://192.0.2.2:13385/ [Errno 1] _ssl.c:504: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
you've only applied half the fix for bugzilla 1245169 if you take a look at the patches posted, you'll see what you're missing. in your already installed environment, you can edit /etc/openstack-dashboard/local_settings and set: OPENSTACK_ENDPOINT_TYPE=internalURL then restart httpd: sudo systemctl restart httpd you should then be able to login
*** This bug has been marked as a duplicate of bug 1245169 ***