Closed Bug 642790 Opened 14 years ago Closed 12 years ago

Nagios check to verify that slaves have all expected keys

Categories

(Release Engineering :: General, defect, P3)

x86
macOS
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 792836

People

(Reporter: armenzg, Unassigned)

References

Details

(Whiteboard: [nagios])

Moving slaves from one silo to another carries manual intervention at this moment. Ensuring that the right keys are in the right slave would require a verification check. AFAIK there are three sets we want to ensure to be correct: - production keys - staging keys - try keys Something like this could help: cd ~/.ssh; sha1sum *.pub | sort
Not sure how to programatically know which slaves are marked for production, which ones for try and which ones for staging. Maybe the slave-alloc system has a DB somewhere. Please update this doc once the bug is resolved: https://wiki.mozilla.org/ReleaseEngineering/How_To/Move_a_Slave_Between_Production_and_Staging#SSH_Keys
Whiteboard: [nagios]
This is a better job for puppet than nagios, since it's difficult to dynamically reconfigure nagios.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
OK. I have added the following command into the documentation [1]: ssh -i ~/.ssh/xrbld_dsa xrbld@stage.mozilla.org [1] https://wiki.mozilla.org/ReleaseEngineering/How_To/Adjust_SSH_keys_on_a_slave
No need to dynamically reconfig nagios, the plugin just needs to be able to determine what kind of slave it's looking at.
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
OK, bug 637686 will let us do that.
Depends on: 637686
Priority: -- → P3
I assume that's checking the .pub keys just as a proof of concept? I don't copy the .pub keys around since they're unused on the slaves. Aside from that, this looks pretty good. I assume we'd distribute the script via puppet, which will also be distributing the keys, so it works for me.
(In reply to comment #7) > I assume that's checking the .pub keys just as a proof of concept? I don't > copy the .pub keys around since they're unused on the slaves. > > Aside from that, this looks pretty good. I assume we'd distribute the script > via puppet, which will also be distributing the keys, so it works for me. Would work with private keys just as well.
Blocks: re-nagios
Product: mozilla.org → Release Engineering
Puppet will be verifying this in bug 792836.
Status: REOPENED → RESOLVED
Closed: 14 years ago12 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.