Skip to content
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

Failing knife softlayer server create --hostname test --domain example.com --flavor tiny #36

Open
mbhavya opened this issue Jan 25, 2016 · 1 comment

Comments

@mbhavya
Copy link

mbhavya commented Jan 25, 2016

1st example in readme of this repo, to create a vm, is failing:


[user@system chef-repo]$ knife softlayer server create --hostname test --domain bluecloud.ibm.com --flavor tiny -VV
INFO: Using configuration from /home/user/code/chef-repo/.chef/knife.rb
Launching SoftLayer VM, this may take a few minutes.
/home/user/.chefdk/gem/ruby/2.1.0/gems/fog-softlayer-0.3.30/lib/fog/softlayer/models/compute/server.rb:418:in `extract_flavor': undefined method `cpu' for nil:NilClass (NoMethodError)
    from /home/user/.chefdk/gem/ruby/2.1.0/gems/fog-softlayer-0.3.30/lib/fog/softlayer/models/compute/server.rb:122:in `pre_save'
    from /home/user/.chefdk/gem/ruby/2.1.0/gems/fog-softlayer-0.3.30/lib/fog/softlayer/models/compute/server.rb:311:in `save'
    from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/fog-core-1.32.1/lib/fog/core/collection.rb:51:in `create'
    from /home/user/.chefdk/gem/ruby/2.1.0/gems/knife-softlayer-0.4.0/lib/chef/knife/softlayer_server_create.rb:304:in `run'
    from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/knife.rb:405:in `block in run_with_pretty_exceptions'
    from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/local_mode.rb:44:in `with_server_connectivity'
    from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/knife.rb:404:in `run_with_pretty_exceptions'
    from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/knife.rb:203:in `run'
    from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/application/knife.rb:142:in `run'
    from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/bin/knife:25:in `'
    from /usr/bin/knife:54:in `load'
    from /usr/bin/knife:54:in `'
@mbhavya mbhavya changed the title Failing knife softlayer server create --hostname test --domain example.com --flavor tiny -VV Failing knife softlayer server create --hostname test --domain example.com --flavor tiny Jan 25, 2016
@benjsmi
Copy link

benjsmi commented Jul 1, 2016

This seems to be due to a lack of specifying the --cores option.

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

No branches or pull requests

2 participants