Bug 1745698

Summary: External Capsule does not show Location and Organization properly
Product: Red Hat Satellite Reporter: Ashfaqur Rahaman <arahaman>
Component: Organizations and LocationsAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Peter Ondrejka <pondrejk>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.6.0CC: aruzicka, inecas
Target Milestone: Unspecified   
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: 2019-09-05 20:56:46 UTC 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:
Attachments:
Description Flags
images attachment in zip format none

Description Ashfaqur Rahaman 2019-08-26 16:27:59 UTC
Created attachment 1608203 [details]
images attachment in zip format

Description of problem:
In Satellite GUI, External Capsules does not shows correct location and organization information 

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

How reproducible:
100%

Steps to Reproduce:
1. Install Satellite 6.6 Beta
~~~
satellite-6.6.0-5.beta.el7sat.noarch
~~~

2. Install Capsule 6.6 Beta
~~~
satellite-capsule-6.6.0-5.beta.el7sat.noarch
~~~

3. Login to Satellite gui and set 'Organization' and 'location' correctly. 

4. Try to open the capsule from GUI : Infrastructure > Capsules > 

Actual results:
- It does not list external capsules under "Infrastructure > Capsules" [Reference attachment_5.png] 

Expected results:
- It should list external capsules under "Infrastructure > Capsules"


Additional info:

- In hammer , capsule does not shows any organization / location information :

~~~
hammer> capsule info --id 4
Id:         4
Name:       cap661.net166.vrt
URL:        https://cap661.net166.vrt:9090
Features:
    Pulp Node
    Dynflow
    Ansible
    SSH
    Templates
    TFTP
    Puppet CA
    Puppet
    Logs
    HTTPBoot
Created at: 2019/08/26 13:28:20
Updated at: 2019/08/26 13:28:20
~~~

- In GUI, If we set "Any Organization" and "Any Location" the capsules shows up ,  "Location" and "Organization" column shows as "None Found". [Reference : attachment_1.jpg]. 

- In GUI, if we select the capsule and click "Edit", it shows the proper values for 'Organization' and 'Location' are already selected. [Reference : attachment_2.png and attachment_3.png]

- If we change nothing and click "submit" , the "Location" and "organization" get updated and it shows in GUI. [Reference : attachment_4.png]

- Hammer also shows "Organization" and "location" after this in capsule info.
~~~
hammer> capsule info --id 4
Id:            4
Name:          cap661.net166.vrt
URL:           https://cap661.net166.vrt:9090
Features:
    Pulp Node
    Dynflow
    Ansible
    SSH
    Templates
    TFTP
    Puppet CA
    Puppet
    Logs
    HTTPBoot
Locations:
    batcave <==
Organizations:
    gotham <===
Created at:    2019/08/26 13:28:20
Updated at:    2019/08/26 13:28:20
~~~

Comment 3 Brad Buckingham 2019-09-05 20:56:46 UTC

*** This bug has been marked as a duplicate of bug 1709695 ***