chef-boneyard/chef-dk

Chef DK Hab package Binlink fails

gscho opened this issue · 4 comments

gscho commented

Description

Habitat chef-dk package is broken after running a habitat binlink.

ChefDK Version

chef/chef-dk version 3.0.38

Platform Version

Centos 7.2 (docker)

Replication Case

First install the package

hab pkg install chef/chef-dk -bf

Then run chef -v

Stacktrace

/hab/pkgs/chef/chef-dk/3.0.38/20180525172209/ruby/2.4.0/gems/mixlib-shellout-2.3.2/lib/mixlib/shellout/unix.rb:340:in `exec': No such file or directory - delivery (Errno::ENOENT)
	from /hab/pkgs/chef/chef-dk/3.0.38/20180525172209/ruby/2.4.0/gems/mixlib-shellout-2.3.2/lib/mixlib/shellout/unix.rb:340:in `block in fork_subprocess'
	from /hab/pkgs/chef/chef-dk/3.0.38/20180525172209/ruby/2.4.0/gems/mixlib-shellout-2.3.2/lib/mixlib/shellout/unix.rb:318:in `fork'
	from /hab/pkgs/chef/chef-dk/3.0.38/20180525172209/ruby/2.4.0/gems/mixlib-shellout-2.3.2/lib/mixlib/shellout/unix.rb:318:in `fork_subprocess'
	from /hab/pkgs/chef/chef-dk/3.0.38/20180525172209/ruby/2.4.0/gems/mixlib-shellout-2.3.2/lib/mixlib/shellout/unix.rb:95:in `run_command'
	from /hab/pkgs/chef/chef-dk/3.0.38/20180525172209/ruby/2.4.0/gems/mixlib-shellout-2.3.2/lib/mixlib/shellout.rb:263:in `run_command'
	from /hab/pkgs/chef/chef-dk/3.0.38/20180525172209/ruby/2.4.0/gems/chef-14.1.12/lib/chef/mixin/shell_out.rb:171:in `shell_out_command'
	from /hab/pkgs/chef/chef-dk/3.0.38/20180525172209/ruby/2.4.0/gems/chef-14.1.12/lib/chef/mixin/shell_out.rb:114:in `shell_out'
	from /hab/pkgs/chef/chef-dk/3.0.38/20180525172209/ruby/2.4.0/gems/chef-dk-3.0.38/lib/chef-dk/cli.rb:101:in `block (2 levels) in show_version'
	from /hab/pkgs/core/bundler/1.16.0/20171129183702/gems/bundler-1.16.0/lib/bundler.rb:297:in `block in with_clean_env'
	from /hab/pkgs/core/bundler/1.16.0/20171129183702/gems/bundler-1.16.0/lib/bundler.rb:540:in `with_env'
	from /hab/pkgs/core/bundler/1.16.0/20171129183702/gems/bundler-1.16.0/lib/bundler.rb:297:in `with_clean_env'
	from /hab/pkgs/chef/chef-dk/3.0.38/20180525172209/ruby/2.4.0/gems/chef-dk-3.0.38/lib/chef-dk/cli.rb:101:in `block in show_version'
	from /hab/pkgs/chef/chef-dk/3.0.38/20180525172209/ruby/2.4.0/gems/chef-dk-3.0.38/lib/chef-dk/cli.rb:100:in `each'
	from /hab/pkgs/chef/chef-dk/3.0.38/20180525172209/ruby/2.4.0/gems/chef-dk-3.0.38/lib/chef-dk/cli.rb:100:in `show_version'
	from /hab/pkgs/chef/chef-dk/3.0.38/20180525172209/ruby/2.4.0/gems/chef-dk-3.0.38/lib/chef-dk/cli.rb:90:in `handle_options'
	from /hab/pkgs/chef/chef-dk/3.0.38/20180525172209/ruby/2.4.0/gems/chef-dk-3.0.38/lib/chef-dk/cli.rb:70:in `run'
	from /hab/pkgs/chef/chef-dk/3.0.38/20180525172209/ruby/2.4.0/gems/chef-dk-3.0.38/bin/chef:25:in `<top (required)>'
	from /hab/pkgs/chef/chef-dk/3.0.38/20180525172209/ruby-bin/chef:100:in `load'
	from /hab/pkgs/chef/chef-dk/3.0.38/20180525172209/ruby-bin/chef:100:in `<main>'
gscho commented

Here's a test-kitchen config where you can easily recreate the issue.

driver:
  name: docker
  binary: /usr/local/bin/docker
  use_sudo: false
  provision_command: curl https://raw.githubusercontent.com/habitat-sh/habitat/master/components/hab/install.sh | bash

provisioner:
  name: shell

platforms:
  - name: centos-7.2

verifier:
  name: inspec

suites:
  - name: test

This isn't broken entirely but it looks like for some reason we don't bin link the delivery-cli so the only thing that breaks is chef -v and if you tried to run delivery.

This is actually a dupe of https://github.com/chef/chef-dk/issues/1588, closing.

lock commented

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.