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

'sudo crm cluster copy <relative_path>' output could be more informative #1318

Open
zzhou1 opened this issue Jan 30, 2024 · 1 comment
Open

Comments

@zzhou1
Copy link
Contributor

zzhou1 commented Jan 30, 2024

Sounds better to make the output more informative a little, for example,

adm@tw-1:~> sudo crm cluster copy .ssh/authorized_keys
INFO: copied to root@tw-2:.ssh/authorized_keys

@nicholasyang2022
Copy link
Collaborator

nicholasyang2022 commented Feb 1, 2024

And there is a more severe problem: crmsh.prun.pcopy_to_remote skips local host when source path is identical in string to destination path. When a relative path is used, it causes inconsistent behavior between local host and remote host.

For example, root@node1:/tmp # crm cluster copy foo copies /tmp/foo from node1:/tmp/foo to node2:/root/foo, but not to node1:/root/foo

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

No branches or pull requests

2 participants