just installing scciclient may break ironic-conductor
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ironic |
Fix Released
|
Undecided
|
Naohiro Tamura |
Bug Description
we got that when using ironic from debian packages as of stable/liberty
Note: I am not sure how appropriate the reproducer below is, but that's generally how things would work when installing from built packages, not development versions as devstack does.
to repro that on recent devstack/master with ironic/master do the following:
$ # make a new clean virtual env (I'm using virtualenvwrapper)
$ mkvirtualenv ironic
$ pip install git+https:/
$ # install some missing dependencies in the virtualenv
$ pip install pymysql python-
$ # no irmc drivers are even enabled
$ grep enabled_drivers /etc/ironic/
enabled_drivers = fake,agent_
$ # no irmc drivers are installed
$ # start ironic-conductor from virtualenv, stop by Ctrl-C
$ which ironic-conductor
/home/pshchelo/
$ ironic-conductor --config-
$ # everything works
$ # now install python-scciclient, even without dependencies
$ pip install python-scciclient --no-deps
$ pip freeze | grep scci
python-
$ # and try starting ironic-conductor again
$ ironic-conductor --config-
you get the following traceback
Traceback (most recent call last):
File "/home/
timer()
File "/home/
cb(*args, **kw)
File "/home/
waiter.switch()
File "/home/
result = function(*args, **kwargs)
File "/home/
service.start()
File "/home/
self.
File "/home/
self.
File "/home/
DriverFacto
File "/home/
return f(*args, **kwargs)
File "/home/
on_
File "/home/
verify_
File "/home/
verify_
File "/home/
verify_
File "/home/
self.
File "/home/
raise exception.
DriverLoadError: Driver fake could not be loaded. Reason: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. Are you sure that git is installed?.
even when installing scciclient with dependencies, which downgrades pbr to 0.11.0, error and traceback are the same
Even bigger problem is that the traceback is very cryptic, as it gives impression that the problem is with fake driver. Only enabling some logging in pbr/packaging.
Ironic should at least fail with more clear message in such cases.
Reason seems to be python-scciclient is still requiring pbr < 1.0, while ironic requires pbr>=1.6. I will file a bug to python-scciclient on LP as well.
Changed in ironic: | |
assignee: | nobody → Naohiro Tamura (naohirot) |
Bug filed for python-scciclient
https:/ /bugs.launchpad .net/python- scciclient/ +bug/1519000