Files
watcher/releasenotes/notes/migration-precondition-check-ff55be4.yaml
Alfredo Moralejo c14f9098a6 Skip migrate actions in pre_condition phase
This patch is implementing detection of certain conditions and moving
the action to SKIPPED status so that, execution is not started. We will
check that:

- The instance exists
- The instance is running in the source_node

On other contitions the action will be FAILED in the pre_condition
check:

- Destination node (if specified) does not exists or is disabled
- Instance is not ACTIVE and migration_type is live.

Implements: blueprint skip-actions-in-pre-condition

Assisted-By: claude-code (claude-sonnet-4.5)

Change-Id: I52f6fbe6961a4fb195e601b529110c6c3154c2dc
Signed-off-by: Alfredo Moralejo <amoralej@redhat.com>
2025-12-11 09:18:45 +00:00

18 lines
560 B
YAML

---
features:
- |
Added a pre-condition check to the migration action to prevent executing
migrations when required criteria are not met. In following conditions,
the action status will be set to SKIPPED:
- Instance is not found
- Instance is not running on source node
On other conditions the action will be FAILED in the pre_condition
check:
- Destination node (if specified) does not exists or is disabled
- Instance is not ACTIVE and migration_type is live.
This improves safety and correctness of migrations.