Skip to content
This repository has been archived by the owner on Mar 19, 2022. It is now read-only.

knife[:bootstrap_version] not honoured in knife.rb #437

Open
patcon opened this issue Jun 8, 2015 · 1 comment
Open

knife[:bootstrap_version] not honoured in knife.rb #437

patcon opened this issue Jun 8, 2015 · 1 comment

Comments

@patcon
Copy link
Contributor

patcon commented Jun 8, 2015

This seems to work fine as an command line arg, but not in any knife.rb, in either $HOME or project level.

~/blendive/kitchens/project-kitchen (master ✘)✹✭ ᐅ gem list knife-solo           

*** LOCAL GEMS ***

knife-solo (0.4.2)
~/blendive/kitchens/project-kitchen (master ✘)✹✭ ᐅ cat .chef/knife.rb | grep version
knife[:boostrap_version] = '11.16.0'
~/blendive/kitchens/project-kitchen (master ✘)✹✭ ᐅ knife solo prepare admin@52.4.153.194                         
Bootstrapping Chef...
--2015-06-08 18:12:34--  https://www.opscode.com/chef/install.sh
Resolving www.opscode.com (www.opscode.com)... 166.78.227.233
Connecting to www.opscode.com (www.opscode.com)|166.78.227.233|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 18736 (18K) [application/x-sh]
Saving to: ‘install.sh’

install.sh          100%[=====================>]  18.30K  --.-KB/s   in 0s     

2015-06-08 18:12:34 (241 MB/s) - ‘install.sh’ saved [18736/18736]

sudo: unable to resolve host ip-172-30-0-8
Downloading Chef 12.3.0 for debian...
downloading https://www.opscode.com/chef/metadata?v=12.3.0&prerelease=false&nightlies=false&p=debian&pv=8.0&m=x86_64
  to file /tmp/install.sh.9881/metadata.txt
trying wget...
url https://opscode-omnibus-packages.s3.amazonaws.com/debian/6/x86_64/chef_12.3.0-1_amd64.deb
md5 0037eef6022e79ff572057b2a3388c92
sha256  ed31d9e3b607ddf1b545a9c9baecf05fff18d0653f98e20c5cb15d2ac879d0bd
downloaded metadata file looks valid...
downloading https://opscode-omnibus-packages.s3.amazonaws.com/debian/6/x86_64/chef_12.3.0-1_amd64.deb
  to file /tmp/install.sh.9881/chef_12.3.0-1_amd64.deb
trying wget...
Comparing checksum with sha256sum...
Installing Chef 12.3.0
installing with dpkg...
(Reading database ... 39551 files and directories currently installed.)
Preparing to unpack .../chef_12.3.0-1_amd64.deb ...
Unpacking chef (12.3.0-1) over (12.3.0-1) ...
Setting up chef (12.3.0-1) ...
Thank you for installing Chef!                                           
~/blendive/kitchens/project-kitchen (master ✘)✹✭ ᐅ knife solo prepare admin@52.4.153.194 --bootstrap-version 11.16.0
Bootstrapping Chef...
--2015-06-08 18:15:03--  https://www.opscode.com/chef/install.sh
Resolving www.opscode.com (www.opscode.com)... 166.78.227.233
Connecting to www.opscode.com (www.opscode.com)|166.78.227.233|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 18736 (18K) [application/x-sh]
Saving to: ‘install.sh’

install.sh          100%[=====================>]  18.30K  --.-KB/s   in 0s     

2015-06-08 18:15:04 (176 MB/s) - ‘install.sh’ saved [18736/18736]

sudo: unable to resolve host ip-172-30-0-8
Downloading Chef 11.16.0 for debian...
downloading https://www.opscode.com/chef/metadata?v=11.16.0&prerelease=false&nightlies=false&p=debian&pv=8.0&m=x86_64
  to file /tmp/install.sh.10173/metadata.txt
trying wget...
url https://opscode-omnibus-packages.s3.amazonaws.com/debian/6/x86_64/chef_11.16.0-1_amd64.deb
md5 df6b429ab67b000c10fa9b5bdf5d0936
sha256  2b477e1081035cd3e7637b817fa2a9543096f41a04658bb2d1ce397312c90d8b
downloaded metadata file looks valid...
downloading https://opscode-omnibus-packages.s3.amazonaws.com/debian/6/x86_64/chef_11.16.0-1_amd64.deb
  to file /tmp/install.sh.10173/chef_11.16.0-1_amd64.deb
trying wget...
Comparing checksum with sha256sum...
Installing Chef 11.16.0
installing with dpkg...
dpkg: warning: downgrading chef from 12.3.0-1 to 11.16.0-1
(Reading database ... 39551 files and directories currently installed.)
Preparing to unpack .../chef_11.16.0-1_amd64.deb ...
Unpacking chef (11.16.0-1) over (12.3.0-1) ...
Setting up chef (11.16.0-1) ...
Thank you for installing Chef!
~/blendive/kitchens/project-kitchen (master ✘)✹✭ ᐅ 

Any thoughts? Is there a trick to this?

@matschaffer
Copy link
Owner

https://github.com/matschaffer/knife-solo/blob/master/lib/chef/knife/solo_prepare.rb#L67 seems to say it should work. I'd probably run it with -VV to ensure it's getting down to the install command.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants