PDA

View Full Version : Error installing SUSE Cloud 5



eblock
16-Apr-2015, 13:20
Hi everyone,

I'm trying to install SUSE Cloud 5 on a Xen VM running on SLES11-SP3. The Administration Server has been installed successfully, the configuration is finished, now I'm trying to run the install-suse-cloud script as the last step according to the documentation before installing the OpenStack Nodes.
The setup of the VM seems to be ok, the script runs for a couple of minutes and then terminates prematurely. The install.log says:

================================================== ==============================
Recipe Compile Error in /var/chef/cache/cookbooks/provisioner/recipes/base.rb
================================================== ==============================

NoMethodError
-------------
undefined method `[]' for nil:NilClass

Cookbook Trace:
---------------
/var/chef/cache/cookbooks/provisioner/recipes/base.rb:87:in `from_file'

Relevant File Content:
----------------------
/var/chef/cache/cookbooks/provisioner/recipes/base.rb:

80: end
81:
82: # Fix bug we had in stoney and earlier where we never saved the target_platform
83: # of the node when the node was installed with the default target platform.
84: # This only works because the default target platform didn't change between
85: # stoney and tex.
86: if node[:target_platform].nil? or node[:target_platform].empty?
87>> node.set[:target_platform] = provisioner_server_node[:provisioner][:default_os]
88: end
89:
90: node.save
91:
92: template "/root/.ssh/authorized_keys" do
93: owner "root"
94: group "root"
95: mode "0644"
96: action :create

[2015-04-16T14:12:39+02:00] ERROR: Running exception handlers
[2015-04-16T14:12:39+02:00] FATAL: Saving node information to /var/chef/cache/failed-run-data.json
[2015-04-16T14:12:39+02:00] ERROR: Exception handlers complete
[2015-04-16T14:12:39+02:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2015-04-16T14:12:39+02:00] FATAL: NoMethodError: undefined method `[]' for nil:NilClass


Any ideas what the problem is? I believe Chef is not abled to find the target platform, but as I'm new to SUSE in general I let you interpret the messages.
One additional information: As we are planning to use Docker in the cloud and this is supposed to be supported by SLES12, we have configured the Admin Server with a mix of both, according to the documentation. So I guess this should not be a problem, should it?

I would appreciate any help, thanks ins advance!

ab
16-Apr-2015, 14:49
Could you post the contents of the files mentioned in the output messages?

/var/chef/cache/chef-stacktrace.out
/var/chef/cache/failed-run-data.json

I've not yet setup SUSE Cloud but maybe we'll see something in there.
Just for completness, it may be worth posting a link to the documentation
followed as well as mention which step you're on for us newbies.

--
Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below...

eblock
16-Apr-2015, 15:23
Thanks for your reply, here is the content of /var/chef/cache/chef-stacktrace.out

################################################## ##############################
Generated at 2015-04-16 14:12:39 +0200
NoMethodError: undefined method `[]' for nil:NilClass
/var/chef/cache/cookbooks/provisioner/recipes/base.rb:87:in `from_file'
/usr/lib64/ruby/gems/2.1.0/gems/chef-10.32.2/lib/chef/mixin/from_file.rb:30:in `instance_eval'
/usr/lib64/ruby/gems/2.1.0/gems/chef-10.32.2/lib/chef/mixin/from_file.rb:30:in `from_file'
/usr/lib64/ruby/gems/2.1.0/gems/chef-10.32.2/lib/chef/cookbook_version.rb:558:in `load_recipe'
/usr/lib64/ruby/gems/2.1.0/gems/chef-10.32.2/lib/chef/mixin/language_include_recipe.rb:46:in `load_recipe'
/usr/lib64/ruby/gems/2.1.0/gems/chef-10.32.2/lib/chef/mixin/language_include_recipe.rb:33:in `block in include_recipe'
/usr/lib64/ruby/gems/2.1.0/gems/chef-10.32.2/lib/chef/mixin/language_include_recipe.rb:27:in `each'
/usr/lib64/ruby/gems/2.1.0/gems/chef-10.32.2/lib/chef/mixin/language_include_recipe.rb:27:in `include_recipe'
/usr/lib64/ruby/gems/2.1.0/gems/chef-10.32.2/lib/chef/run_context.rb:79:in `block in load'
/usr/lib64/ruby/gems/2.1.0/gems/chef-10.32.2/lib/chef/run_context.rb:75:in `each'
/usr/lib64/ruby/gems/2.1.0/gems/chef-10.32.2/lib/chef/run_context.rb:75:in `load'
/usr/lib64/ruby/gems/2.1.0/gems/chef-10.32.2/lib/chef/client.rb:206:in `setup_run_context'
/usr/lib64/ruby/gems/2.1.0/gems/chef-10.32.2/lib/chef/client.rb:428:in `do_run'
/usr/lib64/ruby/gems/2.1.0/gems/chef-10.32.2/lib/chef/client.rb:184:in `run'
/usr/lib64/ruby/gems/2.1.0/gems/chef-10.32.2/lib/chef/application.rb:133:in `run_chef_client'
/usr/lib64/ruby/gems/2.1.0/gems/chef-10.32.2/lib/chef/application/client.rb:285:in `block in run_application'
/usr/lib64/ruby/gems/2.1.0/gems/chef-10.32.2/lib/chef/application/client.rb:277:in `loop'
/usr/lib64/ruby/gems/2.1.0/gems/chef-10.32.2/lib/chef/application/client.rb:277:in `run_application'
/usr/lib64/ruby/gems/2.1.0/gems/chef-10.32.2/lib/chef/application.rb:65:in `run'
/usr/lib64/ruby/gems/2.1.0/gems/chef-10.32.2/bin/chef-client:26:in `<top (required)>'
/usr/bin/chef-client:23:in `load'
/usr/bin/chef-client:23:in `<main>'

################################################## ##############################

The content of failed-run-data.json is quite long (more than 12,000 lines), I'd rather not post it here. If you have any suggestion what I could look for in the file to post, please let me know. If you insist on having the complete output posted here, I could do that of course.

Edit:
Here is the link to the documentation:

https://www.suse.com/documentation/suse-cloud-5/

jmozdzen
17-Apr-2015, 17:20
Hi *,

as I'm involved in this installation situation, let me update that today an install on a physical server showed exactly the same result... so it seems the problem is not related to the Xen VM used to install the admin server.

Regards,
Jens

a_jaeger
18-Apr-2015, 20:41
Could you file a support request with our support organisation, please? I think that way we can help you better.

Andreas

jmozdzen
20-Apr-2015, 09:42
Hi Andreas,

Could you file a support request with our support organisation, please? I think that way we can help you better.

Andreas

will do so this morning, thank you!

Regards,
Jens