Skip to content

Instantly share code, notes, and snippets.

@singingwolfboy
Created July 30, 2015 20:37
Show Gist options
  • Save singingwolfboy/5512eb2694db5cabb620 to your computer and use it in GitHub Desktop.
Save singingwolfboy/5512eb2694db5cabb620 to your computer and use it in GitHub Desktop.
% curl -O https://raw.githubusercontent.com/edx/configuration/master/vagrant/release/devstack/Vagrantfile
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 6426 100 6426 0 0 19992 0 --:--:-- --:--:-- --:--:-- 20018
[db@mastodon:~/devstack]
% vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'lavash-devstack'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: devstack_default_1438288348969_13744
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
==> default: Forwarding ports...
default: 8000 => 8000 (adapter 1)
default: 8001 => 8001 (adapter 1)
default: 18080 => 18080 (adapter 1)
default: 8765 => 8765 (adapter 1)
default: 9200 => 9200 (adapter 1)
default: 22 => 2222 (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Connection timeout. Retrying...
default:
default: Vagrant insecure key detected. Vagrant will automatically replace
default: this with a newly generated keypair for better security.
default:
default: Inserting generated public key within guest...
default: Removing insecure key from the guest if it's present...
default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
GuestAdditions versions on your host (5.0.0) and guest (4.3.16) do not match.
stdin: is not a tty
Reading package lists...
Building dependency tree...
Reading state information...
linux-headers-3.2.0-23-generic is already the newest version.
The following packages will be upgraded:
dkms
1 upgraded, 0 newly installed, 0 to remove and 152 not upgraded.
Need to get 72.6 kB of archives.
After this operation, 1,024 B of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main dkms all 2.2.0.3-1ubuntu3.2 [72.6 kB]
dpkg-preconfigure: unable to re-open stdin: No such file or directory
Fetched 72.6 kB in 0s (1,808 kB/s)
(Reading database ... 102548 files and directories currently installed.)
Preparing to replace dkms 2.2.0.3-1ubuntu3 (using .../dkms_2.2.0.3-1ubuntu3.2_all.deb) ...
Unpacking replacement dkms ...
Processing triggers for man-db ...
Setting up dkms (2.2.0.3-1ubuntu3.2) ...
Copy iso file /Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso into the box /tmp/VBoxGuestAdditions.iso
stdin: is not a tty
mount: warning: /mnt seems to be mounted read-only.
Installing Virtualbox Guest Additions 5.0.0 - guest version is 4.3.16
stdin: is not a tty
Verifying archive integrity... All good.
Uncompressing VirtualBox 5.0.0 Guest Additions for Linux............
VirtualBox Guest Additions installer
Removing installed version 4.3.16 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
Removing existing VirtualBox DKMS kernel modules ...done.
Removing existing VirtualBox non-DKMS kernel modules ...done.
Building the VirtualBox Guest Additions kernel modules ...done.
Doing non-kernel setup of the Guest Additions ...done.
You should restart your guest to make sure the new modules are actually used
Installing the Window System drivers
Installing X.Org Server 1.11 modules ...done.
Setting up the Window System to use the Guest Additions ...done.
You may need to restart the the Window System (or just restart the guest system)
to enable the Guest Additions.
Installing graphics libraries and desktop services components ...done.
An error occurred during installation of VirtualBox Guest Additions 5.0.0. Some functionality may not work as intended.
In most cases it is OK that the "Window System drivers" installation failed.
stdin: is not a tty
Restarting VM to apply changes...
==> default: Attempting graceful shutdown of VM...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Connection timeout. Retrying...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Checking for host entries
==> default: Configuring and enabling network interfaces...
==> default: Exporting NFS shared folders...
==> default: Preparing to edit /etc/exports. Administrator privileges will be required...
==> default: Mounting NFS shared folders...
==> default: Running provisioner: shell...
default: Running: inline script
==> default: stdin: is not a tty
==> default: [WARNING]: It is unneccessary to use '{{' in loops, leave variables in loop
==> default: expressions bare.
==> 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 | set permissions on .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: [security | install security packages] **********************************
==> default: skipping: [localhost]
==> default:
==> default: TASK: [security | update all system packages] *********************************
==> default: skipping: [localhost]
==> default:
==> default: TASK: [security | configure periodic unattended-upgrades] *********************
==> default: skipping: [localhost]
==> default:
==> default: TASK: [security | disable unattended-upgrades] ********************************
==> default: skipping: [localhost]
==> default:
==> default: TASK: [security | only unattended-upgrade from security repo] *****************
==> default: skipping: [localhost]
==> default:
==> default: TASK: [security | disable security only updates on unattended-upgrades] *******
==> default: skipping: [localhost]
==> default:
==> default: TASK: [security | Check if we are vulnerable] *********************************
==> default: skipping: [localhost]
==> default:
==> default: TASK: [security | Apply bash security update if we are vulnerable] ************
==> default: skipping: [localhost]
==> default:
==> default: TASK: [security | Check again and fail if we are still vulnerable] ************
==> default: skipping: [localhost]
==> default:
==> default: TASK: [common | Update CA Certificates] ***************************************
==> default: changed: [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 | check if instance is vagrant] *********************************
==> default: ok: [localhost]
==> 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.6)
==> default: ok: [localhost] => (item=setuptools==3.6)
==> default: ok: [localhost] => (item=virtualenv==1.11.6)
==> default: ok: [localhost] => (item=virtualenvwrapper)
==> default:
==> default: TASK: [common | Install rsyslog configuration for edX] ************************
==> default: ok: [localhost]
==> default:
==> default: TASK: [common | Remove the default rsyslog configuration] *********************
==> default: ok: [localhost]
==> default:
==> default: TASK: [common | Create hourly subdirectory in logrotate.d] ********************
==> default: ok: [localhost]
==> default:
==> default: TASK: [common | Install logrotate configuration for edX] **********************
==> 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 | 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: skipping: [localhost] => (item=/etc/update-motd.d/10-help-text)
==> default: skipping: [localhost] => (item=/usr/share/landscape/landscape-sysinfo.wrapper)
==> default: skipping: [localhost] => (item=/etc/update-motd.d/51-cloudguest)
==> default: skipping: [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: changed: [localhost]
==> default:
==> default: TASK: [aws | create all service directories] **********************************
==> default: ok: [localhost] => (item={'value': {'owner': 'root', 'path': u'/edx/app/aws', 'group': 'root', 'mode': '0755'}, 'key': 'home'})
==> default: ok: [localhost] => (item={'value': {'owner': 'root', 'path': u'/edx/var/aws', 'group': 'root', 'mode': '0700'}, 'key': 'data'})
==> default: ok: [localhost] => (item={'value': {'owner': 'syslog', 'path': u'/edx/var/log/aws', 'group': 'syslog', 'mode': '0700'}, 'key': 'logs'})
==> 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==1.4.2)
==> default: ok: [localhost] => (item=boto==2.32.0)
==> default:
==> default: TASK: [aws | get s3cmd] *******************************************************
==> default: ok: [localhost]
==> default:
==> default: TASK: [aws | untar s3cmd] *****************************************************
==> default: changed: [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 | force logrotate on supervisor stop] ******************************
==> 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: changed: [localhost]
==> default:
==> default: TASK: [edx_ansible | install edx_ansible venv requirements] *******************
==> default: changed: [localhost]
==> default:
==> default: TASK: [edx_ansible | create update script] ************************************
==> default: fatal: [localhost] => Traceback (most recent call last):
==> default: File "/edx/app/edx_ansible/venvs/edx_ansible/local/lib/python2.7/site-packages/ansible/runner/__init__.py", line 532, in _executor
==> default: rm_tmp = None
==> default: File "/edx/app/edx_ansible/venvs/edx_ansible/local/lib/python2.7/site-packages/ansible/runner/__init__.py", line 629, in _executor_internal
==> default: inject = utils.combine_vars(inject, host_variables)
==> default: File "/edx/app/edx_ansible/venvs/edx_ansible/local/lib/python2.7/site-packages/ansible/runner/__init__.py", line 815, in _executor_internal_inner
==> default: result.result['stdout_lines'] = result.result['stdout'].splitlines()
==> default: File "/edx/app/edx_ansible/venvs/edx_ansible/local/lib/python2.7/site-packages/ansible/runner/action_plugins/template.py", line 125, in run
==> default: dest_result = self.runner._execute_module(conn, tmp, 'slurp', "path=%s" % dest, inject=inject, persist_files=True)
==> default: File "/edx/app/edx_ansible/venvs/edx_ansible/local/lib/python2.7/site-packages/ansible/runner/__init__.py", line 407, in _execute_module
==> default: if thisuser is None and self.remote_user:
==> default: File "/edx/app/edx_ansible/venvs/edx_ansible/local/lib/python2.7/site-packages/ansible/runner/__init__.py", line 1083, in _configure_module
==> default: File "/edx/app/edx_ansible/venvs/edx_ansible/local/lib/python2.7/site-packages/ansible/module_common.py", line 129, in modify_module
==> default: if not module_path.endswith(".ps1"):
==> default: IOError: [Errno 2] No such file or directory: '/edx/app/edx_ansible/venvs/edx_ansible/share/ansible/files/copy'
==> 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=36 changed=5 unreachable=1 failed=0
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment