magnum does not work in Rocky

Bug #1801913 reported by Antonio
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Packstack
Fix Released
High
Javier Peña

Bug Description

Hello:

I have installed Packstack, I have used the Rocky version, I followed https://www.rdoproject.org/install/packstack/

The problem is the following:

Error: Unable to retrieve the clusters.
Error: Unable to retrieve the stats.

The magnum-api.log:

 ERROR wsme.api [req-cbbee2ea-30d1-4a1f-8f50-1d8db120dfd6 - - - - -] Server-side error: "Not Found (HTTP 404) (Request-ID: req-28c155a8-9f4d-425a-87e1-29cfa8c29f62)". Detail:
Traceback (most recent call last):

  File "/usr/lib/python2.7/site-packages/wsmeext/pecan.py", line 85, in callfunction
    result = f(self, *args, **kwargs)

  File "/usr/lib/python2.7/site-packages/magnum/api/controllers/v1/cluster.py", line 346, in detail
    action='cluster:detail')

  File "/usr/lib/python2.7/site-packages/magnum/common/policy.py", line 100, in enforce
    add_policy_attributes(target)

  File "/usr/lib/python2.7/site-packages/magnum/common/policy.py", line 110, in add_policy_attributes
    trustee_domain_id = admin_osc.keystone().trustee_domain_id

  File "/usr/lib/python2.7/site-packages/magnum/common/keystone.py", line 180, in trustee_domain_id
    self.domain_admin_session

  File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/base.py", line 134, in get_access
    self.auth_ref = self.get_auth_ref(session)

  File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/v3/base.py", line 178, in get_auth_ref
    authenticated=False, log=False, **rkwargs)

  File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 1019, in post
    return self.request(url, 'POST', **kwargs)

  File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 869, in request
    raise exceptions.from_response(resp, method, url)

NotFound: Not Found (HTTP 404) (Request-ID: req-28c155a8-9f4d-425a-87e1-29cfa8c29f62)
: NotFound: Not Found (HTTP 404) (Request-ID: req-28c155a8-9f4d-425a-87e1-29cfa8c29f62)
2018-11-06 06:01:23.650 228376 INFO werkzeug [req-cbbee2ea-30d1-4a1f-8f50-1d8db120dfd6 - - - - -] 192.168.128.10 - - [06/Nov/2018 06:01:23] "GET /v1/clusters/detail HTTP/1.1" 500 -

Tags: magnum
Antonio (amfgomez)
tags: added: magnum
Javier Peña (jpena-c)
Changed in packstack:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Javier Peña (jpena-c)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to packstack (master)

Fix proposed to branch: master
Review: https://review.openstack.org/616509

Changed in packstack:
status: Confirmed → In Progress
Revision history for this message
Javier Peña (jpena-c) wrote :

Thanks for the report. I've proposed https://review.openstack.org/616509 with the fix to Packstack, and also https://review.openstack.org/616502 to puppet-magnum, to solve the mistake in the deprecation.

I've tested the fix locally, and magnum cluster-list now behaves as it should. Our test coverage in the gate is very limited for magnum, so if you find any other issue please do not hesitate to open more bugs :).

While the fix is merged, you can test it locally by adding "/v3" to the www_authenticate_uri parameter in /etc/magnum.conf, and then restarting the openstack-magnum-conductor and openstack-magnum-api services.

Revision history for this message
Antonio (amfgomez) wrote :

In queens version, I have found another bug when I tried to create a cluster.

Should I create another post or in this post?

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to packstack (master)

Reviewed: https://review.openstack.org/616509
Committed: https://git.openstack.org/cgit/openstack/packstack/commit/?id=d5597e765b2b48e41a8b2ceac061ce983ab0fa52
Submitter: Zuul
Branch: master

commit d5597e765b2b48e41a8b2ceac061ce983ab0fa52
Author: Javier Pena <email address hidden>
Date: Thu Nov 8 11:45:42 2018 +0100

    Replace deprecated puppet-magnum parameters

    The auth_uri parameter for magnum::keystone::authtoken was deprecated
    in [1], so we need to use the new www_authenticate_uri parameter.

    While at it, fix some manifest indentations.

    [1] - https://review.openstack.org/558435

    Change-Id: I88dcda8b784827725abbfd2c29582ce29074352b
    Closes-Bug: #1801913

Changed in packstack:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to packstack (stable/rocky)

Fix proposed to branch: stable/rocky
Review: https://review.openstack.org/621662

Revision history for this message
Javier Peña (jpena-c) wrote :

I didn't see comment #3 back then, sorry. If the issue is different, please open a new bug.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on packstack (stable/rocky)

Change abandoned by Javier Peña (<email address hidden>) on branch: stable/rocky
Review: https://review.openstack.org/621662
Reason: True, not cherry-picked to rocky.

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.