[Bug 1979663] Re: magnum-ui does not display cluster or template

Felipe Reyes 1979663 at bugs.launchpad.net
Mon Dec 5 15:04:36 UTC 2022


The bionic-ussuri validation was successful, here I'm attaching evidence
of the process.

$ juju ssh openstack-dashboard/1
...
ubuntu at juju-bd8457-zaza-5e9e245b7763-17:~$ apt policy python3-magnumclient
python3-magnumclient:
  Installed: 2.11.0-0ubuntu5~cloud0
  Candidate: 2.11.0-0ubuntu5~cloud0
  Version table:
 *** 2.11.0-0ubuntu5~cloud0 500
        500 http://ubuntu-cloud.archive.canonical.com/ubuntu bionic-updates/ussuri/main amd64 Packages
        100 /var/lib/dpkg/status
     2.8.0-0ubuntu1 500
        500 http://nova.clouds.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
ubuntu at juju-bd8457-zaza-5e9e245b7763-17:~$ sudo vim /etc/apt/sources.list.d/cloud-archive.list   # add -proposed
ubuntu at juju-bd8457-zaza-5e9e245b7763-17:~$ sudo apt-get update -qqq
ubuntu at juju-bd8457-zaza-5e9e245b7763-17:~$ apt policy python3-magnumclient
python3-magnumclient:
  Installed: 2.11.0-0ubuntu5~cloud0
  Candidate: 2.11.0-0ubuntu6~cloud0
  Version table:
     2.11.0-0ubuntu6~cloud0 500
        500 http://ubuntu-cloud.archive.canonical.com/ubuntu bionic-proposed/ussuri/main amd64 Packages
 *** 2.11.0-0ubuntu5~cloud0 500
        500 http://ubuntu-cloud.archive.canonical.com/ubuntu bionic-updates/ussuri/main amd64 Packages
        100 /var/lib/dpkg/status
     2.8.0-0ubuntu1 500
        500 http://nova.clouds.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
ubuntu at juju-bd8457-zaza-5e9e245b7763-17:~$ sudo apt install --only-upgrade python3-magnumclient
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following package was automatically installed and is no longer required:
  python3-xdg
Use 'sudo apt autoremove' to remove it.
Suggested packages:
  python-magnumclient-doc
The following packages will be upgraded:
  python3-magnumclient
1 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
Need to get 69.2 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://ubuntu-cloud.archive.canonical.com/ubuntu bionic-proposed/ussuri/main amd64 python3-magnumclient all 2.11.0-0ubuntu6~cloud0 [69.2 kB]
Fetched 69.2 kB in 0s (1659 kB/s)         
(Reading database ... 87217 files and directories currently installed.)
Preparing to unpack .../python3-magnumclient_2.11.0-0ubuntu6~cloud0_all.deb ...
Unpacking python3-magnumclient (2.11.0-0ubuntu6~cloud0) over (2.11.0-0ubuntu5~cloud0) ...
Setting up python3-magnumclient (2.11.0-0ubuntu6~cloud0) ...
ubuntu at juju-bd8457-zaza-5e9e245b7763-17:~$ sudo systemctl restart apache2
ubuntu at juju-bd8457-zaza-5e9e245b7763-17:~$ 


** Attachment added: "bionic-ussuri validation"
   https://bugs.launchpad.net/charm-magnum/+bug/1979663/+attachment/5634575/+files/Screenshot%202022-12-05%20at%2012-03-24%20Container%20Infra%20-%20Cluster%20Templates%20-%20OpenStack%20Dashboard.png

** Tags removed: verification-needed verification-ussuri-needed
** Tags added: verification-done verification-ussuri-done

-- 
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 Committed
Status in Ubuntu Cloud Archive wallaby series:
  Fix Committed
Status in python-magnumclient package in Ubuntu:
  Invalid
Status in python-magnumclient source package in Focal:
  Fix Committed

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