Bug 1103277

Summary: Capsule: Puppet content doesn't appear to be published to /etc/puppet/environments on capsule
Product: Red Hat Satellite Reporter: Brad Buckingham <bbuckingham>
Component: Foreman ProxyAssignee: Ivan Necas <inecas>
Status: CLOSED CURRENTRELEASE QA Contact: Corey Welton <cwelton>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.3CC: cwelton, inecas, jmontleo, omaciel
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/6008
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-02 14:05:36 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 Brad Buckingham 2014-05-30 15:05:57 UTC
Description of problem:

When content is synced from Satellite 6 to Capsule, it doesn't appear that the puppet content from the Satellite is making its way to the Capsule (i.e. /etc/puppet/environments)

Version-Release number of selected component (if applicable):
katello-1.5.0-25.el6sat.noarch

How reproducible:
always

Steps to Reproduce:
1. install/configure sat6
2. install/configure capsule (in my case, it is on a separate machine from the sat6)

on the sat6 server:
3. sync some rhel content (e.g. 6Server)
4. create a custom repo and import some puppet modules
5. create a content view
6. add the content from 3 & 4 to the content view
7. publish a content view version

8. associate the capsule (from 2) with the Library using the cli, e.g.
   capsule content add-lifecycle-environment --id 4 --environment-id 1
9. sync the content to the capsule, e.g.
   capsule content synchronize --id 4

Actual results:

Satellite 6:  /etc/puppet/environments has content (e.g. KT_ACME_Corporation_Library_WordPress__Application_3)
Capsule: /etc/puppet/environments is empty

Expected results:

Capsule: /etc/puppet/environments should have the same environments that were in 

Additional info:

Comment 2 Ivan Necas 2014-06-02 11:54:23 UTC
Created redmine issue http://projects.theforeman.org/issues/6008 from this bug

Comment 3 Ivan Necas 2014-06-02 12:09:39 UTC
Proposed fix is at https://github.com/Katello/katello/pull/4192

Comment 4 Ivan Necas 2014-06-03 06:29:24 UTC
https://github.com/Katello/katello/pull/4192

Comment 6 Corey Welton 2014-06-10 18:30:02 UTC
This seems to be fixed in Satellite-6.0.3-RHEL-6-20140605.0, i am seeing environments show up in $directory now.

Comment 7 Bryan Kearney 2014-07-02 14:05:36 UTC
This was delivered with 6.0.3, which is the Satellite 6 Beta.