Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-60964 Adding a hotplug volume via YAML causes warning in Console that the VM must be rebooted due to a change in the bootdisk
  3. CNV-69020

QE Verify: Adding a hotplug volume via YAML causes warning in Console that the VM must be rebooted due to a change in the bootdisk

XMLWordPrintable

    • Quality / Stability / Reliability
    • 2
    • False
    • Hide

      None

      Show
      None
    • False
    • None

      Description of problem:

      Adding a new disk to a VM using 'oc patch' causes a warning for the VM in the console that does not go away until the VM is restarted:
      Warning alert: Pending changes
        the volumes replacement is effective only after restart
           Details > Boot disk
      
      Adding a new disk via the Console does not cause this warning.

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

      OpenShift Virtualization 4.18.2

      How reproducible:

      Add a new disk to a VM using 'oc patch' with a YAML file, such as this:
      spec:
        template:
          spec:
            domain:
              devices:
                disks:
                disks:
                - name: rootdisk
                - disk:
                    bus: virtio
                  name: cloudinitdisk
                - disk:
                    bus: scsi
                  name: disk-magenta-haddock-53
            volumes:
            - dataVolume:
                name: fedora-01-volume
              name: rootdisk
            - cloudInitNoCloud:
                userData: |
                  #cloud-config
                  chpasswd:
                    expire: false
                  password: redhat
                  user: fedora
                  runcmd: []
              name: cloudinitdisk
            - dataVolume:
                hotpluggable: true
                name: dv-fedora-01-amber-aardvark-83
              name: disk-magenta-haddock-53
      

      Steps to Reproduce:

      1. Create and boot a VM
      2. Add a disk using a patch file (as described above)
      3. Observe the warning in the Console that the boot disk has changed (it hasn't)
      

      Actual results:

      The warning message appears and does not clear until the VM is restarted.

      Expected results:

      The disk should be added without a warning, like it does when you add the disk via the Console.

      Additional info:

       

              rhn-support-lkladnit Leon Kladnitsky
              mschatzm@redhat.com Matan Schatzman
              Guohua Ouyang Guohua Ouyang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: