Skip to content

Image resource not moved by clusterctl move due to missing clusterctl label on ORC Image CRD #2592

@matofeder

Description

@matofeder

/kind bug

What steps did you take and what happened:

CAPO users rely on ORC to handle image uploads and reference the ORC Image resource inside OpenStackMachine via spec.image.imageRef.

When a cluster using this OpenStackMachine is moved using clusterctl move, the Image resource is not moved because the Image CRD itself lacks the required clusterctl.cluster.x-k8s.io label.
Although the Image CR instance is labeled with clusterctl.cluster.x-k8s.io/move, the absence of this label on the CRD means clusterctl does not consider it during the move operation.

This breaks the smooth movement of the cluster state, resulting in OpenStack server resources becoming not ready.

See Cluster API docs for move:
https://cluster-api.sigs.k8s.io/developer/providers/contracts/clusterctl.html?highlight=clusterctl.cluster.x-k8s.io%2Fmove-hierarchy#move

What did you expect to happen:

clusterctl move moves the ORC Image resource referenced in the OpenStackMachine

Anything else you would like to add:

I'm not sure whether this issue belongs to CAPO or ORC, but let's start the discussion here, as it is related to CAPI/CAPO.

Environment:

  • Cluster API Provider OpenStack version (Or git rev-parse HEAD if manually built): v0.12.3
  • Cluster-API version: v1.10.2
  • OpenStack version:
  • Minikube/KIND version: kind v0.29.0
  • Kubernetes version (use kubectl version): 1.32.5
  • OS (e.g. from /etc/os-release): Ubuntu 24.04.2 LTS

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    Status

    Planned

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions