Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

crowbar: do a graceful shutdown/reboot when invoked via crowbar (bsc#1047636) #1271

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dirkmueller
Copy link
Contributor

Currently there is a hard reboot executed which is interrupting
a currently pending chef-client run. Normally that shouldn't be
a problem but in the HA cluster case it can cause significant harm.

@dirkmueller
Copy link
Contributor Author

(untested)

(bsc#1047636)

Currently there is a hard reboot executed which is interrupting
a currently pending chef-client run. Normally that shouldn't be
a problem but in the HA cluster case it can cause significant harm.
@dirkmueller dirkmueller changed the title crowbar: do a graceful shutdown/reboot when invoked via crowbar crowbar: do a graceful shutdown/reboot when invoked via crowbar (bsc#1047636) Jul 18, 2017
Copy link
Contributor

@nicolasbock nicolasbock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but a test would be good :)

@@ -1058,7 +1058,7 @@ def set_state(state)
if @node[:platform_family] == "windows"
net_rpc_cmd(:power_cycle)
else
ssh_cmd("/sbin/reboot")
ssh_cmd("/usr/sbin/crowbar_join --stop || /sbin/reboot")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not use systemd here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how does systemd help with reboot? is there a reboot command with systemd?

# for free to join this conversation on GitHub. Already have an account? # to comment
Development

Successfully merging this pull request may close these issues.

2 participants