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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.