Bug 990895

Summary: Headpin Nightly : `provider list` command displays the list of providers even though no manifest is uploaded to the org
Product: Red Hat Satellite Reporter: Tazim Kolhar <tkolhar>
Component: Content ManagementAssignee: Katello Bug Bin <katello-bugs>
Status: CLOSED NOTABUG QA Contact: Tazim Kolhar <tkolhar>
Severity: medium Docs Contact:
Priority: unspecified    
Version: NightlyCC: cwelton, omaciel, sthirugn, tomckay
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-08-01 11:11:28 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:

Description Tazim Kolhar 2013-08-01 07:27:27 UTC
Description of problem:
`provider list` command displays the list of providers even though no manifest is uploaded to the org

Version-Release number of selected component (if applicable):
# rpm -qa | grep katello
katello-certs-tools-1.4.2-1.el6.noarch
katello-glue-elasticsearch-1.4.2-1.git.997.e699743.el6.noarch
katello-candlepin-cert-key-pair-1.0-1.noarch
katello-cli-1.4.2-1.git.137.fea0d84.el6.noarch
katello-cli-common-1.4.2-1.git.137.fea0d84.el6.noarch
katello-glue-candlepin-1.4.2-1.git.997.e699743.el6.noarch
katello-headpin-1.4.2-1.git.997.e699743.el6.noarch
signo-katello-0.0.9-1.el6.noarch
katello-configure-1.4.3-1.git.67.f71e590.el6.noarch
katello-common-1.4.2-1.git.997.e699743.el6.noarch
katello-headpin-all-1.4.2-1.git.997.e699743.el6.noarch
katello-selinux-1.4.3-1.git.4.99dc194.el6.noarch
katello-repos-1.4.2-1.el6.noarch


How reproducible:
# yum install -y katello-headpin-all
# katello-configure --deployment=headpin --user-pass=****

Steps to Reproduce:
1.Create a org
# headpin -u admin -p **** org create --name test3
Successfully created org [ test3 ]

2.Check provider list
# headpin -u admin -p **** provider list --org test3
------------------------------------------------------------------------------------------------------------------------------------------------------
                                                                    Provider List

ID Name    Type    URL                    Description 
------------------------------------------------------------------------------------------------------------------------------------------------------
4  Red Hat Red Hat https://cdn.redhat.com None        

3.

Actual results:
Here, the provider is displayed for the org
Also, no valid manifest is still imported for that org

Expected results:
The actual result should be blank since
a valid manifest is not yet uploaded .

Additional info:

Comment 1 Tom McKay 2013-08-01 11:11:28 UTC
The Red Hat provider is always present, regardless if a manifest has been imported or not.