Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-49805

hostpath-provisioner: csi-provisioner managed-by label is failing with the long-node names

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 4.18.0
    • Storage
    • None
    • Moderate
    • None
    • False
    • Hide

      None

      Show
      None
    • Fixed issue with long worker node names
    • Bug Fix
    • In Progress

      Description of problem:

          After the hostpath-provisioner installation the csi-provisioner should create the CSIstoragecapacity objects. But the creation is failing with the following error.

      I0120 04:14:26.724089 1 controller.go:873] "Started provisioner controller" component="kubevirt.io.hostpath-provisioner_hostpath-provisioner-csi-smrh4_6264f065-eaed-47aa-90a9-3a2563c965c2"
      W0120 04:14:28.020372 1 reflector.go:547] k8s.io/client-go/informers/factory.go:160: failed to list v1.CSIStorageCapacity: unable to parse requirement: values[0][csi.storage.k8s.io/managed-by]: Invalid value: "-53f40b57-worker1.ocp-virt1-s390x.s390g.lab.eng.rdu2.redhat.com": a valid label must be an empty string or consist of alphanumeric characters, '-', '' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue', or 'my_value', or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9.])?[A-Za-z0-9])?')
      E0120 04:14:28.020406 1 reflector.go:150] k8s.io/client-go/informers/factory.go:160: Failed to watch *v1.CSIStorageCapacity: failed to list v1.CSIStorageCapacity: unable to parse requirement: values[0][csi.storage.k8s.io/managed-by]: Invalid value: "-53f40b57-worker1.ocp-virt1-s390x.s390g.lab.eng.rdu2.redhat.com": a valid label must be an empty string or consist of alphanumeric characters, '-', '' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue', or 'my_value', or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9.])?[A-Za-z0-9])?')
      
      
      

      This issue is coming with the worker nodes have long node names.
      worker0.ocp-virt1-s390x.s390g.lab.eng.rdu2.redhat.com
      worker1.ocp-virt1-s390x.s390g.lab.eng.rdu2.redhat.com

      This is coming if the worker node name length is exactly 53 characters.

      For more details refer this:

      https://github.com/kubernetes-csi/external-provisioner/issues/1333

      Version-Release number of selected component (if applicable):

          

      How reproducible:

      corner case.

      Steps to Reproduce:

          1.  Create the openshift cluster with long worker node names. The worker name should match exactly 53 characters.
          2. Install the hostpath provisoner in waitForfirstconsumer mode.
          3. Try to create a pvc using the hostpath-provisioner storage class.
          

      Actual results:

          csi-provisoner side car is throwing these errors.
      I0120 04:14:26.724089 1 controller.go:873] "Started provisioner controller" component="kubevirt.io.hostpath-provisioner_hostpath-provisioner-csi-smrh4_6264f065-eaed-47aa-90a9-3a2563c965c2"
      W0120 04:14:28.020372 1 reflector.go:547] k8s.io/client-go/informers/factory.go:160: failed to list v1.CSIStorageCapacity: unable to parse requirement: values[0][csi.storage.k8s.io/managed-by]: Invalid value: "-53f40b57-worker1.ocp-virt1-s390x.s390g.lab.eng.rdu2.redhat.com": a valid label must be an empty string or consist of alphanumeric characters, '-', '' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue', or 'my_value', or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9.])?[A-Za-z0-9])?')
      E0120 04:14:28.020406 1 reflector.go:150] k8s.io/client-go/informers/factory.go:160: Failed to watch *v1.CSIStorageCapacity: failed to list v1.CSIStorageCapacity: unable to parse requirement: values[0][csi.storage.k8s.io/managed-by]: Invalid value: "-53f40b57-worker1.ocp-virt1-s390x.s390g.lab.eng.rdu2.redhat.com": a valid label must be an empty string or consist of alphanumeric characters, '-', '' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue', or 'my_value', or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9.])?[A-Za-z0-9])?')

      Expected results:

          It should successfully create the CSI storage capacities without any errors.

      Additional info:

          

              rh-ee-rhrmo Richard Hrmo
              svamsikr@redhat.com Vamsikrishna Siddu
              Wei Duan Wei Duan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: