NoSuchOptError thrown for bad choice value in StrOpt
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo.config |
Fix Released
|
Undecided
|
Davanum Srinivas (DIMS) |
Bug Description
Reported by Anton Arefiev. If we have a StrOpt with a choices parameter and a config file with a wrong value, we end up throwing a NoSuchOptError.
2015-09-23 17:31:41.832 TRACE ironic Traceback (most recent call last):
2015-09-23 17:31:41.832 TRACE ironic File "/usr/local/
2015-09-23 17:31:41.832 TRACE ironic sys.exit(main())
2015-09-23 17:31:41.832 TRACE ironic File "/opt/stack/
2015-09-23 17:31:41.832 TRACE ironic app.VersionSele
2015-09-23 17:31:41.832 TRACE ironic File "/opt/stack/
2015-09-23 17:31:41.832 TRACE ironic pc.app.enable_acl = (CONF.auth_strategy == 'keystone')
2015-09-23 17:31:41.832 TRACE ironic File "/usr/local/
2015-09-23 17:31:41.832 TRACE ironic raise NoSuchOptError(
2015-09-23 17:31:41.832 TRACE ironic NoSuchOptError: no such option: auth_strategy
We should expose the original message which is thrown here, as it shows correctly that the option is defined correctly and it's just the value is wrong.
https:/
Changed in oslo.config: | |
milestone: | none → 2.5.0 |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/226993
Review: https:/