Virutalbox dashboard install problem (again)

Asked by Jim Wichelman

There are other posts about dashboard install problems. The workaround was to comment out the line in the .rb file which works. However, this looks like a different problem than the other poster found:

[Thu, 16 Jun 2011 20:48:21 +0000] DEBUG: Processing file[/usr/lib/python2.6/dist-packages/dashboard.pth] on maverick.hsd1.ca.comcast.net.
[Thu, 16 Jun 2011 20:48:21 +0000] INFO: Creating file[/usr/lib/python2.6/dist-packages/dashboard.pth] at /usr/lib/python2.6/dist-packages/dashboard.pth
[Thu, 16 Jun 2011 20:48:21 +0000] DEBUG: Processing execute[python setup.py develop] on maverick.hsd1.ca.comcast.net.
[Thu, 16 Jun 2011 20:48:21 +0000] DEBUG: Executing python setup.py develop
[Thu, 16 Jun 2011 20:48:21 +0000] ERROR: execute[python setup.py develop] (/tmp/vagrant-chef/cookbooks-0/nova/recipes/dashboard.rb:13:in `from_file') had an error:
/srv/dashboard/django-nova does not exist or is not a directory
/var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/mixin/command.rb:146:in `output_of_command'
/var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/mixin/command.rb:128: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
[Thu, 16 Jun 2011 20:48:21 +0000] ERROR: Running exception handlers
[Thu, 16 Jun 2011 20:48:21 +0000] ERROR: Exception handlers complete
[Thu, 16 Jun 2011 20:48:21 +0000] DEBUG: Re-raising exception: Chef::Exceptions::Exec - /srv/dashboard/django-nova does not exist or is not a directory
/var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/mixin/command.rb:146:in `output_of_command'
[default] /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/mixin/command.rb:146:in `output_of_command': stderr
[default] : : stderr
[default] /srv/dashboard/django-nova does not exist or is not a directory: stderr
[default] (: stderr
[default] Chef::Exceptions::Exec: stderr
[default] )
: stderr
[default] from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/mixin/command.rb:128:in `run_command'
: stderr
[default] from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/provider/execute.rb:49:in `action_run'
: stderr
[default] from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource.rb:395:in `send'
: stderr
[default] from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource.rb:395:in `run_action'
: stderr
[default] from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/runner.rb:53:in `run_action'
: stderr
[default] from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/runner.rb:89:in `converge'
: stderr
[default] from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/runner.rb:89:in `each'
: stderr
[default] from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/runner.rb:89:in `converge'
: stderr
[default] from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource_collection.rb:94:in `execute_each_resource'
: stderr
[default] from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in `call'
: stderr
[default] from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in `call_iterator_block'
: stderr
[default] from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
: stderr
[default] from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource_collection/stepable_iterator.rb:104:in `iterate'
: stderr
[default] from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
: stderr
[default] from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource_collection.rb:92:in `execute_each_resource'
: stderr
[default] from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/runner.rb:84:in `converge'
: stderr
[default] from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/client.rb:268:in `converge'
: stderr
[default] from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/client.rb:158:in `run'
: stderr
[default] from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/application/solo.rb:190:in `run_application'
: stderr
[default] from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/application/solo.rb:181:in `loop'
: stderr
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'

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Jim Wichelman
Solved:
Last query:
Last reply:
Revision history for this message
Vish Ishaya (vishvananda) said :
#1

the directory was renamed. The default value of the recipe was changed in master. Do you have another branch checked out by any chance? Perhaps devpackages? I've updated devpackages to just in case, so pulling the newest code should fix your error.

Vish

On Jun 16, 2011, at 2:21 PM, Jim Wichelman wrote:

> New question #161728 on OpenStack Compute (nova):
> https://answers.launchpad.net/nova/+question/161728
>
> There are other posts about dashboard install problems. The workaround was to comment out the line in the .rb file which works. However, this looks like a different problem than the other poster found:
>
>
> [Thu, 16 Jun 2011 20:48:21 +0000] DEBUG: Processing file[/usr/lib/python2.6/dist-packages/dashboard.pth] on maverick.hsd1.ca.comcast.net.
> [Thu, 16 Jun 2011 20:48:21 +0000] INFO: Creating file[/usr/lib/python2.6/dist-packages/dashboard.pth] at /usr/lib/python2.6/dist-packages/dashboard.pth
> [Thu, 16 Jun 2011 20:48:21 +0000] DEBUG: Processing execute[python setup.py develop] on maverick.hsd1.ca.comcast.net.
> [Thu, 16 Jun 2011 20:48:21 +0000] DEBUG: Executing python setup.py develop
> [Thu, 16 Jun 2011 20:48:21 +0000] ERROR: execute[python setup.py develop] (/tmp/vagrant-chef/cookbooks-0/nova/recipes/dashboard.rb:13:in `from_file') had an error:
> /srv/dashboard/django-nova does not exist or is not a directory
> /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/mixin/command.rb:146:in `output_of_command'
> /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/mixin/command.rb:128: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
> [Thu, 16 Jun 2011 20:48:21 +0000] ERROR: Running exception handlers
> [Thu, 16 Jun 2011 20:48:21 +0000] ERROR: Exception handlers complete
> [Thu, 16 Jun 2011 20:48:21 +0000] DEBUG: Re-raising exception: Chef::Exceptions::Exec - /srv/dashboard/django-nova does not exist or is not a directory
> /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/mixin/command.rb:146:in `output_of_command'
> [default] /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/mixin/command.rb:146:in `output_of_command': stderr
> [default] : : stderr
> [default] /srv/dashboard/django-nova does not exist or is not a directory: stderr
> [default] (: stderr
> [default] Chef::Exceptions::Exec: stderr
> [default] )
> : stderr
> [default] from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/mixin/command.rb:128:in `run_command'
> : stderr
> [default] from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/provider/execute.rb:49:in `action_run'
> : stderr
> [default] from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource.rb:395:in `send'
> : stderr
> [default] from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource.rb:395:in `run_action'
> : stderr
> [default] from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/runner.rb:53:in `run_action'
> : stderr
> [default] from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/runner.rb:89:in `converge'
> : stderr
> [default] from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/runner.rb:89:in `each'
> : stderr
> [default] from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/runner.rb:89:in `converge'
> : stderr
> [default] from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource_collection.rb:94:in `execute_each_resource'
> : stderr
> [default] from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in `call'
> : stderr
> [default] from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in `call_iterator_block'
> : stderr
> [default] from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
> : stderr
> [default] from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource_collection/stepable_iterator.rb:104:in `iterate'
> : stderr
> [default] from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
> : stderr
> [default] from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource_collection.rb:92:in `execute_each_resource'
> : stderr
> [default] from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/runner.rb:84:in `converge'
> : stderr
> [default] from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/client.rb:268:in `converge'
> : stderr
> [default] from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/client.rb:158:in `run'
> : stderr
> [default] from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/application/solo.rb:190:in `run_application'
> : stderr
> [default] from /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/application/solo.rb:181:in `loop'
> : stderr
> 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'
>
>
> --
> You received this question notification because you are a member of Nova
> Core, which is an answer contact for OpenStack Compute (nova).

Revision history for this message
Jim Wichelman (jim-wichelman) said :
#2

I am not explicitly grabbing source. I am following the instructions here:
    http://cloudbuilders.github.com/deploy.sh/single-node-nova-installation-using-vagrant-and-chef.html

(which by the way has a bad url for the cookbooks - fix is to "s/cloudbuilders/openstack/")

The chef recipe seems to be the culprit here:

openstack-cookbooks/cookbooks/nova/attributes/dashboard.rb:
   default[:nova][:dashboard][:dashboard_branch] = "lp:openstack-dashboard"
   default[:nova][:dashboard][:deploy_dir] = "/srv/dashboard"

What is the correct deploy_dir?

Revision history for this message
Jim Wichelman (jim-wichelman) said :
#3
Revision history for this message
Vish Ishaya (vishvananda) said :
#4

Ah, sounds like the openstack repo cookbooks are out of date. I will update them, thanks.
On Jun 16, 2011, at 3:06 PM, Jim Wichelman wrote:

> Question #161728 on OpenStack Compute (nova) changed:
> https://answers.launchpad.net/nova/+question/161728
>
> Status: Answered => Open
>
> Jim Wichelman is still having a problem:
> I am not explicitly grabbing source. I am following the instructions here:
> http://cloudbuilders.github.com/deploy.sh/single-node-nova-installation-using-vagrant-and-chef.html
>
> (which by the way has a bad url for the cookbooks - fix is to
> "s/cloudbuilders/openstack/")
>
> The chef recipe seems to be the culprit here:
>
> openstack-cookbooks/cookbooks/nova/attributes/dashboard.rb:
> default[:nova][:dashboard][:dashboard_branch] = "lp:openstack-dashboard"
> default[:nova][:dashboard][:deploy_dir] = "/srv/dashboard"
>
> What is the correct deploy_dir?
>
> --
> You received this question notification because you are a member of Nova
> Core, which is an answer contact for OpenStack Compute (nova).

Revision history for this message
Dixon Dick (dixon1e) said :
#5

I am trying this same thing and getting the django-nova missing message. Where did you make this update please?

[Tue, 26 Jul 2011 03:56:57 +0000] ERROR: Running exception handlers
[Tue, 26 Jul 2011 03:56:57 +0000] ERROR: Exception handlers complete
[Tue, 26 Jul 2011 03:56:57 +0000] DEBUG: Re-raising exception: Chef::Exceptions::Exec - /srv/dashboard/django-nova does not exist or is not a directory
/var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/mixin/command.rb:146:in `output_of_command'
[default] /var/lib/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/mixin/command.rb:146:in `output_of_command': stderr
[default] : : stderr
[default] /srv/dashboard/django-nova does not exist or is not a directory: stderr

I used the repo command: git clone http://github.com/cloudbuilders/openstack-cookbooks.git