Description of problem: Can start VM created by API from the template. Version-Release number of selected component (if applicable): RHEV-M 3.1 (si18.1) Name : rhevm-restapi Arch : noarch Version : 3.1.0 Release : 16.el6ev How reproducible: You need to make a template first. Steps to Reproduce: 1. Create new VM using API (POST /api/vms) using template you created. POST /api/vms <vm> <name>test-inst-4-1348147670</name> <template id="5558c5b6-9dd6-41b7-87f9-7cbce4fd40c5"/> <cluster> <name>Default</name> </cluster> <type>Server</type> <memory>536870912</memory> <cpu> <topology cores="1" sockets="1"/> </cpu> <os> <boot dev="hd"/> </os> </vm> 2. Now execute an API call to start that instance url -k -X POST -d '<action/>' -H 'Content-Type: application/xml' --user 'admin@internal:redhat' https://rhevm/api/vms/665e2506-fa8a-4f0e-8e62-f313346d8958/start The action will report: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <action> <status> <state>complete</state> </status> </action> 3. However in webadmin you will get this: VM test-inst-0-1348147544 is down. Exit message: Bad volume specification {'index': '2', 'iface': 'ide', 'specParams': {'path': ''}, 'readonly': 'true', 'deviceId': '8b377391-0e21-4e34-bf88-3bb6816b6a72', 'device': 'cdrom', 'shared': 'false', 'type': 'disk'}. Actual results: VM created from template using API cannot be started. Expected results: The VM should be started. Additional info: A workaround for this is to login into webadmin, edit the created stopped VM save it. After this this machine could be started.
Seems like duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=857690
can you run vm created in GUI from same template?
(In reply to comment #2) > can you run vm created in GUI from same template? Yes, without any problem.
(In reply to comment #1) > Seems like duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=857690 Right, that looks very similar to what I get. If you feel to close this as a dup feel free :-)
(In reply to comment #3) > (In reply to comment #2) > > can you run vm created in GUI from same template? > > Yes, without any problem. (In reply to comment #3) > (In reply to comment #2) > > can you run vm created in GUI from same template? > > Yes, without any problem. note: you've created vm <name>test-inst-4-1348147670</name>, but event talking about test-inst-0-1348147544 ...
yeah sorry, I think I copied wrong line, but the behaviour for test-inst-4-1348147670 is the same (I created 5 machines using script.)
*** This bug has been marked as a duplicate of bug 857690 ***