Summary: | Virtual machine lost its cdrom device | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Germano Veit Michel <gveitmic> | |
Component: | ovirt-engine | Assignee: | Arik <ahadas> | |
Status: | CLOSED ERRATA | QA Contact: | Nisim Simsolo <nsimsolo> | |
Severity: | high | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 4.2.3 | CC: | ahadas, gveitmic, jortialc, lsurette, michal.skrivanek, mzamazal, nsimsolo, Rhev-m-bugs, sborella, shipatil, srevivo | |
Target Milestone: | ovirt-4.3.0 | Keywords: | Rebase, ZStream | |
Target Release: | 4.3.0 | Flags: | ahadas:
needinfo-
|
|
Hardware: | x86_64 | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | ovirt-engine-4.3.0_alpha | Doc Type: | Bug Fix | |
Doc Text: |
This release ensures that VMs existing in Red Hat Virtualization Manager version 4.2.3 or earlier do not lose their CD-ROM device if the VMs are restarted in 4.2.3 or later versions.
|
Story Points: | --- | |
Clone Of: | ||||
: | 1596234 (view as bug list) | Environment: | ||
Last Closed: | 2019-05-08 12:37:51 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | Virt | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Bug Depends On: | ||||
Bug Blocks: | 1596234 |
Description
Germano Veit Michel
2018-06-27 00:42:01 UTC
Not sure if related: https://gerrit.ovirt.org/#/c/92445/ Working on reproducing it. Didn't reproduce following the same events on our labs. I'll attach vdsm logs. (In reply to Germano Veit Michel from comment #3) > Didn't reproduce following the same events on our labs. I'll attach vdsm > logs. Germano, note that this VM must have been started before the engine was updated to 4.2.3 (because the alias of the cd-rom is 'ide0-1-0' rather than a user-lias like 'ua-923802b9-9b05-4a6b-b67b-f2caa1b65578'). It is unlikely to happen for VMs that are started in 4.2.3 and above since we now use user-aliases. So this should be taken into account while trying to reproduce that. (In reply to Germano Veit Michel from comment #0) > 2018-06-13 09:07:06,632+10 WARN > [org.ovirt.engine.core.vdsbroker.libvirt.VmDevicesConverter] > (EE-ManagedThreadFactory-engineScheduled-Thread-50) [] unmanaged disk with > path '' is ignored This means that we got a device without ID or with a different ID than it used to have before. > > 2018-06-13 09:07:06,638+10 ERROR > [org.ovirt.engine.core.vdsbroker.monitoring.VmDevicesMonitoring] > (EE-ManagedThreadFactory-engineScheduled-Thread-50) [] VM > '33f4ee96-4863-48a8-ae9f-f67a341afc62' managed non pluggable device was > removed unexpectedly from libvirt: > 'VmDevice:{id='VmDeviceId:{deviceId='923802b9-9b05-4a6b-b67b-f2caa1b65578', > vmId='33f4ee96-4863-48a8-ae9f-f67a341afc62'}', device='cdrom', type='DISK', > specParams='[path=rhel-server-7.4-x86_64-dvd.iso]', address='', > managed='true', plugged='false', readOnly='true', deviceAlias='ide0-1-0', > customProperties='[]', snapshotId='null', logicalName='null', hostDevice=''}' This means that no device was reported with the ID 923802b9-9b05-4a6b-b67b-f2caa1b65578 so we have no correlation for the cd-rom in the database and therefore unplug it. This reminds me of previous bugs we had where the ID of devices of VMs that were started in previous versions was not preserved when those VMs were migrated to a new version of VDSM. Milan, were the fixes in that area already available in 4.2.3? Germano, can you please check if the CDROM was ejected? I.e. bug 1593568 (In reply to Arik from comment #6) > (In reply to Germano Veit Michel from comment #3) > > Didn't reproduce following the same events on our labs. I'll attach vdsm > > logs. > > Germano, note that this VM must have been started before the engine was > updated to 4.2.3 (because the alias of the cd-rom is 'ide0-1-0' rather than > a user-lias like 'ua-923802b9-9b05-4a6b-b67b-f2caa1b65578'). It is unlikely > to happen for VMs that are started in 4.2.3 and above since we now use > user-aliases. So this should be taken into account while trying to reproduce > that. Ohh, I would never had noticed this! Thanks, I can try again tomorrow if you think it's necessary. (In reply to Michal Skrivanek from comment #8) > Germano, can you please check if the CDROM was ejected? I.e. bug 1593568 Yes it was ejected (no path). (In reply to Arik from comment #7) > This reminds me of previous bugs we had where the ID of devices of VMs that > were started in previous versions was not preserved when those VMs were > migrated to a new version of VDSM. > > Milan, were the fixes in that area already available in 4.2.3? Well, that is incorrect since we're talking about cluster level 4.2 so the engine ignores the device IDs. Need to improve the correlation logic for cd-roms. (In reply to Michal Skrivanek from comment #8) > Germano, can you please check if the CDROM was ejected? I.e. bug 1593568 This is not related to that bug -- <source> element is present in the domain XML. Verified: ovirt-engine-4.3.0-0.2.master.20181203100035.git0ee44c1.el7 vdsm-4.30.3-71.git7d6039c.el7.x86_64 libvirt-client-4.5.0-10.el7.x86_64 qemu-kvm-ev-2.12.0-18.el7_6.1.1.x86_64 sanlock-3.6.0-1.el7.x86_64 Verification scenario: 1. Run VM on cluster with compatibility version 4.2. from engine db, verify VM has cdrom device and cdrom address is not null. 2. Upgrade cluster from 4.2 to 4.3 Verify cdrom device still exist with correct address. 3. Migrate VM and afterward reboot VM. 4. Verify cdrom device still exist with correct address. 5. Attach cdrom to VM and verify cdrom device can be accessed from the VM. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2019:1085 |