Bug 1438953

Summary: After upgrade certain Content Views cannot be promoted and hang katello:reimport on the Importing Katello::ContentViewPuppetEnvironment step with a 404 error
Product: Red Hat Satellite Reporter: Pablo Hess <phess>
Component: Content ViewsAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact:
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.2.7CC: bbuckingham, phess, wpinheir
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-18 20:05:13 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 Pablo Hess 2017-04-04 20:58:03 UTC
Description of problem:
Customer upgraded Satellite from 6.2.2 to 6.2.7 to fix an issue, which it did. But this new issue appeared. There are 2 content views that consistently fail to promote. Running "foreman-rake katello:reimport" stops at:

   Importing Katello::ContentViewPuppetEnvironment

   rake aborted!
   RestClient::ResourceNotFound: 404 Resource Not Found


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

How reproducible:
Always at this customer

Steps to Reproduce:
1. Run foreman-rake katello:reimport --trace
2. Will abort at the "Importing Katello::ContentViewPuppetEnvironment" step with a 404 error

or

1. On the webUI, try to promote two out of 10+ existing Content Views.
2. Promote will fail for any of those 2 Content Views, resulting in a paused-error task.


Actual results:
Cannot run katello:reimport to the end.
Cannot promote any of those 2 Content Views.


Expected results:
katello:reimport runs successfully to the end.
All Content Views, including those 2, can be promoted.