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: bootstrap: ssh key of the init node is duplicated in the authorized_keys files of other node (bsc#1218940) #1311

Merged

Conversation

nicholasyang2022
Copy link
Collaborator

When a cluster is bootstrap with 'crm cluster init -N', the public key of the init node is added for mutiple times to the authorized_key files of other nodes.

Fix by reusing AuthorizedKeyManager.add in swap_public_ssh_key.

authorized_keys files of other node (bsc#1218940)

When a cluster is bootstrap with 'crm cluster init -N', the public key
of the init node is added for mutiple times to the authorized_key files
of other nodes.

Fix by reusing `AuthorizedKeyManager.add` in swap_public_ssh_key.
Copy link

codecov bot commented Jan 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (1eb5327) 52.66% compared to head (46a37ca) 52.67%.

Additional details and impacted files
@@            Coverage Diff             @@
##           crmsh-4.6    #1311   +/-   ##
==========================================
  Coverage      52.66%   52.67%           
==========================================
  Files             79       79           
  Lines          23938    23937    -1     
==========================================
+ Hits           12607    12608    +1     
+ Misses         11331    11329    -2     

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

@liangxin1300 liangxin1300 merged commit c9e4a0a into ClusterLabs:crmsh-4.6 Jan 24, 2024
33 checks passed
@nicholasyang2022 nicholasyang2022 deleted the bsc_1218940_20240122 branch April 29, 2024 06:14
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