Skip to content

Handles failed Keystone trust deletion during task finalization - #527

Merged
petrutlucian94 merged 1 commit into
cloudbase:mainfrom
claudiubelu:keystone-delete-trust
Sep 21, 2026
Merged

petrutlucian94 merged 1 commit into
cloudbase:mainfrom
claudiubelu:keystone-delete-trust

Conversation

@claudiubelu

Copy link
Copy Markdown
Member

_set_tasks_execution_status calls keystone.delete_trust() while finalizing a task / execution inside task_completed. If that call raises an exception, the exception propagates all the way back to the worker's RPC call, which then misinterprets its own successful task_completed() call as a failure and reports an error for a task that had already finished successfully. Log a warning and continue instead.

Mocks out coriolis.keystone.delete_trust during integration tests, as we do not use Keystone for them.

_set_tasks_execution_status calls keystone.delete_trust() while
finalizing a task / execution inside task_completed. If that call raises
an exception, the exception propagates all the way back to the worker's RPC
call, which then misinterprets its own successful task_completed() call
as a failure and reports an error for a task that had already finished
successfully. Log a warning and continue instead.

Mocks out `coriolis.keystone.delete_trust` during integration tests, as
we do not use Keystone for them.
@petrutlucian94
petrutlucian94 merged commit 972bb73 into cloudbase:main Sep 21, 2026
5 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.

2 participants