Skip to content

Instantly share code, notes, and snippets.

@drnic
Created March 19, 2014 12:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drnic/9641038 to your computer and use it in GitHub Desktop.
Save drnic/9641038 to your computer and use it in GitHub Desktop.
+ local chroot=/mnt/stemcells/openstack/kvm/ubuntu/work/work/chroot
+ local 'script=
export PATH=/var/vcap/bosh/bin:$PATH
export HOME=/root
cd /var/vcap/bosh
cd /home/vcap/bosh-workspace/stemcells
gem env
stemcell_name=$(/var/vcap/bosh/bin/bosh public stemcells | grep ubuntu | grep openstack | sort -nr | head -n1 | awk '\''{ print $2 }'\'')
/var/vcap/bosh/bin/bosh download public stemcell $stemcell_name
'
+ disable /mnt/stemcells/openstack/kvm/ubuntu/work/work/chroot/sbin/initctl
+ '[' -e /mnt/stemcells/openstack/kvm/ubuntu/work/work/chroot/sbin/initctl ']'
+ mv /mnt/stemcells/openstack/kvm/ubuntu/work/work/chroot/sbin/initctl /mnt/stemcells/openstack/kvm/ubuntu/work/work/chroot/sbin/initctl.back
+ ln -s /bin/true /mnt/stemcells/openstack/kvm/ubuntu/work/work/chroot/sbin/initctl
+ disable /mnt/stemcells/openstack/kvm/ubuntu/work/work/chroot/usr/sbin/invoke-rc.d
+ '[' -e /mnt/stemcells/openstack/kvm/ubuntu/work/work/chroot/usr/sbin/invoke-rc.d ']'
+ mv /mnt/stemcells/openstack/kvm/ubuntu/work/work/chroot/usr/sbin/invoke-rc.d /mnt/stemcells/openstack/kvm/ubuntu/work/work/chroot/usr/sbin/invoke-rc.d.back
+ ln -s /bin/true /mnt/stemcells/openstack/kvm/ubuntu/work/work/chroot/usr/sbin/invoke-rc.d
+ unshare -m /bin/bash
/bin/bash: line 8: /var/vcap/bosh/bin/bosh: No such file or directory
RubyGems Environment:
- RUBYGEMS VERSION: 1.8.24
- RUBY VERSION: 1.9.3 (2013-11-22 patchlevel 484) [x86_64-linux]
- INSTALLATION DIRECTORY: /var/vcap/bosh/lib/ruby/gems/1.9.1
- RUBY EXECUTABLE: /var/vcap/bosh/bin/ruby
- EXECUTABLE DIRECTORY: /var/vcap/bosh/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
- /var/vcap/bosh/lib/ruby/gems/1.9.1
- /root/.gem/ruby/1.9.1
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- "gem" => "--local --no-rdoc --no-ri"
- REMOTE SOURCES:
- http://rubygems.org/
Usage: download public stemcell <stemcell_filename>/bosh/bosh-core/lib/bosh/core/shell.rb:41:in `report'
/bosh/bosh-core/lib/bosh/core/shell.rb:12:in `run'
/bosh/bosh-stemcell/lib/bosh/stemcell/stage_runner.rb:48:in `run_sudo_with_command_env'
/bosh/bosh-stemcell/lib/bosh/stemcell/stage_runner.rb:37:in `block in apply'
/bosh/bosh-stemcell/lib/bosh/stemcell/stage_runner.rb:29:in `each'
/bosh/bosh-stemcell/lib/bosh/stemcell/stage_runner.rb:29:in `apply'
/bosh/bosh-stemcell/lib/bosh/stemcell/stage_runner.rb:14:in `configure_and_apply'
/bosh/bosh-stemcell/lib/bosh/stemcell/stemcell_builder.rb:16:in `build'
/bosh/bosh-dev/lib/bosh/dev/tasks/stemcell.rake:109:in `block (2 levels) in <top (required)>'
/bosh/bosh-dev/lib/bosh/dev/tasks/stemcell.rake:70:in `block (3 levels) in <top (required)>'
/bosh/bosh-dev/lib/bosh/dev/tasks/stemcell.rake:65:in `block (2 levels) in <top (required)>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment