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

Specified VM disk name should be used in PVC name when adding a disk to a VM

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • CNV v4.19.5
    • CNV v4.18.3
    • CNV User Interface
    • None
    • Quality / Stability / Reliability
    • 5
    • False
    • Hide

      None

      Show
      None
    • False
    • CNV v4.19.0.rhel9-182, CNV v4.18.7.rhel9-4
    • None

      Description of problem:

      When adding a disk to a VM, the UI allows you to specify the disk name, however this name is not used when creating the underlying PVC. Instead it generates 2 random words and appends those to the VM name and uses that for the PVC name.

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

       

      How reproducible:

      100%

      Steps to Reproduce:

      1. Create a VM
      2. Under the Configuration -> Storage page, click Add disk
      3. Select Empty Disk
      4. Specify the required disk name, for example app-data-1
      5. Select desired size, disk type, interface and storage class as required.
      6. Click Save
      7. Verify that the new disk has been added to the VM configuration
      8. Check that the PVC name was randomly generated rather than using the specify disk name.

      Actual results:

      PVC is created using random words in the name rather than using the specified disk name.
      
      Actual format example: dv-<VM Name>-<random word>-<random word>-<random number>

      Expected results:

      PVC name should use the specified disk name. 
      
      Expected format example: dv-<VM Name>-<specified disk name>-<Optional UID if required>

      Additional info:

       

        1. disk-add-details.png
          72 kB
          John Kinney
        2. disks-after-add.png
          58 kB
          John Kinney
        3. disks-before-add.png
          50 kB
          John Kinney

              rh-ee-aviktora Adam Viktora
              jkinney@redhat.com John Kinney
              Guohua Ouyang Guohua Ouyang
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: