unable to add VM through API in Red Hat Enterprise Virtualization 3.5

Solution Unverified - Updated -

Issue

  • Since the upgrade from rhev-m 3.4 to rhev-m 3.5, it is not possible to add VMs through the REST API, through the web interface works without issues.
  • Following error appears:
curl -k -X POST -H "Accept: application/xml" -H "Content-Type: application/xml" -u foo:bar -d "<vm><name>"vm_name"</name><cluster><name>"cluster_name"</name></cluster><template><name>Blank</name></template><memory>536870912</memory><os><boot dev='hd'/></os></vm>" https://<rhevm_host>:443/api/vms

<fault>
    <reason>Operation Failed</reason>
    <detail>[Cannot add VM. CPU Profile doesn't match provided Cluster.]</detail>
</fault>

Environment

  • Red Hat Enterprise Virtualization 3.5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content