This is a fairly critical issue for any code using stevedore. I've had to hack a work-around to debug issues preventing drivers from loading with Quantum's ML2 plugin, but I'm not familiar enough with python logging to know if my hack is the proper fix. The hack that seems to work for me is to change quantum/common/config.py to contain:
def setup_logging(conf):
"""
Sets up the logging options for a log with supplied name
This is a fairly critical issue for any code using stevedore. I've had to hack a work-around to debug issues preventing drivers from loading with Quantum's ML2 plugin, but I'm not familiar enough with python logging to know if my hack is the proper fix. The hack that seems to work for me is to change quantum/ common/ config. py to contain:
def setup_logging( conf):
"""
Sets up the logging options for a log with supplied name
:param conf: a cfg.ConfOpts object setup(product_ name) getLogger( product_ name).logger root.propagate = 0 info(_( "Logging enabled!"))
"""
# product_name = "quantum"
product_name = None
logging.
log_root = logging.
log_
LOG.
I noticed that the conf param isn't used, and with this hack, neither is the product_name, so maybe something more generic would do the job.