Generated clouds.yaml broken in noauth mode

Bug #1754070 reported by Mark Goddard
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bifrost
Fix Released
Undecided
Mark Goddard

Bug Description

Steps to reproduce
------------------

Deploy bifrost without keystone enabled.

Attempt to use the openstack client to list nodes:

OS_CLOUD=bifrost openstack baremetal node list

Expected result
---------------

Nodes are listed

Actual result
-------------

Missing parameter(s):
Set a cloud-name with --os-cloud or OS_CLOUD

Environment
-----------

Bifrost deployed in a CentOS container using stable/queens branch @ 4f7c0eab1d93dab8caae20ff7752579d6722b931.

clouds.yaml:

# WARNING: This file is managed by bifrost.
clouds:
  bifrost:
    auth_type: "none"
    url: http://localhost:6385

Workaround
----------

Reverting to the old format of clouds.yaml allows the client to work:

# WARNING: This file is managed by bifrost.
clouds:
  bifrost:
    auth_type: None
    auth: {}
    url: http://localhost:6385

It is also possible to remove the 'auth: {}' line.

Revision history for this message
Mark Goddard (mgoddard) wrote :

Here's the change that switched to the none auth_type: https://github.com/openstack/bifrost/commit/21ca45937a9cb36c6f04073182bf2edea8acbd5d.

Revision history for this message
Mark Goddard (mgoddard) wrote :

ironic==10.2.0.dev81
keystoneauth1==3.4.0
keystonemiddleware==4.21.0
openstacksdk==0.11.3
os-client-config==1.29.0
python-ironicclient==2.2.0
python-keystoneclient==3.15.0
python-openstackclient==3.14.0

Revision history for this message
Pavlo Shchelokovskyy (pshchelo) wrote :
Revision history for this message
Mark Goddard (mgoddard) wrote :

Thanks for the link to that issue. I checked keystoneauth in my environment, and I do have Vlad's change (https://review.openstack.org/515730), which was included in keystoneauth1 3.4.0.

I tested Vlad's patch to osc-lib (https://review.openstack.org/#/c/512699/11), but this did not help. Perhaps because it's checking auth_type == none in the CLI options rather than those from clouds.yaml?

Revision history for this message
Mark Goddard (mgoddard) wrote :

Proposed solution: https://review.openstack.org/#/c/550573. That appears to fix the issue, in combination with https://review.openstack.org/#/c/512699.

Mark Goddard (mgoddard)
Changed in bifrost:
status: New → In Progress
assignee: nobody → Mark Goddard (mgoddard)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/bifrost 5.0.1

This issue was fixed in the openstack/bifrost 5.0.1 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/bifrost 5.1.0

This issue was fixed in the openstack/bifrost 5.1.0 release.

Dmitry Tantsur (divius)
Changed in bifrost:
status: In Progress → Fix Released
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.