Issue #6948 has been updated by Michael Stahnke. Category set to packages Assignee set to Michael Stahnke Estimated time set to 3.00 Keywords set to mcollective thread.so
I have been able to reproduce this when I combine RUBYLIBS from system ruby and PE ruby. What ideally needs to happen is to isolate the pe-ruby components (ruby stack) from the system ruby stack. I was able to accomplish this without too much of an issue. 1. Remove the RUBYLIB line entirely from /etc/init.d/mcollective 2. Change #!/usr/bin/env ruby to #!/opt/puppet/bin/ruby in /usr/sbin/mcollectived 3. cd /usr/lib/ruby/site_ruby/1.8/mcollective 4. ln -s /usr/lib/ruby/site_ruby/1.8/mcollective.rb . 5. ln -s /usr/lib/ruby/site_ruby/1.8/mcollective . >From there mcollective started up cleanly. I didn't do much testing beyond >that. Please note that in PE 1.2, we are targeting mcollective integration as well. If you have any more issues related, feel free to update this ticket. ---------------------------------------- Bug #6948: thread.so in pe-ruby throws error. https://projects.puppetlabs.com/issues/6948 Author: Cody Herriges Status: Investigating Priority: Normal Assignee: Michael Stahnke Category: packages Target version: Keywords: mcollective thread.so Branch: Affected PE version: When trying to use the pe-ruby with MCollective I have to add the following paths to the RUBYLIB that is sets in it's initscript. /opt/puppet/lib:/opt/puppet/lib/ruby/1.8/:/opt/puppet/lib/ruby/site_ruby/1.8/:/opt/puppet/lib/ruby/1.8/i386-linux Starting the server daemon results in the following error in thread.so. [root@localhost 1.8]# /usr/sbin/mcollectived /opt/puppet/lib/ruby/1.8/i386-linux/thread.so: /opt/puppet/lib/ruby/1.8/i386-linux/thread.so: undefined symbol: rb_eThreadError - /opt/puppet/lib/ruby/1.8/i386-linux/thread.so (LoadError) from /opt/puppet/lib/ruby/1.8/thread.rb:5 from /opt/puppet/lib/ruby/site_ruby/1.8/rubygems.rb:10:in `require' from /opt/puppet/lib/ruby/site_ruby/1.8/rubygems.rb:10 from /usr/lib/ruby/site_ruby/1.8/mcollective.rb:1:in `require' from /usr/lib/ruby/site_ruby/1.8/mcollective.rb:1 from /usr/sbin/mcollectived:3:in `require' from /usr/sbin/mcollectived:3 -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
