Skip to content

Instantly share code, notes, and snippets.

@singingwolfboy
Created June 13, 2014 17:39
Show Gist options
  • Save singingwolfboy/c66b52043c5a436cb0c8 to your computer and use it in GitHub Desktop.
Save singingwolfboy/c66b52043c5a436cb0c8 to your computer and use it in GitHub Desktop.
% vagrant provision
==> default: Running provisioner: shell...
default: Running: inline script
==> default: stdin: is not a tty
==> default:
==> default: PLAY [Deploy the edx_ansible role] ********************************************
==> default:
==> default: TASK: [edx_ansible | git checkout edx_ansible repo into edx_ansible_code_dir] ***
==> default: changed: [localhost]
==> default:
==> default: TASK: [edx_ansible | install edx_ansible venv requirements] *******************
==> default: ok: [localhost]
==> default:
==> default: TASK: [edx_ansible | create update script] ************************************
==> default: ok: [localhost]
==> default:
==> default: TASK: [edx_ansible | create a symlink for update.sh] **************************
==> default: ok: [localhost]
==> default:
==> default: TASK: [edx_ansible | create a symlink for ansible-playbook] *******************
==> default: ok: [localhost]
==> default:
==> default: TASK: [edx_ansible | create a symlink for the playbooks dir] ******************
==> default: ok: [localhost]
==> default:
==> default: TASK: [edx_ansible | dump all vars to yaml] ***********************************
==> default: skipping: [localhost]
==> default:
==> default: TASK: [edx_ansible | create symlink for config file] **************************
==> default: skipping: [localhost]
==> default:
==> default: TASK: [edx_ansible | clean up var file, removing all version vars and internal ansible vars (anything not caps)] ***
==> default: skipping: [localhost]
==> default:
==> default: PLAY RECAP ********************************************************************
==> default: localhost : ok=6 changed=1 unreachable=0 failed=0
==> default:
==> default: PLAY [Configure instance(s)] **************************************************
==> default:
==> default: GATHERING FACTS ***************************************************************
==> default: ok: [localhost]
==> default:
==> default: TASK: [user | debug var=user_info] ********************************************
==> default: ok: [localhost] => {
==> default: "item": "",
==> default: "user_info": []
==> default: }
==> default:
==> default: TASK: [user | create the edxadmin group] **************************************
==> default: ok: [localhost]
==> default:
==> default: TASK: [user | ensure sudoers.d is read] ***************************************
==> default: ok: [localhost]
==> default:
==> default: TASK: [user | grant full sudo access to the edxadmin group] *******************
==> default: ok: [localhost]
==> default:
==> default: TASK: [user | create the users] ***********************************************
==> default: skipping: [localhost]
==> default:
==> default: TASK: [user | create .ssh directory] ******************************************
==> default: skipping: [localhost]
==> default:
==> default: TASK: [user | assign admin role to admin users] *******************************
==> default: skipping: [localhost]
==> default:
==> default: TASK: [user | copy github key[s] to .ssh/authorized_keys2] ********************
==> default: skipping: [localhost]
==> default:
==> default: TASK: [user | copy additional authorized keys] ********************************
==> default: skipping: [localhost]
==> default:
==> default: TASK: [user | create bashrc file for normal users] ****************************
==> default: skipping: [localhost]
==> default:
==> default: TASK: [user | create .profile for all users] **********************************
==> default: skipping: [localhost]
==> default:
==> default: TASK: [user | modify shell for restricted users] ******************************
==> default: skipping: [localhost]
==> default:
==> default: TASK: [user | create bashrc file for restricted users] ************************
==> default: skipping: [localhost]
==> default:
==> default: TASK: [user | create sudoers file from template] ******************************
==> default: ok: [localhost]
==> default:
==> default: TASK: [user | change home directory ownership to root for restricted users] ***
==> default: skipping: [localhost]
==> default:
==> default: TASK: [user | create ~/bin directory] *****************************************
==> default: skipping: [localhost]
==> default:
==> default: TASK: [user | create allowed command links] ***********************************
==> default: skipping: [localhost]
==> default:
==> default: TASK: [common | Add user www-data] ********************************************
==> default: ok: [localhost]
==> default:
==> default: TASK: [common | Create common directories] ************************************
==> default: ok: [localhost] => (item=/edx/var)
==> default: ok: [localhost] => (item=/edx/app)
==> default: ok: [localhost] => (item=/edx/bin)
==> default: ok: [localhost] => (item=/edx/etc)
==> default:
==> default: TASK: [common | Install python-pycurl] ****************************************
==> default: ok: [localhost]
==> default:
==> default: TASK: [common | Add git apt repository] ***************************************
==> default: ok: [localhost]
==> default:
==> default: TASK: [common | Install role-independent useful system packages] **************
==> default: ok: [localhost]
==> default:
==> default: TASK: [common | Create common log directory] **********************************
==> default: ok: [localhost]
==> default:
==> default: TASK: [common | upload sudo config for key forwarding as root] ****************
==> default: ok: [localhost]
==> default:
==> default: TASK: [common | pip install virtualenv] ***************************************
==> default: ok: [localhost] => (item=pip==1.5.4)
==> default: ok: [localhost] => (item=virtualenv==1.11.4)
==> default: ok: [localhost] => (item=virtualenvwrapper)
==> default:
==> default: TASK: [common | Install rsyslog configuration for edX] ************************
==> default: ok: [localhost]
==> default:
==> default: TASK: [common | Install logrotate configuration for edX] **********************
==> default: ok: [localhost]
==> default:
==> default: TASK: [common | Create hourly subdirectory in logrotate.d] ********************
==> default: ok: [localhost]
==> default:
==> default: TASK: [common | Install logrotate configuration for tracking file] ************
==> default: ok: [localhost]
==> default:
==> default: TASK: [common | Add logrotate for tracking.log to cron.hourly] ****************
==> default: ok: [localhost]
==> default:
==> default: TASK: [common | Remove old tracking.log config from /etc/logrotate.d] *********
==> default: ok: [localhost]
==> default:
==> default: TASK: [common | update /etc/hosts] ********************************************
==> default: skipping: [localhost]
==> default:
==> default: TASK: [common | update /etc/hostname] *****************************************
==> default: skipping: [localhost]
==> default:
==> default: TASK: [common | run hostname] *************************************************
==> default: skipping: [localhost]
==> default:
==> default: TASK: [common | update /etc/dhcp/dhclient.conf] *******************************
==> default: skipping: [localhost]
==> default:
==> default: TASK: [common | update the ssh motd on Ubuntu] ********************************
==> default: ok: [localhost] => (item=/etc/update-motd.d/10-help-text)
==> default: ok: [localhost] => (item=/usr/share/landscape/50-landscape-sysinfo)
==> default: ok: [localhost] => (item=/etc/update-motd.d/51-cloudguest)
==> default: ok: [localhost] => (item=/etc/update-motd.d/91-release-upgrade)
==> default:
==> default: TASK: [common | add ssh-warning banner motd] **********************************
==> default: ok: [localhost]
==> default:
==> default: TASK: [common | update ssh config] ********************************************
==> default: ok: [localhost]
==> default:
==> default: TASK: [aws | create data directories] *****************************************
==> default: ok: [localhost] => (item=/edx/var/aws)
==> default: ok: [localhost] => (item=/edx/var/log/aws)
==> default:
==> default: TASK: [aws | create app directory] ********************************************
==> default: ok: [localhost] => (item=/edx/app/aws)
==> default:
==> default: TASK: [aws | install system packages] *****************************************
==> default: ok: [localhost]
==> default:
==> default: TASK: [aws | install aws python packages] *************************************
==> default: ok: [localhost] => (item=https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-latest.tar.gz)
==> default: ok: [localhost] => (item=awscli)
==> default:
==> default: TASK: [aws | get s3cmd] *******************************************************
==> default: ok: [localhost]
==> default:
==> default: TASK: [aws | untar s3cmd] *****************************************************
==> default: skipping: [localhost]
==> default:
==> default: TASK: [aws | create symlink for s3cmd] ****************************************
==> default: ok: [localhost]
==> default:
==> default: TASK: [aws | create s3 log sync script] ***************************************
==> default: skipping: [localhost]
==> default:
==> default: TASK: [aws | create symlink for s3 log sync script] ***************************
==> default: skipping: [localhost]
==> default:
==> default: TASK: [aws | run s3 log sync script on shutdown] ******************************
==> default: skipping: [localhost]
==> default:
==> default: TASK: [aws | cronjob for s3 log sync] *****************************************
==> default: skipping: [localhost]
==> default:
==> default: TASK: [edx_ansible | create application user] *********************************
==> default: ok: [localhost]
==> default:
==> default: TASK: [edx_ansible | create edx_ansible app and venv dir] *********************
==> default: ok: [localhost] => (item=/edx/app/edx_ansible)
==> default: ok: [localhost] => (item=/edx/var/edx_ansible)
==> default: ok: [localhost] => (item=/edx/app/edx_ansible/venvs)
==> default:
==> default: TASK: [edx_ansible | install a bunch of system packages on which edx_ansible relies] ***
==> default: ok: [localhost]
==> default:
==> default: TASK: [edx_ansible | git checkout edx_ansible repo into edx_ansible_code_dir] ***
==> default: ok: [localhost]
==> default:
==> default: TASK: [edx_ansible | install edx_ansible venv requirements] *******************
==> default: ok: [localhost]
==> default:
==> default: TASK: [edx_ansible | create update script] ************************************
==> default: ok: [localhost]
==> default:
==> default: TASK: [edx_ansible | create a symlink for update.sh] **************************
==> default: ok: [localhost]
==> default:
==> default: TASK: [edx_ansible | create a symlink for ansible-playbook] *******************
==> default: ok: [localhost]
==> default:
==> default: TASK: [edx_ansible | create a symlink for the playbooks dir] ******************
==> default: ok: [localhost]
==> default:
==> default: TASK: [edx_ansible | dump all vars to yaml] ***********************************
==> default: skipping: [localhost]
==> default:
==> default: TASK: [edx_ansible | create symlink for config file] **************************
==> default: skipping: [localhost]
==> default:
==> default: TASK: [edx_ansible | clean up var file, removing all version vars and internal ansible vars (anything not caps)] ***
==> default: skipping: [localhost]
==> default:
==> default: TASK: [edxlocal | install packages needed for single server] ******************
==> default: ok: [localhost]
==> default:
==> default: TASK: [edxlocal | setup the migration db user] ********************************
==> default: ok: [localhost]
==> default:
==> default: TASK: [edxlocal | setup the edxapp db user] ***********************************
==> default: ok: [localhost]
==> default:
==> default: TASK: [edxlocal | create a database for edxapp] *******************************
==> default: ok: [localhost]
==> default:
==> default: TASK: [edxlocal | setup the xqueue db user] ***********************************
==> default: skipping: [localhost]
==> default:
==> default: TASK: [edxlocal | create a database for xqueue] *******************************
==> default: skipping: [localhost]
==> default:
==> default: TASK: [edxlocal | setup the ora db user] **************************************
==> default: ok: [localhost]
==> default:
==> default: TASK: [edxlocal | create a database for ora] **********************************
==> default: ok: [localhost]
==> default:
==> default: TASK: [edxlocal | setup the discern db user] **********************************
==> default: skipping: [localhost]
==> default:
==> default: TASK: [edxlocal | create a database for discern] ******************************
==> default: skipping: [localhost]
==> default:
==> default: TASK: [edxlocal | install memcached] ******************************************
==> default: ok: [localhost]
==> default:
==> default: TASK: [mongo | install python pymongo for mongo_user ansible module] **********
==> default: ok: [localhost]
==> default:
==> default: TASK: [mongo | add the mongodb signing key] ***********************************
==> default: ok: [localhost]
==> default:
==> default: TASK: [mongo | add the mongodb repo to the sources list] **********************
==> default: ok: [localhost]
==> default:
==> default: TASK: [mongo | install mongo server and recommends] ***************************
==> default: ok: [localhost]
==> default:
==> default: TASK: [mongo | create mongo dirs] *********************************************
==> default: ok: [localhost] => (item=/edx/var/mongo)
==> default: ok: [localhost] => (item=/edx/var/mongo/mongodb)
==> default: ok: [localhost] => (item=/edx/var/log/mongo)
==> default:
==> default: TASK: [mongo | stop mongo service] ********************************************
==> default: ok: [localhost]
==> default:
==> default: TASK: [mongo | move mongodb to {{mongo_data_dir}}] ****************************
==> default: skipping: [localhost]
==> default:
==> default: TASK: [mongo | copy mongodb key file] *****************************************
==> default: skipping: [localhost]
==> default:
==> default: TASK: [mongo | copy configuration template] ***********************************
==> default: ok: [localhost]
==> default:
==> default: TASK: [mongo | start mongo service] *******************************************
==> default: changed: [localhost]
==> default:
==> default: TASK: [mongo | wait for mongo server to start] ********************************
==> default: failed: [localhost] => {"elapsed": 300, "failed": true, "item": ""}
==> default: msg: Timeout when waiting for 127.0.0.1:27017
==> default:
==> default: FATAL: all hosts have already failed -- aborting
==> default:
==> default: PLAY RECAP ********************************************************************
==> default: to retry, use: --limit @/root/vagrant-devstack.retry
==> default: localhost : ok=53 changed=1 unreachable=0 failed=1
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
chmod +x /tmp/vagrant-shell && /tmp/vagrant-shell
Stdout from the command:
PLAY [Deploy the edx_ansible role] ********************************************
TASK: [edx_ansible | git checkout edx_ansible repo into edx_ansible_code_dir] ***
changed: [localhost]
TASK: [edx_ansible | install edx_ansible venv requirements] *******************
ok: [localhost]
TASK: [edx_ansible | create update script] ************************************
ok: [localhost]
TASK: [edx_ansible | create a symlink for update.sh] **************************
ok: [localhost]
TASK: [edx_ansible | create a symlink for ansible-playbook] *******************
ok: [localhost]
TASK: [edx_ansible | create a symlink for the playbooks dir] ******************
ok: [localhost]
TASK: [edx_ansible | dump all vars to yaml] ***********************************
skipping: [localhost]
TASK: [edx_ansible | create symlink for config file] **************************
skipping: [localhost]
TASK: [edx_ansible | clean up var file, removing all version vars and internal ansible vars (anything not caps)] ***
skipping: [localhost]
PLAY RECAP ********************************************************************
localhost : ok=6 changed=1 unreachable=0 failed=0
PLAY [Configure instance(s)] **************************************************
GATHERING FACTS ***************************************************************
ok: [localhost]
TASK: [user | debug var=user_info] ********************************************
ok: [localhost] => {
"item": "",
"user_info": []
}
TASK: [user | create the edxadmin group] **************************************
ok: [localhost]
TASK: [user | ensure sudoers.d is read] ***************************************
ok: [localhost]
TASK: [user | grant full sudo access to the edxadmin group] *******************
ok: [localhost]
TASK: [user | create the users] ***********************************************
skipping: [localhost]
TASK: [user | create .ssh directory] ******************************************
skipping: [localhost]
TASK: [user | assign admin role to admin users] *******************************
skipping: [localhost]
TASK: [user | copy github key[s] to .ssh/authorized_keys2] ********************
skipping: [localhost]
TASK: [user | copy additional authorized keys] ********************************
skipping: [localhost]
TASK: [user | create bashrc file for normal users] ****************************
skipping: [localhost]
TASK: [user | create .profile for all users] **********************************
skipping: [localhost]
TASK: [user | modify shell for restricted users] ******************************
skipping: [localhost]
TASK: [user | create bashrc file for restricted users] ************************
skipping: [localhost]
TASK: [user | create sudoers file from template] ******************************
ok: [localhost]
TASK: [user | change home directory ownership to root for restricted users] ***
skipping: [localhost]
TASK: [user | create ~/bin directory] *****************************************
skipping: [localhost]
TASK: [user | create allowed command links] ***********************************
skipping: [localhost]
TASK: [common | Add user www-data] ********************************************
ok: [localhost]
TASK: [common | Create common directories] ************************************
ok: [localhost] => (item=/edx/var)
ok: [localhost] => (item=/edx/app)
ok: [localhost] => (item=/edx/bin)
ok: [localhost] => (item=/edx/etc)
TASK: [common | Install python-pycurl] ****************************************
ok: [localhost]
TASK: [common | Add git apt repository] ***************************************
ok: [localhost]
TASK: [common | Install role-independent useful system packages] **************
ok: [localhost]
TASK: [common | Create common log directory] **********************************
ok: [localhost]
TASK: [common | upload sudo config for key forwarding as root] ****************
ok: [localhost]
TASK: [common | pip install virtualenv] ***************************************
ok: [localhost] => (item=pip==1.5.4)
ok: [localhost] => (item=virtualenv==1.11.4)
ok: [localhost] => (item=virtualenvwrapper)
TASK: [common | Install rsyslog configuration for edX] ************************
ok: [localhost]
TASK: [common | Install logrotate configuration for edX] **********************
ok: [localhost]
TASK: [common | Create hourly subdirectory in logrotate.d] ********************
ok: [localhost]
TASK: [common | Install logrotate configuration for tracking file] ************
ok: [localhost]
TASK: [common | Add logrotate for tracking.log to cron.hourly] ****************
ok: [localhost]
TASK: [common | Remove old tracking.log config from /etc/logrotate.d] *********
ok: [localhost]
TASK: [common | update /etc/hosts] ********************************************
skipping: [localhost]
TASK: [common | update /etc/hostname] *****************************************
skipping: [localhost]
TASK: [common | run hostname] *************************************************
skipping: [localhost]
TASK: [common | update /etc/dhcp/dhclient.conf] *******************************
skipping: [localhost]
TASK: [common | update the ssh motd on Ubuntu] ********************************
ok: [localhost] => (item=/etc/update-motd.d/10-help-text)
ok: [localhost] => (item=/usr/share/landscape/50-landscape-sysinfo)
ok: [localhost] => (item=/etc/update-motd.d/51-cloudguest)
ok: [localhost] => (item=/etc/update-motd.d/91-release-upgrade)
TASK: [common | add ssh-warning banner motd] **********************************
ok: [localhost]
TASK: [common | update ssh config] ********************************************
ok: [localhost]
TASK: [aws | create data directories] *****************************************
ok: [localhost] => (item=/edx/var/aws)
ok: [localhost] => (item=/edx/var/log/aws)
TASK: [aws | create app directory] ********************************************
ok: [localhost] => (item=/edx/app/aws)
TASK: [aws | install system packages] *****************************************
ok: [localhost]
TASK: [aws | install aws python packages] *************************************
ok: [localhost] => (item=https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-latest.tar.gz)
ok: [localhost] => (item=awscli)
TASK: [aws | get s3cmd] *******************************************************
ok: [localhost]
TASK: [aws | untar s3cmd] *****************************************************
skipping: [localhost]
TASK: [aws | create symlink for s3cmd] ****************************************
ok: [localhost]
TASK: [aws | create s3 log sync script] ***************************************
skipping: [localhost]
TASK: [aws | create symlink for s3 log sync script] ***************************
skipping: [localhost]
TASK: [aws | run s3 log sync script on shutdown] ******************************
skipping: [localhost]
TASK: [aws | cronjob for s3 log sync] *****************************************
skipping: [localhost]
TASK: [edx_ansible | create application user] *********************************
ok: [localhost]
TASK: [edx_ansible | create edx_ansible app and venv dir] *********************
ok: [localhost] => (item=/edx/app/edx_ansible)
ok: [localhost] => (item=/edx/var/edx_ansible)
ok: [localhost] => (item=/edx/app/edx_ansible/venvs)
TASK: [edx_ansible | install a bunch of system packages on which edx_ansible relies] ***
ok: [localhost]
TASK: [edx_ansible | git checkout edx_ansible repo into edx_ansible_code_dir] ***
ok: [localhost]
TASK: [edx_ansible | install edx_ansible venv requirements] *******************
ok: [localhost]
TASK: [edx_ansible | create update script] ************************************
ok: [localhost]
TASK: [edx_ansible | create a symlink for update.sh] **************************
ok: [localhost]
TASK: [edx_ansible | create a symlink for ansible-playbook] *******************
ok: [localhost]
TASK: [edx_ansible | create a symlink for the playbooks dir] ******************
ok: [localhost]
TASK: [edx_ansible | dump all vars to yaml] ***********************************
skipping: [localhost]
TASK: [edx_ansible | create symlink for config file] **************************
skipping: [localhost]
TASK: [edx_ansible | clean up var file, removing all version vars and internal ansible vars (anything not caps)] ***
skipping: [localhost]
TASK: [edxlocal | install packages needed for single server] ******************
ok: [localhost]
TASK: [edxlocal | setup the migration db user] ********************************
ok: [localhost]
TASK: [edxlocal | setup the edxapp db user] ***********************************
ok: [localhost]
TASK: [edxlocal | create a database for edxapp] *******************************
ok: [localhost]
TASK: [edxlocal | setup the xqueue db user] ***********************************
skipping: [localhost]
TASK: [edxlocal | create a database for xqueue] *******************************
skipping: [localhost]
TASK: [edxlocal | setup the ora db user] **************************************
ok: [localhost]
TASK: [edxlocal | create a database for ora] **********************************
ok: [localhost]
TASK: [edxlocal | setup the discern db user] **********************************
skipping: [localhost]
TASK: [edxlocal | create a database for discern] ******************************
skipping: [localhost]
TASK: [edxlocal | install memcached] ******************************************
ok: [localhost]
TASK: [mongo | install python pymongo for mongo_user ansible module] **********
ok: [localhost]
TASK: [mongo | add the mongodb signing key] ***********************************
ok: [localhost]
TASK: [mongo | add the mongodb repo to the sources list] **********************
ok: [localhost]
TASK: [mongo | install mongo server and recommends] ***************************
ok: [localhost]
TASK: [mongo | create mongo dirs] *********************************************
ok: [localhost] => (item=/edx/var/mongo)
ok: [localhost] => (item=/edx/var/mongo/mongodb)
ok: [localhost] => (item=/edx/var/log/mongo)
TASK: [mongo | stop mongo service] ********************************************
ok: [localhost]
TASK: [mongo | move mongodb to {{mongo_data_dir}}] ****************************
skipping: [localhost]
TASK: [mongo | copy mongodb key file] *****************************************
skipping: [localhost]
TASK: [mongo | copy configuration template] ***********************************
ok: [localhost]
TASK: [mongo | start mongo service] *******************************************
changed: [localhost]
TASK: [mongo | wait for mongo server to start] ********************************
failed: [localhost] => {"elapsed": 300, "failed": true, "item": ""}
msg: Timeout when waiting for 127.0.0.1:27017
FATAL: all hosts have already failed -- aborting
PLAY RECAP ********************************************************************
to retry, use: --limit @/root/vagrant-devstack.retry
localhost : ok=53 changed=1 unreachable=0 failed=1
Stderr from the command:
stdin: is not a tty
db ~/devstack/edx-platform (git)-[invokelib/develop] mastodon
%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment