Bug 804393 - Backend: Can't start VM
Summary: Backend: Can't start VM
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-engine-core
Version: unspecified
Hardware: x86_64
OS: Linux
urgent
urgent
Target Milestone: ---
: 3.1
Assignee: Yair Zaslavsky
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-18 15:43 UTC by Avi Tal
Modified: 2016-04-22 04:59 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-09 07:58:03 UTC
oVirt Team: ---


Attachments (Terms of Use)
engine log (946.96 KB, text/x-log)
2012-03-18 15:43 UTC, Avi Tal
no flags Details

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/


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