GithubHelp home page GithubHelp logo

Comments (9)

drnic avatar drnic commented on August 15, 2024

Weird; almost looks like its trying to run stemcell-copy as a ruby script instead of sh

from bosh.

drnic avatar drnic commented on August 15, 2024

I reverted to the bosh_deployer gem and it follows a different flow on my 10.04 inception VM, because I get the following in my log:

falling back to using dd to copy stemcell

Which means it takes the 2nd path in this method https://github.com/cloudfoundry/bosh/blob/master/bosh_aws_cpi/lib/cloud/aws/cloud.rb#L538-L539

Whereas in the bug being raised, using HEAD, it follows the first path (unsuccessfully) https://github.com/cloudfoundry/bosh/blob/master/bosh_aws_cpi/lib/cloud/aws/cloud.rb#L533-L536

from bosh.

drnic avatar drnic commented on August 15, 2024

What changed with has_stemcell_copy(path)?

from bosh.

drnic avatar drnic commented on August 15, 2024

AARGH, bosh repo has no tags for gem releases :/

from bosh.

drnic avatar drnic commented on August 15, 2024

There is no obvious recent change around these methods via git blame. Only validate_options & initial_agent_settings seem to have been changed in 2013 (in bosh_aws_cpi's cloud.rb)

from bosh.

pmenglund avatar pmenglund commented on August 15, 2024

When it changed to the new format stemcell-copy was bundled in the deployer gem, so it is being run through a rubygems wrapper, so I guess your root user don't have ruby in its PATH.

from bosh.

drnic avatar drnic commented on August 15, 2024

Yes the root user has ruby in its path.

vcap$ ruby -v
ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-linux]
vcap$ sudo ruby -v
ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-linux]

from bosh.

cf-bosh avatar cf-bosh commented on August 15, 2024

The root cause of the issue is that the generated bin stub for the stemcell-copy script assumed the script was ruby when in fact it was bash. We worked around this and it is now be fixed in MASTER. We still require password-less sudo on the inception box so we can write out the stemcell AMI to the AWS EBS device. Luckily the amazon ubuntu AMI has this by default.

  - Alex (ajackson) and Sean (seansweda) 

from bosh.

drnic avatar drnic commented on August 15, 2024

password-less sudo sounds like an ok requirement; I'll test HEAD soon.

from bosh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.