ironic-inspector: traceback when 'noauth' plugin is used
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ironic Inspector |
Fix Released
|
Critical
|
Pavlo Shchelokovskyy |
Bug Description
When ironic is configured with the 'noauth' plugin the following traceback is reported when ironic-inspector is starting
Unhandled error: MissingRequired
Traceback (most recent call last):
File "/opt/stack/
sys.
File "/opt/stack/
server.run()
File "/opt/stack/
self.
File "/opt/stack/
callables=
File "/opt/stack/
ironic = ir_utils.
File "/opt/stack/
IRONIC_SESSION = keystone.
File "/opt/stack/
auth = loading.
File "/opt/stack/
return plugin.
File "/opt/stack/
return self.load_
File "/opt/stack/
raise exceptions.
MissingRequired
Changed in ironic-inspector: | |
assignee: | nobody → Markos Chandras (hwoarang) |
status: | New → In Progress |
Changed in ironic-inspector: | |
assignee: | Markos Chandras (hwoarang) → Pavlo Shchelokovskyy (pshchelo) |
Changed in ironic-inspector: | |
importance: | Undecided → Critical |
Reviewed: https:/ /review. openstack. org/542206 /git.openstack. org/cgit/ openstack/ ironic- inspector/ commit/ ?id=fbeb0783e4b 2f1fc5f44da7f7b 704ce48bfe0087
Committed: https:/
Submitter: Zuul
Branch: master
commit fbeb0783e4b2f1f c5f44da7f7b704c e48bfe0087
Author: Markos Chandras <email address hidden>
Date: Thu Feb 8 14:03:13 2018 +0000
ironic_ inspector: ironic: Fix 'auth_type' when 'auth_strategy' is used
We should override the 'auth_type' to 'none' when using the old way of
setting up authentication with 'auth_strategy' so we can override the
default 'auth_type' value before getting the session information.
This fixes the following issue
Unhandled error: MissingRequired Options: Auth plugin requires parameters which were not given: auth_url
This also adds a new testcase to test the strategy='noauth' scenario.
Closes-Bug: #1748263 9ad81f86c32959c b106bf57e53
Change-Id: I875e2b17f5c682