Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1610970 - Puppet Enterprise conflict during satellite-installer --upgrade [NEEDINFO]
Puppet Enterprise conflict during satellite-installer --upgrade
Status: CLOSED ERRATA
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Puppet (Show other bugs)
6.3.2
Unspecified Unspecified
unspecified Severity low (vote)
: Unspecified
: Unused
Assigned To: satellite6-bugs
Nikhil Kathole
: Triaged
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2018-08-01 14:28 EDT by Mike McCune
Modified: 2018-10-17 09:17 EDT (History)
7 users (show)

See Also:
Fixed In Version:
Doc Type: Release Note
Doc Text:
Puppet Enterprise is not supported on Satellite Server. If you have it installed, perform the following actions to avoid conflicts after the upgrade: . Move the cache from `/var/lib/puppet/foreman_cache_data` to `/opt/puppetlabs/puppet/cache/`: + ---- # mkdir -p /opt/puppetlabs/puppet/cache/ # cp -r /var/lib/puppet/foreman_cache_data /opt/puppetlabs/puppet/cache/ ---- . Run the `satellite-installer --upgrade` script to apply changes.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-10-16 15:00:46 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
cmarinea: needinfo?


Attachments (Terms of Use)

  None (edit)
Description Mike McCune 2018-08-01 14:28:03 EDT
NOTE: Puppet Enterprise is not supported to be installed on the same host as Satellite 6. This bug is to document the workaround in case this situation occurs.

If a user has Puppet Enterprise installed on Satellite 6 in conjunction with Puppet 3/4/5 installed from Satellite 6 there may be an error during the execution of:

satellite-installer --upgrade
...
stderr: stty: standard input: Inappropriate ioctl for device
/usr/share/ruby/vendor_ruby/puppet/vendor/safe_yaml/lib/safe_yaml.rb:188:in `initialize': No such file or directory - /opt/puppetlabs/puppet/cache/foreman_cache_data/candlepin_db_password (Errno::ENOENT)

The issue comes from the fact that Puppet Enterprise installs files in 
/opt/puppetlabs/bin/puppet then that will be used by the installer. 

Puppet can't distinguish between PE and Puppet 4 because they are packaged in
the same way. Also note that if PE packages are Puppet 5 then it will
fail because we miss 2 patches in the installer.

Beware that satellite-installer --upgrade-puppet will probably behave in
unexpected ways and it's recommended to do this manually.
hooks/init/31-upgrade-puppet.rb should be very readable.

WORKAROUND:

1) move the cache from /var/lib/puppet/foreman_cache_data to /opt/puppetlabs/puppet/cache/ 

2) place a symlink in /var/lib/puppet to  /opt/puppetlabs/puppet/cache/ 

3) re-run satellite-installer --upgrade
Comment 2 Bryan Kearney 2018-08-01 14:42:10 EDT
This is really a tracker bug for a release note. I am moving this to ON_QA for verification with the workaround.
Comment 4 Nikhil Kathole 2018-09-12 05:52:50 EDT
VERIFIED

performed upgrade from 6.3.3 to 6.4 snap 21 using provided workaround for db clone and upgrade.

The provided workaround worked.

Steps performed:
1. mkdir -p /opt/puppetlabs/puppet/cache/
2. cp -r /var/lib/puppet/foreman_cache_data /opt/puppetlabs/puppet/cache/
3. satellite-installer --upgrade
Comment 9 Bryan Kearney 2018-10-16 15:00:46 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:2927

Note You need to log in before you can comment on or make changes to this bug.