Permission denied when getting console output
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Adam Gandelman |
Bug Description
I get a 500 error when calling get_console_output.
I think the problem is permissions on the console output (again).
This patch is fairly recent, but I don't see why it would have broken anything. Maybe the old XML selector code was broken, and so the patch fixed that but then exposed the failure to chmod:
https:/
I think if we find one of the XML elements (which we are), we're skipping the chmod.
Here's the permissions on the file:
stack@openstack
-rw-rw---- 1 libvirt-qemu kvm 0 2012-03-14 02:10 /opt/stack/
---
2012-03-14 11:35:29 DEBUG nova.rpc.amqp [req-3079f4b9-
2012-03-14 11:35:29 AUDIT nova.compute.
2012-03-14 11:35:30 ERROR nova.rpc.amqp [-] Exception during message handling
(nova.rpc.amqp): TRACE: Traceback (most recent call last):
(nova.rpc.amqp): TRACE: File "/opt/stack/
(nova.rpc.amqp): TRACE: rval = node_func(
(nova.rpc.amqp): TRACE: File "/opt/stack/
(nova.rpc.amqp): TRACE: return f(*args, **kw)
(nova.rpc.amqp): TRACE: File "/opt/stack/
(nova.rpc.amqp): TRACE: sys.exc_info())
(nova.rpc.amqp): TRACE: File "/usr/lib/
(nova.rpc.amqp): TRACE: self.gen.next()
(nova.rpc.amqp): TRACE: File "/opt/stack/
(nova.rpc.amqp): TRACE: return function(self, context, instance_uuid, *args, **kwargs)
(nova.rpc.amqp): TRACE: File "/opt/stack/
(nova.rpc.amqp): TRACE: output = self.driver.
(nova.rpc.amqp): TRACE: File "/opt/stack/
(nova.rpc.amqp): TRACE: return f(*args, **kw)
(nova.rpc.amqp): TRACE: File "/opt/stack/
(nova.rpc.amqp): TRACE: return libvirt_
(nova.rpc.amqp): TRACE: File "/opt/stack/
(nova.rpc.amqp): TRACE: with open(path, 'r+') as fp:
(nova.rpc.amqp): TRACE: IOError: [Errno 13] Permission denied: '/opt/stack/
(nova.rpc.amqp): TRACE:
2012-03-14 11:35:30 ERROR nova.rpc.amqp [-] Returning exception [Errno 13] Permission denied: '/opt/stack/
2012-03-14 11:35:30 ERROR nova.rpc.amqp [-] ['Traceback (most recent call last):\n', ' File "/opt/stack/
Changed in nova: | |
milestone: | none → essex-rc1 |
importance: | Undecided → High |
status: | New → Triaged |
Changed in nova: | |
assignee: | nobody → Adam Gandelman (gandelman-a) |
status: | Triaged → In Progress |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | essex-rc1 → 2012.1 |
Reviewed: https:/ /review. openstack. org/5371 github. com/openstack/ nova/commit/ 9a40d6e714246b4 0b5b41f65197941 fe29eb8ff1
Committed: http://
Submitter: Jenkins
Branch: master
commit 9a40d6e714246b4 0b5b41f65197941 fe29eb8ff1
Author: Adam Gandelman <email address hidden>
Date: Wed Mar 14 14:49:23 2012 -0700
libvirt/ connection. py: Set console.log permissions
A required call to libvirt_ utils.chown( ) was lost in output( ) for file
this weeks changes to get_console_
based console logs.
Fixes bug 955351
Change-Id: Ib8da92c1ff025f 10a939c33b87495 ffdef0d4da3