Skip to content

SoftLayer provisioning options? #56

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
timspencer opened this issue May 19, 2014 · 2 comments
Closed

SoftLayer provisioning options? #56

timspencer opened this issue May 19, 2014 · 2 comments

Comments

@timspencer
Copy link

Hello!

I’ve got fog and https://github.com/softlayer/fog-softlayer installed, and it looks like it understands the softlayer fog provider (given the source files the traceback is going through), but it keeps giving me this error whenever I specify a machine, no matter what I put in:

[2014-05-19T14:11:21-07:00] ERROR: machine_batch[default] (mytest::smalltest_cluster line 126) had an error: ArgumentError: name, domain, cpu and ram are required for this operation

It looks like I need to specify sizing (memory/cpu/etc) options somehow there, but I actually can’t see any examples of that happening in myapp or anywhere. How does one configure that stuff with chef-metal? It looks like with_provisioner_options is the right way to do that, but I must be missing something, because nothing I do is making this work. :-)

If it helps, here’s what I am doing:

 : tspencer-work.local $; cat softlayer_provider.rb 
#
# This sets up the softlayer provider
#
require 'fog/softlayer'
require 'chef_metal_fog'

with_fog_provisioner :provider => 'SoftLayer',
    :softlayer_username => ENV['SOFTLAYER_USERNAME'],
    :softlayer_api_key => ENV['SOFTLAYER_API_KEY']

with_provisioner_options :name => 'tspencer-chefmetal-footest',
    :domain => 'foo.com',
    :cpu => 2,
    :ram => 2048,
    :hourlyBillingFlag => false,
    :localDiskFlag => true,
    :os_code => 'CENTOS_6_64'

 : tspencer-work.local $; 

Seems like I shouldn’t have to specify name, because the machine resource should set that for me, but I just threw that in there just to try it out. I've also tried changing the cpu/ram/etc stuff to match other keywords in fog-softlayer, but I keep getting the same error.

Anyways, let me know what I can do to try to figure this out. Thanks again, and have fun!

@mikesplain
Copy link
Contributor

I got a similar error with openstack and fog actually. @jkeiser and I debugged a similar problem over here: #52. The fix to that is in the master branch of chef-metal-fog but I don't think it's been released yet. I'd say give that a shot.

@timspencer
Copy link
Author

Oh, upgrading to the newest chef-metal-fog did it! It stopped complaining about name, and I just discovered base_bootstrap_options, which looks like it is fixing my other cpu/memory config issues. Thanks for the pointer!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants