Skip to content

Fix instance recovery disable to purge all related SAAS apps#735

Merged
hemanthnakkina merged 2 commits into
canonical:mainfrom
ahmad-can:fix-instance-recovery-saas-termination-on-disable
Jun 2, 2026
Merged

Fix instance recovery disable to purge all related SAAS apps#735
hemanthnakkina merged 2 commits into
canonical:mainfrom
ahmad-can:fix-instance-recovery-saas-termination-on-disable

Conversation

@ahmad-can
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates Instance Recovery disable flow to purge all related cross-model SAAS applications (not just masakari), and adds a unit test to validate the new purge list composition.

Changes:

  • Update run_disable_plans() to pass the full application list from set_application_names() into RemoveSaasApplicationsStep.
  • Add a unit test asserting disable purges Consul + Masakari-related SAAS apps.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
sunbeam-python/sunbeam/features/instance_recovery/feature.py Expands SAAS purge list during disable to include all apps returned by set_application_names().
sunbeam-python/tests/unit/sunbeam/features/test_instance_recovery_feature.py Adds test coverage to ensure disable purges Consul + Masakari SAAS apps.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread sunbeam-python/tests/unit/sunbeam/features/test_instance_recovery_feature.py Outdated
Copy link
Copy Markdown
Collaborator

@hemanthnakkina hemanthnakkina left a comment

Choose a reason for hiding this comment

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

LGTM, please fix the copilot review comments

@hemanthnakkina
Copy link
Copy Markdown
Collaborator

@ahmad-can In case you missed, can you fix copilot review comments or reply to the comment

@ahmad-can ahmad-can force-pushed the fix-instance-recovery-saas-termination-on-disable branch from 7b5a75a to d42b423 Compare June 1, 2026 11:29
@ahmad-can ahmad-can requested a review from hemanthnakkina June 1, 2026 11:33
@hemanthnakkina hemanthnakkina merged commit 3b27c07 into canonical:main Jun 2, 2026
6 checks passed
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.

3 participants