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

Created PVC has name that is an invalid DNS Label

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • CNV v4.21.0
    • CNV v4.20.0
    • Storage Platform
    • None
    • Quality / Stability / Reliability
    • 0.42
    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • CNV Storage 278
    • None

      Description of problem:

      Originally found and fixed in the UI - however the backend accepted the invalid name.
      
      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:

              gaohoward Howard Gao
              rszwajko@redhat.com Radoslaw Szwajkowski
              Guohua Ouyang Guohua Ouyang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: