image snapshot creation fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Dan Prince | ||
Diablo |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Using lp:nova bzr 1617.
I'm unable to create image snapshots. I get the following exception:
2011-09-22 15:09:22,322 ERROR nova.rpc [-] Exception during message handling
(nova.rpc): TRACE: Traceback (most recent call last):
(nova.rpc): TRACE: File "/usr/lib/
(nova.rpc): TRACE: rval = node_func(
(nova.rpc): TRACE: File "/usr/lib/
(nova.rpc): TRACE: return f(*args, **kw)
(nova.rpc): TRACE: File "/usr/lib/
(nova.rpc): TRACE: self.driver.
(nova.rpc): TRACE: File "/usr/lib/
(nova.rpc): TRACE: self._vmops.
(nova.rpc): TRACE: File "/usr/lib/
(nova.rpc): TRACE: self._session, instance, template_vdi_uuids, image_id)
(nova.rpc): TRACE: File "/usr/lib/
(nova.rpc): TRACE: session.
(nova.rpc): TRACE: File "/usr/lib/
(nova.rpc): TRACE: return done.wait()
(nova.rpc): TRACE: File "/usr/lib/
(nova.rpc): TRACE: return hubs.get_
(nova.rpc): TRACE: File "/usr/lib/
(nova.rpc): TRACE: return self.greenlet.
(nova.rpc): TRACE: Failure: ['XENAPI_
(nova.rpc): TRACE:
Changed in nova: | |
assignee: | nobody → Dan Prince (dan-prince) |
status: | New → In Progress |
Changed in nova: | |
importance: | Undecided → High |
Changed in nova: | |
milestone: | none → essex-1 |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | essex-1 → 2012.1 |
The issue here is that snapshots fail when I'm not using keystone. Thus auth token is None and the headers weren't getting sent. This fixes it:
--- a/plugins/ xenserver/ xenapi/ etc/xapi. d/plugins/ glance xenserver/ xenapi/ etc/xapi. d/plugins/ glance tarball( staging_ path, image_id, glance_host, gla putrequest( 'HEAD', '/v1/images/%s' % image_id)
conn. putheader( 'x-auth- token', auth_token)
+++ b/plugins/
@@ -259,8 +259,8 @@ def _upload_
conn.
if auth_token:
- conn.endheaders()
+ conn.endheaders()