Open mohierf opened 7 years ago
Seems related to this issue:
e.g.: On demo site:
from alignak_backend_client.client import Backend
backend = Backend('http://demo.alignak.net:6000')
backend.login('northman', 'north')
daemons = backend.get('alignakdaemon')
for daemon in daemons['_items']:
print(daemon['name'])
will ouput:
arbiter-master
scheduler-north
poller-north
receiver-master
receiver-north
broker-master
broker-north
So Reactionners are missing.
Fixed with today's alignak merged modifications
@mohierf I've tested on demo server and problem persists...
from alignak_backend_client.client import Backend
backend = Backend('http://demo.alignak.net:6000')
backend.login('southman', 'south')
daemons = backend.get('alignakdaemon')
for daemon in daemons['_items']:
print(daemon['name'])
# Output
scheduler-south
scheduler-south-east
poller-south-east
poller-south
broker-master
broker-south-east
broker-south
Here with southman, Receivers are missing too (so with Arbiters and Reactionners).
Hmmm ... ok. When the alignakdaemon
items are updated most of them are _sub_realm
False and some of them are _sub_realm
True
For instance the broker-master status is in the realm All and has a _sub_realm=True
. As of it, it should be visible from a user located in a sub realm, like the Southman
user ... and it is ok!
What drives this _sub_realm
property set or unset:
realm_name
property, and if it only has one realm, the _sub_realm
is not set_sub_realm
property of the daemon status is set as True if the daemon has the manage_sub_realm
property set. I do not really understand the logic behind this choice 😑 @ddurieux On my own, I would have set this property as True for all the daemons. As such, any user, whatever its realm, is able to see that the whole Alignak daemons are ok or not!
As such, any user, whatever its realm, is able to see that the whole Alignak daemons are ok or not!
I'm agree with that.
@mohierf I think _sub_realm
sould be true only if the daemons has manage_sub_realms
to true
Ok, you think so, but why? Why restricting the view of the daemons state to the users that are not in the realm? If you do not want to make them visible, how the user can be informed that the monitoring system is well and running ?
When
alignakdaemon
is updated, there are several problems:_sub_realm
and some others are not ...As an example:
Note missing daemons are:
poller-master
,scheduler-master
,reactionner-master
Note Also note that the arbiter is missing completely.Relates to #53.