Bug 538142

Summary: Cannot populate more than one RHN Content Provider
Product: [Other] RHQ Project Reporter: Corey Welton <cwelton>
Component: ContentAssignee: Charles Crouch <ccrouch>
Status: CLOSED CURRENTRELEASE QA Contact: Sunil Kondkar <skondkar>
Severity: medium Docs Contact:
Priority: low    
Version: unspecifiedCC: ckannan, hbrock, jason.dobies, jshaughn, whayutin
Target Milestone: ---Keywords: SubBug
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: sprint_2
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-02 17:58:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 565635, 565650    

Description Corey Welton 2009-11-17 18:22:53 UTC
Description of problem:
If user creates one RHN CP and attempts to create channel repos from it, user is given an appropriate channel list.   However, if user creates more than one, only the first will get populated, and subsequent ones are empty. 


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


How reproducible:


Steps to Reproduce:
1. Create an RHN CP, "My RHN Content Provider"; assure it is synced.
2. Create a second RHN CP, "My OTHER RHN Content Provider"; sync.
3. Repos > Import 
4. Click the radio button next to "My RHN Content Provider" - note population of channel data, selectable for use as repos
5. Click the radio button next to "My OTHER RHN Content Provider"; view results.
  
Actual results:
Nothing available in subsequent RHN CPs after the first.

Expected results:
Any arbitrary number of RHN CPs should be usable.

Additional info:

Comment 1 Steve Salevan 2009-11-17 19:15:00 UTC
It appears that I've discovered an exception to this set of results, and we're in a bit of a boggle as to why it's happening.  Here's the (deterministic) reproducer:

1. Create an RHN CP, "Phil Collins", and add in a non-functional RHN certificate ('bork' seems to be a good entry here)
2. Attempt to add CP, it should fail with the error: Error: Failed to start adapter for [ContentSource: id=[0], name=[Phil Collins]]. Cause: org.rhq.enterprise.server.plugin.pc.content.InitializationException:java.lang.reflect.InvocationTargetException -> java.lang.reflect.InvocationTargetException:null -> org.rhq.enterprise.server.plugin.pc.content.InitializationException:Invalid 'Certificate' property -> org.jdom.input.JDOMParseException:Error on line 1: Content is not allowed in prolog. -> org.xml.sax.SAXParseException:Content is not allowed in prolog.
3. Attempt to add CP again; it should succeed
4. Create another RHN CP, "Tony Banks", and add in a functional RHN certificate
5. Attempt to add CP, it should succeed
6. A subset of all available channels appear in channel list (and this, friends, is the aforementioned boggle)

Comment 2 wes hayutin 2010-02-16 16:52:22 UTC
Temporarily adding the keyword "SubBug" so we can be sure we have accounted for all the bugs.

keyword:
new = Tracking + FutureFeature + SubBug

Comment 3 wes hayutin 2010-02-16 16:58:11 UTC
making sure we're not missing any bugs in rhq_triage

Comment 4 Corey Welton 2010-09-13 20:02:39 UTC
ONQA -- sunil, RHN providers are not relevant for this case anymore, but please assure we can still add multiple content providers.