This bug has been migrated to another issue tracking site. It has been closed here and may no longer be being monitored.

If you would like to get updates for this issue, or to participate in it, you may do so at Red Hat Issue Tracker .
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 2114505 - [Bug] - Unable to remove a location from the Capsule server
Summary: [Bug] - Unable to remove a location from the Capsule server
Keywords:
Status: CLOSED MIGRATED
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Organizations and Locations
Version: 6.11.0
Hardware: Unspecified
OS: Unspecified
high
high with 1 vote
Target Milestone: Unspecified
Assignee: Adam Ruzicka
QA Contact: Shweta Singh
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-08-02 18:46 UTC by Dhaval Joshi
Modified: 2024-06-06 12:25 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-06-06 12:25:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 29450 0 Normal New Smart Proxy forces association to all Locations unless Puppet is enabled on the proxy 2022-08-04 12:40:41 UTC
Red Hat Issue Tracker   SAT-20099 0 None Migrated None 2024-06-06 12:25:30 UTC
Red Hat Knowledge Base (Solution) 7007591 0 None None None 2023-04-13 13:38:35 UTC

Description Dhaval Joshi 2022-08-02 18:46:07 UTC
Description of problem:
[Bug] - Unable to edit and remove the locations from the Capsule server

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

How reproducible:
100%

Steps to Reproduce:
1. Deploy a fresh Satellite 6.11
2. Add an organization and multiple locations.
3. Deploy an external capsule server.
4. Assign a location to the Capsule server.
5. Select Location Context as Any Location on Satellite WebUI >> Go to Capsules >> Edit the Capsule >> Locations

Actual results:
Both locations are assigned to the Capsule and both are greyed out. Unable to remove a location.

Expected results:
Only the assigned location should be shown as assigned location and not both locations.


Additional info:

Comment 7 Adam Ruzicka 2023-07-26 08:08:14 UTC
If I'm reading it right, the screenshot in #4 tells you that there is a host in test_loc_1 that is registered to that capsule which prevents you from removing the location from the capsule. If that is the case, then finding the host(s) and moving it to a different location should allow you to remove the location from the capsule.

Comment 10 Bernie Hoefer 2023-08-18 17:39:15 UTC
I appear to have hit this bug in standing up a new test Capsule 6.11.5.4 server.  The instructions in:

  _Installing Capsule Server_
  Chapter 2.7, "Assigning the Correct Organization and Location to Capsule Server in the Satellite web UI"
  https://access.redhat.com/documentation/en-us/red_hat_satellite/6.11/html/installing_capsule_server/installing-capsule-server#assigning-organization-location-capsule-server_capsule

...did not work; I got a "Cannot update Location to {LOCATION_2} because of mismatch in settings" error.  It did succeed if I selected the "Fix Location on Mismatch" radio button.)

But like this bug states, when I browse to 

  Infrastructure menu --->
    Capsules ---> 
      click the Edit button for the capsule ---> 
        Locations tab

...I see that both locations are listed but greyed out.  (Hovering the mouse over either of them displays "This is used by a host" -- even though this is a new capsule and thus has no hosts!)

If I switch my web UI location view to LOCATION_2 and again browse to the new capsule's Locations tab, things look OK.  (Only LOCATION_2 is among the selected items.)  But if the web UI location view is set to "Any Location", both locations are among the selected items for this capsule.

Comment 15 Adam Ruzicka 2024-01-11 12:54:08 UTC
Just posting some of my notes around this. If you go to Infrastructure > Capsules (ie the index page), the location list in the "locations" column should be always correct.

1) If a location is shown as greyed out in the location selector when you try to edit the capsule (ie the edit page), but at the same time it is not in the list of locations on the index page, then that's just a bug. The capsule is not really assigned to that location and you can't un-assign something that's not assigned in the first place.

2) If a location is shown as greyed out in the location selector in the edit page and it is in the list of locations on the index page and your current location is "Any location", you can try changing the current location to a location different than the one you're trying to remove. In some cases, this will allow you to remove the location.

3) Otherwise (ie if a location is shown as greyed out in the location selector in the edit page and it is in the list of locations on the index page and your current location is NOT "Any location") the behaviour is probably correct as the capsule is actually used by a host in that location.

While part 1) is ugly, it should be just a cosmetic issue without any real impact on anything. What I described in part 2) could be considered a workaround in that one specific case.

Comment 19 Eric Helms 2024-06-06 12:25:31 UTC
This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there.

Due to differences in account names between systems, some fields were not replicated.  Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information.

To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "SAT-" followed by an integer.  You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like:

"Bugzilla Bug" = 1234567

In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information.


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