| Summary: | matahari-host shutdown/reboot not graceful | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Dave Johnson <dajohnso> |
| Component: | matahari | Assignee: | Andrew Beekhof <abeekhof> |
| Status: | CLOSED ERRATA | QA Contact: | Dave Johnson <dajohnso> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.2 | CC: | matahari-maint, rbryant, whayutin |
| Target Milestone: | rc | Keywords: | Reopened |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | matahari-0.4.2-7.el6 | Doc Type: | Bug Fix |
| Doc Text: |
No description required
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-12-06 11:39:43 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Dave Johnson
2011-08-11 15:45:25 UTC
We use the standard reboot() function (man 2 reboot).
VMs just shut down really quickly.
void
host_os_reboot(void)
{
reboot(LINUX_REBOOT_CMD_RESTART);
}
void
host_os_shutdown(void)
{
reboot(LINUX_REBOOT_CMD_HALT);
}
A related patch has been committed upstream: https://github.com/beekhof/matahari/commit/3eaaf04 qmf: call 2 reboot Broadcast message from root@pcmk-1 (unknown) at 0:58 ... The system is going down for reboot NOW! In another window while watching /var/log/messages... Broadcast message from root@pcmk-1 (unknown) at 0:58 ... The system is going down for reboot NOW! Aug 18 00:58:43 pcmk-1 init: tty (/dev/tty1) main process (1244) killed by TERM signal Aug 18 00:58:43 pcmk-1 init: tty (/dev/tty2) main process (1246) killed by TERM signal Aug 18 00:58:43 pcmk-1 init: tty (/dev/tty3) main process (1248) killed by TERM signal Aug 18 00:58:43 pcmk-1 init: tty (/dev/tty4) main process (1250) killed by TERM signal Aug 18 00:58:43 pcmk-1 init: tty (/dev/tty5) main process (1252) killed by TERM signal Aug 18 00:58:43 pcmk-1 init: tty (/dev/tty6) main process (1254) killed by TERM signal Aug 18 00:58:43 pcmk-1 pacemakerd: [13869]: info: crm_signal_dispatch: Invoking handler for signal 15: Terminated This indicates a "normal" shutdown occurred. good 2 go in v0.4.2-7 for both shutdown and reboot methods
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
New Contents:
No description required
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-2011-1569.html |