Skip to content

Instantly share code, notes, and snippets.

@fujin
Created September 23, 2008 22:18
Show Gist options
  • Save fujin/12431 to your computer and use it in GitHub Desktop.
Save fujin/12431 to your computer and use it in GitHub Desktop.
Processing RestNodesController#update (for 123.100.71.5 at 2008-09-24 10:17:41) [PUT]
Session ID: f36b628fb5cced0177f18421a933c62d
Parameters: {"node"=>{"attribs"=>{"attrib"=>[{"name"=>"apache_keepalive", "values"=>{"value"=>"On"}}, {"name"=>"apache_keepaliverequests", "values"=>{"value"=>"100"}}, {"name"=>"apache_keepalivetimeout
", "values"=>{"value"=>"5"}}, {"name"=>"apache_listen_ports", "values"=>{"value"=>["80", "443"]}}, {"name"=>"apache_prefork_maxclients", "values"=>{"value"=>"150"}}, {"name"=>"apache_prefork_maxrequestsp
erchild", "values"=>{"value"=>"0"}}, {"name"=>"apache_prefork_maxspareservers", "values"=>{"value"=>"10"}}, {"name"=>"apache_prefork_minspareservers", "values"=>{"value"=>"5"}}, {"name"=>"apache_prefork_
startservers", "values"=>{"value"=>"5"}}, {"name"=>"apache_timeout", "values"=>{"value"=>"300"}}, {"name"=>"apache_worker_maxclients", "values"=>{"value"=>"150"}}, {"name"=>"apache_worker_maxrequestsperc
hild", "values"=>{"value"=>"0"}}, {"name"=>"apache_worker_maxsparethreads", "values"=>{"value"=>"75"}}, {"name"=>"apache_worker_minsparethreads", "values"=>{"value"=>"25"}}, {"name"=>"apache_worker_start
servers", "values"=>{"value"=>"2"}}, {"name"=>"apache_worker_threadsperchild", "values"=>{"value"=>"25"}}, {"name"=>"architecture", "values"=>{"value"=>"x86_64"}}, {"name"=>"custom_apache_tuning", "value
s"=>{"value"=>"false"}}, {"name"=>"domain", "values"=>{"value"=>"maxnet.net.nz"}}, {"name"=>"ec2", "values"=>{"value"=>"false"}}, {"name"=>"facterversion", "values"=>{"value"=>"1.5.1"}}, {"name"=>"fqdn",
"values"=>{"value"=>"puppet.maxnet.net.nz"}}, {"name"=>"hardwaremodel", "values"=>{"value"=>"x86_64"}}, {"name"=>"hostname", "values"=>{"value"=>"puppet"}}, {"name"=>"innodb_buffer_pool_size", "values"=
>{"value"=>"2833M"}}, {"name"=>"interfaces", "values"=>{"value"=>"eth0,eth1"}}, {"name"=>"ipaddress", "values"=>{"value"=>"172.16.10.5"}}, {"name"=>"ipaddress_eth0", "values"=>{"value"=>"172.16.10.5"}},
{"name"=>"ipaddress_eth1", "values"=>{"value"=>"123.100.71.5"}}, {"name"=>"kernel", "values"=>{"value"=>"Linux"}}, {"name"=>"kernelrelease", "values"=>{"value"=>"2.6.24-19-server"}}, {"name"=>"kernelvers
ion", "values"=>{"value"=>"2.6.24"}}, {"name"=>"lsbdistcodename", "values"=>{"value"=>"hardy"}}, {"name"=>"lsbdistdescription", "values"=>{"value"=>"Ubuntu 8.04.1"}}, {"name"=>"lsbdistid", "values"=>{"va
lue"=>"Ubuntu"}}, {"name"=>"lsbdistrelease", "values"=>{"value"=>"8.04"}}, {"name"=>"macaddress", "values"=>{"value"=>"00:50:56:81:7b:d5"}}, {"name"=>"macaddress_eth0", "values"=>{"value"=>"00:50:56:81:7
b:d5"}}, {"name"=>"macaddress_eth1", "values"=>{"value"=>"00:50:56:81:34:0d"}}, {"name"=>"mail_type", "values"=>{"value"=>"client"}}, {"name"=>"manufacturer", "values"=>{"value"=>"VMware, Inc."}}, {"name
"=>"memoryfree", "values"=>{"value"=>"3.01 GB"}}, {"name"=>"memorysize", "values"=>{"value"=>"3.69"}}, {"name"=>"mongrel_port_number", "values"=>{"value"=>"5000"}}, {"name"=>"mongrel_servers", "values"=>
{"value"=>"45"}}, {"name"=>"netmask", "values"=>{"value"=>"255.255.255.0"}}, {"name"=>"netmask_eth0", "values"=>{"value"=>"255.255.255.0"}}, {"name"=>"netmask_eth1", "values"=>{"value"=>"255.255.255.0"}}
, {"name"=>"operatingsystem", "values"=>{"value"=>"Ubuntu"}}, {"name"=>"operatingsystemrelease", "values"=>{"value"=>"8.04"}}, {"name"=>"processor0", "values"=>{"value"=>"Intel(R) Xeon(R) CPU E
5335 @ 2.00GHz"}}, {"name"=>"processorcount", "values"=>{"value"=>"1"}}, {"name"=>"productname", "values"=>{"value"=>"VMware Virtual Platform"}}, {"name"=>"ps", "values"=>{"value"=>"ps -ef"}}, {"name"=>
"puppet_env", "values"=>nil}, {"name"=>"puppet_env", "values"=>{"value"=>nil}}, {"name"=>"puppetversion", "values"=>{"value"=>"0.24.5"}}, {"name"=>"rubysitedir", "values"=>{"value"=>"/usr/local/lib/site_
ruby/1.8"}}, {"name"=>"rubyversion", "values"=>{"value"=>"1.8.6"}}, {"name"=>"serialnumber", "values"=>{"value"=>"VMware-50 01 bd 81 dc 6e 10 f1-00 30 10 59 9c dc 1e d4"}}, {"name"=>"sshdsakey", "values"
=>{"value"=>"AAAAB3NzaC1kc3MAAACBALIeAVAN2PfeE+8u3RCMZCtUy+b0KQ6IqdQ7ITWCJdnKJ1E+Z+IkDua2OQQ/r40dFGgeHjOnS0KUSENRtbC7Ffp4ERPD8UWcQeDW4OZfK9xBcvRxgeB4ltty0nSbbwLow5P3mUA1ATgL598Q2ymC2QDapDKm4dvQ33sdy9CifR
ZjAAAAFQDSP59u3PfISq3elROeaqU0jfR/JwAAAIBw3w2LONHid2yzA/9MLyKOi4CTpjpegSfcfFZoHfj8/ySe99e68D0v6xyjUxU5ClxeZPmw7YH+anGMxSKZVA5LwycRN2QwRQikjegJI2nLA/YT2jIUgk78lRSOE/8BbW7uHpEH1qWgaU4Nk1dGJSeRt6abtYUKLgau7
tNh9qdx2wAAAIBlzkfdloJkDL5oZ/zPt2MLLYIZLJIKOvOipheaM/UH4E/LkRwRzG7KXMbNqLs8XKwgeDsiSclVdPrjR1OniCFGty7vDNWkjMvzX0u0MPLu4PpnnnL7TGi3ZAh8URAK5gCVTjvHz7MP1sc7xas7CpefDSsihQFrbzGPw3cyi5HYTg=="}}, {"name"=>"s
shrsakey", "values"=>{"value"=>"AAAAB3NzaC1yc2EAAAABIwAAAQEAsgFsCz7TMG/6txV+LWnGhoDORHxoUc9suKdnu4u/r6OFy8kKZcTyjgUe0Czh63UUvufMPwWdpbmXMHVy9Tkqsb/DBwMItfUVAZi8wBZtbUiepD1yxY/5nOcNzV3RZ7G2W3zbFuNRBdVP0zM
mlydx/LTtcayEJHW3W910hpKooS+HA3/eMOXBGl3ZvfLuEwHBot6DmK5TR/MZ/kJftaP3l59P8N+z7jSs6spv+l9lxYmO0uPiMSDKwX3j/M/jA56uInAxFtBHKlZXrM6Qee3RRiD0/yxNjPpmVi8eGoZOvBeNuINZXHEpnuwfkCNnx/A/ML8+81oW4OZlYRHmTtTVHQ=="}
}, {"name"=>"swapfree", "values"=>{"value"=>"400.02 MB"}}, {"name"=>"swapsize", "values"=>{"value"=>"400.02 MB"}}, {"name"=>"type", "values"=>{"value"=>"Other"}}, {"name"=>"virtual", "values"=>{"value"=>
"vmware"}}]}, "tags"=>{"tag"=>["base", "operations-master"]}, "id"=>"51", "uuid"=>"d223cfbd-5d69-401e-adfd-b04d3170918a", "notes"=>nil, "description"=>"puppet"}, "action"=>"update", "id"=>"51", "controll
er"=>"rest_nodes"}
NoMethodError (undefined method `[]' for nil:NilClass):
/app/models/attrib.rb:50:in `create_missing_attribs'
/app/models/attrib.rb:36:in `each'
/app/models/attrib.rb:36:in `create_missing_attribs'
/app/models/node.rb:192:in `update_with_tags_and_attribs'
/app/controllers/rest_nodes_controller.rb:75:in `update'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/mime_responds.rb:106:in `call'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/mime_responds.rb:106:in `respond_to'
/app/controllers/rest_nodes_controller.rb:72:in `update'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:1158:in `send'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:1158:in `perform_action_without_filters'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:697:in `call_filters'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:689:in `perform_action_without_benchmark'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment