Closed
Bug 1452799
Opened 8 years ago
Closed 8 years ago
Cron - Puppet PublicKey permission denied.
Categories
(Infrastructure & Operations :: RelOps: Puppet, task)
Infrastructure & Operations
RelOps: Puppet
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: dlabici, Unassigned)
References
Details
Hello, for the past 9 days puppet is sending a lot of emails for the following problem:
Email body:
===========
Permission denied (publickey).
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: unexplained error (code 255) at io.c(600) [receiver=3.0.6]
Affected machines/Reporting machines:
=====================================
releng-puppet1.srv.releng.scl3.mozilla.com
releng-puppet2.srv.releng.scl3.mozilla.com
Cronjob that is running:
========================
rsync -e 'ssh -l puppetsync -i /var/lib/puppetsync-home/.ssh/puppetsync_rsa -oBatchMode=yes -oStrictHostKeyChecking=yes -oCheckHostIP=no' --delete -rlpt --exclude '*.tmp' --exclude environments/ releng-puppet2.srv.releng.scl3.mozilla.com:/etc/hiera/ /etc/hiera/ | logger -t puppetmaster_hiera_sync
Rate at which the emails come:
==============================
Roughly each 5 minutes for each of the 2 machines listed above.
Start date of the emails:
=========================
First occurrence: 1st April 2018 - One Day of Emails.
Second occurrence: 4th April 2018 to date. - Problem didn't stop anymore.
Estimate of emails sent:
========================
1000+ and counting
Comment 1•8 years ago
|
||
These are not coming from:
releng-puppet1.srv.releng.scl3.mozilla.com
releng-puppet2.srv.releng.scl3.mozilla.com
But from both MDC1 and MDC2 puppetmaster instead
Comment 2•8 years ago
|
||
Looks like this was caused when A records were created for 'puppetagain-apt.pvt.build.mozilla.org' and PTR records were auto created from that. These hosts should only have one PTR record from the infoblox host record. See bug 1451948.
This was in the record note: This record is auto-created by A record creation
Apr 8 03:45:01 releng-puppet2.srv.releng.scl3.mozilla.com sshd[16844]: Authentication tried for puppetsync with correct key but not from a permitted host (host=puppetagain-apt.pvt.build.mozilla.org, ip=10.49.48.21).
Apr 8 03:45:01 releng-puppet2.srv.releng.scl3.mozilla.com sshd[16844]: Failed publickey for puppetsync from 10.49.48.21 port 37766 ssh2
Apr 8 03:45:01 releng-puppet2.srv.releng.scl3.mozilla.com sshd[16845]: Connection closed by 10.49.48.21
I've gone ahead and just deleted the PTR records that were created for the releng-puppet IPs that resolved back to 'puppetagain-apt.pvt.build.mozilla.org'
See Also: → 1451948
Updated•8 years ago
|
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•