xendomains fails to suspend VMs not running

Bug #1564853 reported by Philipp Hahn
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xen (Ubuntu)
Fix Released
High
Unassigned

Bug Description

`/etc/init.d/xendomains stop` fails on xen-4.1.6.1 as it tries to parse the output of "xm list", which has a varying number of columns for running and already shut down VMs:

For managed inactive domains `xm list` does not output a domain-ID and a state.

| # xm list
| Name ID Mem VCPUs State Time(s)
| Domain-0 0 3884 2 r----- 71.6
| yyy 512 1 0.0
| xxx 7 512 1 -b---- 1.1

Also cpu is not output.

Rewrite parseln() to use IFS for splitting and use number of output columns to
parse the lines.

Tags: patch
Revision history for this message
Philipp Hahn (pmhahn) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Fix `xm list` parsing" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

Joshua Powers (powersj)
Changed in xen (Ubuntu):
status: New → Triaged
importance: Undecided → Critical
importance: Critical → High
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Hi,
I'm cleaning up bugs that were way too dormant for too long.
Your fix was right, but this version of debian/xen-utils-common.xendomains.init was last present before 4.1.2-5 and initially added in 4.1.2-3.

This is all long gone by now :-/ and it uses /usr/lib/xen-common/bin/xen-init-list now for a list of guests to handle (since 4.1.2-5).

The last affected release was quantal.
So with a sad look of being idle for so long I'll mark it fix-released from todays POV.

Changed in xen (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.