Bug 804393

Summary: Backend: Can't start VM
Product: [Retired] oVirt Reporter: Avi Tal <atal>
Component: ovirt-engine-coreAssignee: Yair Zaslavsky <yzaslavs>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: urgent Docs Contact:
Priority: urgent    
Version: unspecifiedCC: acathrow, iheim, lpeer, oourfali, oramraz, srevivo, ykaul
Target Milestone: ---Keywords: Regression, TestBlocker
Target Release: 3.1   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-09 07:58:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
engine log none

Description Avi Tal 2012-03-18 15:43:45 UTC
Created attachment 570911 [details]
engine log

Description of problem:
Can start VM

Try to start VM from REST API:
POST url:http://localhost:8080/api/vms/9c0f84e4-0bb9-42de-a64b-f9f50866cb50/start 
<action><async>false</async><grace_period><expiry>10</expiry><absolute>false</absolute></grace_period></action> 



engine error log:
2012-03-18 16:58:11,506 WARN  [org.ovirt.engine.core.bll.RunVmOnceCommand] (http--0.0.0.0-8080-1) [24ebe3ed] CanDoAction of action RunVmOnce failed. Reasons:VAR__ACTION__RUN,VAR__TYPE__VM,VM_CANNOT_RUN_FROM_DISK_WITHOUT_DISK
2012-03-18 16:58:11,511 ERROR [org.ovirt.engine.api.restapi.resource.AbstractBackendResource] (http--0.0.0.0-8080-1) Operation Failed: [Cannot run VM without at least one bootable disk.
Alternatives:
-Create a disk for this VM, and rerun the VM.
-Change the boot sequence using the Edit VM command (Boot Option Sub-Tab).
-Use the Run-Once command to select a different boot option and rerun the VM.]



Even though VM contain bootable disk:
<disks>
<disk href="/api/vms/9c0f84e4-0bb9-42de-a64b-f9f50866cb50/disks/a4f589a6-6e0a-4049-a090-ec3519e85b11" id="a4f589a6-6e0a-4049-a090-ec3519e85b11">
<name>Disk 1</name>
<link href="/api/vms/9c0f84e4-0bb9-42de-a64b-f9f50866cb50/disks/a4f589a6-6e0a-4049-a090-ec3519e85b11/statistics" rel="statistics"/>
<vm href="/api/vms/9c0f84e4-0bb9-42de-a64b-f9f50866cb50" id="9c0f84e4-0bb9-42de-a64b-f9f50866cb50"/>
<storage_domains>
<storage_domain id="e1657355-c474-467f-b9d2-0a19f483fc09"/>
</storage_domains>
<size>2147483648</size>
<type>system</type>
<status>
<state>ok</state>
</status>
<interface>virtio</interface>
<format>cow</format>
<sparse>true</sparse>
<bootable>true</bootable>
<wipe_after_delete>false</wipe_after_delete>
<propagate_errors>false</propagate_errors>
<plugged>true</plugged>
</disk>
</disks>

Comment 1 Yair Zaslavsky 2012-03-18 21:51:07 UTC
Sent patch to gerrit -
http://gerrit.ovirt.org/#change,2913

Comment 2 Itamar Heim 2012-08-09 07:58:03 UTC
closing ON_QA bugs as oVirt 3.1 was released:
http://www.ovirt.org/get-ovirt/