Required opts don't raise exceptions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo.config |
Confirmed
|
Low
|
Unassigned |
Bug Description
I have a Tempest plugin that has a number of required opts. Despite not being specified, these options aren't throwing Exceptions. This seems to be because the options are registered _after_ the initial files are loaded. I'm not certain if this is a bug in oslo.config (as opposed to Tempest) but I suspect it is given that I can actually read the options at a later date.
Output of some rough printf debugging below.
---
$ tempest run -r rhostest_
!!!
called _check_
here are the options we're checking
***
default_log_levels
watch-log-file
use-journal
config-dir
logging_
use_stderr
log-date-format
rate_limit_burst
logging_
instance_format
use-syslog
log-dir
publish_errors
logging_
logging_
config-file
syslog-log-facility
instance_
log-config-append
rate_limit_
rate_limit_interval
debug
log-file
logging_
disable_
lock_path
!!!
!!!
called register_opt
target_controller
!!!
!!!
called register_opt
target_ssh_user
!!!
!!!
called register_opt
target_
!!!
!!!
called register_opt
containers
!!!
I'm not sure what the "required" flag does for "options". I could see throwing an error at the point where they are registered if we've already loaded data and the option isn't included.