Bug #24746

'Associate VM' works but 'Associate VMs' does not

Added by Ori Rabin over 4 years ago. Updated over 4 years ago.

Compute resources - oVirt
Target version:
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:


Cloned from

Description of problem:
It is possible to associate certain VM from a CR by going to VMS, opening VM details and clicking 'Associate VM'. However, clicking 'Associate VMs' on a VM list doesn't associate anything and says 'No VMs matched any host.' even when there is a matching Foreman host.

Version-Release number of selected component (if applicable):
Tested with Sat 6.4 snap 18 with RHEV CR.

How reproducible:

Steps to Reproduce:
1. Have a VM on CR
2. Create a Host in Foreman with MAC == VM_mac
3. Infrastructure -> Compute Resources -> <CR> -> Virtual Machines -> Associate VMs
4. "No VMs matched any host." green pop-up
5. Open the VM and click 'Associate VM', it gets associated

Actual results:
VM only gets associated when attempting to associate that certain VM as opposed to trying all the VMs

Expected results:
The VM should have been associated at step 3

Additional info:
In /usr/share/foreman/app/services/compute_resource_host_associator.rb , line 13, compute_resource.vms(:eager_loading => true) returns []

Associated revisions

Revision b6406cd7 (diff)
Added by Ori Rabin over 4 years ago

Fixes #24564, #24746 - bump version of fog-ovirt

Now clusters shown for ovirt are only those in the datacenter.
Associate VMs for API v4 was fixed by changing filter to only add
pagination when needed.


#1 Updated by Ori Rabin over 4 years ago

  • Assignee set to Ori Rabin
  • Status changed from New to Assigned

#2 Updated by Ori Rabin over 4 years ago

Fix open for fog-ovirt ( Keeping bug open here because this needs a dependency bump of fog-ovirt once fix is in.

#3 Updated by The Foreman Bot over 4 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request added

#4 Updated by Ori Rabin over 4 years ago

  • Status changed from Ready For Testing to Closed

#5 Updated by Anonymous over 4 years ago

  • Fixed in Releases 1.20.0 added

Also available in: Atom PDF