[basket] Push new version to staging and prod

VERIFIED FIXED

Status

VERIFIED FIXED
6 years ago
5 years ago

People

(Reporter: pmac, Assigned: cturra)

Tracking

Details

(Whiteboard: [push interrupt])

Please push the version tagged "v2013.5" to stage and prod. This fixes a bug in prod, so hopefully we can get this out sooner than later, though it's not a critical bug.

Thanks!
(Assignee)

Comment 1

6 years ago
push to stage complete.

[root@genericadm.private.phx1 basket.allizom.org]# bash -x update v2013.5
+ CODE_DIR=/data/genericrhel6-stage/src/basket.allizom.org/basket
+ VENDOR_DIR=/data/genericrhel6-stage/src/basket.allizom.org/basket/vendor
+ LOCALE_DIR=/data/genericrhel6-stage/src/basket.allizom.org/basket/locale
+ techo 'Updating code.'
++ date -u '+%F %T'
+ STAMP='[2013-05-08 16:11:48]'
+ echo '[2013-05-08 16:11:48] Updating code.'
[2013-05-08 16:11:48] Updating code.
+ cd /data/genericrhel6-stage/src/basket.allizom.org/basket
+ git fetch origin -q
+ checkretval
+ retval=0
+ [[ 0 -gt 0 ]]
+ git checkout -f origin/master -q
+ git submodule sync -q
+ git submodule update --init -q
+ checkretval
+ retval=0
+ [[ 0 -gt 0 ]]
+ git log -3
+ tee /data/genericrhel6-stage/src/basket.allizom.org/basket/revision_info.txt
commit b1be99f038a107f3579d6535241f58b6496ef4c0
Merge: 87a700f 5a410df
Author: Paul McLanahan <pmac@mozilla.com>
Date:   Wed May 8 09:07:11 2013 -0700

    Merge pull request #39 from dpoirier/bug-827575-dont-change-newsletter-timestamp-unnecessarily

    Bug 827575 Don't change newsletter dates

commit 87a700f2e9d6e1491286b46ab6211ac2f58cf1ad
Merge: c44d5bd 572369b
Author: Paul McLanahan <pmac@mozilla.com>
Date:   Wed May 8 08:58:37 2013 -0700

    Merge pull request #40 from dpoirier/never-cache

commit 572369bdaf1eba71d164209bcb2c1b8ca9bc02b4
Author: Dan Poirier <dpoirier@caktusgroup.com>
Date:   Wed May 8 11:40:19 2013 -0400

    Add cache settings to GETable views
+ techo 'Updating vendor.'
++ date -u '+%F %T'
+ STAMP='[2013-05-08 16:11:49]'
+ echo '[2013-05-08 16:11:49] Updating vendor.'
[2013-05-08 16:11:49] Updating vendor.
+ cd /data/genericrhel6-stage/src/basket.allizom.org/basket/vendor
+ git submodule sync -q
+ git submodule update --init -q
+ checkretval
+ retval=0
+ [[ 0 -gt 0 ]]
+ techo 'Sync & migrate database.'
++ date -u '+%F %T'
+ STAMP='[2013-05-08 16:11:51]'
+ echo '[2013-05-08 16:11:51] Sync & migrate database.'
[2013-05-08 16:11:51] Sync & migrate database.
+ cd /data/genericrhel6-stage/src/basket.allizom.org/basket
+ python manage.py syncdb --noinput
Syncing...
Creating tables ...
Installing custom SQL ...
Installing indexes ...
No fixtures found.

Synced:
 > basketauth
 > emailer
 > subscriptions
 > vars
 > piston
 > south
 > raven.contrib.django.raven_compat
 > django.contrib.auth
 > django.contrib.contenttypes
 > django.contrib.sessions
 > django.contrib.sites
 > django.contrib.messages
 > django.contrib.admin

Not synced (use migrations):
 - news
 - djcelery
(use ./manage.py migrate to migrate these)
+ checkretval
+ retval=0
+ [[ 0 -gt 0 ]]
+ python manage.py migrate --noinput
Running migrations for news:
- Nothing to migrate.
 - Loading initial data for news.
No fixtures found.
Running migrations for djcelery:
- Nothing to migrate.
 - Loading initial data for djcelery.
No fixtures found.
+ checkretval
+ retval=0
+ [[ 0 -gt 0 ]]
+ techo 'Clean up old deploy.'
++ date -u '+%F %T'
+ STAMP='[2013-05-08 16:11:58]'
+ echo '[2013-05-08 16:11:58] Clean up old deploy.'
[2013-05-08 16:11:58] Clean up old deploy.
+ cd /data/genericrhel6-stage/src/basket.allizom.org/basket
+ find . -type f -name .gitignore -or -name '*.pyc' -delete
+ checkretval
+ retval=0
+ [[ 0 -gt 0 ]]
+ cd /data/genericrhel6-stage/src/basket.allizom.org/basket
+ touch wsgi/basket.wsgi
+ update_celery
+ techo 'Update celery.'
++ date -u '+%F %T'
+ STAMP='[2013-05-08 16:12:00]'
+ echo '[2013-05-08 16:12:00] Update celery.'
[2013-05-08 16:12:00] Update celery.
+ ISSUE_MULTI='issue-multi-command -i /root/.ssh/id_rsa genericrhel6-celery-stage'
+ echo 'sh /data/bin/update-www.sh'
+ issue-multi-command -i /root/.ssh/id_rsa genericrhel6-celery-stage
[2013-05-08 09:12:00] [generic-celery1.stage.seamicro.phx1.mozilla.com] running: sh /data/bin/update-www.sh
[2013-05-08 09:12:51] [generic-celery1.stage.seamicro.phx1.mozilla.com] finished: sh /data/bin/update-www.sh (50.748s)
[generic-celery1.stage.seamicro.phx1.mozilla.com] out: Not removing blog.allizom.org/wp-content/plugins/simple-embed-code/
[generic-celery1.stage.seamicro.phx1.mozilla.com] out: Not removing ship-it.allizom.org/release-kickoff/logs/
+ echo '/etc/init.d/celeryd-basket-stage restart'
+ issue-multi-command -i /root/.ssh/id_rsa genericrhel6-celery-stage
[2013-05-08 09:12:51] [generic-celery1.stage.seamicro.phx1.mozilla.com] running: /etc/init.d/celeryd-basket-stage restart
[2013-05-08 09:13:08] [generic-celery1.stage.seamicro.phx1.mozilla.com] finished: /etc/init.d/celeryd-basket-stage restart (17.384s)
[generic-celery1.stage.seamicro.phx1.mozilla.com] out: Restarting celery-basket-stage: celery-basket-stage: stopped
[generic-celery1.stage.seamicro.phx1.mozilla.com] out: celery-basket-stage: started
[generic-celery1.stage.seamicro.phx1.mozilla.com] out: [  OK  ]
+ techo Deploying.
++ date -u '+%F %T'
+ STAMP='[2013-05-08 16:13:08]'
+ echo '[2013-05-08 16:13:08] Deploying.'
[2013-05-08 16:13:08] Deploying.
+ '[' xterm == dumb ']'
+ /data/genericrhel6-stage/deploy basket.allizom.org
[2013-05-08 09:13:08] Running rsync_project
[2013-05-08 09:13:08] [localhost] running: /usr/bin/rsync -aq --include '.gitkeep' --exclude '.git*' --exclude '.hg*' --exclude '.svn*' --exclude 'CVS' --exclude '.bzr*' --delete /data/genericrhel6-stage/src/basket.allizom.org/ /data/genericrhel6-stage/www/basket.allizom.org/
[2013-05-08 09:13:09] [localhost] finished: /usr/bin/rsync -aq --include '.gitkeep' --exclude '.git*' --exclude '.hg*' --exclude '.svn*' --exclude 'CVS' --exclude '.bzr*' --delete /data/genericrhel6-stage/src/basket.allizom.org/ /data/genericrhel6-stage/www/basket.allizom.org/ (0.251s)
[2013-05-08 09:13:09] Finished rsync_project (0.251s)
[2013-05-08 09:13:09] Running commit_www
[2013-05-08 09:13:09] [localhost] running: cd /data/genericrhel6-stage/www && /usr/bin/git add .; /usr/bin/git commit -a -m 'deploy ['basket.allizom.org']'
[2013-05-08 09:13:13] [localhost] finished: cd /data/genericrhel6-stage/www && /usr/bin/git add .; /usr/bin/git commit -a -m 'deploy ['basket.allizom.org']' (3.989s)
[localhost] out: [master 8c44de1] deploy [basket.allizom.org]
[localhost] out: 4 files changed, 248 insertions(+), 61 deletions(-)
[localhost] out: rewrite basket.allizom.org/basket/revision_info.txt (87%)
[2013-05-08 09:13:13] Finished commit_www (3.990s)
[2013-05-08 09:13:13] Running push_www
[2013-05-08 09:13:13] [generic1.stage.webapp.phx1.mozilla.com] running: /data/bin/update-www.sh basket.allizom.org
[2013-05-08 09:13:13] [generic2.stage.webapp.phx1.mozilla.com] running: /data/bin/update-www.sh basket.allizom.org
[2013-05-08 09:13:18] [generic2.stage.webapp.phx1.mozilla.com] finished: /data/bin/update-www.sh basket.allizom.org (5.675s)
[generic2.stage.webapp.phx1.mozilla.com] out: Not removing ship-it.allizom.org/release-kickoff/logs/
[2013-05-08 09:13:18] [generic1.stage.webapp.phx1.mozilla.com] finished: /data/bin/update-www.sh basket.allizom.org (5.744s)
[generic1.stage.webapp.phx1.mozilla.com] out: Not removing air.allizom.org/air/vendor-local/lib/python/PIL/
[generic1.stage.webapp.phx1.mozilla.com] out: Not removing ship-it.allizom.org/release-kickoff/logs/
[2013-05-08 09:13:18] Finished push_www (5.744s)
+ issue-multi-command genericrhel6-stage touch /data/www/basket.allizom.org/basket/wsgi/basket.wsgi
[2013-05-08 09:13:18] [generic1.stage.webapp.phx1.mozilla.com] running: touch /data/www/basket.allizom.org/basket/wsgi/basket.wsgi
[2013-05-08 09:13:18] [generic2.stage.webapp.phx1.mozilla.com] running: touch /data/www/basket.allizom.org/basket/wsgi/basket.wsgi
[2013-05-08 09:13:19] [generic1.stage.webapp.phx1.mozilla.com] finished: touch /data/www/basket.allizom.org/basket/wsgi/basket.wsgi (0.132s)
[2013-05-08 09:13:19] [generic2.stage.webapp.phx1.mozilla.com] finished: touch /data/www/basket.allizom.org/basket/wsgi/basket.wsgi (0.131s)
Assignee: server-ops-webops → cturra
Whiteboard: [push interrupt]
Looks good. Go for prod.
(Assignee)

Comment 3

6 years ago
push to prod complete :)

[root@genericadm.private.phx1 basket.mozilla.org]# bash -x update v2013.5
+ CODE_DIR=/data/genericrhel6/src/basket.mozilla.org/basket
+ VENDOR_DIR=/data/genericrhel6/src/basket.mozilla.org/basket/vendor
+ LOCALE_DIR=/data/genericrhel6/src/basket.mozilla.org/basket/locale
+ techo 'Updating code.'
++ date -u '+%F %T'
+ STAMP='[2013-05-08 17:04:50]'
+ echo '[2013-05-08 17:04:50] Updating code.'
[2013-05-08 17:04:50] Updating code.
+ cd /data/genericrhel6/src/basket.mozilla.org/basket
+ git fetch origin -q
+ checkretval
+ retval=0
+ [[ 0 -gt 0 ]]
+ git checkout -f origin/master -q
+ git submodule sync -q
+ git submodule update --init -q
+ checkretval
+ retval=0
+ [[ 0 -gt 0 ]]
+ git log -3
+ tee /data/genericrhel6/src/basket.mozilla.org/basket/revision_info.txt
commit b1be99f038a107f3579d6535241f58b6496ef4c0
Merge: 87a700f 5a410df
Author: Paul McLanahan <pmac@mozilla.com>
Date:   Wed May 8 09:07:11 2013 -0700

    Merge pull request #39 from dpoirier/bug-827575-dont-change-newsletter-timestamp-unnecessarily

    Bug 827575 Don't change newsletter dates

commit 87a700f2e9d6e1491286b46ab6211ac2f58cf1ad
Merge: c44d5bd 572369b
Author: Paul McLanahan <pmac@mozilla.com>
Date:   Wed May 8 08:58:37 2013 -0700

    Merge pull request #40 from dpoirier/never-cache

commit 572369bdaf1eba71d164209bcb2c1b8ca9bc02b4
Author: Dan Poirier <dpoirier@caktusgroup.com>
Date:   Wed May 8 11:40:19 2013 -0400

    Add cache settings to GETable views
+ techo 'Updating vendor.'
++ date -u '+%F %T'
+ STAMP='[2013-05-08 17:04:52]'
+ echo '[2013-05-08 17:04:52] Updating vendor.'
[2013-05-08 17:04:52] Updating vendor.
+ cd /data/genericrhel6/src/basket.mozilla.org/basket/vendor
+ git submodule sync -q
+ git submodule update --init -q
+ checkretval
+ retval=0
+ [[ 0 -gt 0 ]]
+ techo 'Sync & migrate database.'
++ date -u '+%F %T'
+ STAMP='[2013-05-08 17:04:53]'
+ echo '[2013-05-08 17:04:53] Sync & migrate database.'
[2013-05-08 17:04:53] Sync & migrate database.
+ cd /data/genericrhel6/src/basket.mozilla.org/basket
+ python manage.py syncdb --noinput
Syncing...
Creating tables ...
Installing custom SQL ...
Installing indexes ...
No fixtures found.

Synced:
 > basketauth
 > emailer
 > subscriptions
 > vars
 > piston
 > south
 > raven.contrib.django.raven_compat
 > django.contrib.auth
 > django.contrib.contenttypes
 > django.contrib.sessions
 > django.contrib.sites
 > django.contrib.messages
 > django.contrib.admin

Not synced (use migrations):
 - news
 - djcelery
(use ./manage.py migrate to migrate these)
+ checkretval
+ retval=0
+ [[ 0 -gt 0 ]]
+ python manage.py migrate --noinput
Running migrations for news:
- Nothing to migrate.
 - Loading initial data for news.
No fixtures found.
Running migrations for djcelery:
- Nothing to migrate.
 - Loading initial data for djcelery.
No fixtures found.
+ checkretval
+ retval=0
+ [[ 0 -gt 0 ]]
+ techo 'Clean up old deploy.'
++ date -u '+%F %T'
+ STAMP='[2013-05-08 17:05:00]'
+ echo '[2013-05-08 17:05:00] Clean up old deploy.'
[2013-05-08 17:05:00] Clean up old deploy.
+ cd /data/genericrhel6/src/basket.mozilla.org/basket
+ find . -type f -name .gitignore -or -name '*.pyc' -delete
+ checkretval
+ retval=0
+ [[ 0 -gt 0 ]]
+ cd /data/genericrhel6/src/basket.mozilla.org/basket
+ touch wsgi/basket.wsgi
+ update_celery
+ techo 'Update celery.'
++ date -u '+%F %T'
+ STAMP='[2013-05-08 17:05:11]'
+ echo '[2013-05-08 17:05:11] Update celery.'
[2013-05-08 17:05:11] Update celery.
+ ISSUE_MULTI='issue-multi-command -i /root/.ssh/id_rsa genericrhel6-celery'
+ issue-multi-command -i /root/.ssh/id_rsa genericrhel6-celery
+ echo 'sh /data/bin/update-www.sh'
[2013-05-08 10:05:11] [generic-celery1.webapp.phx1.mozilla.com] running: sh /data/bin/update-www.sh
[2013-05-08 10:05:11] [generic-celery2.webapp.phx1.mozilla.com] running: sh /data/bin/update-www.sh
[2013-05-08 10:05:11] [generic-celery3.webapp.phx1.mozilla.com] running: sh /data/bin/update-www.sh
[2013-05-08 10:05:16] [generic-celery2.webapp.phx1.mozilla.com] finished: sh /data/bin/update-www.sh (4.821s)
[generic-celery2.webapp.phx1.mozilla.com] out: Not removing ship-it.mozilla.org/release-kickoff/logs/
[2013-05-08 10:05:17] [generic-celery1.webapp.phx1.mozilla.com] finished: sh /data/bin/update-www.sh (5.544s)
[generic-celery1.webapp.phx1.mozilla.com] out: Not removing ship-it.mozilla.org/release-kickoff/logs/
[2013-05-08 10:05:17] [generic-celery3.webapp.phx1.mozilla.com] finished: sh /data/bin/update-www.sh (5.650s)
[generic-celery3.webapp.phx1.mozilla.com] out: Not removing ship-it.mozilla.org/release-kickoff/logs/
+ echo '/etc/init.d/celery-basket restart'
+ issue-multi-command -i /root/.ssh/id_rsa genericrhel6-celery
[2013-05-08 10:05:17] [generic-celery1.webapp.phx1.mozilla.com] running: /etc/init.d/celery-basket restart
[2013-05-08 10:05:17] [generic-celery2.webapp.phx1.mozilla.com] running: /etc/init.d/celery-basket restart
[2013-05-08 10:05:17] [generic-celery3.webapp.phx1.mozilla.com] running: /etc/init.d/celery-basket restart
[2013-05-08 10:05:29] [generic-celery3.webapp.phx1.mozilla.com] finished: /etc/init.d/celery-basket restart (11.822s)
[generic-celery3.webapp.phx1.mozilla.com] out: Restarting celery-basket: celery-basket: stopped
[generic-celery3.webapp.phx1.mozilla.com] out: celery-basket: started
[generic-celery3.webapp.phx1.mozilla.com] out: [  OK  ]
[2013-05-08 10:05:29] [generic-celery1.webapp.phx1.mozilla.com] finished: /etc/init.d/celery-basket restart (11.897s)
[generic-celery1.webapp.phx1.mozilla.com] out: Restarting celery-basket: celery-basket: stopped
[generic-celery1.webapp.phx1.mozilla.com] out: celery-basket: started
[generic-celery1.webapp.phx1.mozilla.com] out: [  OK  ]
[2013-05-08 10:05:33] [generic-celery2.webapp.phx1.mozilla.com] finished: /etc/init.d/celery-basket restart (16.050s)
[generic-celery2.webapp.phx1.mozilla.com] out: Restarting celery-basket: celery-basket: stopped
[generic-celery2.webapp.phx1.mozilla.com] out: celery-basket: started
[generic-celery2.webapp.phx1.mozilla.com] out: [  OK  ]
+ techo Deploying.
++ date -u '+%F %T'
+ STAMP='[2013-05-08 17:05:33]'
+ echo '[2013-05-08 17:05:33] Deploying.'
[2013-05-08 17:05:33] Deploying.
+ '[' xterm == dumb ']'
+ /data/genericrhel6/deploy basket.mozilla.org
[2013-05-08 10:05:33] Running rsync_project
[2013-05-08 10:05:33] [localhost] running: /usr/bin/rsync -aq --include '.gitkeep' --exclude '.git*' --exclude '.hg*' --exclude '.svn*' --exclude 'CVS' --exclude '.bzr*' --delete /data/genericrhel6/src/basket.mozilla.org/ /data/genericrhel6/www/basket.mozilla.org/
[2013-05-08 10:05:36] [localhost] finished: /usr/bin/rsync -aq --include '.gitkeep' --exclude '.git*' --exclude '.hg*' --exclude '.svn*' --exclude 'CVS' --exclude '.bzr*' --delete /data/genericrhel6/src/basket.mozilla.org/ /data/genericrhel6/www/basket.mozilla.org/ (3.213s)
[2013-05-08 10:05:36] Finished rsync_project (3.213s)
[2013-05-08 10:05:36] Running commit_www
[2013-05-08 10:05:36] [localhost] running: cd /data/genericrhel6/www && /usr/bin/git add .; /usr/bin/git commit -a -m 'deploy ['basket.mozilla.org']'
[2013-05-08 10:05:41] [localhost] finished: cd /data/genericrhel6/www && /usr/bin/git add .; /usr/bin/git commit -a -m 'deploy ['basket.mozilla.org']' (5.051s)
[localhost] out: [master 96b8206] deploy [basket.mozilla.org]
[localhost] out: 4 files changed, 248 insertions(+), 61 deletions(-)
[localhost] out: rewrite basket.mozilla.org/basket/revision_info.txt (87%)
[2013-05-08 10:05:41] Finished commit_www (5.051s)
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
Working beautifully. Thanks again :cturra!
Status: RESOLVED → VERIFIED
Component: Server Operations: Web Operations → WebOps: Other
Product: mozilla.org → Infrastructure & Operations
You need to log in before you can comment on or make changes to this bug.