masakari command failed due to os-service-type1.2.0
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-masakariclient |
Fix Released
|
Critical
|
Dinesh Bhor |
Bug Description
[Environment]
- masakariclient has been applied the following patch.
https:/
- openstacksdk version is 0.12.0
- os-service-types version is 1.2.0
[Issue]
An error occurred when executing the masakari command.
The error is as follow:
$ masakari --debug segment-list
Traceback (most recent call last):
File "/usr/local/
sys.
File "/usr/local/
MasakariShe
File "/usr/local/
sc = self._setup_
File "/usr/local/
return masakari_
File "/usr/local/
return cls(*args, **kwargs)
File "/usr/local/
self.con = connection.
File "/usr/local/
raise e
AttributeError: Service Descriptors cannot be set
[Cause]
In os-service-types 1.2.0, "ha" service has been added to os_service_
So, if masakariclient tries add_service to openstack.
However, if masakariclient don't add_service, it can not get the correct proxy class for masakari's operation.
Probably, the "ha" service of service-types.json is for use by masakari.
So I think we need to add the proxy class for masakari to openstacksdk like openstack/network/ or openstack/compute/.
Changed in python-masakariclient: | |
status: | New → Confirmed |
importance: | Undecided → Critical |
Changed in python-masakariclient: | |
assignee: | nobody → Dinesh Bhor (dinesh-bhor) |
status: | Confirmed → In Progress |
Reviewed: https:/ /review. openstack. org/557634 /git.openstack. org/cgit/ openstack/ python- masakariclient/ commit/ ?id=6d61f0a1035 76b36b1896caf19 fb2d5f72ec6d9c
Committed: https:/
Submitter: Zuul
Branch: master
commit 6d61f0a103576b3 6b1896caf19fb2d 5f72ec6d9c
Author: Kengo Takahara <email address hidden>
Date: Thu Mar 29 16:24:45 2018 +0900
Remove masakariclient's proxy class
Change I9b2d140065390d 94dda532c39777c f691775e21e has added masakari
commands to openstacksdk and those are available in openstacksdk
version 0.13.0. So the respective sdk resource proxy class implemented
in masakariclient is no longer required.
This patch fixes below:
- Removes the proxy class from masakariclient, and modifies to use the
proxy class implemented in openstacksdk.
- Related bug: #1756047
Closes-Bug: #1756047 16cc7a1bd83a0a2 1735135199c
Change-Id: I5ecc4f8edc283e