Ussuri Magnum is UI can not update the cluster

Bug #1998509 reported by Narinder Gupta
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magnum UI
Invalid
Undecided
Unassigned
OpenStack Dashboard Charm
Invalid
High
Unassigned
OpenStack Magnum Dashboard Charm
Fix Released
Undecided
Felipe Reyes
magnum-ui (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Deploy Magnum with Ussuri on Focal. Change the cluster by increasing or decreasing the worker node. UI throws an error "update the cluster failed"

I think request is not going to magnum API.

Attaching the screen shot and any operations through UI is not happening.

Revision history for this message
Narinder Gupta (narindergupta) wrote :
Felipe Reyes (freyes)
Changed in magnum-ui:
assignee: nobody → Felipe Reyes (freyes)
Revision history for this message
Felipe Reyes (freyes) wrote :

This seems to be the core of this issue:

"Version 1.1 was requested but the requested API resize is not supported for this version."

```
DEBUG:magnumclient.common.httpclient:
HTTP/1.1 406 Not Acceptable
Date: Mon, 30 Jan 2023 16:00:09 GMT
Server: Werkzeug/0.16.1 Python/3.8.10
Content-Type: application/json
Content-Length: 202
x-openstack-request-id: req-843c4d16-288f-4033-bcc5-c401c7ff6e3e

{"errors": [{"request_id": "", "code": "", "status": 406, "title": "Not Acceptable", "detail": "Version 1.1 was requested but the requested API resize is not supported for this version.", "links": []}]}

WARNING:magnumclient.common.httpclient:Request returned failure status.
error invoking apiclient
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/openstack_dashboard/api/rest/utils.py", line 128, in _wrapped
    data = function(self, request, *args, **kw)
  File "/usr/lib/python3/dist-packages/magnum_ui/api/rest/magnum.py", line 251, in post
    return magnum.cluster_resize(
  File "/usr/lib/python3/dist-packages/magnum_ui/api/magnum.py", line 206, in cluster_resize
    return magnumclient(request).clusters.resize(
  File "/usr/lib/python3/dist-packages/magnumclient/v1/clusters.py", line 50, in resize
    resp, resp_body = self.api.json_request("POST", url, body=post_body)
  File "/usr/lib/python3/dist-packages/magnumclient/common/httpclient.py", line 236, in json_request
    resp, body_iter = self._http_request(url, method, **kwargs)
  File "/usr/lib/python3/dist-packages/magnumclient/common/httpclient.py", line 217, in _http_request
    raise exceptions.from_response(
magnumclient.common.apiclient.exceptions.NotAcceptable: Not Acceptable (HTTP 406)
Internal Server Error: /horizon/api/container_infra/clusters/2995ed65-c78d-4e19-93f9-0e3a4c5258c1/resize
```

Revision history for this message
Felipe Reyes (freyes) wrote :

when using the CLI the API version is set to 1.9

RESP: [200] Connection: Keep-Alive Content-Length: 2057 Content-Type: application/json Date: Mon, 30 Jan 2023 16:37:34 GMT Keep-Alive: timeout=5, max=100 OpenStack-API-Maximum-Version: container-infra 1.9 OpenStack-API-Minimum-Version: container-infra 1.1 OpenStack-API-Version: container-infra 1.9 Server: Werkzeug/0.16.1 Python/3.8.10 vary: OpenStack-API-Version x-openstack-request-id: req-26b4785e-8c5d-425e-ba61-73666efb2f85

Revision history for this message
Felipe Reyes (freyes) wrote :

Default's API version used is 1.1 - https://opendev.org/openstack/magnum-ui/src/tag/ussuri-eol/magnum_ui/api/magnum.py#L123 - we need to update horizon's config to use 1.9

Changed in charm-openstack-dashboard:
importance: Undecided → High
status: New → Triaged
assignee: nobody → Felipe Reyes (freyes)
Felipe Reyes (freyes)
Changed in magnum-ui:
status: New → Invalid
assignee: Felipe Reyes (freyes) → nobody
Changed in magnum-ui (Ubuntu):
status: New → Invalid
Revision history for this message
Felipe Reyes (freyes) wrote :

Patches merged - https://review.opendev.org/q/Ie358e9c115273ae648c9bef2aedaae50e5ee179d

if you are running focal-ussuri make sure to use charm's revision 27

$ juju info --series amd64 --channel ussuri/stable --series focal magnum-dashboard
name: magnum-dashboard
...
channels: |
  ussuri/stable: 43f5289 2023-02-01 (27) 10MB
  ussuri/candidate: ↑
  ussuri/beta: ↑
  ussuri/edge: ↑

Changed in charm-openstack-dashboard:
status: Triaged → Invalid
assignee: Felipe Reyes (freyes) → nobody
Changed in charm-magnum-dashboard:
status: New → Fix Committed
assignee: nobody → Felipe Reyes (freyes)
status: Fix Committed → Fix Released
tags: added: in-stable-ussuri in-stable-victoria in-stable-wallaby in-stable-xena in-stable-yoga in-stable-zed
no longer affects: charm-guide
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.