ValueError: invalid literal for int() with base 10: <keystone url>

Bug #1879791 reported by David Ames
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard Charm
Invalid
Undecided
Unassigned
OpenStack Keystone SAML Mellon Charm
Invalid
Undecided
Unassigned

Bug Description

Keystone SAML Mellon on Focal causes horizon to Internal Error:

[Wed May 20 21:24:38.922425 2020] [wsgi:error] [pid 58818:tid 140687211161344] [remote 10.5.0.28:47626] Traceback (most recent call last):
[Wed May 20 21:24:38.922431 2020] [wsgi:error] [pid 58818:tid 140687211161344] [remote 10.5.0.28:47626] File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 34, in inner
[Wed May 20 21:24:38.922437 2020] [wsgi:error] [pid 58818:tid 140687211161344] [remote 10.5.0.28:47626] response = get_response(request)
[Wed May 20 21:24:38.922442 2020] [wsgi:error] [pid 58818:tid 140687211161344] [remote 10.5.0.28:47626] File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 115, in _get_response
[Wed May 20 21:24:38.922447 2020] [wsgi:error] [pid 58818:tid 140687211161344] [remote 10.5.0.28:47626] response = self.process_exception_by_middleware(e, request)
[Wed May 20 21:24:38.922452 2020] [wsgi:error] [pid 58818:tid 140687211161344] [remote 10.5.0.28:47626] File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 113, in _get_response
[Wed May 20 21:24:38.922458 2020] [wsgi:error] [pid 58818:tid 140687211161344] [remote 10.5.0.28:47626] response = wrapped_callback(request, *callback_args, **callback_kwargs)
[Wed May 20 21:24:38.922463 2020] [wsgi:error] [pid 58818:tid 140687211161344] [remote 10.5.0.28:47626] File "/usr/lib/python3/dist-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper
[Wed May 20 21:24:38.922468 2020] [wsgi:error] [pid 58818:tid 140687211161344] [remote 10.5.0.28:47626] return view(request, *args, **kwargs)
[Wed May 20 21:24:38.922473 2020] [wsgi:error] [pid 58818:tid 140687211161344] [remote 10.5.0.28:47626] File "/usr/lib/python3/dist-packages/django/utils/decorators.py", line 142, in _wrapped_view
[Wed May 20 21:24:38.922478 2020] [wsgi:error] [pid 58818:tid 140687211161344] [remote 10.5.0.28:47626] response = view_func(request, *args, **kwargs)
[Wed May 20 21:24:38.922482 2020] [wsgi:error] [pid 58818:tid 140687211161344] [remote 10.5.0.28:47626] File "/usr/lib/python3/dist-packages/django/views/decorators/cache.py", line 44, in _wrapped_view_func
[Wed May 20 21:24:38.922487 2020] [wsgi:error] [pid 58818:tid 140687211161344] [remote 10.5.0.28:47626] response = view_func(request, *args, **kwargs)
[Wed May 20 21:24:38.922492 2020] [wsgi:error] [pid 58818:tid 140687211161344] [remote 10.5.0.28:47626] File "/usr/lib/python3/dist-packages/openstack_auth/views.py", line 76, in login
[Wed May 20 21:24:38.922497 2020] [wsgi:error] [pid 58818:tid 140687211161344] [remote 10.5.0.28:47626] auth_url = forms.get_region_endpoint(region_id)
[Wed May 20 21:24:38.922501 2020] [wsgi:error] [pid 58818:tid 140687211161344] [remote 10.5.0.28:47626] File "/usr/lib/python3/dist-packages/openstack_auth/forms.py", line 36, in get_region_endpoint
[Wed May 20 21:24:38.922506 2020] [wsgi:error] [pid 58818:tid 140687211161344] [remote 10.5.0.28:47626] return all_regions[int(region_id)][0]
[Wed May 20 21:24:38.922511 2020] [wsgi:error] [pid 58818:tid 140687211161344] [remote 10.5.0.28:47626] ValueError: invalid literal for int() with base 10: 'https://10.5.150.31:5000/v3'

This could be a keystone-saml-mellon, horizon or zaza bug. It is not yet clear.

Revision history for this message
David Ames (thedac) wrote :

In a manual test (actually using a browser), after authentication with the external IDP

keystone returns:

error
code 404
message "Member"
title "Not Found"

summary: - ValueError: invalid literal for int() with base 10
+ Keystone SAML Mellon, horizon on focal not functional
Revision history for this message
David Ames (thedac) wrote : Re: Keystone SAML Mellon, horizon on focal not functional

Ignore the manual test failure, this is related to bug [0] which is being address on the dashboard charm.

Member vs member

(keystone.auth.plugins.mapped): 2020-05-20 21:25:05,110 ERROR Role Member was specified in the mapping but does not exist. All roles specified in a mapping must exist before assignment.
(keystone.server.flask.application): 2020-05-20 21:25:05,196 WARNING Member

[0] https://launchpad.net/bugs/1879783

Revision history for this message
David Ames (thedac) wrote :

This is non-blocking.

summary: - Keystone SAML Mellon, horizon on focal not functional
+ ValueError: invalid literal for int() with base 10: <keystone url>
Revision history for this message
Alex Kavanagh (ajkavanagh) wrote :

Setting bug to invalid; this report is now over 3 years old with out any additional reports and may have been fixed in the mean time. If there is still an issue then please re-open the bug and add some additional supporting information.

Changed in charm-openstack-dashboard:
status: New → Invalid
Changed in charm-keystone-saml-mellon:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.