openstackclient commands doesn't work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-masakariclient |
Fix Released
|
Critical
|
Tushar Patil |
Bug Description
If you have installed openstackclient and masakariclient on your machine, then none of the openstack commands work as it fails to load the masakari plugin.
$openstack segment list
Traceback (most recent call last):
File "/usr/local/
from openstackclient
File "/usr/local/
from openstackclient
File "/usr/local/
'openstack.
File "/usr/local/
module.
AttributeError: 'module' object has no attribute 'API_NAME'
Reason: openstack client expects API_NAME global constant in masakariclient/
Below code fixes this issue:
diff --git a/masakariclien
index 794ab47..8d22d84 100644
--- a/masakariclien
+++ b/masakariclien
@@ -18,7 +18,7 @@ from osc_lib import utils
DEFAULT_
API_VERSION_OPTION = 'os_ha_api_version'
-
+API_NAME = 'ha'
def make_client(
"""Returns a instance_ha proxy"""
Changed in python-masakariclient: | |
importance: | Undecided → Critical |
Changed in python-masakariclient: | |
status: | New → Confirmed |
Fix proposed to branch: master /review. openstack. org/615752
Review: https:/