Closed Bug 523953 Opened 17 years ago Closed 17 years ago

mac machines not getting the same hostname every time

Categories

(mozilla.org Graveyard :: Server Operations, task)

x86
macOS
task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bhearsum, Assigned: dmoore)

References

Details

As part of bug 522727 I noticed that our moz2-darwin9-slaveNN machines aren't getting a consistent hostname every time they boot up. Sometimes it's moz2-darwin9-slaveNN.build.mozilla.org, which is what we want, and sometimes it's moz2-darwin9-slaveNN.local or just simply 'localhost', which is undesirable. Puppet requires the hostname to be the same every time, so we'd like to get this fixed. I haven't seen try machines (try-mac-slaveNN) or bm-xserveNN machines with this issue.
bhearsum: which 3 slaves did you see this problem on? Maybe its a manual error in their DNS ?
(In reply to comment #1) > bhearsum: which 3 slaves did you see this problem on? Maybe its a manual error > in their DNS ? moz2-darwin9-slave09 and moz2-darwin9-slave12 at least. It's occurred on at least one other one, too. It seems unlikely it's a typo or other "manual error", since these machines get the full name sometimes.
Assignee: server-ops → dmoore
Looks like this isn't limited to minis after all, bm-xserve18 hit it overnight.
Gentle ping...any idea what's going on here?
We did talk about this yesterday. Way back when, we statically set the hostnames (scutil --set HostName <>). The suspicion is that OSX isn't waiting long enough for dhcp/dns and just sets the hostname. Can we try static?
(In reply to comment #5) > We did talk about this yesterday. > > Way back when, we statically set the hostnames (scutil --set HostName <>). The > suspicion is that OSX isn't waiting long enough for dhcp/dns and just sets the > hostname. > > Can we try static? Sounds reasonable.
who's going to do that? the command syntax is: scutil --set HostName <hostname>
I'll do it next week. Phong, can you make sure you statically the hostnames on any future Mac machines?
I ran: sudo scutil --set HostName `hostname` on all of the Puppet managed xserves and minis after checking that 'hostname' returns the full, .build.mozilla.org hostname.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Product: mozilla.org → mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.