Closed Bug 904772 Opened 11 years ago Closed 11 years ago

Help with manual steps during next Mozillians.org deploy to staging

Categories

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

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: hoosteeno, Assigned: jd)

References

Details

We upgraded playdoh in https://github.com/mozilla/mozillians/commit/c786a8025aa1b71f809bf76de24a3687d4e4fdb5. We deployed this to dev, and doing so required a number of manual configuration steps (which :jd did). We'd like to push this change to staging next (in the next several days), and we'll need IT help for it. The below list _should_ cover all the things needed. I will schedule a time for this with :jd, and he'll hand it off if necessary. 1. Sync down latest from master branch on github. Just manually do the top of the update.py script: git fetch git checkout -f REV (origin/master) git submodule sync it submodule update --init --recursive find . -type f -name '.gitignore' -or -name '*.pyc' -delete 2. Move the local.py file: It moved from settings/local.py to mozillians/settings/local.py. This file is not under puppet for mozillians, it is a local file. From FQDN folder: mv mozillians/settings/local.py mozillians/mozillians/settings/local.py 3. Delete old directories: PWD=FQDN folder rm -rf $PWD/mozillians/apps rm -rf $PWD/mozillians/settings rm -rf $PWD/mozillians/vendor-local/src/django (it may not exist: didn't exist on dev) 4. Modify mozillians/settings/local.py: * Remove the line 'from settings import *' * Add the line 'import logging' * Add the line 'import socket' * Change how CACHE is defined: Change this: CACHES['default']['LOCATION'] = 'memcache-generic01:11211;memcache-generic02:11211' To this: CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 'LOCATION': 'memcache-generic01:11211;memcache-generic02:11211', } } 5. Set SITE_URL after PORT line at the top of the settings file SITE_URL = 'https://mozillians.allizom.org' SITE_URL = 'https://mozillians.org' <-- just mozillians.org, no?:) OOPS :) 6. Continue deployment. (AKA run Chief) If things break on 'python2.6 manage.py cron index_all_profiles' from the update.py script which is run by chief just run a manual '/data/genericBLAH/deploy site'. The only thing missed will be 'manage.py cron validate_fun_facts' -- it's not critical.
Please disregard the commentary after SITE_URL, it's an artifact. Those SITE_URLs are correct.
Assignee: server-ops-webops → jcrowe
This has been completed. The only thing we did a bit differently was to use chief for the update in step 1. This worked well as chief ran just the update portion and then failed on the first manage.py command (as it had no local.py file).
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.