When following the instructions for VirtualBox/Vagrant/Chef install on OSX here:
http://docs.openstack.org/cactus/openstack-compute/admin/content/openstack-compute-installation-using-virtualbox-vagrant-and-chef.html
I get an error when the environment is being built with the vagrant up command. It appears that the version of nova-manage that is being used does not recognize the image option:
[Mon, 25 Apr 2011 17:35:19 +0000] DEBUG: Processing execute[curl http://images.ansolabs.com/tty.tgz | tar xvz -C /var/lib/nova/images] on maverick.hsd1.ca.comcast.net.
[Mon, 25 Apr 2011 17:35:19 +0000] DEBUG: Executing curl http://images.ansolabs.com/tty.tgz | tar xvz -C /var/lib/nova/images
[default] [Mon, 25 Apr 2011 17:35:33 +0000] DEBUG: ---- Begin output of curl http://images.ansolabs.com/tty.tgz | tar xvz -C /var/lib/nova/images ----
[Mon, 25 Apr 2011 17:35:33 +0000] DEBUG: STDOUT: aki-tty/
aki-tty/image
aki-tty/info.json
ami-tty/
ami-tty/image
ami-tty/info.json
ari-tty/
ari-tty/image
ari-tty/info.json
[Mon, 25 Apr 2011 17:35:33 +0000] DEBUG: STDERR: % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 22.6M 100 22.6M 0 0 1590k 0 0:00:14 0:00:14 --:--:-- 2279k
[Mon, 25 Apr 2011 17:35:33 +0000] DEBUG: ---- End output of curl http://images.ansolabs.com/tty.tgz | tar xvz -C /var/lib/nova/images ----
[Mon, 25 Apr 2011 17:35:33 +0000] DEBUG: Ran curl http://images.ansolabs.com/tty.tgz | tar xvz -C /var/lib/nova/images returned 0
[Mon, 25 Apr 2011 17:35:33 +0000] INFO: Ran execute[curl http://images.ansolabs.com/tty.tgz | tar xvz -C /var/lib/nova/images] successfully
[Mon, 25 Apr 2011 17:35:33 +0000] DEBUG: Processing execute[nova-manage image convert /var/lib/nova/images] on maverick.hsd1.ca.comcast.net.
[Mon, 25 Apr 2011 17:35:33 +0000] DEBUG: Executing nova-manage image convert /var/lib/nova/images
: stdout
[default] [Mon, 25 Apr 2011 17:35:34 +0000] DEBUG: ---- Begin output of nova-manage image convert /var/lib/nova/images ----
[Mon, 25 Apr 2011 17:35:34 +0000] DEBUG: STDOUT: image does not match any options:
user
project
role
shell
vpn
fixed
floating
network
service
log
db
volume
instance_type
flavor
[Mon, 25 Apr 2011 17:35:34 +0000] DEBUG: STDERR:
[Mon, 25 Apr 2011 17:35:34 +0000] DEBUG: ---- End output of nova-manage image convert /var/lib/nova/images ----
[Mon, 25 Apr 2011 17:35:34 +0000] DEBUG: Ran nova-manage image convert /var/lib/nova/images returned 2
[Mon, 25 Apr 2011 17:35:34 +0000] ERROR: execute[nova-manage image convert /var/lib/nova/images] (/tmp/vagrant-chef/cookbooks-0/nova/recipes/setup.rb:53:in `from_file') had an error:
nova-manage image convert /var/lib/nova/images returned 2, expected 0
---- Begin output of nova-manage image convert /var/lib/nova/images ----
STDOUT: image does not match any options:
user
project
role
shell
vpn
fixed
floating
network
service
log
db
volume
instance_type
flavorSTDERR:
---- End output of nova-manage image convert /var/lib/nova/images ----
/var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/mixin/command.rb:184:in `handle_command_failures'
/var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/mixin/command.rb:131:in `run_command'
/var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/provider/execute.rb:49:in `action_run'
/var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource.rb:395:in `send'
/var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource.rb:395:in `run_action'
/var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/runner.rb:53:in `run_action'
/var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/runner.rb:89:in `converge'
/var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/runner.rb:89:in `each'
/var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/runner.rb:89:in `converge'
/var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource_collection.rb:94:in `execute_each_resource'
/var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in `call'
/var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in `call_iterator_block'
/var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
/var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource_collection/stepable_iterator.rb:104:in `iterate'
/var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
/var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource_collection.rb:92:in `execute_each_resource'
/var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/runner.rb:84:in `converge'
/var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/client.rb:268:in `converge'
/var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/client.rb:158:in `run'
/var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/application/solo.rb:190:in `run_application'
/var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/application/solo.rb:181:in `loop'
/var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/application/solo.rb:181:in `run_application'
/var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/application.rb:62:in `run'
/var/lib/gems/1.8/gems/chef-0.9.12/bin/chef-solo:25
/var/lib/gems/1.8/bin/chef-solo:19:in `load'
/var/lib/gems/1.8/bin/chef-solo:19
[Mon, 25 Apr 2011 17:35:34 +0000] ERROR: Running exception handlers
[Mon, 25 Apr 2011 17:35:34 +0000] ERROR: Exception handlers complete
[Mon, 25 Apr 2011 17:35:34 +0000] DEBUG: Re-raising exception: Chef::Exceptions::Exec - nova-manage image convert /var/lib/nova/images returned 2, expected 0
---- Begin output of nova-manage image convert /var/lib/nova/images ----
STDOUT: image does not match any options:
user
project
role
shell
vpn
fixed
floating
network
service
log
db
volume
instance_type
flavorSTDERR:
---- End output of nova-manage image convert /var/lib/nova/images ----
/var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/mixin/command.rb:184:in `handle_command_failures'
[default] /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/mixin/command.rb:184:in `handle_command_failures': stderr
[default] : : stderr
[default] nova-manage image convert /var/lib/nova/images returned 2, expected 0: stderr
[default] (: stderr
[default] Chef::Exceptions::Exec: stderr
[default] )
---- Begin output of nova-manage image convert /var/lib/nova/images ----
STDOUT: image does not match any options:
user
project
role
shell
vpn
fixed
floating
network
service
log
db
volume
instance_type
flavorSTDERR:
---- End output of nova-manage image convert /var/lib/nova/images ----
from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/mixin/command.rb:131:in `run_command'
from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/provider/execute.rb:49:in `action_run'
from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource.rb:395:in `send'
from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource.rb:395:in `run_action'
from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/runner.rb:53:in `run_action'
from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/runner.rb:89:in `converge'
from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/runner.rb:89:in `each'
from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/runner.rb:89:in `converge'
from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource_collection.rb:94:in `execute_each_resource'
from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in `call'
from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in `call_iterator_block'
from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource_collection/stepable_iterator.rb:104:in `iterate'
from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource_collection.rb:92:in `execute_each_resource'
from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/runner.rb:84:in `converge'
from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/client.rb:268:in `converge'
from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/client.rb:158:in `run'
from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/application/solo.rb:190:in `run_application'
from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/application/solo.rb:181:in `loop'
from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/application/solo.rb:181:in `run_application'
from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/application.rb:62:in `run'
from /var/lib/gems/1.8/gems/chef-0.9.12/bin/chef-solo:25
from /var/lib/gems/1.8/bin/chef-solo:19:in `load'
from /var/lib/gems/1.8/bin/chef-solo:19
[default] in/../lib/chef/mixin/command.rb:131:in `run_command'
/var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/provider/execute.rb:49:in `action_run'
/var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource.rb:395:in `send'
/var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource.rb:395:in `run_action'
/var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/runner.rb:53:in `run_action'
/var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/runner.rb:89:in `converge'
/var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/runner.rb:89:in `each'
/var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/runner.rb:89:in `converge'
/var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource_collection.rb:94:in `execute_each_resource'
/var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in `call'
/var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in `call_iterator_block'
/var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
/var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource_collection/stepable_iterator.rb:104:in `iterate'
/var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
/var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource_collection.rb:92:in `execute_each_resource'
/var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/runner.rb:84:in `converge'
/var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/client.rb:268:in `converge'
/var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/client.rb:158:in `run'
/var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/application/solo.rb:190:in `run_application'
/var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/application/solo.rb:181:in `loop'
/var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/application/solo.rb:181:in `run_application'
/var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/application.rb:62:in `run'
/var/lib/gems/1.8/gems/chef-0.9.12/bin/chef-solo:25
/var/lib/gems/1.8/bin/chef-solo:19:in `load'
/var/lib/gems/1.8/bin/chef-solo:19
: stdout
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
sudo -i 'cd /tmp/vagrant-chef && chef-solo -c solo.rb -j dna.json'