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

Fix removing old nodes after restore if rke2-server already started #219

Merged

Conversation

glennpratt
Copy link
Contributor

@glennpratt glennpratt commented May 23, 2024

Description

If rke2-server happened to start on the first node before the node removal section, nodes would not be removed.

This was because the removal was in first_server.yml which is gated by active_server is not defined.

https://github.com/lablabs/ansible-role-rke2/blob/main/tasks/main.yml#L46-L49

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • Small minor change not affecting the Ansible Role code (GitHub Actions Workflow, Documentation etc.)

How Has This Been Tested?

TBD

@MonolithProjects MonolithProjects self-assigned this May 24, 2024
@MonolithProjects MonolithProjects added the bug Something isn't working label May 24, 2024
@MonolithProjects
Copy link
Collaborator

Hi @glennpratt, thanks for this PR. Please resolve the conflict.

Copy link
Collaborator

@MonolithProjects MonolithProjects left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @glennpratt, please fix the pipefail. Everything else looks fine. Thanks

tasks/first_server_restore.yml Outdated Show resolved Hide resolved
Copy link
Collaborator

@MonolithProjects MonolithProjects left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks

@MonolithProjects MonolithProjects merged commit ce7e20b into lablabs:main May 29, 2024
5 checks passed
@glennpratt glennpratt deleted the fix-restore-remove-old-nodes branch May 29, 2024 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants