Bug 928708 - [engine-backend] Suspend to VM with direct LUN disk is failing with 'CanDoAction of action HibernateVm failed'
Summary: [engine-backend] Suspend to VM with direct LUN disk is failing with 'CanDoAct...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 3.2.0
Hardware: x86_64
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 3.2.0
Assignee: Omer Frenkel
QA Contact: Elad
URL:
Whiteboard: virt
Depends On:
Blocks: 948448
TreeView+ depends on / blocked
 
Reported: 2013-03-28 09:32 UTC by Elad
Modified: 2015-09-22 13:10 UTC (History)
11 users (show)

Fixed In Version: sf16
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
oVirt Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
vdsm+engine logs (1.11 MB, application/x-gzip)
2013-03-28 09:32 UTC, Elad
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 13395 0 None MERGED core: allow hibernate for vm without image disks (#928708) 2020-09-10 12:53:22 UTC

Description Elad 2013-03-28 09:32:03 UTC
Created attachment 717543 [details]
vdsm+engine logs

Description of problem:

Suspend to VM that has only direct LUN disks is failing with 'CanDoAction of action HibernateVm failed' from engine. There is an active storage domain in the pool so there is a place where the VM state can be save to. Therefore, there should not be a problem with VM suspension.   

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

rhevm-backend-3.2.0-10.16.master.el6ev.noarch
vdsm-4.10.2-12.0.el6ev.x86_64

How reproducible:

100%

Steps to Reproduce: In a iscsi/FC DC with one or more host(s) and an active storage domain: 

1. Run a VM with only direct LUN disk
2. Suspend the VM
  
Actual results:

The action is failing with "Cannot suspend VM that has no image disks." in the UI and:

2013-03-27 18:30:38,035 WARN  [org.ovirt.engine.core.bll.HibernateVmCommand] (ajp-/127.0.0.1:8702-3) CanDoAction of action HibernateVm failed. Reasons:VAR__TYPE__VM,VAR__ACTION__HIBERNATE,VM_CANNOT_SUSPEND_VM_WITH
OUT_IMAGE_DISKS


Expected results:

There is a place where VM state can be save to (the active storage domain in the pool), so Suspension to VM with direct LUN disk should work.

Additional info:
see logs attached.

Comment 1 Omer Frenkel 2013-03-28 13:29:38 UTC
this was caused because of the fix for Bug 841504
I don't see a reason to block suspend for vm without image disks as done there

Comment 2 Omer Frenkel 2013-04-14 11:57:44 UTC
merged u/s 57854c59ba2906fefa0a0e8b54f85acb9052400b

Comment 4 Elad 2013-05-12 08:06:41 UTC
2013-05-12 11:02:19,935 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.HibernateVDSCommand] (pool-3-thread-47) START, HibernateVDSCommand(HostName = green-vdsb, HostId = 04fdb222-b58a-11e2-ae1a-001a4a169734, vmI
d=cb731aa6-0e2c-4a22-85c1-71bcd878b6d0, hibernationVolHandle=2b938e4a-70ea-4901-900e-68dbb1d17670,8a9f5a97-761a-42fa-be31-973e001ed4b6,d44b6064-cea2-4044-934c-457e8447874c,14cdaba9-9315-463f-b2c8-4f71da24a2aa,48df
b251-6d11-431e-89cf-45268980e1bd,c6db6948-c186-4093-b9fa-3aa06b5a541d), log id: 13fed20e
2013-05-12 11:02:19,967 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.HibernateVDSCommand] (pool-3-thread-47) FINISH, HibernateVDSCommand, log id: 13fed20e


suspension to vm with only direct lun succeeded.

Verified on RHEVM-3.2 - SF16

rhevm-3.2.0-10.25.beta3.el6ev.noarch
vdsm-4.10.2-18.0.el6ev.x86_64

Comment 5 Itamar Heim 2013-06-11 09:45:41 UTC
3.2 has been released

Comment 6 Itamar Heim 2013-06-11 09:46:08 UTC
3.2 has been released

Comment 7 Itamar Heim 2013-06-11 09:56:11 UTC
3.2 has been released


Note You need to log in before you can comment on or make changes to this bug.