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

Ensure we can set migration phase to DONE idempotently. #16858

Open
wants to merge 1 commit into
base: 3.6
Choose a base branch
from

Conversation

hpidcock
Copy link
Member

After a model has been migrated away, after reaping the model, the migration master sets the migration phase to DONE.
Although this should not have any consequence, as the phase is already set to DONE, we need to be idempotent here. If we are setting to DONE and the model doesn't exists and we are already DONE, we should continue without error.

QA steps

Unit tests should still pass.

Documentation changes

N/A

Links

alt-model-migration-controller-debug.log: machine-0: 11:24:57 ERROR juju.worker.dependency "migration-master" manifold worker returned unexpected error: failed to set phase: could not get migration: model "3a971d6b-338d-47aa-8cbd-f5fc83be4b2a" not found (not found)

@hpidcock hpidcock added the 3.4 label Jan 30, 2024
Copy link
Member

@SimonRichardson SimonRichardson left a comment

Choose a reason for hiding this comment

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

Can we get a test for this?

@hpidcock hpidcock changed the base branch from 3.4 to 3.6 April 24, 2024 00:45
@hpidcock hpidcock added 3.6 decaying Pull requests that are decaying and will be eventually closed without merge. and removed 3.4 labels Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.6 decaying Pull requests that are decaying and will be eventually closed without merge.
Projects
None yet
2 participants