watcher-decision-engine fails to start with python-ironicclient (4.0.0)

Bug #1872649 reported by Min Li on 2020-04-14
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

I install the rokcy release of watcher, the watcher-decision-engine service fails to start, and the error is as follows:

exec watcher-decision-engine --config-file /etc/watcher/watcher.conf
Traceback (most recent call last):
  File "/usr/local/bin/watcher-decision-engine", line 6, in <module>
    from watcher.cmd.decisionengine import main
  File "/usr/local/lib/python2.7/dist-packages/watcher/cmd/", line 28, in <module>
    from watcher.decision_engine import manager
  File "/usr/local/lib/python2.7/dist-packages/watcher/decision_engine/", line 41, in <module>
    from watcher.decision_engine.messaging import audit_endpoint
  File "/usr/local/lib/python2.7/dist-packages/watcher/decision_engine/messaging/", line 24, in <module>
    from watcher.decision_engine.audit import continuous as c_handler
  File "/usr/local/lib/python2.7/dist-packages/watcher/decision_engine/audit/", line 33, in <module>
    from watcher.decision_engine.audit import base
  File "/usr/local/lib/python2.7/dist-packages/watcher/decision_engine/audit/", line 30, in <module>
    from watcher.decision_engine.strategy.context import default as default_context
  File "/usr/local/lib/python2.7/dist-packages/watcher/decision_engine/strategy/context/", line 18, in <module>
    from watcher.common import clients
  File "/usr/local/lib/python2.7/dist-packages/watcher/common/", line 17, in <module>
    from ironicclient import client as irclient
  File "/usr/local/lib/python2.7/dist-packages/ironicclient/", line 18, in <module>
    from ironicclient import client
  File "/usr/local/lib/python2.7/dist-packages/ironicclient/", line 19, in <module>
    from ironicclient import exc
  File "/usr/local/lib/python2.7/dist-packages/ironicclient/", line 13, in <module>
    from ironicclient.common.apiclient import exceptions
  File "/usr/local/lib/python2.7/dist-packages/ironicclient/common/apiclient/", line 23, in <module>
    from http import client as http_client
ImportError: No module named http

I checked the python-ironicclient version :python-ironicclient (4.0.0)

When I downgrade its version to 2.5.0, the service can start successfully.

licanwei (li-canwei2) wrote :

for Rocky release, the version of python-ironicclient is 2.3.0 ~ 2.5.4[1],
so you can't install python-ironicclient (4.0.0) for Rocky.


Min Li (limin0801) wrote :

In fact, I install Rocky release of watcher from source, and automatically select the latest version of python-ironicclient (4.0.0) when execute `pip install -r requirements.txt`.
Therefore, I think that the version of python-ironicclient should be restricted in the requirements.txt.
Please see:

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers