-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[chef-15] knife bootstrap ssh gives Train::PlatformDetectionFailed error if --connection-user is not provided. #8550
Comments
@Vasu1105 I tried to reproduce the issue but seems it is working as expected in latest chef infra Also with build
|
@vsingh-msys I verified it with |
What I see the problem here it behaves differently for the same scenarios. What I debug and understood is if --connection-user is not provided it uses root user to ssh the system. And it fails where login with root user is not enabled. The weird thing it gives different error for @vsingh-msys. |
In Chef-14 it notifies user to use the specific login user rather than error out.
|
I accidentally reproduced this testing knife-ec2 without passing notice we are connecting as root but the ec2 ubuntu images have
|
Fix is merge so closing this. |
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. |
Description
knife bootstrap with ssh gives the
Train::PlatformDetectionFailed
error if --connection-user is not provided. It should give valid error message which will help user to understand the root cause.Chef Version
15.0.293
Platform Version
Ubuntu 18.04
Replication Case
I am running below command.
Client Output
Stacktrace
The text was updated successfully, but these errors were encountered: