Bug #23745
closedOn "Edit" host page, Satellite webui shows the "Content Source" value inherited from the HostGroup instead of the one currently set to the host.
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1578321
Description of problem:
When we try to edit the host from satellite webui which has a host group associated, the edit page shows the "Content Source" value inherited from HostGroup instead of the currently set value of the content source.
- While we check the host details using Hammer command, we can see the currently set value of Content Source.
- hammer host info --name rhel7u4-1.example.com | egrep 'Content Source' -A2
Content Source:
ID: 1
Name: satellite.example.com
- While we try to Edit the Host from satellite webui it shows the value
A. As blank - if the Content Source is not set or kept blank in the HostGroup associated with the Host.
B. As "capsule.example.com" - if the Content Source is set as "capsule.example.com" in the associated hostgroup.
Version-Release number of selected component (if applicable):
Satellite v 6.3
How reproducible:
Always
Steps to Reproduce:
Scenario A:
1. Create a HostGroup or Nested HostGroup and keep the Content Source as blank.
2. Associate the newly created host group to a host on the satellite webui and set the "Content Source" for the host as "satellite.example.com"
3. When we try to Edit the host, the satellite webui shows the "Content Source" value as blank instead of "satellite.example.com"
Scenario B:
1. Create a HostGroup or Nested HostGroup and set Content Source as "capsule.example.com".
2. Associate the newly created host group to a host on the satellite webui and set the "Content Source" for the host as "satellite.example.com"
3. When you try to Edit the host the satellite webui shows the "Content Source" value as "capsule.example.com" instead of "satellite.example.com"
Actual results:
The "Edit" page for the host shows the Content Source value inherited from the HostGroup instead of the currently set value to the host.
Expected results:
1. The "Edit" page for the host should show the currently set value for the "Content Source" (if it is already set to the Host)
2. If the "Content Source" is not set for the Host then "Edit" page should not inherit the value from HostGroup.
Additional info:
Updated by Kavita Gaikwad over 6 years ago
- Project changed from Foreman to Katello
Updated by Kavita Gaikwad over 6 years ago
Marek,
Yes, it is similar but pull-request of #23706 will not resolve issue for content-source.
Updated by Justin Sherrill over 6 years ago
- Category set to Hosts
- Translation missing: en.field_release set to 338
Updated by Justin Sherrill over 6 years ago
Seems like https://github.com/Katello/katello/pull/7533 was opened which does correct it?
Updated by Daniel Lobato Garcia over 6 years ago
Yup, it's a duplicate. The original PR didn't solve it for content source, the 2nd one did.
Updated by Daniel Lobato Garcia over 6 years ago
- Is duplicate of Bug #23706: Unable to override hostgroup parameters from All hosts => edit host on WebUI added