Bug 2114505

Summary: [Bug] - Unable to remove a location from the Capsule server
Product: Red Hat Satellite Reporter: Dhaval Joshi <dhjoshi>
Component: Organizations and LocationsAssignee: satellite6-bugs <satellite6-bugs>
Status: NEW --- QA Contact: Shweta Singh <shwsingh>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.11.0CC: aruzicka, ashipati, hemanth.manupati, jsenkyri, mark.milano, mveiga, pujsingh, sattia, saydas
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.