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

ENT-12668: Fix nt-discovery.sh usage and other improvements #124

Merged
merged 5 commits into from
Feb 19, 2025

Conversation

craigcomstock
Copy link
Contributor

@craigcomstock craigcomstock commented Feb 14, 2025

Initially the problem was cf-remote install localhost not working with nt-discovery.sh.

I fixed a few other things I found along the way to improve visibility of what is wrong when ssh/scp don't work and other bits I noticed.

tests/shell/001-docker-install-test.sh Outdated Show resolved Hide resolved
cf_remote/remote.py Outdated Show resolved Hide resolved
cf_remote/aramid.py Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
cf_remote/ssh.py Outdated Show resolved Hide resolved
cf_remote/ssh.py Outdated Show resolved Hide resolved
cf_remote/remote.py Outdated Show resolved Hide resolved
cf_remote/remote.py Outdated Show resolved Hide resolved
cf_remote/remote.py Outdated Show resolved Hide resolved
…r machine

These were added to expose bug in how nt-discovery.sh is managed and used.

Ticket: ENT-12668
@craigcomstock craigcomstock force-pushed the ENT-12668 branch 2 times, most recently from 4aff441 to 2ec0c38 Compare February 18, 2025 22:54
cf_remote/aramid.py Outdated Show resolved Hide resolved
cf_remote/aramid.py Outdated Show resolved Hide resolved
cf_remote/ssh.py Outdated Show resolved Hide resolved
cf_remote/ssh.py Outdated Show resolved Hide resolved
tests/aws-spawn-test.sh Outdated Show resolved Hide resolved
cf_remote/remote.py Outdated Show resolved Hide resolved
cf_remote/remote.py Outdated Show resolved Hide resolved
cf_remote/remote.py Outdated Show resolved Hide resolved
cf_remote/remote.py Outdated Show resolved Hide resolved
The nt-discovery.sh file was assumed to be in PWD which would almost never be the case except during development.

This change required some further refactoring to change put() on UNIX hosts to copy to /tmp since otherwise we don't really know where PWD is reliably.

Ticket: ENT-12668
@craigcomstock craigcomstock merged commit b818cef into cfengine:master Feb 19, 2025
6 checks passed
@craigcomstock craigcomstock deleted the ENT-12668 branch February 19, 2025 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants