chef-boneyard / habitat

Chef Cookbook for Habitat
https://supermarket.chef.io/cookbooks/habitat
Apache License 2.0
22 stars 42 forks source link

`bldr_url` appears to default to the old `willem` url #60

Closed bixu closed 6 years ago

bixu commented 7 years ago

From a Terraform log (we did not set bldr_url for our hab_package resource):

10:57:36 aws_instance.postgres-restore-tests (chef):     Error executing action `install` on resource 'hab_package[core/hab-sup]'
10:57:36 aws_instance.postgres-restore-tests (chef):     ================================================================================
10:57:36 
10:57:36 aws_instance.postgres-restore-tests (chef):     Mixlib::ShellOut::ShellCommandFailed
10:57:36 aws_instance.postgres-restore-tests (chef):     ------------------------------------
10:57:36 aws_instance.postgres-restore-tests (chef):     Expected process to exit with [0], but received '1'
10:57:36 aws_instance.postgres-restore-tests (chef):     ---- Begin output of ["hab", "pkg", "install", "--url", "https://willem.habitat.sh/v1/depot", "core/hab-sup/0.38.0"] ----
10:57:36 aws_instance.postgres-restore-tests (chef):     STDOUT: » Installing core/hab-sup/0.38.0 from channel 'stable'
10:57:36 aws_instance.postgres-restore-tests (chef):     STDERR: ✗✗✗
10:57:36 aws_instance.postgres-restore-tests (chef):     ✗✗✗ Package not found
10:57:36 aws_instance.postgres-restore-tests (chef):     ✗✗✗
10:57:36 aws_instance.postgres-restore-tests (chef):     ---- End output of ["hab", "pkg", "install", "--url", "https://willem.habitat.sh/v1/depot", "core/hab-sup/0.38.0"] ----
10:57:36 aws_instance.postgres-restore-tests (chef):     Ran ["hab", "pkg", "install", "--url", "https://willem.habitat.sh/v1/depot", "core/hab-sup/0.38.0"] returned 1

cc: @mspringfeldt

jtimberman commented 6 years ago

Hey @bixu,

The willem hostname is not "old" - it's an alias and as far as I know there is no intention to ever remove it.

The error you saw is because we appended the path, including the version, to the URL there, and that has since been removed (released in version 0.33.0 of the cookbook). With the latest release of Habitat, this appears to install fine just fine:

root@2a256e37f846:/# hab pkg install --url https://willem.habitat.sh core/hab-sup/0.38.0
» Installing core/hab-sup/0.38.0 from channel 'stable'
↓ Downloading core/hab-sup/0.38.0/20171026221910
    2.19 MB / 2.19 MB | [=================================] 100.00 % 2.55 MB/s
☛ Verifying core/hab-sup/0.38.0/20171026221910
*snip output*

Please update your cookbook and try again. Thanks!