[Errno 13] Permission denied: '/var/www/.novaclient'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| OpenStack Compute (nova) |
Medium
|
Kiall Mac Innes | ||
| python-novaclient (Ubuntu) |
High
|
Unassigned |
Bug Description
I've just installed dashboard on a Ubuntu 12.04 B1 server:
openstack-dashboard 2012.1~
# apt-get install openstack-dashboard
and just pointed my browser to the installation.
On logging on I get a stack trace.
Environment:
Request Method: GET
Request URL: http://
Django Version: 1.3.1
Python Version: 2.7.3
Installed Applications:
['openstack_
'django.
'django.
'django.
'django_nose',
'horizon',
'horizon.
'horizon.
'horizon.
Installed Middleware:
('django.
'django.
'django.
'django.
'openstack_
'horizon.
'django.
'django.
Traceback:
File "/usr/lib/
111. response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/
40. return view_func(request, *args, **kwargs)
File "/usr/lib/
91. return view_func(request, *args, **kwargs)
File "/usr/lib/
57. return view_func(request, *args, **kwargs)
File "/usr/lib/
40. return view_func(request, *args, **kwargs)
File "/usr/lib/
91. return view_func(request, *args, **kwargs)
File "/usr/lib/
47. return self.dispatch(
File "/usr/lib/
68. return handler(request, *args, **kwargs)
File "/usr/lib/
100. handled = self.construct_
File "/usr/lib/
87. data = self._get_
File "/usr/lib/
127. self._data = {self.table_
File "/usr/lib/
33. self.usage.
File "/usr/lib/
94. _('Unable to retrieve usage information.'))
File "/usr/lib/
91. self.usage_list = self.get_
File "/usr/lib/
114. return api.usage_
File "/usr/lib/
394. return [Usage(u) for u in novaclient(
File "/usr/lib/
35. "tenant_usages")
File "/usr/lib/
85. with self.completion
File "/usr/lib/
17. return self.gen.next()
File "/usr/lib/
115. os.makedirs(
File "/usr/lib/
150. makedirs(head, mode)
File "/usr/lib/
157. mkdir(name, mode)
Exception Type: OSError at /syspanel/
Exception Value: [Errno 13] Permission denied: '/var/www/
/var/www is quite rightly owned by root:root on an out of the box install of Apache.
Kiall Mac Innes (kiall) wrote : | #1 |
Kiall Mac Innes (kiall) wrote : | #2 |
This should fix the issue https:/
Adam Gandelman (gandelman-a) wrote : | #3 |
The linked commit does enable gracefully handling permission errors when writing a cache file in the caching directory, but this bug apparers to be an issue when novaclient attempts to create the directory (prior to writing the file), perhaps the try/except block of the original fix be expanded to also catch errors during creation of cache_dir
Changed in openstack-dashboard (Ubuntu): | |
status: | New → Confirmed |
Adam Gandelman (gandelman-a) wrote : | #4 |
Oops, apologies. Looks like https:/
affects: | openstack-dashboard (Ubuntu) → python-novaclient (Ubuntu) |
tags: | added: essex-rc-potential |
Changed in python-novaclient (Ubuntu): | |
importance: | Undecided → High |
Thierry Carrez (ttx) wrote : | #5 |
From dupe bug:
I see this bug on fedora bug tracker. https:/
There is patch from Pádraig Brady https:/
Changed in nova: | |
status: | New → Fix Committed |
importance: | Undecided → Medium |
Adam Gandelman (gandelman-a) wrote : | #7 |
Thanks Thierry. Is this something we should expect to trickle into milestone-proposed, or should we prepare to carry a patch?
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-novaclient (milestone-proposed) | #8 |
Fix proposed to branch: milestone-proposed
Review: https:/
Changed in nova: | |
milestone: | none → essex-rc2 |
tags: | removed: essex-rc-potential |
Reviewed: https:/
Committed: http://
Submitter: Jenkins
Branch: milestone-proposed
commit 10d226f06fae995
Author: Kiall Mac Innes <email address hidden>
Date: Wed Mar 21 12:19:30 2012 +0000
Fixes bug #959262 - Prevent a failure to create the cache directory from causing an exception.
Change-Id: Ia80b50b32f5e3d
Changed in nova: | |
status: | Fix Committed → Fix Released |
Adam Gandelman (gandelman-a) wrote : | #10 |
Fixed in Ubuntu as of python-novaclient 2012.1~rc2-0ubuntu1
Changed in python-novaclient (Ubuntu): | |
status: | Confirmed → Fix Released |
Changed in nova: | |
milestone: | essex-rc2 → 2012.1 |
This sounds a lot like bug #897885 - In fact, the is nearly identical.
https:/ /bugs.launchpad .net/nova/ +bug/897885
https:/ /review. openstack. org/1952