Skip to content

Instantly share code, notes, and snippets.

View leseb's full-sized avatar
👺

Sébastien Han leseb

👺
View GitHub Profile
--- a/tools/ocf/keystone
+++ b/tools/ocf/keystone
@@ -277,6 +277,7 @@
# Spin waiting for the server to come up.
# Let the CRM/LRM time us out if required
while true; do
+ sleep 1
keystone_monitor
... ...
rc=$?
@leseb
leseb / RAKeystone.diff
Created June 21, 2012 22:21
Ra Keystone
@@ -239,8 +239,9 @@ keystone_monitor() {
if [ -n "$OCF_RESKEY_client_binary" ] && [ -n "$OCF_RESKEY_os_username" ] \
&& [ -n "$OCF_RESKEY_os_password" ] && [ -n "$OCF_RESKEY_os_tenant_name" ] \
&& [ -n "$OCF_RESKEY_os_auth_url" ]; then
- if ! check_binary $OCF_RESKEY_client_binary; then ocf_log warn "$OCF_RESKEY_client_binary \
- missing, can not monitor!" else
+ if ! check_binary $OCF_RESKEY_client_binary; then
+ ocf_log warn "$OCF_RESKEY_client_binary missing, can not monitor!"
+ else
ocf_run -q $OCF_RESKEY_client_binary \
@@ -469,7 +469,8 @@ delete_route () {
case "$SYSTYPE" in
SunOS) return 0;;
*BSD) CMD="$ROUTE -n delete -host $ipaddr";;
- *) CMD="$ROUTE -n del -host $ipaddr";;
+ *) MYROUTE=$(ip r s | grep "src $ipaddr")
+ CMD="ip r d $MYROUTE" ;;
esac
$CMD
@leseb
leseb / geo-rep-recovery.md
Created June 14, 2012 20:16 — forked from vshankar/geo-rep-recovery.md
Geo-rep failover-failback plan

Geo-rep Recovery plan

Use Case

In the event of geo-rep master suffering a partial failure (one of the GlusterFS brick process not functioning) or a full failure (master node shuts down), the steps involved in recovering the master from the slave is what is covered here.

Notion used in this document