Skip to content

Conversation

@achatur
Copy link
Contributor

@achatur achatur commented Dec 9, 2025

Add storage cleanup steps to keystone oslo event sensor with proper conditional execution based on event type. Centralize deletion logic in openstack-oslo-event workflow template output parameters.

  • Add ansible-delete-server step triggered by server_storage_delete
  • Pass node_uuid as device_id to server deletion playbook
  • Added oslo sensor for nova for delete
  • Added handler and registered it

@achatur achatur force-pushed the add_deletes_for_storage branch from 3aad99b to 114b1eb Compare January 15, 2026 15:37
Add storage cleanup steps to keystone oslo event sensor with proper
conditional execution based on event type. Centralize deletion logic
in openstack-oslo-event workflow template output parameters.

- Add ansible-delete-server step triggered by server_storage_delete
- Pass node_uuid as device_id to server deletion playbook
- Added oslo sensor for nova for delete
- Added handler and registered it
@achatur achatur force-pushed the add_deletes_for_storage branch from 114b1eb to 99b71d8 Compare January 15, 2026 20:52
Replace Python handler with direct sensor filtering for Nova instance
delete events. This simplifies the workflow by using Argo Events data
filters to check if storage cleanup is needed.

Changes:
- Add data filter to check metadata.storage == 'wanted' in sensor
- Extract device_id and project_id directly from event payload
- Remove Python handler step and UUID conversion
- Trigger storage_on_server_delete.yml ansible playbook directly
- Deprecate handle_instance_delete() Python function
- Set check_mode to false for actual execution

Benefits:
- Simpler workflow with fewer steps
- Faster execution without Python handler overhead
- Easier to understand and maintain
- Follows event-driven architecture patterns
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