Skip to content

[Feature Request] [occm] Controller to clean-up OCCM orphaned openstack ressources #3145

Description

@Banh-Canh

/kind feature

What happened:

If we provision a cluster with OCCM controlled resources, then delete it directly, OCCM can't and will never remove openstack resources.
This is because the cluster and the controller are removed before any garbage collection and proper cascading deletion can happen.

What you expected to happen:

This is not something we can solve in OCCM itself as it is getting removed.
We need another controller running outside of the said provisioned cluster to manage and detect orphaned resources.

How to reproduce it:

  • Provision a cluster
  • Deploy OCCM on it
  • Create some OCCM CRs (loadbalancer?, network?)
  • OCCM provision thoses resources in Openstack
  • Delete the cluster directly
  • The openstack resources are now orphaned

Anything else we need to know?:

This is a common use case when using Cluster API openstack provider and OCCM.
I think such feature would help keeping openstack free from orphaned resources and the need to clean that up manually.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions