Bug 1151516

Summary: [restapi] can't create new ppc64 VM via restapi: Migration option is not supported in this CPU architecture.
Product: Red Hat Enterprise Virtualization Manager Reporter: Jiri Belka <jbelka>
Component: ovirt-engine-restapiAssignee: Vitor de Lima <vdelima>
Status: CLOSED DUPLICATE QA Contact: Pavel Stehlik <pstehlik>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.5.0CC: bazulay, ecohen, gklein, iheim, lsurette, michal.skrivanek, rbalakri, Rhev-m-bugs, vdelima, yeylon
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-10 18:31:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
engine.log none

Description Jiri Belka 2014-10-10 15:14:15 UTC
Created attachment 945692 [details]
engine.log

Description of problem:
can't create new ppc64 VM via restapi: Migration option is not supported in this CPU architecture. interesting, i can create ppc64 via Admin Portal.

~~~
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<fault>
    <reason>Operation Failed</reason>
    <detail>[Cannot add VM. Migration option is not supported in this CPU architecture.]</detail>
</fault>
~~~

curl -X POST -H "Accept: application/xml" -H "Content-Type: application/xml" -u admin@internal:XXXXXX -k -d "<vm><name>otheros-ppc64</name> <cluster><name>ppc64</name></cluster> <template><name>Blank</name></template> <os type='other_ppc64'><boot dev='hd'/></os></vm>" https://localhost/api/vms

even explicit HA false doesn't work:

curl -X POST -H "Accept: application/xml" -H "Content-Type: application/xml" -u admin@internal:XXXXXX -k -d "<vm><name>otheros-ppc64</name> <cluster><name>ppc64</name></cluster> <template><name>Blank</name></template> <os type='other_ppc64'><boot dev='hd'/></os><high_availability><enabled>false</enabled><priority>1</priority></high_availability></vm>" https://localhost/api/vms

Version-Release number of selected component (if applicable):
rhevm-backend-3.5.0-0.14.beta.el6ev.noarch

How reproducible:
100%

Steps to Reproduce:
1. create ppc64 via restapi on 3.5
2.
3.

Actual results:
fail (HA is still used)

Expected results:
should work

Additional info:

Comment 1 Michal Skrivanek 2014-10-10 17:43:05 UTC
Is it fixed already by the recent changes?

Comment 2 Vitor de Lima 2014-10-10 18:08:49 UTC
There is a fix in review for the master branch.

Comment 3 Michal Skrivanek 2014-10-10 18:31:06 UTC
Thanks for confirmation. No need to track twice then, closing

*** This bug has been marked as a duplicate of bug 1057178 ***