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

bug: properly wait for removal of units and machines #42

Merged
merged 1 commit into from
Jul 25, 2024

Conversation

skatsaounis
Copy link
Collaborator

@skatsaounis skatsaounis commented Jul 23, 2024

  • Extend Sunbeam RemoveMachineUnitStep and RemoveJujuMachineStep so that maas-anvil is properly waiting for the removal of units and machines.
  • For RemoveJujuMachineStep an extra check is added to ensure that if an error is received during removal, this error is not about the non-existence of the machine. A machine without any units deployed on it is auto-removed. As such, the moment when the command runs, the machine can be already removed.
  • Re-order the removal of units of Juju applications of Anvil roles to happen in reverse order of their addition.

@skatsaounis
Copy link
Collaborator Author

This is proof of success: https://paste.ubuntu.com/p/v99nNN27Kz/

@skatsaounis
Copy link
Collaborator Author

A bug was also raised to Juju to describe the existing issue with wait-for and removal of Juju entities: https://bugs.launchpad.net/juju/+bug/2073960

Copy link
Member

@SK1Y101 SK1Y101 left a comment

Choose a reason for hiding this comment

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

+1 from me

Copy link
Contributor

@wyattrees wyattrees left a comment

Choose a reason for hiding this comment

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

LGTM. I did get a timeout one time on the juju wait-for machine part of RemoveJujuMachineStep, but I couldn't reproduce it.

@skatsaounis skatsaounis merged commit f8730c3 into canonical:main Jul 25, 2024
5 checks passed
@skatsaounis skatsaounis deleted the wait-removal branch July 25, 2024 06:32
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.

Errors during removal of nodes from Anvil cluster
3 participants