Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-8801

The ExtraServiceMounts and CertMounts volume names can exceed the 63 characters RFC 1123 limit

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Blocker Blocker
    • rhos-18.0.0
    • rhos-18.0.0
    • openstack-operator
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • ?
    • ?
    • openstack-operator-container-1.0.0-42
    • openstack-operator-container-1.0.0-42
    • ?
    • ?
    • None
    • Release Note Not Required
    • Moderate

      The short summary, if I have a NodeSet called openstack-edpm-az1 and custom service name called neutron-metadata-custom-cell2, the dataplane deployment will fail on:

      024-07-16T01:23:45Z    ERROR    Controllers.OpenStackAnsibleEE    Job CreateOrPatch failed    {"controller": "openstackansibleee", "controllerGroup": "ansibleee.openstack.org", "controllerKind": "OpenStackAnsibleEE", "OpenStackAnsibleEE": {"name":"install-certs-edpm-deployment-post-ceph-az1-openstack-edpm-az1","namespace":"openstack"}, "namespace": "openstack", "name": "install-certs-edpm-deployment-post-ceph-az1-openstack-edpm-az1", "reconcileID": "49742d42-0d53-4b5e-ace9-3d4537270518", "job": "install-certs-edpm-deployment-post-ceph-az1-openstack-edpm-az1", "error": "Job.batch \"install-certs-edpm-deployment-post-ceph-az1-openstack-edpm-az1\" is invalid: [spec.template.spec.volumes[3].name: Invalid value: \"openstack-edpm-az1-neutron-metadata-custom-cell2-default-certs-0\": must be no more than 63 characters, spec.template.spec.containers[0].volumeMounts[3].name: Not found: \"openstack-edpm-az1-neutron-metadata-custom-cell2-default-certs-0\"]"}

       

      The Extra service mounts volume names or Cert mounts  volume names are not truncated to 63 characters and in the case of user deploying multiple NodeSets and custom dataplane services which means they may different from default/example names It may happen easily that the names will exceed the limit. I believe users are allowed to specify their names of services, nodesets and deployments which is even needed in the case of DCN or Multicells deployments with multiple nodesets and custom dataplane services.

      I guess we either need to smartly truncate the names or document that a user should make sure that the join of nodeset name + service name + possible cert/secret name should not exceed the limit of 63 characters and throw a warning?

       

              rhn-engineering-faguiard Fabricio Aguiar de Oliveira
              mkrcmari@redhat.com Marian Krcmarik
              rhos-dfg-df
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: