Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1527627

Summary: PATH environment variable need to be updated to use puppet binary located at /opt/puppetlabs/bin/puppet
Product: Red Hat Satellite Reporter: Ashish Humbe <ahumbe>
Component: PuppetAssignee: Eric Helms <ehelms>
Status: CLOSED ERRATA QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: high    
Version: 6.3.0CC: bbuckingham, ehelms, mhulan, sbadhwar
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-21 16:54:17 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 Ashish Humbe 2017-12-19 16:47:15 UTC
Description of problem:

After installing puppet-agent package (puppet-agent-1.10.7-1.el7sat) which supports Puppet 4 the " puppet agent -t " command does not work on the client, the customer needs to use command as "/opt/puppetlabs/bin/puppet agent -t"

The $PATH variable needs to be updated with the path /opt/puppetlabs/bin . 

Version-Release number of selected component (if applicable):
puppet-agent-1.10.7-1.el7sat

How reproducible:
Always

Steps to Reproduce:
1. Install puppet-agent-1.10.7-1.el7sat on a puppet 4 client and try to use puppet command
2.
3.

Comment 2 Eric Helms 2018-01-12 02:13:43 UTC
This is expected behavior per Puppet [1] given we are not at present customizing. However, given we deliver our own set of RPMs we could symlink this path in the puppet-agent to the location that the normal Puppet 3 binfile would be located.


[1] https://puppet.com/docs/puppet/5.3/whered_it_go.html#nix-confdir-is-now-etcpuppetlabspuppet

Comment 4 Eric Helms 2018-01-16 14:36:37 UTC
*** Bug 1532254 has been marked as a duplicate of this bug. ***

Comment 5 Marek Hulan 2018-01-18 15:15:47 UTC
Eric, do you prefer to solve this on packaging level with the symlink? I see that provisioning templates already run puppet using the full path, just the job template to run puppet once relies on puppet agent being globally available - https://github.com/theforeman/community-templates/blob/develop/job_templates/puppet_run_once_-_ssh_default.erb

Otherwise users would encounter this problem only when running puppet manually I guess.

Comment 6 Eric Helms 2018-01-18 16:54:05 UTC
Marek,

We should fix this properly in the REX/provisioning templates upstream because we have no control over the puppet-agent package. Further, when installing puppet-agent on clients, users can log out and log back in and the puppet binary will now be present due to the file that lives in /etc/profile.d/puppet-agent.sh. However, in discussions we thought that providing the symlink would reduce the amount of customer friction or support calls when the puppet command is not found during that initial install phase.

If you think this would not be an issue, I can not put the symlink in as we are still fixing this.

Comment 7 Marek Hulan 2018-01-23 11:51:52 UTC
REX will trigger new shell for each invocation so /etc/profile.d/puppet-agent.sh will fix it there. The problem could only occur if as part of same job user installs agent and runs it without specifying the path. But we do not ship any template like that. Kickstart template already determines the right bin path.

If relogin solves the issue reported in comment 0 then I'd suggest closing as not a bug. But if you want to add a symlink to avoid the necessity of relogin, that also works for me.

Could you please update the BZ accordingly?

Comment 8 Satellite Program 2018-02-21 16:54:17 UTC
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:0336