From openstacksdk version 0.11.1 onwards, there is no way
you can add service to the connection. Hence we need to monkey
_find_service_filter_class method from sdk to allow
to point to thee correct service filter class from masakariclient.
Solution provided here is not going to work in sdk 0.9.19 and
0.10.0 versions. Because service descriptor is not supported
in 0.9.19 and 0.10.0 sdk versions and profile parameter doesn't
work correctly during connection initialization.
Also solution provided here is not going to work in sdk 0.13.0
and above, it will still fails with below error
"'Connection' object has no attribute 'ha'"
this is because 'Connection' object expecting instance_ha not ha
Reviewed: https:/ /review. openstack. org/590735 /git.openstack. org/cgit/ openstack/ masakari- monitors/ commit/ ?id=3ffd576b795 9a90fcebabd5471 ff4d6f5a619b3c
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit 3ffd576b7959a90 fcebabd5471ff4d 6f5a619b3c
Author: shilpa.devharakar <email address hidden>
Date: Fri Aug 3 10:16:23 2018 +0530
Fix masakari-monitor connection issue
From openstacksdk version 0.11.1 onwards, there is no way service_ filter_ class method from sdk to allow
you can add service to the connection. Hence we need to monkey
_find_
to point to thee correct service filter class from masakariclient.
Solution provided here is not going to work in sdk 0.9.19 and
0.10.0 versions. Because service descriptor is not supported
in 0.9.19 and 0.10.0 sdk versions and profile parameter doesn't
work correctly during connection initialization.
Also solution provided here is not going to work in sdk 0.13.0
and above, it will still fails with below error
"'Connection' object has no attribute 'ha'"
this is because 'Connection' object expecting instance_ha not ha
Co-Author: tpatil <email address hidden> 3b6cc38015c9c3b f4ab7705a0c b3f6bfed9395c92 1fb28500065
Change-Id: Ic10d1b380abc8b
Depends-On: I24ec493f3333a5
Closes-Bug: #1779752