Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2058649 - Unable to set or unset "Discovery location" settings from UI of Satellite 7.0 but the same is partly feasible via hammer_cli.
Summary: Unable to set or unset "Discovery location" settings from UI of Satellite 7.0...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Discovery Plugin
Version: 6.11.0
Hardware: All
OS: All
high
high
Target Milestone: 6.11.0
Assignee: Ondřej Ezr
QA Contact: Griffin Sullivan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-02-25 14:21 UTC by Sayan Das
Modified: 2022-07-05 14:34 UTC (History)
6 users (show)

Fixed In Version: rubygem-foreman_discovery-19.0.3
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-07-05 14:33:57 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 34678 0 Normal Ready For Testing Allow emptying the org/loc settings 2022-03-25 11:55:45 UTC
Red Hat Product Errata RHSA-2022:5498 0 None None None 2022-07-05 14:34:13 UTC

Description Sayan Das 2022-02-25 14:21:39 UTC
Description of problem:

In Satellite 7.0, After going into Administer --> Settings --> Discovered tab, We can only set or unset Discovery Organization properly.

But we cannot set "Discovery Location" even after selecting the location and then submitting the same. It's possible to do via hammer but from UI, we cannot unset it either.



Version-Release number of selected component (if applicable):

satellite-7.0.0-0.5.beta.el8sat.noarch
foreman-3.1.1.6-1.el8sat.noarch

How reproducible:

Always

Steps to Reproduce:
1. Install Satellite 7.0 on RHEL 8, with first organization name set as RedHat and location name set as GSS

2. Go to Administer --> Settings --> Discovered tab of Satellite UI and try to set the "Discovery Location" and "Discovery Organization" options.

3. Come back to the command line and verify the changes.

4. Try to set the discovery_location via hammer

5. From Administer --> Settings --> Discovered tab of Satellite UI and try to unset the "Discovery Location" and "Discovery Organization" options.

6. Try to unset the discovery_location via hammer



Actual results:

2) Was able to set Discovery Org to RedHat but even after selecting and submitting the GSS location for discovery location, the value is not accepted or remains blank. 

3) Nothing set as the discovery_location

# hammer settings list --search "name = discovery_location"
-------------------|--------------------|-------|--------------------------------------------------
NAME               | FULL NAME          | VALUE | DESCRIPTION                                      
-------------------|--------------------|-------|--------------------------------------------------
discovery_location | Discovery location |       | The default location to place discovered hosts in
-------------------|--------------------|-------|--------------------------------------------------


4) Successfully did the same for the discovery location using hammer cli.

# hammer settings set --name discovery_location --value GSS
Setting [discovery_location] updated to [GSS].

# hammer settings list --search "discovery_location"
-------------------|--------------------|-------|--------------------------------------------------
NAME               | FULL NAME          | VALUE | DESCRIPTION                                      
-------------------|--------------------|-------|--------------------------------------------------
discovery_location | Discovery location | GSS   | The default location to place discovered hosts in
-------------------|--------------------|-------|--------------------------------------------------


5) While trying to unset "Discovery Organization" it offers to choose a null value from dropdown and allows to unset the setting but for "Discovery Location" no such options are present. I simply can't unset it.


6) Again, via CLI that is possible. 

# hammer settings set --name discovery_location --value ''
Setting [discovery_location] updated to [].

# hammer settings list --search "discovery_location"
-------------------|--------------------|-------|--------------------------------------------------
NAME               | FULL NAME          | VALUE | DESCRIPTION                                      
-------------------|--------------------|-------|--------------------------------------------------
discovery_location | Discovery location |       | The default location to place discovered hosts in
-------------------|--------------------|-------|--------------------------------------------------



Expected results:


UI should behave in exact same way for "Discovery Location" as it is behaving for the "Discovery Organization" option. 


Additional info:

For Satellite 7.0 only the discovery_location is broken but for Satellite 6.10, both Discovery Organization and Location settings are broken i.e. cannot be set or unset from UI.

Comment 1 Sayan Das 2022-02-26 16:02:26 UTC
Small correction in the Discovery Organization part.

Seems like the UI of 7.0,  only allows two options for the Organization selection part i.e. a Blank selection or the first Organization created during installation of satellite , When there are more than one organization present.

Comment 7 Bryan Kearney 2022-03-25 12:05:08 UTC
Upstream bug assigned to oezr

Comment 8 Bryan Kearney 2022-03-25 12:05:10 UTC
Upstream bug assigned to oezr

Comment 13 Bryan Kearney 2022-03-31 20:05:40 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/34678 has been resolved.

Comment 14 Lukas Zapletal 2022-04-08 08:31:43 UTC
Pushed out upstream-only release with this patch: 19.0.3. Please update, thanks.

Comment 24 errata-xmlrpc 2022-07-05 14:33:57 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: Satellite 6.11 Release), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:5498


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