rucio / probes

Common Nagios probes to monitor Rucio
Apache License 2.0
0 stars 24 forks source link

Common: Check_expired_locked_rules modernization. #127 #133

Open voetberg opened 8 months ago

voetberg commented 8 months ago

Changes:

Sqla update uses pr #46 as a basis.

cc: @ericvaandering

voetberg commented 8 months ago

Thanks for the comments, those are fairly easy changes to make.

I suppose the confusion stems from my lack of understanding how atlas monitoring works - how are you picking up the results of these probes? If I knew that I think I could avoid making breaking changes in the future.

dchristidis commented 8 months ago

ATLAS uses Nagios to run its probes. Hence, the output is captured. Most of the time we don’t consult it, but this is one of the few probes where we do (so that our operators don’t have to identify themselves which rules to unlock).

ericvaandering commented 8 months ago

Sorry. Am I missing something? Don't lines 60 and 101 produce exactly the same output that 33 and 47 in the original do?

ericvaandering commented 8 months ago

The intent of that SQLAlchemy was definitely to reproduce the exact query. I would assume this was verified back some time ago (and one can have SQLAlchemy print the generated query). Is there something you saw?

dchristidis commented 8 months ago

Sorry. Am I missing something? Don't lines 60 and 101 produce exactly the same output that 33 and 47 in the original do?

The intent of that SQLAlchemy was definitely to reproduce the exact query. I would assume this was verified back some time ago (and one can have SQLAlchemy print the generated query). Is there something you saw?

The content of the commit has been altered since I made the initial review.

voetberg commented 8 months ago

Sorry. Am I missing something? Don't lines 60 and 101 produce exactly the same output that 33 and 47 in the original do?

The intent of that SQLAlchemy was definitely to reproduce the exact query. I would assume this was verified back some time ago (and one can have SQLAlchemy print the generated query). Is there something you saw?

The content of the commit has been altered since I made the initial review.

Yeah sorry about the confusion, original commit skipped the printing/summary dictionary step and just queried the count reported in the probe directly.

ericvaandering commented 8 months ago

Ahh. Good.

dchristidis commented 3 months ago

Side note: kindly allow me to resolve the conversations myself. It helps me to keep track of what has been addressed and what requires further work.

voetberg commented 3 months ago

Side note: kindly allow me to resolve the conversations myself. It helps me to keep track of what has been addressed and what requires further work.

Sounds good - let me know if there's anything else I can do to accommodate your preferred review style