Jira (PUP-6546) Hardcode library dependency environment variables

2016-08-01 Thread Michael Smith (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Michael Smith commented on  PUP-6546 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Hardcode library dependency environment variables  
 
 
 
 
 
 
 
 
 
 
I had a theory this was due to setting RUNPATH as well as RPATH. That doesn't appear to be the case with EL7 binaries. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-6546) Hardcode library dependency environment variables

2016-08-01 Thread Kylo Ginsberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Kylo Ginsberg assigned an issue to Unassigned 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-6546 
 
 
 
  Hardcode library dependency environment variables  
 
 
 
 
 
 
 
 
 

Change By:
 
 Kylo Ginsberg 
 
 
 

Assignee:
 
 Kylo Ginsberg 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-6546) Hardcode library dependency environment variables

2016-08-01 Thread Kylo Ginsberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Kylo Ginsberg commented on  PUP-6546 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Hardcode library dependency environment variables  
 
 
 
 
 
 
 
 
 
 
Ping Michael Stahnke, Branan Riley, Michael Smith, who were hipchatting about how to address this the other day. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-6546) Hardcode library dependency environment variables

2016-08-01 Thread Adam Bottchen (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Adam Bottchen updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-6546 
 
 
 
  Hardcode library dependency environment variables  
 
 
 
 
 
 
 
 
 

Change By:
 
 Adam Bottchen 
 
 
 
 
 
 
 
 
 
 The Puppet code will generally fail if it picks up a dynamic library outside those provided in /opt/puppetlabs/puppet/lib.  Unfortunately, when systems are configured with global LD_LIBRARY_PATH or LIBPATH environment variables, it becomes possible for Puppet, pxp-agent, or any other Puppet application to pick up third party versions  or  of  libraries such as libssl, libcrypto, or libstdc++ and fail.This leads to errors such as:{code:java}# /opt/puppetlabs/bin/puppet config set server server.puppet.com --section agent  It returns with the error:  libfacter was not found. Please make sure it was installed to the expected location.{code}or{code:java}$ /opt/puppetlabs/puppet/bin/pxp-agent --foregroundCould not load program /opt/puppetlabs/puppet/bin/pxp-agent:  Dependent module /opt/custom/lib/libstdc++.a(libstdc++.so.6) could not be loaded.  The module has an invalid magic number{code}Although it may not be standard to hardcode these paths, since Puppet will fail if it picks up third party versions of these libraries this needs to be done.  Either,1.  The Puppet vendored library path should be hardcoded to prepend /opt/puppetlabs/puppet/lib in all Puppet applications to ensure the correct libraries are picked up.2.  Puppet applications should unset LD_LIBRARY_PATH and LIBPATH to ensure third party libraries are not picked up.3.  The vendored binaries included with Puppet should be statically linked so these environment variables do not matter. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) 
 
 
 
 
  
 
 
 
 

Jira (PUP-6546) Hardcode library dependency environment variables

2016-07-26 Thread Larry Copeland (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Larry Copeland updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-6546 
 
 
 
  Hardcode library dependency environment variables  
 
 
 
 
 
 
 
 
 

Change By:
 
 Larry Copeland 
 
 
 

CS Priority:
 
 Needs Priority Reviewed 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-6546) Hardcode library dependency environment variables

2016-07-26 Thread Nick Walker (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Nick Walker updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-6546 
 
 
 
  Hardcode library dependency environment variables  
 
 
 
 
 
 
 
 
 

Change By:
 
 Nick Walker 
 
 
 

Priority:
 
 Normal Major 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-6546) Hardcode library dependency environment variables

2016-07-26 Thread Adam Bottchen (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Adam Bottchen updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-6546 
 
 
 
  Hardcode library dependency environment variables  
 
 
 
 
 
 
 
 
 

Change By:
 
 Adam Bottchen 
 
 
 

CS Priority:
 
 Needs Priority 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-6546) Hardcode library dependency environment variables

2016-07-26 Thread Adam Bottchen (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Adam Bottchen created an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-6546 
 
 
 
  Hardcode library dependency environment variables  
 
 
 
 
 
 
 
 
 

Issue Type:
 
  Bug 
 
 
 

Assignee:
 
 Kylo Ginsberg 
 
 
 

Components:
 

 Client 
 
 
 

Created:
 

 2016/07/26 8:38 AM 
 
 
 

Priority:
 
  Normal 
 
 
 

Reporter:
 
 Adam Bottchen 
 
 
 
 
 
 
 
 
 
 
The Puppet code will generally fail if it picks up a dynamic library outside those provided in /opt/puppetlabs/puppet/lib. Unfortunately, when systems are configured with global LD_LIBRARY_PATH or LIBPATH environment variables, it becomes possible for Puppet, pxp-agent, or any other Puppet application to pick up third party versions or libraries such as libssl, libcrypto, or libstdc++ and fail. 
This leads to errors such as: 
 
 
 
 
 
 
# /opt/puppetlabs/bin/puppet config set server server.puppet.com --section agent  
 
 
 
 
It returns with the error: