Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Unknown
-
Resolution: Fixed
-
Affects Version/s: 0.10.8
-
Fix Version/s: 10.14.0
-
Component/s: Chef Client, Packages
-
Environment:
ubuntu maverick 10.10
omnibus
Description
When using the embedded chef-full package, installing a system-level ruby package has no impact.
This is evidenced by using the "users" cookbook, with adaptation to create passwords.
The system has libruby-shadow1.8 installed, but this is not found by the embedded ruby.
Since the cookbook is using a platform determination to decide what package to install, it probably should determine if it is running under omnibus/embedded, and thereby install the gem via gem_package instead.
Activity
- All
- Comments
- History
- Activity
- Transitions Summary
Joshua Timberman [Opscode]
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Component/s | Packages [ 10040 ] |
Seth Chisamore
made changes -
| Comment |
[ As an FYI this appears to fail with the new {{chef_gem}} with the latest Omnibus client packages:
{code} ec2-23-22-25-141.compute-1.amazonaws.com [Thu, 14 Jun 2012 02:03:09 +0000] INFO: Processing chef_gem[ruby-shadow] action install (users::system line 30) ec2-23-22-25-141.compute-1.amazonaws.com [Thu, 14 Jun 2012 02:03:10 +0000] ERROR: chef_gem[ruby-shadow] (users::system line 30) has had an error ec2-23-22-25-141.compute-1.amazonaws.com [Thu, 14 Jun 2012 02:03:10 +0000] ERROR: Running exception handlers ec2-23-22-25-141.compute-1.amazonaws.com [Thu, 14 Jun 2012 02:03:10 +0000] FATAL: Saving node information to /var/chef/cache/failed-run-data.json ec2-23-22-25-141.compute-1.amazonaws.com [Thu, 14 Jun 2012 02:03:10 +0000] ERROR: Exception handlers complete ec2-23-22-25-141.compute-1.amazonaws.com [Thu, 14 Jun 2012 02:03:10 +0000] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out ec2-23-22-25-141.compute-1.amazonaws.com [Thu, 14 Jun 2012 02:03:10 +0000] FATAL: Gem::Installer::ExtensionBuildError: chef_gem[ruby-shadow] (users::system line 30) had an error: Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. ec2-23-22-25-141.compute-1.amazonaws.com ec2-23-22-25-141.compute-1.amazonaws.com /opt/opscode/embedded/bin/ruby extconf.rb ec2-23-22-25-141.compute-1.amazonaws.com checking for getspent() in -lshadow... *** extconf.rb failed *** ec2-23-22-25-141.compute-1.amazonaws.com Could not create Makefile due to some reason, probably lack of ec2-23-22-25-141.compute-1.amazonaws.com necessary libraries and/or headers. Check the mkmf.log file for more ec2-23-22-25-141.compute-1.amazonaws.com details. You may need configuration options. ec2-23-22-25-141.compute-1.amazonaws.com ec2-23-22-25-141.compute-1.amazonaws.com Provided configuration options: ec2-23-22-25-141.compute-1.amazonaws.com --with-opt-dir ec2-23-22-25-141.compute-1.amazonaws.com --with-opt-include ec2-23-22-25-141.compute-1.amazonaws.com --without-opt-include=${opt-dir}/include ec2-23-22-25-141.compute-1.amazonaws.com --with-opt-lib ec2-23-22-25-141.compute-1.amazonaws.com --without-opt-lib=${opt-dir}/lib ec2-23-22-25-141.compute-1.amazonaws.com --with-make-prog ec2-23-22-25-141.compute-1.amazonaws.com --without-make-prog ec2-23-22-25-141.compute-1.amazonaws.com --srcdir=. ec2-23-22-25-141.compute-1.amazonaws.com --curdir ec2-23-22-25-141.compute-1.amazonaws.com --ruby=/opt/opscode/embedded/bin/ruby ec2-23-22-25-141.compute-1.amazonaws.com --with-shadowlib ec2-23-22-25-141.compute-1.amazonaws.com --without-shadowlib ec2-23-22-25-141.compute-1.amazonaws.com /opt/opscode/embedded/lib/ruby/1.9.1/mkmf.rb:368:in `try_do': The complier failed to generate an executable file. (RuntimeError) ec2-23-22-25-141.compute-1.amazonaws.com You have to install development tools first. ec2-23-22-25-141.compute-1.amazonaws.com from /opt/opscode/embedded/lib/ruby/1.9.1/mkmf.rb:435:in `try_link0' ec2-23-22-25-141.compute-1.amazonaws.com from /opt/opscode/embedded/lib/ruby/1.9.1/mkmf.rb:440:in `try_link' ec2-23-22-25-141.compute-1.amazonaws.com from /opt/opscode/embedded/lib/ruby/1.9.1/mkmf.rb:552:in `try_func' ec2-23-22-25-141.compute-1.amazonaws.com from /opt/opscode/embedded/lib/ruby/1.9.1/mkmf.rb:748:in `block in have_library' ec2-23-22-25-141.compute-1.amazonaws.com from /opt/opscode/embedded/lib/ruby/1.9.1/mkmf.rb:693:in `block in checking_for' ec2-23-22-25-141.compute-1.amazonaws.com from /opt/opscode/embedded/lib/ruby/1.9.1/mkmf.rb:280:in `block (2 levels) in postpone' ec2-23-22-25-141.compute-1.amazonaws.com from /opt/opscode/embedded/lib/ruby/1.9.1/mkmf.rb:254:in `open' ec2-23-22-25-141.compute-1.amazonaws.com from /opt/opscode/embedded/lib/ruby/1.9.1/mkmf.rb:280:in `block in postpone' ec2-23-22-25-141.compute-1.amazonaws.com from /opt/opscode/embedded/lib/ruby/1.9.1/mkmf.rb:254:in `open' ec2-23-22-25-141.compute-1.amazonaws.com from /opt/opscode/embedded/lib/ruby/1.9.1/mkmf.rb:276:in `postpone' ec2-23-22-25-141.compute-1.amazonaws.com from /opt/opscode/embedded/lib/ruby/1.9.1/mkmf.rb:692:in `checking_for' ec2-23-22-25-141.compute-1.amazonaws.com from /opt/opscode/embedded/lib/ruby/1.9.1/mkmf.rb:743:in `have_library' ec2-23-22-25-141.compute-1.amazonaws.com from extconf.rb:13:in `<main>' ec2-23-22-25-141.compute-1.amazonaws.com ec2-23-22-25-141.compute-1.amazonaws.com ec2-23-22-25-141.compute-1.amazonaws.com Gem files will remain installed in /opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/ruby-shadow-2.1.4 for inspection. ec2-23-22-25-141.compute-1.amazonaws.com Results logged to /opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/ruby-shadow-2.1.4/gem_make.out ec2-23-22-25-141.compute-1.amazonaws.com {code} ] |
Bryan McLellan [Opscode]
made changes -
| Status | Open [ 1 ] | Closed [ 6 ] |
| Fix Version/s | 10.14.0 [ 10901 ] | |
| Resolution | Fixed [ 1 ] |
Bryan McLellan [Opscode]
made changes -
| Workflow | jira [ 15065 ] | New OSS [ 20326 ] |
Bryan McLellan [Opscode]
made changes -
| Workflow | New OSS [ 20326 ] | OSS: Product Management [ 28241 ] |