Suspend/Pause not supported for libvirt
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Wishlist
|
NTT DATA |
Bug Description
I use 2011.2~
The suspend and pause commands are not supported by libvirt.
And when I try to use suspend or pause commands with OpenStack API, no message error are reported by the API but in nova-compute log, I can see the reason :
2011-04-14 10:55:23,289 DEBUG nova.rpc [-] received {u'_context_
d': u'1'}, u'_context_
_project': u'simple', u'_context_
2011-04-14 10:55:23,290 DEBUG nova.rpc [-] unpacked context: {'timestamp': u'2011-
None, 'user': u'user1', 'request_id': u'3IC9IU7K9O39R
py:331
2011-04-14 10:55:23,382 INFO nova.compute.
b8>|
2011-04-14 10:55:23,383 INFO nova.compute.
bject at 0x21a7410>| |<nova.
2011-04-14 10:55:23,383 DEBUG nova.compute.
odules/
2011-04-14 10:55:23,437 INFO nova.compute.
2011-04-14 10:55:23,438 INFO nova.compute.
2011-04-14 10:55:23,438 INFO nova.compute.
8>|
2011-04-14 10:55:23,494 AUDIT nova.compute.
2011-04-14 10:55:23,555 ERROR nova [-] Exception during message handling
(nova): TRACE: Traceback (most recent call last):
(nova): TRACE: File "/usr/lib/
(nova): TRACE: rval = node_func(
(nova): TRACE: File "/usr/lib/
(nova): TRACE: return f(*args, **kw)
(nova): TRACE: File "/usr/lib/
(nova): TRACE: function(self, context, instance_id, *args, **kwargs)
(nova): TRACE: File "/usr/lib/
(nova): TRACE: lambda result: self._update_
(nova): TRACE: File "/usr/lib/
(nova): TRACE: return f(*args, **kw)
(nova): TRACE: File "/usr/lib/
(nova): TRACE: raise exception.
(nova): TRACE: ApiError: ApiError: suspend not supported for libvirt
(nova): TRACE:
2011-04-14 10:56:05,568 INFO nova.compute.
So libvirt cannot Resume/pause instance and the instance continuous to running correctly.
Related branches
- Dan Prince (community): Approve
- Vish Ishaya (community): Approve
- Devin Carlen (community): Approve
- Brian Lamar (community): Approve
- Jay Pipes (community): Approve
- justinsb (community): Needs Information
-
Diff: 35 lines (+12/-4)1 file modifiednova/virt/libvirt/connection.py (+12/-4)
Changed in nova: | |
importance: | Undecided → Wishlist |
status: | New → Confirmed |
tags: | added: consistency |
Changed in nova: | |
status: | Confirmed → In Progress |
Changed in nova: | |
assignee: | nobody → NTT DATA (nttdata) |
Changed in nova: | |
status: | In Progress → Fix Committed |
Changed in nova: | |
milestone: | none → diablo-1 |
Changed in nova: | |
milestone: | diablo-1 → 2011.3 |
status: | Fix Committed → Fix Released |
I think kvm-pause-supend is not included in this version. pymodules/ python2. 6/nova/ virt/libvirt_ conn.py? gamma2~ bzr984- 0ubuntu0ppa1~ lucid1.
Can you check suspend() in /usr/lib/
if that method just say "ApiError: suspend not supported for libvirt" and raise exception.
kvm-pause-suspend has not been merged to 2011.2~