[Bug 1979663] Re: magnum-ui does not display cluster or template
Felipe Reyes
1979663 at bugs.launchpad.net
Fri Jun 24 21:32:37 UTC 2022
** Description changed:
- Magnum with focal/Ussuri it seems magnum UI does not display any cluster or cluster in the magnum planner.
+ [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
+
+
+ [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.
** Changed in: charm-magnum
Status: New => Invalid
** Changed in: python-magnumclient (Ubuntu Focal)
Assignee: (unassigned) => Felipe Reyes (freyes)
--
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 python-magnumclient package in Ubuntu:
Invalid
Status in python-magnumclient source package in Focal:
New
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
[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