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>
18 lines
560 B
YAML
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.
|