Bug 1011981
Summary: | `service libvirt-guests status` may return 0 even if stopped | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Dan Kenigsberg <danken> |
Component: | libvirt | Assignee: | Jiri Denemark <jdenemar> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 6.4 | CC: | abaron, acathrow, ajia, bazulay, bili, danken, dyuan, hklein, iheim, jdenemar, jiahu, jsvarova, jtomko, lsu, mgoldboi, nsoffer, tlavigne, yeylon |
Target Milestone: | rc | Keywords: | ZStream |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | infra | ||
Fixed In Version: | libvirt-0.10.2-28.el6 | Doc Type: | Bug Fix |
Doc Text: |
Whereas the status command of libvirt-guests init script returned "0" value when libvirt-guests service was stopped, LSB (Linux Standard Base) required a different value ("3") in such case. Consequently, other scripts relying on the return value could not distinguish whether the service was running or not. The libvirt-guests script has been fixed to conform with LSB and the "service libvirt-guests status" command now returns the correct value in the described scenario.
|
Story Points: | --- |
Clone Of: | 1010693 | Environment: | |
Last Closed: | 2013-11-21 09:11:13 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: | |||
Bug Depends On: | |||
Bug Blocks: | 1010693, 1017196 |
Description
Dan Kenigsberg
2013-09-25 13:39:42 UTC
*** Bug 957779 has been marked as a duplicate of this bug. *** I can reproduce this bug with libvirt-0.10.2-27.el6.x86_64, but can not reproduce it with libvirt-0.10.2-28.el6.x86_64 Reproducing: [root@hp-dl385g7-01 ~]# virsh list --all Id Name State ---------------------------------------------------- 6 r6 running - rhel6 shut off [root@hp-dl385g7-01 ~]# virsh destroy r6 Domain r6 destroyed [root@hp-dl385g7-01 ~]# service libvirt-guests status started [root@hp-dl385g7-01 ~]# service libvirt-guests stop Running guests on default URI: no running guests. [root@hp-dl385g7-01 ~]# service libvirt-guests status stopped, with no saved guests [root@hp-dl385g7-01 ~]# echo $? 0 [root@hp-dl385g7-01 ~]# Verifing: [root@hp-dl385g7-01 ~]# virsh list --all Id Name State ---------------------------------------------------- - r6 shut off - rhel6 shut off [root@hp-dl385g7-01 ~]# service libvirt-guests start [root@hp-dl385g7-01 ~]# service libvirt-guests status started [root@hp-dl385g7-01 ~]# service libvirt-guests stop Running guests on default URI: no running guests. [root@hp-dl385g7-01 ~]# service libvirt-guests status stopped, with no saved guests [root@hp-dl385g7-01 ~]# echo $? 3 [root@hp-dl385g7-01 ~]# Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2013-1581.html |