Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

knife bootstrap no longer looks for a default key (~/.ssh/id_rsa) with ChefDK 4 #8821

Open
mattray opened this issue Aug 15, 2019 · 3 comments

Comments

@mattray
Copy link
Member

commented Aug 15, 2019

In ChefDK 3.11.3 knife bootstrap without specifying -i would use ~/.ssh/id_rsa as the default key. ChefDK 4.x has a regression where it no longer respects this and requires a default key be provided via -i.

@vsingh-msys

This comment has been minimized.

Copy link
Contributor

commented Sep 17, 2019

ChefDK 3.11.3 resolved as chef-client 14.13.11. As per my analysis, I have tested the vagrant ubuntu 16.04 node on the following scenario:

chef version cmd target node ssh config comments
14.11.13 knife bootstrap node2.test -x vagrant without authetication_keys added ask for password
14.11.13 knife bootstrap node2.test -x vagrant with authetication_keys added successfully bootstrap
15.4.1 knife bootstrap node2.test -U vagrant without authetication_keys added ask for password
15.4.1 knife bootstrap node2.test -U vagrant with authetication_keys added successfully bootstrap

Also I have looked into the code it never set ~/.ssh/id_rsa in identity_file config option in both chef-14 and chef-15.

Let me know if I am missing something at my end?

Thanks!

vagrant@node1:~$ chef -v
Chef Development Kit Version: 3.11.3
chef-client version: 14.13.11
delivery version: master (9d07501a3b347cc687c902319d23dc32dd5fa621)
berks version: 7.0.8
kitchen version: 1.25.0
inspec version: 3.9.3
@Vasu1105

This comment has been minimized.

Copy link
Contributor

commented Sep 18, 2019

@vsingh-msys I feel we should check with ChefDk 4.x once.

@vsingh-msys

This comment has been minimized.

Copy link
Contributor

commented Sep 18, 2019

@Vasu1105 I tried to bootstrap the ubuntu node from ChefDK 4.3.1 as well seems showing expected behaviour as my earlier testing with one know issue,

it won't ask for password due to #8856 not yet merge

chef -v
ChefDK version: 4.3.1
Chef Infra Client version: 15.1.36
Chef InSpec version: 4.7.3
Test Kitchen version: 2.2.5
Foodcritic version: 16.1.1
Cookstyle version: 5.0.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.