Hi,

We have a Foreman, Puppet, oVirt/RHV Setup. We have automated most tasks in 
foreman with Ansible.

I know want to trigger a rebuild of a bunch of VMs via Ansible, but I can't 
find any documentation on how to do that. The only thing I see ist "Update 
a host" via "PUT /api/hosts/:id" and pass a body like this:
---
host:
  build: 1

But this returns the following error:

  error:

    errors:

      base:

      - 'Failed to update a compute RHEV-XXX (oVirt) instance 
node1.example.com:

        Cannot add Virtual Disk. Disk node1.example.com_Disk1 in VM 
node1.example.com

        is already marked as boot.'

    full_messages:

    - 'Failed to update a compute RHEV-XXX (oVirt) instance 
node1.example.com:

      Cannot add Virtual Disk. Disk node1.example.com_Disk1 in VM 
node1.example.com

      is already marked as boot.'

How can I trigger the rebuild via the API?

Thank you
Marc


-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to