Uploaded image for project: 'Puppet Communications Protocol'
  1. Puppet Communications Protocol
  2. PCP-890

pxp-agent does not use the wrapper script

    XMLWordPrintable

    Details

    • Template:
    • Team:
      Skeletor
    • Story Points:
      3
    • Sprint:
      Skeletor - 06/16./2021, Skeletor - 06/30/2021
    • CS Priority:
      Needs Priority
    • Zendesk Ticket IDs:
      37959,44392
    • Zendesk Ticket Count:
      2
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Hide
      The pxp-agent service scripts on the AIX, OSX, and Solaris platforms now manipulate the service using the wrapper script located in /opt/puppetlabs/bin/pxp-agent, which cleans up the linker environment prior to calling the actual binary. This prevent failures due to incompatible libraries being loaded.

      If you want to modify pxp-agent's linker environment, then you must directly call the pxp-agent binary (/opt/puppetlabs/puppet/bin/pxp-agent).
      Show
      The pxp-agent service scripts on the AIX, OSX, and Solaris platforms now manipulate the service using the wrapper script located in /opt/puppetlabs/bin/pxp-agent, which cleans up the linker environment prior to calling the actual binary. This prevent failures due to incompatible libraries being loaded. If you want to modify pxp-agent's linker environment, then you must directly call the pxp-agent binary (/opt/puppetlabs/puppet/bin/pxp-agent).
    • QA Risk Assessment:
      Needs Assessment

      Description

      The wrapper script at /opt/puppetlabs/puppet/bin/wrapper.sh was created to work around issues like LD_LIBRARY_PATH causing Puppet services to load incompatible libraries.  However, pxp-agent is hardcoded to use /opt/puppetlabs/puppet/bin/pxp-agent and therefore is still susceptible to these issues.

      This can be reproduced on AIX with any version of pxp-agent.

       

      LD_LIBRARY_PATH=/usr/lib /opt/puppetlabs/puppet/bin/pxp-agent --foreground --loglevel debug --log-pcp-access
      exec(): 0509-036 Cannot load program /opt/puppetlabs/puppet/bin/pxp-agent because of the following errors:
              0509-150   Dependent module /usr/lib/libssl.a(libssl.so.1.1) could not be loaded.
              0509-152   Member libssl.so.1.1 is not found in archive
      
      

      The pxp-service should use the wrapper script, which unsets LD_LIBRARY_PATH

       

       

        Attachments

          Activity

            People

            Assignee:
            enis.inan Enis Inan
            Reporter:
            adrian.parreiras-horta Adrian Parreiras Horta
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support