Skip to content

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 :)

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants