-
Notifications
You must be signed in to change notification settings - Fork 363
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
Additionally mount ~/.ssh/
to /root/.ssh
inside EEs
#805
Conversation
Some background: paramiko looks for keys in $HOME/.ssh, $HOME in the EE is set to /home/runner this change will allow for both the use of paramiko and openssh within the EE, and keys being located in each of those default search paths (this all w/o ssh-agent) |
LGTM, except for needing test updates. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change looks good. The tests are failing due to a mismatch in expected order of options:
test/unit/config/test_ansible_cfg.py:92: AssertionError
AssertionError: assert '-v' == '--group-add=root'
Do we need to add new tests for this to ensure it doesn't break in the future?
Fix unit tests to run consistently in CI and locally use pytest-mock and tmp_path fixtures mock test environment variables to prevent inconsistent test results reformat test fixtures so they are easier to read This will resolve the test failures in #805. Reviewed-by: Sviatoslav Sydorenko <webknjaz+github/profile@redhat.com> Reviewed-by: Sam Doran <sdoran@redhat.com> Reviewed-by: Alan Rominger <arominge@redhat.com> Reviewed-by: David Shrewsbury <None> Reviewed-by: None <None>
recheck |
~/.ssh/ to /root/.ssh
inside EEs
~/.ssh/ to /root/.ssh
inside EEs~/.ssh/
to /root/.ssh
inside EEs
792b4c7
to
fe3c1aa
Compare
Do we not need this anymore? It looks like the tests will need to be updated since a new mount is being added. I plan to refactor the command and object generation into common functions that can be shared. That will minimize the locations we need to change the tests when the code changes. |
Additionally mount ~/.ssh/ to /root/.ssh inside EEs I accidentally closed #805 with a force-push and can't figure out how to reopen. Currently when running inside an EE as root, only SSH_AUTH_SOCK is working. This enables the usage of default key names under ~/.ssh/ on the host. Reviewed-by: David Shrewsbury <None> Reviewed-by: None <None>
Fix unit tests to run consistently in CI and locally use pytest-mock and tmp_path fixtures mock test environment variables to prevent inconsistent test results reformat test fixtures so they are easier to read This will resolve the test failures in ansible#805. Reviewed-by: Sviatoslav Sydorenko <webknjaz+github/profile@redhat.com> Reviewed-by: Sam Doran <sdoran@redhat.com> Reviewed-by: Alan Rominger <arominge@redhat.com> Reviewed-by: David Shrewsbury <None> Reviewed-by: None <None> (cherry picked from commit 2323686)
Currently when running inside an EE as root, only
SSH_AUTH_SOCK
is working.This enables the usage of default key names under
~/.ssh/
on the host.