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

can't create servers until virtual router is initialized #5

Open
kcbraunschweig opened this issue Mar 3, 2012 · 0 comments
Open

can't create servers until virtual router is initialized #5

kcbraunschweig opened this issue Mar 3, 2012 · 0 comments

Comments

@kcbraunschweig
Copy link
Contributor

If you are using virtual networking, knife cs server create will fail if the virtual router has not been initialized, with the error below. The workaround is to create a vm instance via the webui. This will initialize the router. After that knife cs will work properly.

$ knife cs server create vrweb0 -S M -x foo -P bar-r 'role[base]' -VV
Waiting for server/Library/Ruby/Gems/1.8/gems/knife-cloudstack-0.0.11/lib/knife-cloudstack/connection.rb:157:in create_server': undefined method[]' for nil:NilClass (NoMethodError)
from /Library/Ruby/Gems/1.8/gems/knife-cloudstack-0.0.11/lib/knife-cloudstack/connection.rb:156:in map' from /Library/Ruby/Gems/1.8/gems/knife-cloudstack-0.0.11/lib/knife-cloudstack/connection.rb:156:increate_server'
from /Library/Ruby/Gems/1.8/gems/knife-cloudstack-0.0.11/lib/chef/knife/cs_server_create.rb:174:in run' from /Library/Ruby/Gems/1.8/gems/chef-0.10.8/lib/chef/knife.rb:391:inrun_with_pretty_exceptions'
from /Library/Ruby/Gems/1.8/gems/chef-0.10.8/lib/chef/knife.rb:166:in run' from /Library/Ruby/Gems/1.8/gems/chef-0.10.8/lib/chef/application/knife.rb:128:inrun'
from /Library/Ruby/Gems/1.8/gems/chef-0.10.8/bin/knife:25
from /usr/bin/knife:19:in `load'
from /usr/bin/knife:19

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

1 participant