-
Notifications
You must be signed in to change notification settings - Fork 59
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 verify fails with the kitchen-docker plugin #83
Comments
@bigbam505 CentOS requests a PTY session. This may be related to inspec/train#60 Could you try to set
|
I will look at this tomorrow. Sorry about the late response just trying to get around to it. |
Was able to fix this with a small hack not sure if there was a more elegant solution for this.
|
Thanks for sharing the solution @bigbam505 |
Not really sure this is a solution but rather a way around the issue 😄 . Is there a way to change this at a higher level? Maybe or a way for the verifier to hook in and configure itself and perform this itself? |
@bigbam505 Good question. Let me think about it... |
InSpec 0.26.0 includes a fix inspec/train#112 that improves ssh access to CentOS/RHEL and OSX. Please retry with the latest InSpec. |
This did not work right out of the box. Are there any settings I need to set as well? I still got the same ttl issue without the hack that I included above. |
I just tried your kitchen.yml with the latest inspec and it worked well without changing anything. |
Works for me, too! |
I'm having the same issue with centos-7.1 using inspec 0.26.0. I can set |
We're experiencing the same issue with kitchen-openstack. What I'm not sure I understand is the difference in how kitchen-openstack and kitchen-inspec connect to the VM. Just like in kitchen-docker, kitchen connects to the VM (in our case we ssh) as a non-root user, then sudos to perform the client install and client run. Why does my test kitchen run not have the PTY error but inspec does? Is kitchen-openstack/kitchen-docker somehow requesting a PTY? This is using current ChefDK/Inspec/train (well, chefdk seemed to come with train 0.23.0, I manually installed 0.25.0)
|
InSpec/Train does not request a PTY as it hampers our ability to differentiate between STDOUT and STDIN, and many core resources need that separation in order to function properly. Any sudo configurations will need to be modified to not require a TTY accordingly. I will be closing this issue now but please feel free to let us know if you feel it should be reopened. Thank you! |
Not sure if this is an issue with kitchen-docker or kitchen-inspec. The issue returned comes with the following:
The kitchen file looks a such and the converge works easily. I am also using docker-beta which I am not sure if that plays into this at all.
The text was updated successfully, but these errors were encountered: