Closed
Bug 876844
Opened 12 years ago
Closed 12 years ago
[hacksmo] set up chief
Categories
(Infrastructure & Operations Graveyard :: WebOps: Other, task)
Infrastructure & Operations Graveyard
WebOps: Other
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: groovecoder, Assigned: cturra)
References
Details
We just merged https://github.com/mozilla/mozhacks/pull/13 and we'd like to push it. But we'd like to set up chief for hacks.mozilla.org so we can push more quickly without having to bother webops each time.
| Reporter | ||
Comment 1•12 years ago
|
||
note: we also want to set up chief for hacks.allizom.org
| Reporter | ||
Comment 2•12 years ago
|
||
Not bumping to 'major' just yet, but this is blocking another pull we need to merge and push.
Updated•12 years ago
|
Assignee: server-ops-webops → bburton
Comment 3•12 years ago
|
||
Working on, should be done today, would you like me to push the code in the mean time? Setup time for chief is a couple hours per environment
Status: NEW → ASSIGNED
| Reporter | ||
Comment 4•12 years ago
|
||
The push can wait, I'd like to use it to test the whole chief setup actually. Thanks.
| Assignee | ||
Comment 5•12 years ago
|
||
grabbing this bug. i just made a pull request to add the chief update script to the mozhacks github repo.
https://github.com/mozilla/mozhacks/pull/15
Assignee: bburton → cturra
OS: Mac OS X → All
Hardware: x86 → All
| Reporter | ||
Comment 6•12 years ago
|
||
looks good to me - merged. when can we test on hacks.allizom.org?
| Assignee | ||
Comment 7•12 years ago
|
||
thnx for merging this. give me a little bit to complete the setup and testing.
| Assignee | ||
Comment 8•12 years ago
|
||
chief in stage should be good to go. you can access it at:
http://genericadm.private.phx1.mozilla.com/chief/hacks.stage
i will provide you with the password privately in an email. share with those who should have access to push to stage.
| Reporter | ||
Comment 9•12 years ago
|
||
tried pushing and got a failure:
http://genericadm.private.phx1.mozilla.com/chief/hacks.stage/logs/640fe38c927587ec0c1682fc5443989ac4d5f135.1369865214
| Assignee | ||
Comment 10•12 years ago
|
||
i guess the failure is misleading, but looks to be telling you that there is nothing to deploy.
[localhost] err: [localhost] out: # On branch master
[localhost] err: [localhost] out: nothing to commit (working directory clean)
i also confirmed that on the admin host:
[root@genericadm.private.phx1 wp-content-git]# git log -1
commit 640fe38c927587ec0c1682fc5443989ac4d5f135
Merge: 3c62f3c b0361a7
Author: luke crouch <luke.crouch@gmail.com>
Date: Wed May 29 13:54:37 2013 -0700
Merge pull request #15 from cturra/master
adding chief deploy scripts to repo
| Reporter | ||
Comment 11•12 years ago
|
||
Hmm ... for MDN we sometimes deploy the same refspec in order to trigger changes like l10n updates or cache clears, etc. Can we do the same thing here, or do we need to make changes to trigger a push?
| Assignee | ||
Comment 12•12 years ago
|
||
works for me. i made a change to the chief setup this morning to allow you to push the same refspec :)
http://genericadm.private.phx1.mozilla.com/chief/hacks.stage/history
| Reporter | ||
Comment 13•12 years ago
|
||
Ran into the error again?
http://genericadm.private.phx1.mozilla.com/chief/hacks.stage/logs/640fe38c927587ec0c1682fc5443989ac4d5f135.1369941165
(Also, can we have this chief instance broadcast to #mdndev like the MDN chief instance does?)
| Assignee | ||
Comment 14•12 years ago
|
||
i believe i know what the difference between the environments is that is causing this. the stderr you're seeing is from the deploy script having nothing to commit to the local git repo - which is used for the deployment of code to the web heads. in developer, since locale data and other files are updated on every deploy, there are changed files and thus the local git commit is successful.
i have made a minor tweak to the update.py script, which simply writes the `date` at deploy time to a text file. this should result in a modified file and the local git commits to work as expected. pull request found at:
https://github.com/mozilla/mozhacks/pull/16
| Reporter | ||
Comment 15•12 years ago
|
||
merged.
| Assignee | ||
Comment 16•12 years ago
|
||
looks like it worked :)
http://genericadm.private.phx1.mozilla.com/chief/hacks.stage/history
i will look into the irc bot for you and report back when i have more.
| Reporter | ||
Comment 17•12 years ago
|
||
Yup, stage looks good. Let's do prod now too.
| Assignee | ||
Comment 18•12 years ago
|
||
(In reply to Luke Crouch [:groovecoder] from comment #17)
> Yup, stage looks good. Let's do prod now too.
as discussed on irc, this is now complete (and we had success on the first chief push).
http://genericadm.private.phx1.mozilla.com/chief/hacks.prod/history
* remaining action items from me: complete the irc bot setup for stage and prod chief deploys.
| Assignee | ||
Comment 19•12 years ago
|
||
chief irc bots setup for both stage and prod. below is a test run in stage. :)
11:29 -!- hacksstagepush [nodebot@moz-667ACEAC.private.phx1.mozilla.com] has joined #mdndev
11:31 -!- hacksprodpush [nodebot@moz-667ACEAC.private.phx1.mozilla.com] has joined #mdndev
11:32 < hacksstagepush> whoa, cturra is pushing hacks-stage 2cd8acb5dbaf3e98825f076305ef7b417c979edc
11:32 < hacksstagepush> watching http://genericadm.private.phx1.mozilla.com/chief/hacks.stage/logs/2cd8acb5dbaf3e98825f076305ef7b417c979edc.1370025121
11:32 < hacksstagepush> the push is now going to the webheads!! (2cd8acb5dbaf3e98825f076305ef7b417c979edc cturra)
11:32 < hacksstagepush> Finished: rsync_project (0.087s), commit_www (5.862s), checkin_changes (5.988s), update (5.988s)
11:32 < hacksstagepush> cturra pushed hacks-stage 2cd8acb5dbaf3e98825f076305ef7b417c979edc
11:32 < hacksstagepush> Finished: deploy_app (5.728s), deploy (5.728s)
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
Component: Server Operations: Web Operations → WebOps: Other
Product: mozilla.org → Infrastructure & Operations
Updated•6 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
•