Closed Bug 876844 Opened 12 years ago Closed 12 years ago

[hacksmo] set up chief

Categories

(Infrastructure & Operations Graveyard :: WebOps: Other, task)

task
Not set
normal

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.
note: we also want to set up chief for hacks.allizom.org
Blocks: 872180
Blocks: 864724
Not bumping to 'major' just yet, but this is blocking another pull we need to merge and push.
Assignee: server-ops-webops → bburton
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
The push can wait, I'd like to use it to test the whole chief setup actually. Thanks.
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
looks good to me - merged. when can we test on hacks.allizom.org?
thnx for merging this. give me a little bit to complete the setup and testing.
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.
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
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?
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
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?)
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
merged.
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.
Yup, stage looks good. Let's do prod now too.
(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.
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
Component: Server Operations: Web Operations → WebOps: Other
Product: mozilla.org → Infrastructure & Operations
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in before you can comment on or make changes to this bug.