Closed
Bug 786679
Opened 12 years ago
Closed 12 years ago
10.8 slaves have the Bluetooth Keyboard Setup dialog up and running
Categories
(Infrastructure & Operations Graveyard :: CIDuty, task)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: philor, Assigned: kmoir)
References
Details
Attachments
(2 files, 2 obsolete files)
61.56 KB,
image/png
|
Details | |
4.92 KB,
patch
|
dustin
:
review+
kmoir
:
checked-in+
|
Details | Diff | Splinter Review |
We may wind up having to live with it, since we never managed to defeat it on 10.7, but filing because it's going to be seen in logged screenshots, like https://tbpl.mozilla.org/php/getParsedLog.php?id=14799452&tree=Try, whether or not it actually causes test failures the way it did for 10.6, where we did manage to defeat it with bug 570843.
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → kmoir
Comment 1•12 years ago
|
||
This happened to me twice today:
https://tbpl.mozilla.org/php/getParsedLog.php?id=18894238&tree=Try
https://tbpl.mozilla.org/php/getParsedLog.php?id=18894237&tree=Try
Comment 2•12 years ago
|
||
Assignee | ||
Comment 3•12 years ago
|
||
https://tbpl.mozilla.org/php/getParsedLog.php?id=20079817&tree=Mozilla-Inbound
Also, we should disable restarting crashed apps like in bug 843545
Assignee | ||
Comment 4•12 years ago
|
||
tested in staging
Note I couldn't call osxutils::defaults because that just configures an existing key, cannot create a new one, not sure if it's worth rewriting that.
Attachment #718461 -
Flags: review?(rail)
Comment 5•12 years ago
|
||
Comment on attachment 718461 [details] [diff] [review]
patch
I think that's definitely worth fixing, rather than working around its lack.
Attachment #718461 -
Flags: review-
Comment 6•12 years ago
|
||
Comment on attachment 718461 [details] [diff] [review]
patch
Can't go against the puppetagain founding father! :)
Attachment #718461 -
Flags: review?(rail)
Comment 7•12 years ago
|
||
Sorry to jump on your r?, and I hope you're kidding and feel like you *could* contradict me if you felt I was incorrect.
Comment 8•12 years ago
|
||
(In reply to Dustin J. Mitchell [:dustin] from comment #7)
> Sorry to jump on your r?,
No worries. It's totally OK.
> and I hope you're kidding and feel like you
> *could* contradict me if you felt I was incorrect.
Yeah, that was a joke :)
Assignee | ||
Comment 9•12 years ago
|
||
I can use osxutils::defaults. I don't have to specify bool as a type, I can just give 0 as a value. Tested on a staging slave.
Attachment #718461 -
Attachment is obsolete: true
Attachment #719716 -
Flags: review?(dustin)
Updated•12 years ago
|
Attachment #719716 -
Flags: review?(dustin) → review+
Assignee | ||
Updated•12 years ago
|
Attachment #719716 -
Flags: checked-in+
Assignee | ||
Comment 10•12 years ago
|
||
verified that slaves are updated with this preference
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment 11•12 years ago
|
||
We're started seeing OS X 10.8 test timeouts appear on multiple trees - any chance this could have backfired?
Comment 12•12 years ago
|
||
(First instance ~ 2 hrs ago)
Comment 13•12 years ago
|
||
Screenshot from a run that has timed out.
Take it that's the screensaver?
Updated•12 years ago
|
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Whiteboard: [buildduty]
Updated•12 years ago
|
Severity: normal → blocker
Comment 14•12 years ago
|
||
All trees are closed
Comment 15•12 years ago
|
||
talos-mtnlion-r5-083
https://tbpl.mozilla.org/php/getParsedLog.php?id=20225120&tree=Mozilla-Inbound
talos-mtnlion-r5-086
https://tbpl.mozilla.org/php/getParsedLog.php?id=20224331&tree=Mozilla-Inbound
talos-mtnlion-r5-030
https://tbpl.mozilla.org/php/getParsedLog.php?id=20224486&tree=Mozilla-Inbound
talos-mtnlion-r5-053
https://tbpl.mozilla.org/php/getParsedLog.php?id=20224849&tree=Mozilla-Inbound
talos-mtnlion-r5-019
https://tbpl.mozilla.org/php/getParsedLog.php?id=20224119&tree=Mozilla-Inbound
talos-mtnlion-r5-081
https://tbpl.mozilla.org/php/getParsedLog.php?id=20225318&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=20223131&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=20223937&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=20224817&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=20223411&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=20223564&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=20224317&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=20222948&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=20224956&tree=Mozilla-Aurora
https://tbpl.mozilla.org/php/getParsedLog.php?id=20224773&tree=Mozilla-Beta
Comment 16•12 years ago
|
||
talos-mtnlion-r5-010 has an older plist. Would it work if we reverted to that?
talos-mtnlion-r5-010:~ cltbld$ ls -l /Library/Preferences/com.apple.Bluetooth.plist
-rw-r--r-- 1 root wheel 1879 28 Aug 2012 /Library/Preferences/com.apple.Bluetooth.plist
Comment 17•12 years ago
|
||
dustin@euclid ~/tmp $ diff -au 010.plist 011.plist
--- 010.plist 2013-03-01 13:16:28.000000000 -0500
+++ 011.plist 2013-03-01 13:16:10.000000000 -0500
@@ -2,6 +2,10 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
+ <key>BluetoothAutoSeekKeyboard</key>
+ <string>0</string>
+ <key>BluetoothAutoSeekPointingDevice</key>
+ <string>0</string>
<key>BluetoothVersionNumber</key>
<integer>3</integer>
<key>ControllerPowerState</key>
@@ -13,7 +17,7 @@
<key>ClassOfDevice</key>
<integer>3670276</integer>
<key>ClockOffset</key>
- <integer>9158</integer>
+ <integer>19743</integer>
<key>EIRData</key>
<data>
DQltYWMtc2lnbmluZzENAxIRDBEBEQAQHxEDEg7/TAABTWFjbWlu
@@ -25,11 +29,11 @@
AAAAAAAA
</data>
<key>InquiryRSSI</key>
- <integer>189</integer>
+ <integer>188</integer>
<key>LastInquiryUpdate</key>
- <date>2012-08-28T14:06:00Z</date>
+ <date>2012-08-09T15:44:02Z</date>
<key>LastNameUpdate</key>
- <date>2012-08-28T14:04:02Z</date>
+ <date>2012-08-09T15:32:25Z</date>
<key>ModelIdentifier</key>
<string>Macmini4,1</string>
<key>Name</key>
@@ -46,7 +50,7 @@
<key>ClassOfDevice</key>
<integer>3670276</integer>
<key>ClockOffset</key>
- <integer>10456</integer>
+ <integer>4375</integer>
<key>EIRData</key>
<data>
DQltYWMtc2lnbmluZzINAxIRDBEBEQAQHxEDEg7/TAABTWFjbWlu
@@ -58,11 +62,11 @@
AAAAAAAA
</data>
<key>InquiryRSSI</key>
- <integer>195</integer>
+ <integer>199</integer>
<key>LastInquiryUpdate</key>
- <date>2012-08-28T14:06:06Z</date>
+ <date>2012-08-09T15:44:12Z</date>
<key>LastNameUpdate</key>
- <date>2012-08-28T14:04:03Z</date>
+ <date>2012-08-09T15:32:25Z</date>
<key>ModelIdentifier</key>
<string>Macmini4,1</string>
<key>Name</key>
@@ -77,7 +81,7 @@
</dict>
<key>PANInterfaces</key>
<array>
- <string>80-49-71-14-3c-42</string>
+ <string>80-49-71-14-3e-62</string>
</array>
<key>PersistentPorts</key>
<dict>
So yes, I'd say that will fix it.
Comment 18•12 years ago
|
||
Well, it will revert it. The screensaver's not actually disabled anyway (per bug 764948#c64). Something about not disabling bluetooth prevents the screensaver from activating. So "fixed" isn't the right word.
Comment 19•12 years ago
|
||
I deployed the old plist to all production mtnlion slaves.
RyanVM is looking at re-triggering them.
Comment 20•12 years ago
|
||
I will re-trigger them.
Comment 21•12 years ago
|
||
We should know around 11:35am PDT if we're back to normal.
Updated•12 years ago
|
Attachment #719716 -
Flags: checked-in+ → checked-in-
Comment 22•12 years ago
|
||
The re-triggered jobs are green.
https://tbpl.mozilla.org/?tree=Mozilla-Inbound&jobname=10.8&rev=fedd96a37a7c
https://tbpl.mozilla.org/?tree=Mozilla-Inbound&jobname=10.8&rev=e0ba8998b6aa
The only issue left is the xcpshell issue which is unrelated to this bug:
https://tbpl.mozilla.org/?tree=Mozilla-Inbound&jobname=xpcshell
Updated•12 years ago
|
Severity: blocker → major
Whiteboard: [buildduty]
Assignee | ||
Comment 23•12 years ago
|
||
Today I:
1) imaged a slave
2) ran the puppet against my environment to disable bluetooth setup assistant for keyboard and mouse
3) ran a find with a recent mtime to find files that had recently changed on the entire filesytem and grepped through the plists to find weird changes - found nothing
4) Noticed there isn't a com.apple.screensaver plist I can modify on these boxes to disable the screensaver
5) Noticed that defaults read on my freshly imaged slave is empty which is weird. The slaves in production do have defaults.
6) Compared defaults on my personal 10.8 machine without and with the screen saver enabled
"NSWindow Frame Main Window Frame SystemPreferencesApp 8.0" = "750 324 668 528 0 0 1680 1028 ";
---
> "NSWindow Frame Main Window Frame SystemPreferencesApp 8.0" = "750 306 668 546 0 0 1680 1028 ";
This doesn't exist in the default settings for the mtnlion slaves.
At this point, I don't know how to proceed to fix this issue.
My suggestion might be to just rename /System/Library/CoreServices/Bluetooth\ Setup\ Assistant.app/ to something else so it doesn't start. But that is very hacky.
Comment 24•12 years ago
|
||
What happens when you disable bluetooth as well as the screensaver? (rather than just bluetooth) Do we have the problem after that?
I believe if you change through the GUI the screensaver settings it till generate a plist which we can most likely use (IIUC).
Forgive me if you answered that in the previous comment. I wasn't sure if you just compared your local machine and mtnlion machines for the screensaver settings.
Assignee | ||
Comment 25•12 years ago
|
||
I looked at it this morning and figured out how disabling the bluetooth setup assistant enabled the screen saver
pmset shows the power management settings
talos-mtnlion-r5-026:Preferences root# pmset -g assertions
3/8/13 7:23:13 AM PST
Assertion status system-wide:
PreventUserIdleDisplaySleep 1
CPUBoundAssertion 0
PreventSystemSleep 0
PreventUserIdleSystemSleep 0
ExternalMedia 0
UserIsActive 0
ApplePushServiceTask 0
BackgroundTask 0
Listed by owning process:
pid 305(Bluetooth Setup): [0x0000000500000140] 01:40:56 PreventUserIdleDisplaySleep named: "Bluetooth Setup Assistant"
Kernel Assertions: None
talos-mtnlion-r5-026:Preferences root# ps -ef | grep -i bluetooth
28 305 142 0 5:42am ?? 1:04.80 /System/Library/CoreServices/Bluetooth Setup Assistant.app/Contents/MacOS/Bluetooth Setup Assistant -autoConfigure
0 909 787 0 7:23am ttys000 0:00.00 grep -i bluetooth
The bluetooth setup assistant is currently setting PreventUserIdleDisplaySleep to 1 so the screen saver isn't activated.
Armen: on my freshly imaged and puppetized slave, I can't change any settings in system preferences. If I change something, close system preferences and then start it again, the old preferences return. This is without puppet running. Perhaps this is because the cltbld user doesn't have administrator privileges on the machine.
Comment 26•12 years ago
|
||
Saw this in the screenshot for the following
using slave: talos-mtnlion-r5-030
https://tbpl.mozilla.org/php/getParsedLog.php?id=20471687&tree=Mozilla-Beta
Assignee | ||
Comment 27•12 years ago
|
||
I tried many combinations of setting the screen saver so it wouldn't be enabled
defaults write /Library/Preferences/com.apple.screensaver.plist idleTime 0
#get UUID
ioreg -rd1 -c IOPlatformExpertDevice | grep -i "UUID" | cut -c27-62
defaults write /Users/cltbld/Library/Preferences/ByHost/com.apple.screensaver.2775AD39-C220-50B7-89A2-2696BF32EBA5 idleTime 0
chmod and chown the above plist so cltbld has access
defaults -currentHost write com.apple.screensaver idleTime 0
defaults write com.apple.screensaver -dict com.apple.screensaver idleTime 0
None of them worked.
Also, if I add a new user and change their screen saver preferences via the ui, there are new plists created, but again, I can't do this as the cltbld user. Also, I checked Apple's support site, and they describe how to change the screen saver preferences via defaults for earlier versions of osx, but not 10.8. Not sure what to do from here.
Comment 28•12 years ago
|
||
Maybe we should return Mountain Lion to apple on an RMA. It's broken in so many ways.. (kidding, for the record)
Comment 29•12 years ago
|
||
dustin, do you know if we have a support line we can call?
or any specialist in the matter?
Would re-adding the Admin user help to fix the issue?
Do we know of a good forum where we can find people who can answer this?
I think we can figure it out and write a very useful blog post for the rest of humanity :D
Assignee | ||
Comment 30•12 years ago
|
||
I've found the problem.
I thought that this plist was correct
defaults write /Users/cltbld/Library/Preferences/ByHost/com.apple.screensaver.2775AD39-C220-50B7-89A2-2696BF32EBA5
because this is the same file that changes on my 10.8 laptop when I change the screen saver. But I didn't understand why I couldn't change this in the ui. It turns there was a permission problem on ~cltbld/Library/Preferences from our appstate module.
http://mxr.mozilla.org/build/source/puppet/modules/clean/manifests/appstate.pp
The ~cltbld/Library/Preferences directory was owned by root. It needs to be changed to be owned by cltbld user. When I add the defaults write for the screensaver plist I'll have to change ownership for it as well.
After added the plist and chowned the directory, I was able to see that the screensaver was disabled in the ui.
So it wasn't Apple, but our own puppet configs.
I'll write a patch.
Assignee | ||
Comment 31•12 years ago
|
||
This patch disables the bluetooth setup assistant and the screensaver. It also fixes some permission issues. I also removed "--currentHost" from osxutils::defaults because this isn't needed (it just restricts the preference changes to the current host) and having it by default caused issues with the screensaver plist. The modules that use the osxutils::defaults are
modules/clean/manifests/appstate.pp
disableservices/manifests/common.pp
modules/users/manifests/builder/autologin.pp
modules/vnc/manifests/init.pp
I verified these the commands for these modules work with -currentHost removed as expected.
Attachment #719716 -
Attachment is obsolete: true
Attachment #723304 -
Flags: review?(dustin)
Comment 32•12 years ago
|
||
Comment on attachment 723304 [details] [diff] [review]
patch
Nicely done! Just some indentation fixes in common.pp (indent the resource titles four more spaces).
Attachment #723304 -
Flags: review?(dustin) → review+
Assignee | ||
Comment 33•12 years ago
|
||
Comment on attachment 723304 [details] [diff] [review]
patch
Fixed whitespace
http://hg.mozilla.org/build/puppet/rev/b087ee71e52b
Attachment #723304 -
Flags: checked-in+
Assignee | ||
Updated•12 years ago
|
Status: REOPENED → RESOLVED
Closed: 12 years ago → 12 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Product: mozilla.org → Release Engineering
Updated•7 years ago
|
Component: Platform Support → Buildduty
Product: Release Engineering → Infrastructure & Operations
Updated•5 years ago
|
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•