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

Kitchen setup on Centos6.4 fails initial ssh auth with valid credentials #137

Closed
gmiranda23 opened this issue May 28, 2015 · 2 comments
Closed

Comments

@gmiranda23
Copy link

While validating that #85 is resolved, I ran into this new (related?) issue with ssh on Centos6.4 with kitchen-ec2. Valid login credentials are supplied but initial SSH connection fails. Credentials verified by attempting login from a different session. With kitchen, the initial SSH attempt bombs out (key auth fails and I simply enter nothing for password 3 times), SSH retries the connection and this time it works.

$ kitchen setup
-----> Starting Kitchen (v1.4.0)
-----> Creating <default-centos-64>...
       Creating <>...
If you are not using an account that qualifies under the AWS
free-tier, you may be charged to run these suites. The charge
should be minimal, but neither Test Kitchen nor its maintainers
are responsible for your incurred costs.

       Instance <i-fb72eb0c> requested.
       EC2 instance <i-fb72eb0c> created.
       Waited 0/300s for instance <i-fb72eb0c> to become ready.
       Waited 5/300s for instance <i-fb72eb0c> to become ready.
       Waited 10/300s for instance <i-fb72eb0c> to become ready.
       Waited 15/300s for instance <i-fb72eb0c> to become ready.
       Waited 20/300s for instance <i-fb72eb0c> to become ready.
       EC2 instance <i-fb72eb0c> ready.
       Waiting for SSH service on ec2-52-25-141-157.us-west-2.compute.amazonaws.com:22, retrying in 3 seconds
       Waiting for SSH service on ec2-52-25-141-157.us-west-2.compute.amazonaws.com:22, retrying in 3 seconds
       Waiting for SSH service on ec2-52-25-141-157.us-west-2.compute.amazonaws.com:22, retrying in 3 seconds
       Waiting for SSH service on ec2-52-25-141-157.us-west-2.compute.amazonaws.com:22, retrying in 3 seconds
       Waiting for SSH service on ec2-52-25-141-157.us-west-2.compute.amazonaws.com:22, retrying in 3 seconds
       Waiting for SSH service on ec2-52-25-141-157.us-west-2.compute.amazonaws.com:22, retrying in 3 seconds
       Waiting for SSH service on ec2-52-25-141-157.us-west-2.compute.amazonaws.com:22, retrying in 3 seconds
    root@ec2-52-25-141-157.us-west-2.compute.amazonaws.com's password:
    root@ec2-52-25-141-157.us-west-2.compute.amazonaws.com's password:
    root@ec2-52-25-141-157.us-west-2.compute.amazonaws.com's password:
       Waiting for SSH service on ec2-52-25-141-157.us-west-2.compute.amazonaws.com:22, retrying in 3 seconds
       [SSH] Established
       Finished creating <default-centos-64> (2m20.17s).
       ...

$ chef -v
Chef Development Kit Version: 0.6.0
chef-client version: 12.3.0
berks version: 3.2.4
kitchen version: 1.4.0

$ chef gem list kitchen-ec2
*** LOCAL GEMS ***
kitchen-ec2 (0.9.2)

Relevant bits of .kitchen.yml
driver:
  name: ec2
  aws_ssh_key_id: my-ssh-key
  region: us-west-2
  require_chef_omnibus: true
  instance_type: m3.medium
  security_group_ids: [ "default" ]

transport:
  ssh_key: /Users/gmiranda/.ssh/my-ssh-key
  username: root
@tyler-ball
Copy link
Contributor

Hey @gmiranda23 - thanks for the bug report. I think we have a fix for this merged into TK master - can you try using the latest master branch locally via my instructions from #129 (comment) and let us know if that fixes your issue?

@gmiranda23
Copy link
Author

That fixed it. Looking forward to the release!

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

No branches or pull requests

2 participants