Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #24072 - Fix free IP auto suggest for hostgroup with compute resource #5763

Merged
merged 3 commits into from
Jul 3, 2018

Conversation

xprazak2
Copy link
Contributor

@xprazak2 xprazak2 commented Jul 3, 2018

No description provided.

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.

(cherry picked from commit 641ef42)
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
hostgroup.

(cherry picked from commit cbe40e3)
In theforeman#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.

(cherry picked from commit dc31392)
@theforeman-bot
Copy link
Member

Issues: #24072

Copy link
Member

@dLobatog dLobatog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works well - I get both the freeIP and the interface configured (network & network type) from the compute profile in the Host group. I used libvirt to test.

Thanks @xprazak2 @iNecas

@dLobatog dLobatog merged commit dfb0a3f into theforeman:1.18-stable Jul 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants