Skip to content

Instantly share code, notes, and snippets.

@natea
Created November 6, 2014 23:26
Show Gist options
  • Select an option

  • Save natea/c2589c0b43147dcf3b8c to your computer and use it in GitHub Desktop.

Select an option

Save natea/c2589c0b43147dcf3b8c to your computer and use it in GitHub Desktop.
$ /edx/bin/update edx-platform isc
[WARNING]: It is unneccessary to use '{{' in loops, leave variables in loop
expressions bare.
PLAY [Deploy edxapp] **********************************************************
GATHERING FACTS ***************************************************************
ok: [localhost]
TASK: [nltk | create the nltk data directory and subdirectories] **************
ok: [localhost] => (item={'url': 'http://nltk.github.com/nltk_data/packages/taggers/maxent_treebank_pos_tagger.zip', 'path': 'taggers/maxent_treebank_pos_tagger'})
ok: [localhost] => (item={'url': 'http://nltk.github.com/nltk_data/packages/corpora/stopwords.zip', 'path': 'corpora/stopwords'})
ok: [localhost] => (item={'url': 'http://nltk.github.com/nltk_data/packages/corpora/wordnet.zip', 'path': 'corpora/wordnet'})
TASK: [nltk | download nltk data] *********************************************
ok: [localhost] => (item={'url': 'http://nltk.github.com/nltk_data/packages/taggers/maxent_treebank_pos_tagger.zip', 'path': 'taggers/maxent_treebank_pos_tagger'})
ok: [localhost] => (item={'url': 'http://nltk.github.com/nltk_data/packages/corpora/stopwords.zip', 'path': 'corpora/stopwords'})
ok: [localhost] => (item={'url': 'http://nltk.github.com/nltk_data/packages/corpora/wordnet.zip', 'path': 'corpora/wordnet'})
TASK: [nltk | unarchive nltk data] ********************************************
skipping: [localhost] => (item={'url': 'http://nltk.github.com/nltk_data/packages/taggers/maxent_treebank_pos_tagger.zip', 'path': 'taggers/maxent_treebank_pos_tagger'})
skipping: [localhost] => (item={'url': 'http://nltk.github.com/nltk_data/packages/corpora/stopwords.zip', 'path': 'corpora/stopwords'})
skipping: [localhost] => (item={'url': 'http://nltk.github.com/nltk_data/packages/corpora/wordnet.zip', 'path': 'corpora/wordnet'})
TASK: [edxapp | setup the edxapp env] *****************************************
ok: [localhost]
TASK: [edxapp | create ssh script for git (not authenticated)] ****************
skipping: [localhost]
TASK: [edxapp | create ssh script for git (authenticated)] ********************
ok: [localhost]
TASK: [edxapp | install read-only ssh key] ************************************
ok: [localhost]
TASK: [edxapp | checkout edx-platform repo into {{edxapp_code_dir}}] **********
ok: [localhost]
TASK: [edxapp | git clean after checking out edx-platform] ********************
changed: [localhost]
TASK: [edxapp | Check the value of the theme name for debugging] **************
ok: [localhost] => {
"edxapp_theme_name": "isc",
"item": ""
}
TASK: [edxapp | checkout theme] ***********************************************
ok: [localhost]
TASK: [edxapp | create checksum for requirements, package.json and Gemfile] ***
changed: [localhost]
TASK: [edxapp | stat path=/var/tmp/edxapp.req.new] ****************************
ok: [localhost]
TASK: [edxapp | stat path=/var/tmp/edxapp.req.installed] **********************
ok: [localhost]
TASK: [edxapp | Debug new and inst] *******************************************
ok: [localhost] => {
"item": "",
"new": {
"changed": false,
"invocation": {
"module_args": "path=/var/tmp/edxapp.req.new",
"module_name": "stat"
},
"item": "",
"stat": {
"atime": 1415065531.553542,
"ctime": 1415315912.8724425,
"dev": 51713,
"exists": true,
"gid": 1003,
"inode": 132022,
"isblk": false,
"ischr": false,
"isdir": false,
"isfifo": false,
"isgid": false,
"islnk": false,
"isreg": true,
"issock": false,
"isuid": false,
"md5": "79b71a2cc876dd8087c503ed04a0765e",
"mode": "0644",
"mtime": 1415315912.8724425,
"nlink": 1,
"pw_name": "edxapp",
"rgrp": true,
"roth": true,
"rusr": true,
"size": 624,
"uid": 1002,
"wgrp": false,
"woth": false,
"wusr": true,
"xgrp": false,
"xoth": false,
"xusr": false
}
}
}
TASK: [edxapp | debug var=inst] ***********************************************
ok: [localhost] => {
"inst": {
"changed": false,
"invocation": {
"module_args": "path=/var/tmp/edxapp.req.installed",
"module_name": "stat"
},
"item": "",
"stat": {
"atime": 1415065531.677539,
"ctime": 1415065630.3754308,
"dev": 51713,
"exists": true,
"gid": 1003,
"inode": 132037,
"isblk": false,
"ischr": false,
"isdir": false,
"isfifo": false,
"isgid": false,
"islnk": false,
"isreg": true,
"issock": false,
"isuid": false,
"md5": "79b71a2cc876dd8087c503ed04a0765e",
"mode": "0644",
"mtime": 1415065630.3754308,
"nlink": 1,
"pw_name": "edxapp",
"rgrp": true,
"roth": true,
"rusr": true,
"size": 624,
"uid": 1002,
"wgrp": false,
"woth": false,
"wusr": true,
"xgrp": false,
"xoth": false,
"xusr": false
}
},
"item": ""
}
TASK: [edxapp | Updating requirement files for git mirror] ********************
changed: [localhost]
TASK: [edxapp | gem install bundler] ******************************************
changed: [localhost]
TASK: [edxapp | bundle install] ***********************************************
changed: [localhost]
TASK: [edxapp | Set the npm registry] *****************************************
changed: [localhost]
TASK: [edxapp | Set the npm registry permissions] *****************************
ok: [localhost]
TASK: [edxapp | Install edx-platform npm dependencies] ************************
changed: [localhost]
TASK: [edxapp | install python pre-requirements] ******************************
skipping: [localhost]
TASK: [edxapp | install python base-requirements] *****************************
skipping: [localhost]
TASK: [edxapp | install python post-requirements] *****************************
skipping: [localhost]
TASK: [edxapp | install python paver-requirements] ****************************
skipping: [localhost]
TASK: [edxapp | stat path="{{edxapp_app_dir}}/custom_requirements.txt"] *******
ok: [localhost]
TASK: [edxapp | Debug new, inst, and custom] **********************************
ok: [localhost] => {
"item": "",
"new": {
"changed": false,
"invocation": {
"module_args": "path=/var/tmp/edxapp.req.new",
"module_name": "stat"
},
"item": "",
"stat": {
"atime": 1415065531.553542,
"ctime": 1415315912.8724425,
"dev": 51713,
"exists": true,
"gid": 1003,
"inode": 132022,
"isblk": false,
"ischr": false,
"isdir": false,
"isfifo": false,
"isgid": false,
"islnk": false,
"isreg": true,
"issock": false,
"isuid": false,
"md5": "79b71a2cc876dd8087c503ed04a0765e",
"mode": "0644",
"mtime": 1415315912.8724425,
"nlink": 1,
"pw_name": "edxapp",
"rgrp": true,
"roth": true,
"rusr": true,
"size": 624,
"uid": 1002,
"wgrp": false,
"woth": false,
"wusr": true,
"xgrp": false,
"xoth": false,
"xusr": false
}
}
}
TASK: [edxapp | debug var=inst] ***********************************************
ok: [localhost] => {
"inst": {
"changed": false,
"invocation": {
"module_args": "path=/var/tmp/edxapp.req.installed",
"module_name": "stat"
},
"item": "",
"stat": {
"atime": 1415065531.677539,
"ctime": 1415065630.3754308,
"dev": 51713,
"exists": true,
"gid": 1003,
"inode": 132037,
"isblk": false,
"ischr": false,
"isdir": false,
"isfifo": false,
"isgid": false,
"islnk": false,
"isreg": true,
"issock": false,
"isuid": false,
"md5": "79b71a2cc876dd8087c503ed04a0765e",
"mode": "0644",
"mtime": 1415065630.3754308,
"nlink": 1,
"pw_name": "edxapp",
"rgrp": true,
"roth": true,
"rusr": true,
"size": 624,
"uid": 1002,
"wgrp": false,
"woth": false,
"wusr": true,
"xgrp": false,
"xoth": false,
"xusr": false
}
},
"item": ""
}
TASK: [edxapp | debug var=custom_requirements] ********************************
ok: [localhost] => {
"custom_requirements": {
"changed": false,
"invocation": {
"module_args": "path=\"/edx/app/edxapp/custom_requirements.txt\"",
"module_name": "stat"
},
"item": "",
"stat": {
"atime": 1415315912.8724425,
"ctime": 1413322821.8778524,
"dev": 51713,
"exists": true,
"gid": 0,
"inode": 2500565,
"isblk": false,
"ischr": false,
"isdir": false,
"isfifo": false,
"isgid": false,
"islnk": false,
"isreg": true,
"issock": false,
"isuid": false,
"md5": "b96e5bdb7ef3a297c539be01328cb9c6",
"mode": "0644",
"mtime": 1413322821.8778524,
"nlink": 1,
"pw_name": "root",
"rgrp": true,
"roth": true,
"rusr": true,
"size": 684,
"uid": 0,
"wgrp": false,
"woth": false,
"wusr": true,
"xgrp": false,
"xoth": false,
"xusr": false
}
},
"item": ""
}
TASK: [edxapp | install python custom-requirements] ***************************
skipping: [localhost]
TASK: [edxapp | install python post-post requirements] ************************
changed: [localhost] => (item=/edx/app/edxapp/edx-platform/requirements/edx/github.txt)
changed: [localhost] => (item=/edx/app/edxapp/edx-platform/requirements/edx/local.txt)
TASK: [edxapp | install python private requirements] **************************
skipping: [localhost] => (item=/edx/app/edxapp/edx-platform/requirements/edx/edx-private.txt)
TASK: [edxapp | install CAS attribute module] *********************************
skipping: [localhost]
TASK: [edxapp | install sandbox requirements into regular venv] ***************
skipping: [localhost] => (item=/edx/app/edxapp/edx-platform/requirements/edx-sandbox/base.txt)
skipping: [localhost] => (item=/edx/app/edxapp/edx-platform/requirements/edx-sandbox/local.txt)
skipping: [localhost] => (item=/edx/app/edxapp/edx-platform/requirements/edx-sandbox/post.txt)
TASK: [edxapp | code sandbox | put sandbox apparmor profile in complain mode] ***
changed: [localhost]
TASK: [edxapp | code sandbox | Install base sandbox requirements and create sandbox virtualenv] ***
ok: [localhost]
TASK: [edxapp | code sandbox | Install sandbox requirements into sandbox venv] ***
ok: [localhost] => (item=/edx/app/edxapp/edx-platform/requirements/edx-sandbox/local.txt)
ok: [localhost] => (item=/edx/app/edxapp/edx-platform/requirements/edx-sandbox/post.txt)
TASK: [edxapp | code sandbox | put code sandbox into aa-enforce or aa-complain mode, depending on EDXAPP_SANDBOX_ENFORCE] ***
changed: [localhost]
TASK: [edxapp | compiling all py files in the edx-platform repo] **************
changed: [localhost]
TASK: [edxapp | give other read permissions to the virtualenv] ****************
changed: [localhost]
TASK: [edxapp | create checksum for installed requirements] *******************
changed: [localhost]
TASK: [edxapp | openid workaround] ********************************************
skipping: [localhost]
TASK: [edxapp | get s3 one time url] ******************************************
skipping: [localhost]
TASK: [edxapp | download from one time url] ***********************************
skipping: [localhost]
TASK: [edxapp | unzip the data to the data dir] *******************************
skipping: [localhost]
TASK: [edxapp | make the course data web user writable] ***********************
changed: [localhost]
TASK: [edxapp | create application config] ***********************************
ok: [localhost] => (item=lms)
ok: [localhost] => (item=cms)
TASK: [edxapp | create auth file] ********************************************
ok: [localhost] => (item=lms)
ok: [localhost] => (item=cms)
TASK: [edxapp | writing supervisor script] ***********************************
ok: [localhost] => (item=lms)
ok: [localhost] => (item=cms)
TASK: [edxapp | writing edxapp supervisor script] *****************************
ok: [localhost]
TASK: [edxapp | writing celery worker supervisor script] **********************
ok: [localhost]
TASK: [edxapp | enable supervisor script] ************************************
ok: [localhost] => (item=lms)
ok: [localhost] => (item=cms)
TASK: [edxapp | enable edxapp supervisor script] ******************************
ok: [localhost]
TASK: [edxapp | enable celery worker supervisor script] ***********************
skipping: [localhost]
TASK: [edxapp | syncdb and migrate] *******************************************
skipping: [localhost] => (item=lms)
skipping: [localhost] => (item=cms)
TASK: [edxapp | gather static assets with paver] *****************************
changed: [localhost] => (item=lms)
changed: [localhost] => (item=cms)
TASK: [edxapp | clone the xml course repo] ************************************
skipping: [localhost] => (item=EDXAPP_XML_COURSES)
TASK: [edxapp | update course.xml] ********************************************
skipping: [localhost] => (item=EDXAPP_XML_COURSES)
TASK: [edxapp | make symlinks for the static data] ****************************
skipping: [localhost] => (item=EDXAPP_XML_COURSES)
TASK: [edxapp | make symlinks so code works] **********************************
skipping: [localhost] => (item=EDXAPP_XML_COURSES)
TASK: [edxapp | import courses with nostatic flag] ****************************
skipping: [localhost] => (item=EDXAPP_XML_COURSES)
TASK: [edxapp | import courses including static data] *************************
skipping: [localhost] => (item=EDXAPP_XML_COURSES)
TASK: [edxapp | delete courses that were fully imported] **********************
skipping: [localhost] => (item=EDXAPP_XML_COURSES)
TASK: [edxapp | create an archive of course data and course static dirs] ******
skipping: [localhost]
TASK: [edxapp | upload archive to s3] *****************************************
skipping: [localhost]
TASK: [edxapp | remove archive from disk] *************************************
skipping: [localhost]
TASK: [edxapp | update supervisor configuration] ******************************
ok: [localhost]
TASK: [edxapp | ensure edxapp has started] ************************************
ok: [localhost] => (item=lms)
ok: [localhost] => (item=cms)
TASK: [edxapp | ensure edxapp_workers has started] ****************************
skipping: [localhost] => (item={'queue': 'low', 'service_variant': 'cms', 'concurrency': 3})
skipping: [localhost] => (item={'queue': 'default', 'service_variant': 'cms', 'concurrency': 4})
skipping: [localhost] => (item={'queue': 'high', 'service_variant': 'cms', 'concurrency': 1})
skipping: [localhost] => (item={'queue': 'low', 'service_variant': 'lms', 'concurrency': 1})
skipping: [localhost] => (item={'queue': 'default', 'service_variant': 'lms', 'concurrency': 3})
skipping: [localhost] => (item={'queue': 'high', 'service_variant': 'lms', 'concurrency': 4})
skipping: [localhost] => (item={'queue': 'high_mem', 'service_variant': 'lms', 'concurrency': 2})
TASK: [edxapp | create symlinks from the venv bin dir] ************************
ok: [localhost] => (item=python)
ok: [localhost] => (item=pip)
ok: [localhost] => (item=django-admin.py)
TASK: [edxapp | create symlinks from the repo dir] ****************************
ok: [localhost] => (item=manage.py)
TASK: [edxapp | remove read-only ssh key] *************************************
changed: [localhost]
TASK: [edxapp | get instance information] *************************************
skipping: [localhost]
TASK: [edxapp | tag instance with edx_platform version] ***********************
skipping: [localhost]
TASK: [edxapp | tag instance with edxapp theme version] **********************
skipping: [localhost]
TASK: [edxapp | set_fact edxapp_installed=true] *******************************
ok: [localhost]
NOTIFIED: [edxapp | restart edxapp] *******************************************
changed: [localhost] => (item=lms)
changed: [localhost] => (item=cms)
NOTIFIED: [edxapp | restart edxapp_workers] ***********************************
skipping: [localhost] => (item={'queue': 'low', 'service_variant': 'cms', 'concurrency': 3})
skipping: [localhost] => (item={'queue': 'default', 'service_variant': 'cms', 'concurrency': 4})
skipping: [localhost] => (item={'queue': 'high', 'service_variant': 'cms', 'concurrency': 1})
skipping: [localhost] => (item={'queue': 'low', 'service_variant': 'lms', 'concurrency': 1})
skipping: [localhost] => (item={'queue': 'default', 'service_variant': 'lms', 'concurrency': 3})
skipping: [localhost] => (item={'queue': 'high', 'service_variant': 'lms', 'concurrency': 4})
skipping: [localhost] => (item={'queue': 'high_mem', 'service_variant': 'lms', 'concurrency': 2})
PLAY RECAP ********************************************************************
localhost : ok=62 changed=17 unreachable=0 failed=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment