Bug 1373531

Summary: Installation Media not available after synchronizing Kickstart content
Product: Red Hat Satellite Reporter: François Cami <fcami>
Component: RepositoriesAssignee: Justin Sherrill <jsherril>
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2.0CC: bbuckingham, bkearney, jcallaha
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: 2016-11-17 19:40:01 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 François Cami 2016-09-06 14:19:12 UTC
Description of problem:
After synchronizing Kickstart content, Installation Media is not available in the Location.

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

How reproducible:
Not much.
I installed three Satellite 6.2 with two install media each (6.8 + 7.2):
* first didnt' show any install media
* second had both install media available
* third was missing the 7.2 install media, 6.8 was available

Steps to Reproduce:
1. install Satellite, add manifest
2. in Red Hat Repositories => Kickstarts, select RHEL 6.8 + 7.2
3. in Content => Sync Status, sync both kickstarts
4. in Administer => Locations, check that both Installation Media can be affected to the Location

Actual results:
Sometimes some Installation Media are missing

Expected results:
All Installation Media always available to select in the Location

Additional info:
The solution I found is to:
* Disable the relevant Kickstart in Content => Red Hat Repositories => Kickstarts.
* Run "foreman-rake katello:delete_orphaned_content RAILS_ENV=production"
* Run "tail -f /var/log/messages | grep pulp"
* Wait for a message like "Task pulp.server.managers.content.orphan.delete_all_orphans[ID] succeeded" to appear
* Re-enable the Kickstart in Content => Red Hat Repositories => Kickstarts
* Download its content again in Content => Sync Status.

Comment 3 Justin Sherrill 2016-11-17 19:40:01 UTC
This is likely a dup of 1378374  (related to 1279539).  Will go ahead and close as a dup, if you disagree please let me know.

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