Closed Bug 833524 Opened 13 years ago Closed 13 years ago

remove all trace of .mozpass.cfg and .android from linux builders

Categories

(Release Engineering :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mozilla, Assigned: mozilla)

References

Details

Attachments

(5 files, 2 obsolete files)

Now that bug 705807 landed, we need to clean up: a) puppet patch to remove all .mozpass.cfg and .android/ from ~cltbld on linux builders ** write, review, land, roll out, wait to run everywhere, back out b) remove all references to .mozpass.cfg and .android/ from docs ** new image docs first ** slave loaner docs after (a) is done.
Attached patch clean puppet part 1 (obsolete) — Splinter Review
_ review _ land _ update puppet servers _ remove these files from puppet servers if applicable _ write new patch (should still remove debug.keystore) _ review _ land (after all linux builders are updated) _ update puppet servers _ update above TODO wiki page _ close bug
Attachment #705075 - Flags: review?(rail)
Assignee: nobody → aki
Comment on attachment 705075 [details] [diff] [review] clean puppet part 1 Review of attachment 705075 [details] [diff] [review]: ----------------------------------------------------------------- Could you also prepare a patch for puppetagain (http://hg.mozilla.org/build/puppet/) - we have those files on mock slaves as well. ::: os/centos.pp @@ +76,4 @@ > > "/home/cltbld/.android/android.keystore": > + ensure => absent, > + force => true; you can remove this entry all together because the previous one should remove the whole directory.
Attachment #705075 - Flags: review?(rail) → review+
(In reply to Rail Aliiev [:rail] from comment #4) > Could you also prepare a patch for puppetagain > (http://hg.mozilla.org/build/puppet/) - we have those files on mock slaves > as well. There doesn't seem to be any existing file that references these; creating a new directory structure / file in build/puppet is far beyond my weak puppet skills.
X puppet-manifests patch X review _ land <-- WE ARE HERE (might wait til morning) _ update puppet servers _ puppetagain patch <-- someone else? _ review _ land _ update puppetagain masters _ remove these files from puppet servers if applicable _ write new patch (should still remove debug.keystore) _ review _ land (after all linux builders are updated) _ update puppet servers _ update above TODO wiki page _ close bug
Attached patch [puppetAgain] v1 (obsolete) — Splinter Review
Since aki wasn't comfortable writing this.
Attachment #705101 - Flags: review?(rail)
I was too quick on the draw, this uses the correct var
Attachment #705101 - Attachment is obsolete: true
Attachment #705101 - Flags: review?(rail)
Attachment #705103 - Flags: review?(rail)
Comment on attachment 705103 [details] [diff] [review] [puppetAgain] v1.1 lgtm
Attachment #705103 - Flags: review?(rail) → review+
Comment on attachment 705104 [details] [diff] [review] puppet-manifests with fixes Carrying forward review. http://hg.mozilla.org/build/puppet-manifests/rev/ed85a33b23a3
Attachment #705104 - Flags: review+
Attachment #705104 - Flags: checked-in+
(In reply to Aki Sasaki [:aki] from comment #6) > X puppet-manifests patch > X review > X land > X update puppet servers > X puppetagain patch (Callek) > X review > _ land <-- WE ARE HERE > _ remove these files from puppet servers if applicable > _ write new patch (should still remove debug.keystore) > _ review > _ land (after all linux builders are updated) > _ update puppet servers > _ update above TODO wiki page > _ close bug
X puppet-manifests patch X review X land X update puppet servers X puppetagain patch (Callek) X review X land X remove these files from puppet servers if applicable _ verify _ write new patch (should still remove debug.keystore) _ review _ land (after all linux builders are updated) _ update puppet servers _ update above TODO wiki page _ rm root@scl3-production-puppet:.android and .mozpass.cfg _ close bug We have a backup of .mozpass.cfg and .android in root@scl3-production-puppet:.
Attachment #705075 - Attachment is obsolete: true
Attachment #705127 - Flags: review?(bhearsum)
Attachment #705127 - Flags: review?(bhearsum) → review+
#!/bin/sh for i in `cat foo`; do /bin/echo -n "$i - " ping -c 1 -o -t 5 $i 2>&1 >/dev/null if [ $? -eq 0 ] ; then output=`ssh -o "StrictHostKeyChecking no" -o ConnectTimeout=10 cltbld@$i ls -a 2>/dev/null` if [ $? -eq 0 ] ; then echo $output | egrep -q '(mozpass|android)' if [ $? -ne 0 ] ; then echo else echo 'FOUND!' fi fi else echo fi done
Attached file output
From above script. I cleaned up all FOUND! hosts manually.
For puppetagain, we can just back out http://hg.mozilla.org/build/puppet/rev/f3c2cc8dc47d .
Attachment #706118 - Flags: review?(rail)
X puppet-manifests patch X review X land X update puppet servers X puppetagain patch (Callek) X review X land X remove these files from puppet servers if applicable X verify -- done, depending on how paranoid you are X write new puppet-manifests patch (should still remove debug.keystore) _ review <-- WE ARE HERE _ land puppet-manifests patch, backout puppetagain patch _ update puppet servers _ update https://intranet.mozilla.org/RelEngWiki/index.php/How_To/Clean_A_Slave_For_Shipment_Externally _ rm root@scl3-production-puppet:.android and .mozpass.cfg _ close bug
Comment on attachment 706118 [details] [diff] [review] remove from puppet-manifests Review of attachment 706118 [details] [diff] [review]: ----------------------------------------------------------------- ::: os/centos.pp @@ +73,3 @@ > "/home/cltbld/.android/debug.keystore": > ensure => absent, > force => true; Why do you need this entry?
(In reply to Rail Aliiev [:rail] from comment #21) > ::: os/centos.pp > @@ +73,3 @@ > > "/home/cltbld/.android/debug.keystore": > > ensure => absent, > > force => true; > > Why do you need this entry? "_ write new patch (should still remove debug.keystore)" ~/.android/debug.keystore is automatically created if the apk isn't signed by anything else. This creates a signed dev build, which can't be installed anywhere else. This isn't actually a critical bug until debug.keystore gets to be a year old (when it's auto-created, it's created to expire in 1 year). Then anything that uses the debug.keystore to sign anything will burn. I thought auto-removing it would be a safer option than to hit this issue again in the future.
Comment on attachment 706118 [details] [diff] [review] remove from puppet-manifests Sheep it! :)
Attachment #706118 - Flags: review?(rail) → review+
X puppet-manifests patch X review X land X update puppet servers X puppetagain patch (Callek) X review X land X remove these files from puppet servers if applicable X verify -- done, depending on how paranoid you are X write new puppet-manifests patch (should still remove debug.keystore) X review X land puppet-manifests patch X update puppet servers _ backout puppetagain patch <-- WE ARE HERE _ update https://intranet.mozilla.org/RelEngWiki/index.php/How_To/Clean_A_Slave_For_Shipment_Externally _ rm root@scl3-production-puppet:.android and .mozpass.cfg _ close bug Callek thinks we should wait to remove the puppetagain patch, since we could have AWS slaves that aren't up or reachable via ssh that still have these files.
Comment on attachment 705103 [details] [diff] [review] [puppetAgain] v1.1 Backed out, http://hg.mozilla.org/build/puppet/rev/3c15d8fdd761 [14:11] <nthomas> what's the cut off time ? [14:13] <aki> http://hg.mozilla.org/build/puppet/rev/f3c2cc8dc47d [14:13] <aki> Jan 22 3pmish PST ? [14:13] <aki> 14:43 is when it landed [14:13] <nthomas> all fine then, the oldest launch times are Jan 29
Attachment #705103 - Flags: checked-in+ → checked-in-
https://intranet.mozilla.org/RelEngWiki/index.php?title=How_To/Clean_A_Slave_For_Shipment_Externally&diff=1533&oldid=1515 X puppet-manifests patch X review X land X update puppet servers X puppetagain patch (Callek) X review X land X remove these files from puppet servers if applicable X verify -- done, depending on how paranoid you are X write new puppet-manifests patch (should still remove debug.keystore) X review X land puppet-manifests patch X update puppet servers X backout puppetagain patch X update https://intranet.mozilla.org/RelEngWiki/index.php/How_To/Clean_A_Slave_For_Shipment_Externally X rm root@scl3-production-puppet:.android and .mozpass.cfg X close bug <-- WE ARE HERE
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Product: mozilla.org → Release Engineering
Component: General Automation → General
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: