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

[crmsh-4.6] Fix: add diagnostic messages when crm report cannot find ssh-agent (bsc#1219538) #1336

Merged

Conversation

nicholasyang2022
Copy link
Collaborator

In a cluster boostrapped with --use-ssh-agent, crm report depends on the agent to authenticate to other nodes. If the agent is not started, forwarded or is hidden by sudo, crmsh should print diagnostic message to help users fix the problem.

…sc#1219538)

In a cluster boostrapped with `--use-ssh-agent`, crm report depends on
the agent to authenticate to other nodes. If the agent is not started,
forwarded or is hidden by sudo, crmsh should print diagnostic message to
help users fix the problem.
Copy link

codecov bot commented Feb 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 52.82%. Comparing base (cf0a94f) to head (3bb63a0).

Additional details and impacted files
@@            Coverage Diff             @@
##           crmsh-4.6    #1336   +/-   ##
==========================================
  Coverage      52.82%   52.82%           
==========================================
  Files             79       79           
  Lines          24002    24002           
==========================================
  Hits           12678    12678           
  Misses         11324    11324           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@nicholasyang2022
Copy link
Collaborator Author

Outputs with this patch applied:

suse@ha-1-1:~> sudo crm report
ha-1-1: WARNING: Environment variable SSH_AUTH_SOCK does not exist. Please check whether ssh-agent is available and consider using "sudo --preserve-env=SSH_AUTH_SOCK".
ha-1-1: INFO: Creating ssh connection to ha-1-2...
Password: 

ha-1-1: INFO: Creating ssh connection to ha-1-2...
Password: 

ha-1-1: INFO: The report is saved in ./crm_report-Tue-27-Feb-2024.tar.gz
ha-1-1: INFO: Report timespan: 2024-02-27 04:47:43 - 2024-02-27 16:47:43
ha-1-1: INFO: Including nodes: ha-1-1 ha-1-2
ha-1-1: INFO: Thank you for taking time to create this report

@nicholasyang2022 nicholasyang2022 marked this pull request as ready for review February 27, 2024 08:48
@liangxin1300 liangxin1300 merged commit 21cbb9e into ClusterLabs:crmsh-4.6 Feb 27, 2024
31 checks passed
@nicholasyang2022 nicholasyang2022 deleted the bsc_1219538_20240227 branch February 28, 2024 06:46
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

Successfully merging this pull request may close these issues.

2 participants