Bug 1276239
Summary: | Restart libvirtd service should report error when setting negative value for parameters expected unsigned value in qemu.conf | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | yafu <yafu> |
Component: | libvirt | Assignee: | Libvirt Maintainers <libvirt-maint> |
Status: | CLOSED NOTABUG | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.2 | CC: | fjin, knoel, mprivozn, pkrempa, rbalakri, yanyang, zhwang, zpeng |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-10-29 09:01:02 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
yafu
2015-10-29 08:28:26 UTC
The journal output already contains the error. Oct 29 09:58:25 localhost libvirtd[26017]: Initialization of QEMU state driver failed: internal error: /etc/lib Oct 29 09:58:25 localhost libvirtd[26017]: Driver state initialization failed The exit value you are testing comes from systemd, which indicates success to stop and start the new process. The return value does not show whether the daemon was started successfully. (In reply to Peter Krempa from comment #1) > The journal output already contains the error. > > Oct 29 09:58:25 localhost libvirtd[26017]: Initialization of QEMU state > driver failed: internal error: /etc/lib > Oct 29 09:58:25 localhost libvirtd[26017]: Driver state initialization failed > > The exit value you are testing comes from systemd, which indicates success > to stop and start the new process. The return value does not show whether > the daemon was started successfully. The exit value comes from the exit value of libvirtd process,systemd just accept the value. Where the exit value comes from can check with the command 'strace libvirtd --listen'. If the wrong setting of qemu.conf will interrupt libvirtd process,maybe it's better to exit the libvirtd process with non-zero value and report the error to the user.It also can avoid confusing the user who use 'systemctl restart libvirtd.service' to restart libvirtd and just check the exit value as the result. |