Red Hat Bugzilla – Bug 834865
ovirt-engine-backend [Direct Lun]: Export of vm with direct lun disk fails with no error in logs
Last modified: 2016-02-10 11:54:05 EST
Created attachment 593994 [details]
Description of problem:
we are missing CanDoAction for export of vm with direct lun.
the command is sent to backend and we do see that the export failed in event log but there is no error in the logs and the command is not sent to vdsm.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. create a vm with one direct lun attached
2. try to export the vm
we fail to export the vm with no explications or errors in the log
we need to create a CanDoAction for exporting a vm with direct lun
Additional info:full log
when fixing this bug please make sure that if we export a vm with one direct lun and one regular disk we should succeed with warning that the only the disk image will be exported.
2012-06-24 15:14:53,724 INFO [org.ovirt.engine.core.vdsbroker.irsbroker.IsValidVDSCommand] (ajp--0.0.0.0-8009-35) FINISH, IsValidVDSCommand, return: true, log id: 2c10a19e
2012-06-24 15:14:53,789 INFO [org.ovirt.engine.core.bll.ExportVmCommand] (pool-3-thread-49) [5dc22053] Running command: ExportVmCommand internal: false. Entities affected : ID: 1c4b81c0-bc2b-4b57-9341-5179ee848abd Type: Storage
2012-06-24 15:14:53,794 INFO [org.ovirt.engine.core.vdsbroker.SetVmStatusVDSCommand] (pool-3-thread-49) [5dc22053] START, SetVmStatusVDSCommand(vmId = 0ffa8e45-f64d-45f4-9df1-6d165c48f8d8, status = ImageLocked), log id: 4f6a268a
2012-06-24 15:14:53,797 INFO [org.ovirt.engine.core.vdsbroker.SetVmStatusVDSCommand] (pool-3-thread-49) [5dc22053] FINISH, SetVmStatusVDSCommand, log id: 4f6a268a
2012-06-24 15:14:53,820 INFO [org.ovirt.engine.core.bll.ExportVmCommand] (pool-3-thread-49) [5dc22053] Command [id=006de0e0-ef82-4dd4-a5ee-a3434612767c]: Compensating CHANGED_STATUS_ONLY of org.ovirt.engine.core.common.businessentities.VmDynamic; snapshot: EntityStatusSnapshot [id=0ffa8e45-f64d-45f4-9df1-6d165c48f8d8, status=Down].
solved by this patch - the export is working, no error message.
The patch in comment #1 has been abandoned.
Please provide the correct patch that solves this.
speaking to Miki there was a design change to allow the vm to be exported with no images.
so this fix is verified on si17 and a new bug will be opened to issue a warning that direct lun and shared disk will not be backed up.