Closed
Bug 522727
Opened 17 years ago
Closed 17 years ago
some mac machines not running puppet properly
Categories
(Release Engineering :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: bhearsum, Assigned: bhearsum)
References
Details
Attachments
(1 file, 1 obsolete file)
|
1.79 KB,
patch
|
coop
:
review+
bhearsum
:
checked-in+
|
Details | Diff | Splinter Review |
I noticed a whole host of unaccepted keys on the puppet server using the short hostnames of the minis. This is weird, because they full version ($name.build.mozilla.org) is already accepted on the puppet server. I'd like to know why the Puppet client is sending different hostnames at different times, and fix that to be consistent.
| Assignee | ||
Updated•17 years ago
|
Assignee: nobody → bhearsum
| Assignee | ||
Comment 1•17 years ago
|
||
So, it looks like when Puppet starts through launchd on first boot it sends the wrong hostname. If it is restarted with:
sudo launchctl unload -w /Library/LaunchDaemons/com.reductivelabs.puppet.plist
sudo launchctl load -w /Library/LaunchDaemons/com.reductivelabs.puppet.plist
that fixes it. I'm guessing that Puppet launches before the network comes up the first time, and since it gets its full hostname from DNS, it doesn't send the right thing.
| Assignee | ||
Comment 2•17 years ago
|
||
Alright, so delaying the Puppet launch seems to fix this. I tried it on a production slave and Puppet connected to the server with the right hostname from the get-go. I did 4 or 5 reboots and it worked each time.
Attachment #406739 -
Flags: review?(catlee)
Comment 3•17 years ago
|
||
Comment on attachment 406739 [details] [diff] [review]
delay puppet launch
Is a minute long enough?
Attachment #406739 -
Flags: review?(catlee) → review+
| Assignee | ||
Comment 4•17 years ago
|
||
Comment on attachment 406739 [details] [diff] [review]
delay puppet launch
It seems to be. These machines boot very quickly.
| Assignee | ||
Comment 5•17 years ago
|
||
Comment on attachment 406739 [details] [diff] [review]
delay puppet launch
Landed, for the staging version, too:
Checking in com.reductivelabs.puppet.plist;
/mofo/puppet-files/darwin9/com.reductivelabs.puppet.plist,v <-- com.reductivelabs.puppet.plist
new revision: 1.3; previous revision: 1.2
done
Checking in com.reductivelabs.puppet.plist-staging;
/mofo/puppet-files/darwin9/com.reductivelabs.puppet.plist-staging,v <-- com.reductivelabs.puppet.plist-staging
new revision: 1.3; previous revision: 1.2
done
Attachment #406739 -
Flags: checked-in+
| Assignee | ||
Comment 6•17 years ago
|
||
My first didn't work, as it turns out. Looks like the only way to delay launching is to wrap it in a shell script. I'll give that a try next week, and maybe test it over the course of the day before I say "it works".
| Assignee | ||
Comment 7•17 years ago
|
||
(Catlee, you seem pretty busy today, so I'll spare you this review.)
So, this is the supported way of delaying the launch of something at start-up. The puppet portion syncs this file to the proper place. The second part of this in the contents of of sleep-and-run-puppet.sh, and the final part is what the new production puppet plist file looks like (the staging one will be the same, with staging-puppet.build.mozilla.org).
I'll have to go around and restart Puppet on all of these Macs to fix things up, but this should do it. I tested this on darwin9-slave08 across 3 or 4 reboots and indeed, the launch was delayed by 60 seconds, and Puppet worked correctly when it did launch.
Attachment #406739 -
Attachment is obsolete: true
Attachment #407771 -
Flags: review?(ccooper)
Updated•17 years ago
|
Attachment #407771 -
Flags: review?(ccooper) → review+
| Assignee | ||
Comment 8•17 years ago
|
||
Comment on attachment 407771 [details] [diff] [review]
delay puppet launch, for real
Checking in com.reductivelabs.puppet.plist;
/mofo/puppet-files/darwin9/com.reductivelabs.puppet.plist,v <-- com.reductivelabs.puppet.plist
new revision: 1.4; previous revision: 1.3
done
Checking in com.reductivelabs.puppet.plist-staging;
/mofo/puppet-files/darwin9/com.reductivelabs.puppet.plist-staging,v <-- com.reductivelabs.puppet.plist-staging
new revision: 1.4; previous revision: 1.3
done
RCS file: /mofo/puppet-files/darwin9/sleep-and-run-puppet.sh,v
done
Checking in sleep-and-run-puppet.sh;
/mofo/puppet-files/darwin9/sleep-and-run-puppet.sh,v <-- sleep-and-run-puppet.sh
initial revision: 1.1
done
changeset: 67:f34a12e8d4fc
Attachment #407771 -
Flags: checked-in+
| Assignee | ||
Comment 9•17 years ago
|
||
So, even after deploying this patch it's not working all the time. Looks like some of the machines are getting handed 'moz2-darwin9-slaveNN' as a hostname. I'll ping IT about this. One solution would be to go through and set the hostname for all of the machines correctly, rather than relying on DHCP.
| Assignee | ||
Comment 10•17 years ago
|
||
There's only been 3 slaves that have attempted to use the wrong hostname since this was deployed, so it's definitely helped the matter. Need the DNS problem fixed to be 100% good though.
| Assignee | ||
Comment 11•17 years ago
|
||
Static hostnames fixed this issue.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Updated•13 years ago
|
Product: mozilla.org → Release Engineering
You need to log in
before you can comment on or make changes to this bug.
Description
•