Uploaded image for project: 'openstack-k8s'
  1. openstack-k8s
  2. OSPK8-666

Reconcile error when bmset name is longer than 23 characters

XMLWordPrintable

    • False
    • None
    • False

      The bmset name is used to generate a finalizer name for the bmh resources. If the bmset name is greater than 23 characters the finalizer name will be rejected as the limit is 63 characters E.g:

      2023-01-20T20:35:07.501Z        ERROR   Reconciler error        {"controller": "openstackbaremetalset", "controllerGroup": "osp-director.openstack.org", "controllerKind": "OpenStackBaremetalSet", "OpenStackBaremetalSet": {"name":"distributedcomputehcileaf1","namespace":"openstack"}, "namespace": "openstack", "name": "distributedcomputehcileaf1", "reconcileID": "f7904c35-c502-4045-82ca-fa0d734615ee", "error": "OpenStackBare
      metalSet.osp-director.openstack.org \"distributedcomputehcileaf1\" is invalid: metadata.finalizers: Invalid value: \"baremetalset.osp-director.openstack.org-distributedcomputehcileaf1\": name part must be no more
      than 63 characters"}
      

      Shortening the prefix and using the bmset uid looks like a better approach. Also need to consider how this would be handled for upgrades.

              rhn-engineering-owalsh Oliver Walsh
              rhn-engineering-owalsh Oliver Walsh
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: