Project

General

Profile

Bug #32924

It is possible to specify a compute profile without any attributes in a hostgroup

Added by Tomer Brisker 4 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Host groups
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

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

Description of problem:
In Hammer, it is possible to select any compute profile for a hostgroup. However, in WebUI, it is only possible to select a compute profile that has attributes for at least one compute resource (i.e. is not shown as "unspecified" when open through Infrastructure -> Compute Profiles -> <compute_profile>). Furthermore, when selecting a compute profile through Hammer that would be hidden in WebUI, that compute profile is then shown in WebUI when editing that (and only that!) hostgroup.

Version-Release number of selected component (if applicable):
6.7, not a regression (new feature)

How reproducible:
Deterministic

Steps to Reproduce:
1. hammer hostgroup {create,update} ... --compute-profile-id <ID_of_a_profile_without_attributes_for_any_CR>

Actual results:
Compute profile selected. Compute profile shown in WebUI for that hostgroup.

Expected results:
Unable to select that compute profile, consistently with WebUI.

Associated revisions

Revision 3bdcec84 (diff)
Added by yifat makias 4 months ago

Fixes #32924 - Add validation for compute-profile-id to hostgroup API

History

#1 Updated by yifat makias 4 months ago

  • Assignee set to yifat makias
  • Status changed from New to Assigned

#2 Updated by The Foreman Bot 4 months ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/8641 added

#3 Updated by The Foreman Bot 4 months ago

  • Fixed in Releases 3.0.0 added

#4 Updated by yifat makias 4 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF