Bug 1578321 - On "Edit" host page, Satellite webui shows the "Content Source" value inherited from the HostGroup instead of the one currently set to the host.
Summary: On "Edit" host page, Satellite webui shows the "Content Source" value inherit...
Keywords:
Status: CLOSED DUPLICATE of bug 1564740
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Host Form
Version: 6.3.1
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: Unspecified
Assignee: Daniel Lobato Garcia
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-05-15 09:25 UTC by Ashish Humbe
Modified: 2021-09-09 14:03 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-07-19 11:37:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 23745 0 Normal Duplicate On "Edit" host page, Satellite webui shows the "Content Source" value inherited from the HostGroup instead of the one cu... 2020-03-12 10:14:23 UTC

Description Ashish Humbe 2018-05-15 09:25:08 UTC
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:

Comment 1 Ashish Humbe 2018-05-15 10:00:10 UTC
On Satellite v 6.2, on the Edit Host page, we can see the currently set value for the host.

Comment 4 Kavita 2018-05-30 15:48:06 UTC
Created redmine issue http://projects.theforeman.org/issues/23745 from this bug


Note You need to log in before you can comment on or make changes to this bug.