Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 0.10.8
-
Fix Version/s: None
-
Component/s: Chef Client
-
Labels:None
-
Environment:Hide
Chef 0.10.8
Ruby 1.8.7 (2011-12-28 patchlevel 357) [x86_64-linux]
AMI ami-8e1fece7 (Amazon Linux: system-release-2011.02 beta)
Instance Flavor m1.largeknife ec2 server create
knife ec2 server create -r 'role[worker]' -I ami-8e1fece7 -f m1.large -d amazon-linux-gems\ -G "hypersearch-dev" -E dailystaging --ephemeral /dev/sdb,/dev/sdc -i ~/.ssh/chef-knife.pem\ -S chef-knife --ssh-user ec2-user --region us-east-1 -Z us-east-1d -VVamazon-linux-gems bootstrap
bash -c ' <%= "export http_proxy=\"#{knife_config[:bootstrap_proxy]}\"" if knife_config[:bootstrap_proxy] -%> if [ ! -f /usr/bin/chef-client ]; then yum install -y ruby ruby-devel gcc gcc-c++ libxml2-devel libxslt-devel automake autoconf make yum install -y rubygems fi gem update --system gem update gem install yaml --no-rdoc --no-ri --verbose gem install ohai --no-rdoc --no-ri -v 0.6.10 --verbose gem install chef --no-rdoc --no-ri -v 0.10.8 --verbose <%= bootstrap_version_string %> gem install multi_json -v '1.0.3' --no-rdoc --no-ri --verbose gem install aws-sdk --no-rdoc --no-ri --verbose gem install fog --no-rdoc --no-ri --verbose mkdir -p /etc/chef ( cat <<'EOP' <%= validation_key %> EOP ) > /tmp/validation.pem awk NF /tmp/validation.pem > /etc/chef/validation.pem rm /tmp/validation.pem ( cat <<'EOP' <%= config_content %> EOP ) > /etc/chef/client.rb ( cat <<'EOP' <%= { "run_list" => @run_list }.to_json %> EOP ) > /etc/chef/first-boot.json <%= start_chef %>'
ShowChef 0.10.8 Ruby 1.8.7 (2011-12-28 patchlevel 357) [x86_64-linux] AMI ami-8e1fece7 (Amazon Linux: system-release-2011.02 beta) Instance Flavor m1.large knife ec2 server create knife ec2 server create -r 'role[worker]' -I ami-8e1fece7 -f m1.large -d amazon-linux-gems\ -G "hypersearch-dev" -E dailystaging --ephemeral /dev/sdb,/dev/sdc -i ~/.ssh/chef-knife.pem\ -S chef-knife --ssh-user ec2-user --region us-east-1 -Z us-east-1d -VV amazon-linux-gems bootstrap bash -c ' <%= "export http_proxy=\" #{knife_config[:bootstrap_proxy]}\"" if knife_config[:bootstrap_proxy] -%> if [ ! -f /usr/bin/chef-client ]; then yum install -y ruby ruby-devel gcc gcc-c++ libxml2-devel libxslt-devel automake autoconf make yum install -y rubygems fi gem update --system gem update gem install yaml --no-rdoc --no-ri --verbose gem install ohai --no-rdoc --no-ri -v 0.6.10 --verbose gem install chef --no-rdoc --no-ri -v 0.10.8 --verbose <%= bootstrap_version_string %> gem install multi_json -v '1.0.3' --no-rdoc --no-ri --verbose gem install aws-sdk --no-rdoc --no-ri --verbose gem install fog --no-rdoc --no-ri --verbose mkdir -p /etc/chef ( cat <<'EOP' <%= validation_key %> EOP ) > /tmp/validation.pem awk NF /tmp/validation.pem > /etc/chef/validation.pem rm /tmp/validation.pem ( cat <<'EOP' <%= config_content %> EOP ) > /etc/chef/client.rb ( cat <<'EOP' <%= { "run_list" => @run_list }.to_json %> EOP ) > /etc/chef/first-boot.json <%= start_chef %>'
Description
When bootstrapping a node today using the exact same process followed with success yesterday, the process failed with a Segmentation fault at various places in chef/provider/package/yum.rb. The crash was reported variously at line 743, 412, and other places.
Reviewing the lines called out did not identify anything that seems like it might be the root cause.
In the environment field are details including the command run, the bootstrap file used, etc. Attached is the output of a chef run which failed.
Issue Links
- relates to
-
CHEF-2413
ruby segfault with CentOS 5 i386 + ruby 1.8.7 p334 + chef 0.10.0
-
Activity
| Field | Original Value | New Value |
|---|---|---|
| Priority | Critical [ 2 ] | Blocker [ 1 ] |
| Status | Open [ 1 ] | Closed [ 6 ] |
| Resolution | Fixed [ 1 ] |
| Workflow | jira [ 15515 ] | New OSS [ 20402 ] |
| Workflow | New OSS [ 20402 ] | OSS: Product Management [ 28320 ] |
| Transition | Time In Source Status | Execution Times | Last Executer | Last Execution Date | |||||
|---|---|---|---|---|---|---|---|---|---|
|
2d 5h 3m | 1 | Bryan McLellan [Opscode] | 31/Mar/12 2:14 AM |
Where is your Ruby coming from? This is likely a Ruby bug. I would recommend first using the 'chef-full' template to use the Omnibus Client chef installation, and second to review CHEF-2413 for possible alternative Ruby rpms.
https://github.com/opscode/chef/blob/master/chef/lib/chef/knife/bootstrap/chef-full.erb