Comment 8 for bug 1632538

Revision history for this message
Diana Clarke (diana-clarke) wrote :

I'm also not seeing this error when I use log_opt_values (like the original traceback) with the config file provided by dtrainor (nova.conf):

- log_opt_values happy path:

********************************************************************************
Configuration options gathered from:
command line args: ()
config files: ['nova.conf']
================================================================================
config_dir = None
config_file = ['nova.conf']
neutron.extension_sync_interval = 600
neutron.ovs_bridge = br-int
neutron.region_name =
neutron.url = https://rdo-ci-fx2-06-s4.v103.rdoci.lab.eng.rdu.redhat.com:13696

...

********************************************************************************

- An example non-happy path (I removed "https" from neutron.url)

Traceback (most recent call last):
  File "foo.py", line 76, in <module>
    conf.log_opt_values(logger, logging.DEBUG)
  File ".../oslo_config/cfg.py", line 2626, in log_opt_values
    _sanitize(opt, getattr(group_attr, opt_name)))
  File ".../oslo_config/cfg.py", line 3057, in __getattr__
    return self._conf._get(name, self._group)
  File ".../oslo_config/cfg.py", line 2668, in _get
    value = self._do_get(name, group, namespace)
  File ".../oslo_config/cfg.py", line 2711, in _do_get
    % (opt.name, str(ve)))
oslo_config.cfg.ConfigFileValueError: Value for option url is not valid: invalid URI: '://rdo-ci-fx2-06-s4.v103.rdoci.lab.eng.rdu.redhat.com:13696'

So... I'm still not sure how you would end up in an error state with that uri. Does anyone else have an isolated way of reproducing this with the uri: "https://rdo-ci-fx2-06-s4.v103.rdoci.lab.eng.rdu.redhat.com:13696"?