Hi,

Currently when no realm_id is specified when creating a new instance using
RHEV-M driver, the driver will choose the first item from 'clusters' list
returned by RHEV-M API. Unfortunately this, in most cases, return a 'default'
cluster which is not being used. The 'default' cluster in RHEV-M cannot be
removed because it contain the 'Blank' template. Also this cluster in most cases
have no 'storage domain' attached, so any attempt to deploy an Instance there
will end up with exception.

This patch will prevent to choose the 'default' cluster as 'default' realm_id
and will try to choose the next cluster. If there is just 'default' cluster in
list, this cluster will be used.

  -- Michal

Reply via email to