Bug 1377103 - Improve ironic-conductor error logging when the driver list is invalid
Summary: Improve ironic-conductor error logging when the driver list is invalid
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-ironic
Version: 10.0 (Newton)
Hardware: Unspecified
OS: Unspecified
Target Milestone: beta
: 11.0 (Ocata)
Assignee: Lucas Alvares Gomes
QA Contact: Raviv Bar-Tal
Depends On:
TreeView+ depends on / blocked
Reported: 2016-09-18 12:45 UTC by Raviv Bar-Tal
Modified: 2017-05-17 19:33 UTC (History)
10 users (show)

Fixed In Version: openstack-ironic-7.0.0-2.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2017-05-17 19:33:45 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
OpenStack gerrit 407596 0 None None None 2016-12-06 16:44:17 UTC
Red Hat Product Errata RHEA-2017:1245 0 normal SHIPPED_LIVE Red Hat OpenStack Platform 11.0 Bug Fix and Enhancement Advisory 2017-05-17 23:01:50 UTC

Description Raviv Bar-Tal 2016-09-18 12:45:18 UTC
Description of problem:

When restarting the openstack-ironic-conductor service after modifying the `enabled_drivers` section of the ironic.conf file it failed silently.
service fails when enabled_drivers have :
1. empty driver space:
enabled_drivers = pxe_ipmitool,pxe_drac,pxe_ssh,pxe_ilo,pxe_wol,,pxe_amt
2. comma at end of line -
enabled_drivers = pxe_ipmitool,pxe_drac,pxe_ssh,pxe_ilo,pxe_wol,pxe_amt,
3. unknown drive -
enabled_drivers = pxe_ipmitool,pxe_drac,pxe_ssh,pxe_ilo,pxe_wol,pxe_amt,pxe_xza
4. missing packaged for supported drive (addition to default drivers list) -
enabled_drivers = pxe_ipmitool,pxe_drac,pxe_ssh,pxe_ilo,pxe_wol,pxe_amt, pxs_imrc

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. edit /etc/ironic/ironic.conf
2. restart conductor -  systemctl restart  openstack-ironic-conductor
3. check service status - systemctl status  openstack-ironic-conductor
Actual results:

Expected results:
service will issue error message to stderr when failing to start.
+ Improve parsing abilities to avoid failure in case of typing  error like double comma ,,

Additional info:

Comment 2 Raviv Bar-Tal 2016-09-18 13:04:47 UTC
This bug is and addition to bug # 1319841 -  openstack-ironic-conductor service failing silently with bad config

Comment 4 Lucas Alvares Gomes 2016-12-06 16:43:27 UTC
I've uploaded a patch fixing case 1) With space and 2) Trailing comma.

Ironic already behaves correctly for case 3) and 4), the conductor-service should not start up if one (or more) of the drivers can not be loaded.

Error output for 3):

2016-12-06 16:42:47.879 3956 ERROR oslo_service.service DriverNotFoundInEntrypoint: Could not find the following driver(s) in the 'ironic.drivers' entrypoint: pxe_nonexist.

Error output for 4):

2016-12-06 16:28:50.716 1438 ERROR oslo_service.service DriverLoadError: Driver PXEDracDriver could not be loaded. Reason: Unable to import python-dracclient library.

Comment 6 errata-xmlrpc 2017-05-17 19:33:45 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.