xendomains fails to suspend VMs not running

Bug #1564853 reported by Philipp Hahn on 2016-04-01
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xen (Ubuntu)
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.

Philipp Hahn (pmhahn) 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) on 2017-01-23
Changed in xen (Ubuntu):
status: New → Triaged
importance: Undecided → Critical
importance: Critical → High
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers