Bug 1010824

Summary: virsh suspend command should raise error for paused VM
Product: [Community] Virtualization Tools Reporter: liumbj
Component: libvirtAssignee: Libvirt Maintainers <libvirt-maint>
Status: CLOSED NOTABUG QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: acathrow, berrange, clalancette, crobinso, dallan, itamar, jforbes, jyang, laine, libvirt-maint, veillard, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-07 13:47:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description liumbj 2013-09-23 06:55:33 UTC
Description of problem:
virsh suspend command should raise error for paused VM. 

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.# virsh list --all
 Id    Name                           State
----------------------------------------------------
 12    vm1                            running

2.# virsh suspend vm1
Domain vm1 suspended

3.#virsh suspend vm1
Domain vm1 suspended

4. echo $?
0

5.# virsh list --all
 Id    Name                           State
----------------------------------------------------
 12    vm1                            paused

Actual results:
No error information.

Expected results:
Error is raised.

Additional info:

Comment 1 Cole Robinson 2013-10-04 20:51:39 UTC
Not particularly important for Fedora, so moving to the upstream tracker.

Comment 2 Dave Allan 2013-10-07 13:47:32 UTC
Closing as NOTABUG per the upstream discussion at:

https://www.redhat.com/archives/libvir-list/2013-October/msg00224.html