[Bug 1979663] Re: magnum-ui does not display cluster or template
Launchpad Bug Tracker
1979663 at bugs.launchpad.net
Wed May 31 06:13:07 UTC 2023
This bug was fixed in the package python-magnumclient - 2.11.0-0ubuntu6
---------------
python-magnumclient (2.11.0-0ubuntu6) focal; urgency=medium
* d/p/Fix-failing-to-parse-json-error-msg.patch: Fix failing to parse json
error msg (LP: #1979663).
python-magnumclient (2.11.0-0ubuntu5) focal; urgency=medium
[ Corey Bryant ]
* d/gbp.conf: Create stable/ussuri branch.
[ Chris MacNaughton ]
* d/control: Update VCS paths for move to lp:~ubuntu-openstack-dev.
[ Corey Bryant ]
* d/control, d/rules: Drop py2 support and fix FTBFS (LP: #1891481).
* d/p/fix-py37-compatibility.patch: Ensure py37 compatibility for
generators (LP: #1814890).
* d/p/skip-tests.patch: Dropped. No longer needed now that we have
d/p/fix-py37-compatibility.patch.
-- Felipe Reyes <felipe.reyes at canonical.com> Fri, 24 Jun 2022 11:41:10
-0400
** Changed in: python-magnumclient (Ubuntu Focal)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to python-magnumclient in Ubuntu.
https://bugs.launchpad.net/bugs/1979663
Title:
magnum-ui does not display cluster or template
Status in OpenStack Magnum Charm:
Invalid
Status in Ubuntu Cloud Archive:
Invalid
Status in Ubuntu Cloud Archive ussuri series:
Fix Committed
Status in Ubuntu Cloud Archive victoria series:
Fix Released
Status in Ubuntu Cloud Archive wallaby series:
Fix Released
Status in python-magnumclient package in Ubuntu:
Invalid
Status in python-magnumclient source package in Focal:
Fix Released
Bug description:
[Impact]
When Horizon is deployed with the magnum-ui extension (using focal-
proposed due to bug 1814890 ) and trying to list the clusters and
cluster templates the asynchronous request will fail, when checking
the logs the following stacktrace is printed:
[Fri Jun 24 15:36:10.064957 2022] [wsgi:error] [pid 37882:tid 140157047166720] [remote 192.168.11.37:48910] WARNING:magnumclient.common.httpclient:Request returned failure status.
[Fri Jun 24 15:36:10.066324 2022] [wsgi:error] [pid 37882:tid 140157047166720] [remote 192.168.11.37:48910] error invoking apiclient
[Fri Jun 24 15:36:10.066347 2022] [wsgi:error] [pid 37882:tid 140157047166720] [remote 192.168.11.37:48910] Traceback (most recent call last):
[Fri Jun 24 15:36:10.066353 2022] [wsgi:error] [pid 37882:tid 140157047166720] [remote 192.168.11.37:48910] File "/usr/lib/python3/dist-packages/openstack_dashboard/api/rest/utils.py", line 128, in _wrap
ped
[Fri Jun 24 15:36:10.066357 2022] [wsgi:error] [pid 37882:tid 140157047166720] [remote 192.168.11.37:48910] data = function(self, request, *args, **kw)
[Fri Jun 24 15:36:10.066362 2022] [wsgi:error] [pid 37882:tid 140157047166720] [remote 192.168.11.37:48910] File "/usr/lib/python3/dist-packages/magnum_ui/api/rest/magnum.py", line 71, in get
[Fri Jun 24 15:36:10.066366 2022] [wsgi:error] [pid 37882:tid 140157047166720] [remote 192.168.11.37:48910] result = magnum.cluster_template_list(request)
[Fri Jun 24 15:36:10.066370 2022] [wsgi:error] [pid 37882:tid 140157047166720] [remote 192.168.11.37:48910] File "/usr/lib/python3/dist-packages/magnum_ui/api/magnum.py", line 155, in cluster_template_li
st
[Fri Jun 24 15:36:10.066375 2022] [wsgi:error] [pid 37882:tid 140157047166720] [remote 192.168.11.37:48910] return magnumclient(request).cluster_templates.list(
[Fri Jun 24 15:36:10.066379 2022] [wsgi:error] [pid 37882:tid 140157047166720] [remote 192.168.11.37:48910] File "/usr/lib/python3/dist-packages/magnumclient/v1/basemodels.py", line 92, in list
[Fri Jun 24 15:36:10.066382 2022] [wsgi:error] [pid 37882:tid 140157047166720] [remote 192.168.11.37:48910] return self._list(self._path(path), self.__class__.api_name)
[Fri Jun 24 15:36:10.066386 2022] [wsgi:error] [pid 37882:tid 140157047166720] [remote 192.168.11.37:48910] File "/usr/lib/python3/dist-packages/magnumclient/common/base.py", line 121, in _list
[Fri Jun 24 15:36:10.066390 2022] [wsgi:error] [pid 37882:tid 140157047166720] [remote 192.168.11.37:48910] resp, body = self.api.json_request('GET', url)
[Fri Jun 24 15:36:10.066406 2022] [wsgi:error] [pid 37882:tid 140157047166720] [remote 192.168.11.37:48910] File "/usr/lib/python3/dist-packages/magnumclient/common/httpclient.py", line 233, in json_requ
est
[Fri Jun 24 15:36:10.066410 2022] [wsgi:error] [pid 37882:tid 140157047166720] [remote 192.168.11.37:48910] resp, body_iter = self._http_request(url, method, **kwargs)
[Fri Jun 24 15:36:10.066414 2022] [wsgi:error] [pid 37882:tid 140157047166720] [remote 192.168.11.37:48910] File "/usr/lib/python3/dist-packages/magnumclient/common/httpclient.py", line 213, in _http_req
uest
[Fri Jun 24 15:36:10.066418 2022] [wsgi:error] [pid 37882:tid 140157047166720] [remote 192.168.11.37:48910] error_json = _extract_error_json(body_str, resp)
[Fri Jun 24 15:36:10.066422 2022] [wsgi:error] [pid 37882:tid 140157047166720] [remote 192.168.11.37:48910] File "/usr/lib/python3/dist-packages/magnumclient/common/httpclient.py", line 66, in _extract_e
rror_json
[Fri Jun 24 15:36:10.066426 2022] [wsgi:error] [pid 37882:tid 140157047166720] [remote 192.168.11.37:48910] body_json = resp.json()
[Fri Jun 24 15:36:10.066430 2022] [wsgi:error] [pid 37882:tid 140157047166720] [remote 192.168.11.37:48910] AttributeError: 'HTTPResponse' object has no attribute 'json'
[Fri Jun 24 15:36:10.068538 2022] [wsgi:error] [pid 37882:tid 140157047166720] [remote 192.168.11.37:48910] Internal Server Error: /horizon/api/container_infra/cluster_templates/
[Test Plan]
1) deploy a focal-ussuri cloud that contains magnum and magnum-
dashboard, this is a juju bundle that can be used as a reference
https://paste.ubuntu.com/p/PYPSk2WfMW/
2) Login to Horizon.
3) Navigate to "Container Infra" > "Clusters" and "Cluster Templates".
Expected result: an empty table appears with no errors.
Actual result: a notification appears indicating that the objects
couldn't be listed as seen in the attached screenshot.
[Where problems could occur]
The patch associated with this bug fix is in the extraction of error
messages coming as a response to a issued request, so problems would
appear as in not being able to read those error messages.
[Other Info]
This change is already available in Impish, python-magnumclient 3.5.0
$ git tag --contains f7551a6bac103070ff456098fe2631409620d492
3.5.0
3.6.0
$ rmadison python-magnumclient | grep impish
python-magnumclient | 3.5.0-0ubuntu2 | impish | source
[Discussion]
SRU team, please reject the older upload of 2.11.0-0ubuntu6 in favor of the most recent upload of that version. The most recent upload includes 2.11.0-0ubuntu5 in it's changes file as the goal is to test these together in proposed. Thank you.
[Original description]
Magnum with focal/Ussuri it seems magnum UI does not display any cluster or cluster in the magnum planner.
When i click on template or cluster not seeing any information regarding cluster and template.
To manage notifications about this bug go to:
https://bugs.launchpad.net/charm-magnum/+bug/1979663/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list