Project

General

Profile

Bug #24072

"Deploy on" hostgroup option doesn't work properly with network insterfaces and compute profiles

Added by Ivan Necas 8 months ago. Updated 7 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Inventory
Target version:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1572973

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 found error on Virtual Machine tab when the compute profile is not selected on hostgroup

Related issues

Related to Foreman - Feature #5790: Default "Deploy on" value for host groups.Closed

Associated revisions

Revision 641ef42a (diff)
Added by Ivan Necas 8 months ago

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.

Revision cbe40e3d (diff)
Added by Ivan Necas 8 months ago

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
hostgroup.

Revision dc313926 (diff)
Added by Ivan Necas 8 months ago

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.

History

#1 Updated by Ivan Necas 8 months ago

  • Related to Feature #5790: Default "Deploy on" value for host groups. added

#2 Updated by The Foreman Bot 8 months ago

  • Assignee set to Ivan Necas
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/5745 added

#3 Updated by Ivan Necas 8 months ago

  • Description updated (diff)
  • Subject changed from Free IPv4 not assigned automatically while creating host with hostgroup with specified `deploy on` option to "Deploy on" hostgroup option doesn't work properly with network insterfaces and compute profiles

#4 Updated by Ivan Necas 8 months ago

  • Legacy Backlogs Release (now unused) set to 330

Proposing for 1.18, as without the fixes, the deploy on option on hostgroup is not usable.

#5 Updated by The Foreman Bot 8 months ago

  • Pull request https://github.com/theforeman/foreman/pull/5763 added

#6 Updated by Ivan Necas 8 months ago

  • % Done changed from 0 to 100
  • Status changed from Ready For Testing to Closed

#7 Updated by Ondřej Pražák 7 months ago

  • Fixed in Releases 1.18.0 added

Also available in: Atom PDF