contrib.openstack.amulet.utils imports removed novaclient.v1_1 module
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Charm Helpers |
Fix Released
|
Undecided
|
Alex Kavanagh |
Bug Description
Whilst running tests on ceilometer on Xenial I ran into:
./tests/
Traceback (most recent call last):
File "./tests/
from basic_deployment import CeilometerBasic
File "/home/
from charmhelpers.
File "/home/
import novaclient.
ImportError: No module named v1_1.client
This is because the 'v1_1' module has been removed from novaclient for version 3.x+ (previously deprecated).
The fix is to import novaclient.client directly (no v1_1, v2, etc.) and in the client.Client() instantiation, reference the required protocol ("2" in this case).
Related branches
- Liam Young (community): Approve
-
Diff: 31 lines (+5/-2)1 file modifiedcharmhelpers/contrib/openstack/amulet/utils.py (+5/-2)
Changed in charm-helpers: | |
status: | New → In Progress |
assignee: | nobody → Alex Kavanagh (ajkavanagh) |
Changed in charm-helpers: | |
status: | In Progress → Fix Released |