Closed Bug 847613 Opened 11 years ago Closed 11 years ago

[AirMozilla] push -stage and -prod (channels v 2)

Categories

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

x86
macOS
task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: peterbe, Assigned: cturra)

Details

(Whiteboard: [triaged 20130304][push interrupt])

Please push stage and prod. 

If the push works on stage, we don't need to manually test it on stage. 

Also, may I gently poke in the direction of https://bugzilla.mozilla.org/show_bug.cgi?id=816739
:solarce will be having a look at bug 816739 soon. this quarter he's working on getting chief in place for all sites that push often.

push to stage complete.

[root@genericadm.private.phx1 air.allizom.org]# bash -x update
+ CODE_DIR=/data/genericrhel6-stage/src/air.allizom.org/air
+ MEDIA_DIR=/data/genericrhel6-stage/src/air.allizom.org/air/media
++ date +%s%N
++ md5sum
++ cut -d ' ' -f 1
+ LOGFILE=/tmp/ce09c08dec79c6a88695a341a1af8d60
+ PYTHON='/usr/bin/env python'
++ date +%s
+ START=1362435967
+ '[' 0 -ne 0 ']'
+ control
+ tee /tmp/ce09c08dec79c6a88695a341a1af8d60
+ techo Start.
++ date -u '+%F %T'
+ STAMP='[2013-03-04 22:26:07]'
+ echo '[2013-03-04 22:26:07] Start.'
[2013-03-04 22:26:07] Start.
+ update_code
+ techo 'Updating code.'
++ date -u '+%F %T'
+ STAMP='[2013-03-04 22:26:07]'
+ echo '[2013-03-04 22:26:07] Updating code.'
[2013-03-04 22:26:07] Updating code.
+ cd /data/genericrhel6-stage/src/air.allizom.org/air
+ git checkout master
Already on 'master'
M	vendor
+ checkretval
+ retval=0
+ [[ 0 -gt 0 ]]
+ git pull -f
From https://github.com/mozilla/airmozilla
   28c606b..b775341  master     -> origin/master
Updating 28c606b..b775341
Fast-forward
 airmozilla/base/templates/base.html              | 12 ++++++++++++
 airmozilla/main/context_processors.py            | 10 ++++++++++
 airmozilla/main/static/main/css/main.css         |  4 ++++
 airmozilla/main/templates/main/home.html         |  8 ++++----
 airmozilla/main/tests/test_views.py              |  8 ++++++++
 airmozilla/manage/templates/manage/channels.html |  2 +-
 airmozilla/settings/base.py                      |  3 ++-
 7 files changed, 41 insertions(+), 6 deletions(-)
+ checkretval
+ retval=0
+ [[ 0 -gt 0 ]]
+ techo 'Updating submodules.'
++ date -u '+%F %T'
+ STAMP='[2013-03-04 22:26:15]'
+ echo '[2013-03-04 22:26:15] Updating submodules.'
[2013-03-04 22:26:15] Updating submodules.
+ git submodule update --init --recursive
+ checkretval
+ retval=0
+ [[ 0 -gt 0 ]]
+ git rev-parse HEAD
+ clean_src
+ techo 'Cleaning gitignore and pyc files.'
++ date -u '+%F %T'
+ STAMP='[2013-03-04 22:26:15]'
+ echo '[2013-03-04 22:26:15] Cleaning gitignore and pyc files.'
[2013-03-04 22:26:15] Cleaning gitignore and pyc files.
+ cd /data/genericrhel6-stage/src/air.allizom.org/air
+ find . -type f -name .gitignore -or -name '*.pyc' -delete
+ checkretval
+ retval=0
+ [[ 0 -gt 0 ]]
+ run_migration
+ echo -e 'Running schema/data migrations...'
Running schema/data migrations...
+ /usr/bin/env python /data/genericrhel6-stage/src/air.allizom.org/air/manage.py syncdb
Syncing...
Creating tables ...
Installing custom SQL ...
Installing indexes ...
Installed 0 object(s) from 0 fixture(s)

Synced:
 > funfactory
 > compressor
 > django.contrib.auth
 > django.contrib.contenttypes
 > django.contrib.sessions
 > django.contrib.staticfiles
 > commonware.response.cookies
 > session_csrf
 > airmozilla.base
 > airmozilla.auth
 > bootstrapform
 > sorl.thumbnail
 > south
 > django.contrib.messages
 > django.contrib.sites
 > django.contrib.flatpages

Not synced (use migrations):
 - djcelery
 - airmozilla.main
(use ./manage.py migrate to migrate these)
+ /usr/bin/env python /data/genericrhel6-stage/src/air.allizom.org/air/manage.py migrate airmozilla.main
Running migrations for main:
- Nothing to migrate.
 - Loading initial data for main.
Installed 0 object(s) from 0 fixture(s)
Copying '/data/genericrhel6-stage/src/air.allizom.org/air/airmozilla/main/static/main/css/main.css'

1 static file copied, 59 unmodified.
+ deploy
+ techo 'Deploying code.'
++ date -u '+%F %T'
+ STAMP='[2013-03-04 22:26:23]'
+ echo '[2013-03-04 22:26:23] Deploying code.'
[2013-03-04 22:26:23] Deploying code.
+ OPT=
+ '[' xterm == dumb ']'
+ /data/genericrhel6-stage/deploy air.allizom.org
[2013-03-04 14:26:23] Running rsync_project
[2013-03-04 14:26:23] [localhost] running: /usr/bin/rsync -aq --include '.gitkeep' --exclude '.git*' --exclude '.hg*' --exclude '.svn*' --exclude 'CVS' --exclude '.bzr*' --delete /data/genericrhel6-stage/src/air.allizom.org/ /data/genericrhel6-stage/www/air.allizom.org/
[2013-03-04 14:26:25] [localhost] finished: /usr/bin/rsync -aq --include '.gitkeep' --exclude '.git*' --exclude '.hg*' --exclude '.svn*' --exclude 'CVS' --exclude '.bzr*' --delete /data/genericrhel6-stage/src/air.allizom.org/ /data/genericrhel6-stage/www/air.allizom.org/ (1.806s)
[2013-03-04 14:26:25] Finished rsync_project (1.807s)
[2013-03-04 14:26:25] Running commit_www
[2013-03-04 14:26:25] [localhost] running: cd /data/genericrhel6-stage/www && /usr/bin/git add .; /usr/bin/git commit -a -m 'deploy ['air.allizom.org']'
[2013-03-04 14:26:55] [localhost] finished: cd /data/genericrhel6-stage/www && /usr/bin/git add .; /usr/bin/git commit -a -m 'deploy ['air.allizom.org']' (30.427s)
[localhost] out: [master e5bd0b6] deploy [air.allizom.org]
[localhost] out: 7 files changed, 41 insertions(+), 6 deletions(-)
[2013-03-04 14:26:55] Finished commit_www (30.428s)
Assignee: server-ops-webops → cturra
Whiteboard: [triaged 20130304][push interrupt]
Go ahead and do prod too please.
push to prod complete.

[root@genericadm.private.phx1 air.mozilla.org]# bash -x update
+ CODE_DIR=/data/genericrhel6/src/air.mozilla.org/air
+ MEDIA_DIR=/data/genericrhel6/src/air.mozilla.org/air/media
++ date +%s%N
++ cut -d ' ' -f 1
++ md5sum
+ LOGFILE=/tmp/7f885ba8fa414e208c70dec270a9af9a
+ PYTHON='/usr/bin/env python'
++ date +%s
+ START=1362439577
+ '[' 0 -ne 0 ']'
+ control
+ tee /tmp/7f885ba8fa414e208c70dec270a9af9a
+ techo Start.
++ date -u '+%F %T'
+ STAMP='[2013-03-04 23:26:17]'
+ echo '[2013-03-04 23:26:17] Start.'
[2013-03-04 23:26:17] Start.
+ update_code
+ techo 'Updating code.'
++ date -u '+%F %T'
+ STAMP='[2013-03-04 23:26:17]'
+ echo '[2013-03-04 23:26:17] Updating code.'
[2013-03-04 23:26:17] Updating code.
+ cd /data/genericrhel6/src/air.mozilla.org/air
+ git fetch origin
From https://github.com/mozilla/airmozilla
   aec0e8e..b775341  master     -> origin/master
+ checkretval
+ retval=0
+ [[ 0 -gt 0 ]]
+ git checkout -f origin/master
Previous HEAD position was aec0e8e... bug 844909 - google-analytics
HEAD is now at b775341... channel fixes
+ checkretval
+ retval=0
+ [[ 0 -gt 0 ]]
+ techo 'Updating submodules.'
++ date -u '+%F %T'
+ STAMP='[2013-03-04 23:26:20]'
+ echo '[2013-03-04 23:26:20] Updating submodules.'
[2013-03-04 23:26:20] Updating submodules.
+ git submodule update --init --recursive
+ checkretval
+ retval=0
+ [[ 0 -gt 0 ]]
+ git rev-parse HEAD
+ clean_src
+ techo 'Cleaning gitignore and pyc files.'
++ date -u '+%F %T'
+ STAMP='[2013-03-04 23:26:25]'
+ echo '[2013-03-04 23:26:25] Cleaning gitignore and pyc files.'
[2013-03-04 23:26:25] Cleaning gitignore and pyc files.
+ cd /data/genericrhel6/src/air.mozilla.org/air
+ find . -type f -name .gitignore -or -name '*.pyc' -delete
+ checkretval
+ retval=0
+ [[ 0 -gt 0 ]]
+ run_migration
+ echo -e 'Running schema/data migrations...'
Running schema/data migrations...
+ /usr/bin/env python /data/genericrhel6/src/air.mozilla.org/air/manage.py syncdb
Syncing...
Creating tables ...
Installing custom SQL ...
Installing indexes ...
Installed 0 object(s) from 0 fixture(s)

Synced:
 > funfactory
 > compressor
 > django.contrib.auth
 > django.contrib.contenttypes
 > django.contrib.sessions
 > django.contrib.staticfiles
 > commonware.response.cookies
 > session_csrf
 > airmozilla.base
 > airmozilla.auth
 > bootstrapform
 > sorl.thumbnail
 > south
 > django.contrib.messages
 > django.contrib.sites
 > django.contrib.flatpages

Not synced (use migrations):
 - djcelery
 - airmozilla.main
(use ./manage.py migrate to migrate these)
Running migrations for main:
- Nothing to migrate.
 - Loading initial data for main.
Installed 0 object(s) from 0 fixture(s)
+ /usr/bin/env python /data/genericrhel6/src/air.mozilla.org/air/manage.py collectstatic --noinput
Copying '/data/genericrhel6/src/air.mozilla.org/air/airmozilla/main/static/main/css/main.css'

1 static file copied, 59 unmodified.
+ deploy
+ techo 'Deploying code.'
++ date -u '+%F %T'
+ STAMP='[2013-03-04 23:26:31]'
+ echo '[2013-03-04 23:26:31] Deploying code.'
[2013-03-04 23:26:31] Deploying code.
+ OPT=
+ '[' xterm == dumb ']'
+ /data/genericrhel6/deploy air.mozilla.org
[2013-03-04 15:26:31] Running rsync_project
[2013-03-04 15:26:31] [localhost] running: /usr/bin/rsync -aq --include '.gitkeep' --exclude '.git*' --exclude '.hg*' --exclude '.svn*' --exclude 'CVS' --exclude '.bzr*' --delete /data/genericrhel6/src/air.mozilla.org/ /data/genericrhel6/www/air.mozilla.org/
[2013-03-04 15:26:34] [localhost] finished: /usr/bin/rsync -aq --include '.gitkeep' --exclude '.git*' --exclude '.hg*' --exclude '.svn*' --exclude 'CVS' --exclude '.bzr*' --delete /data/genericrhel6/src/air.mozilla.org/ /data/genericrhel6/www/air.mozilla.org/ (2.197s)
[2013-03-04 15:26:34] Finished rsync_project (2.197s)
[2013-03-04 15:26:34] Running commit_www
[2013-03-04 15:26:34] [localhost] running: cd /data/genericrhel6/www && /usr/bin/git add .; /usr/bin/git commit -a -m 'deploy ['air.mozilla.org']'
[2013-03-04 15:27:10] [localhost] finished: cd /data/genericrhel6/www && /usr/bin/git add .; /usr/bin/git commit -a -m 'deploy ['air.mozilla.org']' (36.193s)
[localhost] out: [master 4b087c2] deploy [air.mozilla.org]
[localhost] out: 4 files changed, 17 insertions(+), 5 deletions(-)
[2013-03-04 15:27:10] Finished commit_www (36.193s)
Status: NEW → RESOLVED
Closed: 11 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.