bosh icon indicating copy to clipboard operation
bosh copied to clipboard

Failing stemcell build from master

Open rkoster opened this issue 13 years ago • 8 comments

When running: bundle exec rake stemcell:micro[openstack] while on https://github.com/cloudfoundry/bosh/commit/156aa0cf55901808a26605ac8d5a0909880f5bf2 it get:

bosh create release --force --with-tarball
Incorrect YAML structure in `/var/vcap/store/repos/bosh/release/config/final.yml': undefined method `root' for #<Psych::Nodes::Mapping:0x00000002e63f50>
rake aborted!
Command failed with status (1): [bosh create release --force --with-tarball...]
...
/var/vcap/store/repos/bosh/rake/stemcell.rake:62:in `block in build_micro_bosh_release'
/var/vcap/store/repos/bosh/rake/stemcell.rake:60:in `chdir'
/var/vcap/store/repos/bosh/rake/stemcell.rake:60:in `build_micro_bosh_release'
/var/vcap/store/repos/bosh/rake/stemcell.rake:26:in `block (2 levels) in <top (required)>'

rkoster avatar Apr 05 '13 13:04 rkoster

The problem can be traced back to this line

rkoster avatar Apr 05 '13 14:04 rkoster

removing .root seems to fix the problem in my case but I don't know if it brakes other things.

rkoster avatar Apr 05 '13 15:04 rkoster

Kinda weird, as the last commit to change this line was merely refactoring it https://github.com/cloudfoundry/bosh/commit/5ed9261069895c5e9570a628355f8d1972efa23f

drnic avatar Apr 07 '13 00:04 drnic

How come the integration tests are passing but the rake task for microbosh stemcell is failing? https://travis-ci.org/cloudfoundry/bosh/builds

drnic avatar Apr 07 '13 00:04 drnic

Perhaps related to https://github.com/cloudfoundry/bosh/commit/ad60ba5aa28d1628c4cfcf0a207b0d6aba42ceb1 ?

Why is failing for @rkoster and myself; but I guess it doesn't fail for anyone at Pivotal or their CI in the last week? Working for anyone?

drnic avatar Apr 07 '13 00:04 drnic

Looks like @danhigham found this bug too https://github.com/cloudfoundry/bosh/commit/ad60ba5aa28d1628c4cfcf0a207b0d6aba42ceb1#commitcomment-2925556

drnic avatar Apr 07 '13 00:04 drnic

@drnic We've not seen this error in our local environment nor in our integration tests because we're using ruby 1.9.3-p327 installed via rvm or rbenv. But I've reproduced the error when using bosh-bootstrap. Seems an issue with ruby + psych + libyaml version. If I log in into my inception VM I get a Psych version 1.2.2, and if I load a yaml file, I get the error when invoking the root method. In my local env, using 1.9.3-p392, I get a Psych version 1.3.4, and I'm able to invoke the root method.

I'm trying to figure out how to install the latest psych/yaml code without compiling ruby.

frodenas avatar Apr 07 '13 16:04 frodenas

The issue with the stemcell creation on master should be fixed if using ruby 1.9.3-p327. Please reopen if you're still having this issue.

ajackson avatar Apr 23 '13 19:04 ajackson