"Deploy on" hostgroup option doesn't work properly with network insterfaces and compute profiles
There are several gaps with the 'deploy on' option on hostgroup:
- the ip address is not suggested automatically on on hostform
- the compute attributes are not set in the network tab
not founderror on
Virtual Machinetab when the compute profile is not selected on hostgroup
Refs #24072 - fix selecting hostgroup with compute resource
Without this fix, the 'Virtual Machine' tab was giving:
'mybox' not found on 'libvirt (Libvirt)' 'mybox' could
be deleted or 'libvirt (Libvirt)' is not responding.
Refs #24072 - fix compute profile with CR set via HG
When compute resource is set via compute profile, we're not sending it
via the form (as it's disabled). Therefore, we need to search for in via
Fixes #24072 - freeip with compute resource via hostgroup
In #5790, we added an option to set the compute resource via hostgroup.
There was one thing missed though: the freeip not getting assigned
automagically, when the compute resource was selected this way.
After this change, we make sure to check for the ip addresses (and other
potential subnet related refreshes) after the hostgroup is selected, in
case the interfaces were populated during the hostgroup change.