Project

General

Profile

Actions

Bug #23745

closed

On "Edit" host page, Satellite webui shows the "Content Source" value inherited from the HostGroup instead of the one currently set to the host.

Added by Kavita Gaikwad almost 6 years ago. Updated almost 6 years ago.

Status:
Duplicate
Priority:
Normal
Category:
Hosts
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

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.

  1. 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:


Related issues 1 (0 open1 closed)

Is duplicate of Katello - Bug #23706: Unable to override hostgroup parameters from All hosts => edit host on WebUIClosedDaniel Lobato Garcia05/25/2018Actions
Actions #1

Updated by Marek Hulán almost 6 years ago

Kavita, isn't this duplicate of #23706?

Actions #2

Updated by Kavita Gaikwad almost 6 years ago

  • Project changed from Foreman to Katello
Actions #3

Updated by Kavita Gaikwad almost 6 years ago

Marek,

Yes, it is similar but pull-request of #23706 will not resolve issue for content-source.

Actions #4

Updated by Justin Sherrill almost 6 years ago

  • Category set to Hosts
  • translation missing: en.field_release set to 338
Actions #5

Updated by Justin Sherrill almost 6 years ago

Seems like https://github.com/Katello/katello/pull/7533 was opened which does correct it?

Actions #6

Updated by Daniel Lobato Garcia almost 6 years ago

Yup, it's a duplicate. The original PR didn't solve it for content source, the 2nd one did.

Actions #7

Updated by Daniel Lobato Garcia almost 6 years ago

  • Is duplicate of Bug #23706: Unable to override hostgroup parameters from All hosts => edit host on WebUI added
Actions #8

Updated by Jonathon Turel almost 6 years ago

  • Status changed from New to Duplicate
Actions

Also available in: Atom PDF