[Pacemaker] lxc resource fixes
Marcus Osdoba
marcus.osdoba at googlemail.com
Mon Jul 23 19:42:10 UTC 2012
Dear mailinglist,
I am using lxc in a pacemaker clustered environment.
I have noted, that the current version in git is not capable to work
with 0.7.5 correctly.
The lxc-ps command changed in 0.7.5, too. So I have applied the same fix
as the last commit on lxc in resource-agent.git [0].
[1] and [2] are cosmetical fixes. I think it's better to give a warning,
when the container is stopped instead of cleanly halted.
Regarding [3], at least in Debian based systems, it's possible to launch
the lxc-halt command to perform a clean shutdown of the container.
Therfore, I enhanced the current lxc-ocf version to support an additonal
optional parameter named shutdownmethod. It defaults to the current
behaviour, which is sending SIGPWR to init/systemd processes inside the
container. Alternatively, it's possible to command an lxc-halt to the
container (which does not require the requested powerfail-line in inittab).
Please consider committing [0] at least and think about the alternative
halt-method [3].
Thanks in advance and kind regards,
Marcus
[0]
https://gitorious.org/debian/resource-agents/commit/f7b8fba8809d34c537e95a1aeaa2bc64463a9049
[1]
https://gitorious.org/debian/resource-agents/commit/08c321a5c92793d6b43bbffef980fdabaa1df1ce
[2]
https://gitorious.org/debian/resource-agents/commit/42838ca854557a06ee9669cea9e1c560b5b50d46
[3]
https://gitorious.org/debian/resource-agents/commit/cc3bdb5968d0a28a695acc93c23a4cf1f09749f6
More information about the Pacemaker
mailing list