Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-68830

Created PVC has name that is an invalid DNS Label

XMLWordPrintable

    • Quality / Stability / Reliability
    • 5
    • False
    • Hide

      None

      Show
      None
    • False
    • CNV v4.20.0.rhel9-166
    • None

      Description of problem:

      The name generated by the UI is sometimes invalid (too long). If user will provide custom disk name longer then 20 chars the generated name will always be invalid.
      

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

      4.20
      

      How reproducible:

      Custom name: always
      Generated name: 20% (?)
      

      Steps to Reproduce:

      1. add a new disk using "Add Empty disk(blank)" modal
      2. disk name is generated for the user (but editable) - make sure it's longer then 20chars
      3. create the disk my clicking "save"  
      4. detach the disk (action in the kebab menu)
      5. add volume again using virtctl i.e. :=
      ยป virtctl addvolume centos-stream9-bronze-termite-38 --volume-name=dv-centos-stream9-bronze-termite-38-disk-black-scorpion-97-8xjlop -n radek --persist
      
      

      Actual results:

      error adding volume, admission webhook "kubevirt-crd-status-validator.kubevirt.io" denied the request: must be no more than 63 characters
      
      

      Expected results:

      volume is successfully added
      

      Additional info:

              rszwajko@redhat.com Radoslaw Szwajkowski
              rszwajko@redhat.com Radoslaw Szwajkowski
              Leon Kladnitsky Leon Kladnitsky
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: