On Apr 20, 2016, at 7:31 AM, Tito Garrido wrote:

> *root@d52-54-00-a1-98-8b:~ # cat /var/chef/cache/chef-stacktrace.out
> Generated at 2016-04-20 11:09:12 -0300Chef::Mixin::Template::TemplateError:
> Chef::Mixin::Template::TemplateError (undefined method `[]' for
> nil:NilClass) on line #57: 55: <%end -%> 56:  57: [<%=
> @svm[:zvm_xcat_mgt_vswitch] %>] 58:  59: # (StrOpt ) rdev_list for each
> vswitch's uplink real device(s), seperated by ','.*

This is a Ruby error resulting from some data not being set correctly. @svm is 
nil, and thus is of NilClass and so does not have a [] method (hash key 
accessor). It is what amounts to an uninitialized variable error, in Ruby.

Without having seen the chef cookbook involved here... the value for @svm (an 
instance variable local to the ERB template being processed) is not being set. 
It'll likely be assigned a value in the template resource, in the specific 
recipe being run -- probably from a node attribute. The value of that attribute 
must be a hash (or mash), containing a key named "zvm_xcat_mgt_vswitch". The 
value of that key (a string) will be used as the rdev_list.


ok
bear.

-- 
until further notice

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

Reply via email to