[basket] Push new version to staging and prod

VERIFIED FIXED

Status

Infrastructure & Operations Graveyard
WebOps: Product Delivery
VERIFIED FIXED
5 years ago
2 years ago

People

(Reporter: pmac, Assigned: cturra)

Tracking

Details

Please push the v2013.12 tag to stage, then we'll test, then to prod.

Thanks!
(Assignee)

Comment 1

5 years ago
push to stage complete. let me know when you're happy with this going to prod.

[root@genericadm.private.phx1 basket.allizom.org]# nano update
[root@genericadm.private.phx1 basket.allizom.org]# bash -x update
+ 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-09-18 21:40:22]'
+ echo '[2013-09-18 21:40:22] Updating code.'
[2013-09-18 21:40:22] Updating code.
+ cd /data/genericrhel6-stage/src/basket.allizom.org/basket
+ git fetch origin -q
+ checkretval
+ retval=0
+ [[ 0 -gt 0 ]]
+ git checkout -f v2013.12 -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 01125e480a67ffb735ce0770d890087ad7231c29
Author: Dan Poirier <dpoirier@caktusgroup.com>
Date:   Wed Sep 11 09:52:56 2013 -0400

    Bug 875369 - Retry failed tasks from the admin

commit 5326b410a6f353ec696ef960c5818e674ab5fb04
Author: Paul McLanahan <pmac@mozilla.com>
Date:   Mon Sep 16 09:36:11 2013 -0400

    Bug 916555: Update basket-lib.

commit 464107ee81f24ec5f073cc13667f92e87a911556
Merge: 3dc9684 9267c38
Author: Paul McLanahan <pmac@mozilla.com>
Date:   Thu Sep 12 07:15:47 2013 -0700

    Merge pull request #83 from dpoirier/bug-907330-standard-confirmation-messages

    Bug 907330 - confirm notice handle short form of language
+ techo 'Updating vendor.'
++ date -u '+%F %T'
+ STAMP='[2013-09-18 21:40:27]'
+ echo '[2013-09-18 21:40:27] Updating vendor.'
[2013-09-18 21:40:27] 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 'Collect static assets.'
++ date -u '+%F %T'
+ STAMP='[2013-09-18 21:40:29]'
+ echo '[2013-09-18 21:40:29] Collect static assets.'
[2013-09-18 21:40:29] Collect static assets.
+ cd /data/genericrhel6-stage/src/basket.allizom.org/basket
+ python manage.py collectstatic --noinput -v 0
+ checkretval
+ retval=0
+ [[ 0 -gt 0 ]]
+ techo 'Sync & migrate database.'
++ date -u '+%F %T'
+ STAMP='[2013-09-18 21:40:30]'
+ echo '[2013-09-18 21:40:30] Sync & migrate database.'
[2013-09-18 21:40:30] 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 ...
Installed 0 object(s) from 0 fixture(s)

Synced:
 > south
 > raven.contrib.django.raven_compat
 > django.contrib.auth
 > django.contrib.contenttypes
 > django.contrib.sessions
 > django.contrib.sites
 > django.contrib.messages
 > django.contrib.admin
 > django.contrib.staticfiles

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:
 - Migrating forwards to 0007_auto__add_failedtask.
 > news:0007_auto__add_failedtask
 - Loading initial data for news.
Installed 0 object(s) from 0 fixture(s)
Running migrations for djcelery:
- Nothing to migrate.
 - Loading initial data for djcelery.
Installed 0 object(s) from 0 fixture(s)
+ checkretval
+ retval=0
+ [[ 0 -gt 0 ]]
+ techo 'Clean up old deploy.'
++ date -u '+%F %T'
+ STAMP='[2013-09-18 21:40:36]'
+ echo '[2013-09-18 21:40:36] Clean up old deploy.'
[2013-09-18 21:40:36] 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
+ techo Deploying.
++ date -u '+%F %T'
+ STAMP='[2013-09-18 21:40:37]'
+ echo '[2013-09-18 21:40:37] Deploying.'
[2013-09-18 21:40:37] Deploying.
+ '[' xterm == dumb ']'
+ /data/genericrhel6-stage/deploy basket.allizom.org
Assignee: server-ops-webops → cturra
Flags: needinfo?(pmac)
Flags: needinfo?(pmac)
We're ready to roll out all the new stuff, whenever we get tested. Let's do that. Stage is ready.
Flags: needinfo?(mozbugs.retornam)
Flags: needinfo?(jdavis)

Comment 3

5 years ago
Cturra:ideally we'll work on testing this today/Friday and will push to prod early next week. No rush/worries to get this live today/this week.  Thanks!
Flags: needinfo?(jdavis)
(Assignee)

Comment 4

5 years ago
works for me. i will stand by waiting the all clear. feel free to hit me up on irc when this is ready.
Flags: needinfo?(mozbugs.retornam)
We're ready to go. :cturra: Please ping me when you're ready and we'll test as soon as it's out.
(Assignee)

Comment 6

5 years ago
i discussed on irc, push to prod now complete o/

[root@genericadm.private.phx1 basket.mozilla.org]# bash -x update
+ 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-09-25 17:03:07]'
+ echo '[2013-09-25 17:03:07] Updating code.'
[2013-09-25 17:03:07] Updating code.
+ cd /data/genericrhel6/src/basket.mozilla.org/basket
+ git fetch origin -q
+ checkretval
+ retval=0
+ [[ 0 -gt 0 ]]
+ git checkout -f v2013.12 -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 01125e480a67ffb735ce0770d890087ad7231c29
Author: Dan Poirier <dpoirier@caktusgroup.com>
Date:   Wed Sep 11 09:52:56 2013 -0400

    Bug 875369 - Retry failed tasks from the admin

commit 5326b410a6f353ec696ef960c5818e674ab5fb04
Author: Paul McLanahan <pmac@mozilla.com>
Date:   Mon Sep 16 09:36:11 2013 -0400

    Bug 916555: Update basket-lib.

commit 464107ee81f24ec5f073cc13667f92e87a911556
Merge: 3dc9684 9267c38
Author: Paul McLanahan <pmac@mozilla.com>
Date:   Thu Sep 12 07:15:47 2013 -0700

    Merge pull request #83 from dpoirier/bug-907330-standard-confirmation-messages

    Bug 907330 - confirm notice handle short form of language
+ techo 'Updating vendor.'
++ date -u '+%F %T'
+ STAMP='[2013-09-25 17:03:12]'
+ echo '[2013-09-25 17:03:12] Updating vendor.'
[2013-09-25 17:03:12] 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 'Collect static assets.'
++ date -u '+%F %T'
+ STAMP='[2013-09-25 17:03:16]'
+ echo '[2013-09-25 17:03:16] Collect static assets.'
[2013-09-25 17:03:16] Collect static assets.
+ cd /data/genericrhel6/src/basket.mozilla.org/basket
+ python manage.py collectstatic --noinput -v 0
+ checkretval
+ retval=0
+ [[ 0 -gt 0 ]]
+ techo 'Sync & migrate database.'
++ date -u '+%F %T'
+ STAMP='[2013-09-25 17:03:17]'
+ echo '[2013-09-25 17:03:17] Sync & migrate database.'
[2013-09-25 17:03:17] Sync & migrate database.
+ cd /data/genericrhel6/src/basket.mozilla.org/basket
+ python manage.py syncdb --noinput
Syncing...
Creating tables ...
Installing custom SQL ...
Installing indexes ...
Installed 0 object(s) from 0 fixture(s)

Synced:
 > south
 > raven.contrib.django.raven_compat
 > django.contrib.auth
 > django.contrib.contenttypes
 > django.contrib.sessions
 > django.contrib.sites
 > django.contrib.messages
 > django.contrib.admin
 > django.contrib.staticfiles

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:
 - Migrating forwards to 0007_auto__add_failedtask.
 > news:0007_auto__add_failedtask
 - Loading initial data for news.
Installed 0 object(s) from 0 fixture(s)
Running migrations for djcelery:
- Nothing to migrate.
 - Loading initial data for djcelery.
Installed 0 object(s) from 0 fixture(s)
+ checkretval
+ retval=0
+ [[ 0 -gt 0 ]]
+ techo 'Clean up old deploy.'
++ date -u '+%F %T'
+ STAMP='[2013-09-25 17:03:19]'
+ echo '[2013-09-25 17:03:19] Clean up old deploy.'
[2013-09-25 17:03:19] 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
+ techo Deploying.
++ date -u '+%F %T'
+ STAMP='[2013-09-25 17:03:19]'
+ echo '[2013-09-25 17:03:19] Deploying.'
[2013-09-25 17:03:19] Deploying.
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Pushed & verified
Status: RESOLVED → VERIFIED
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in before you can comment on or make changes to this bug.