Closed
Bug 1570375
Opened 6 years ago
Closed 6 years ago
turn off wifi on macos mojave
Categories
(Infrastructure & Operations :: RelOps: Posix OS, task)
Infrastructure & Operations
RelOps: Posix OS
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: dhouse, Assigned: dhouse)
References
Details
On the mac mini workers, wifi was found to be on because one mini auto-joined the datacenter wifi and displayed a login dialog.
I checked over the machines and found that wifi was on:
$ networksetup -getairportpower $(networksetup -listallhardwareports | grep -A1 Wi-Fi | tail -1 | cut -d\: -f2)
Wi-Fi Power (en1): On
And I'm looping over the workers to turn it off manually:
(for dc in {1,2}; do for hn in t-mojave-r7-{001..462}.test.releng.mdc${dc}.mozilla.com; do host $hn 2>&1 >/dev/null && ssh -o LogLevel=ERROR -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o ConnectTimeout=120 -o UserKnownHostsFile=/dev/null ${hn} 'iface=$(networksetup -listallhardwareports 2>/dev/null| grep -A1 Wi-Fi | tail -1 | cut -d\: -f2); printf "%s " $(hostname) $(networksetup -getairportpower $iface | grep On && (networksetup -setairportpower $iface off)); echo' & done; done) 2>/dev/null; wait
I've confirmed wifi is off on all of the current mojave production workers.
I'll NI myself and get the setting into permanent configuration (puppet).
Status: NEW → RESOLVED
Closed: 6 years ago
Flags: needinfo?(dhouse)
Resolution: --- → FIXED
Jake pointed me to https://github.com/mozilla-platform-ops/ronin_puppet/blob/master/modules/macos_utils/manifests/wifi_disabled.pp where we have the wifi disable setting. It must not be applied in some way. So we'll need to troubleshoot and adjust it.
Comment 4•1 year ago
|
||
Clearing dhouse's NI's. Please NI me if this still needs attention.
Flags: needinfo?(dhouse)
You need to log in
before you can comment on or make changes to this bug.
Description
•