From 8c92227bce9cc4fe177eea5b2f7c9016e96434f9 Mon Sep 17 00:00:00 2001 From: David Vossel Date: Mon, 29 Jun 2015 13:03:17 -0500 Subject: [PATCH 1/3] bz1214360-NovaCompute-update1.patch --- doc/man/Makefile.am | 1 + heartbeat/Makefile.am | 3 +- heartbeat/NovaCompute | 73 ++++++------ heartbeat/NovaEvacuate | 311 +++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 352 insertions(+), 36 deletions(-) create mode 100755 heartbeat/NovaEvacuate diff --git a/doc/man/Makefile.am b/doc/man/Makefile.am index 42a57fe..d32426b 100644 --- a/doc/man/Makefile.am +++ b/doc/man/Makefile.am @@ -74,6 +74,7 @@ man_MANS = ocf_heartbeat_AoEtarget.7 \ ocf_heartbeat_ManageRAID.7 \ ocf_heartbeat_ManageVE.7 \ ocf_heartbeat_NovaCompute.7 \ + ocf_heartbeat_NovaEvacuate.7 \ ocf_heartbeat_Pure-FTPd.7 \ ocf_heartbeat_Raid1.7 \ ocf_heartbeat_Route.7 \ diff --git a/heartbeat/Makefile.am b/heartbeat/Makefile.am index 0bebf97..1034632 100644 --- a/heartbeat/Makefile.am +++ b/heartbeat/Makefile.am @@ -52,7 +52,8 @@ send_ua_SOURCES = send_ua.c IPv6addr_utils.c IPv6addr_LDADD = -lplumb $(LIBNETLIBS) send_ua_LDADD = $(LIBNETLIBS) -osp_SCRIPTS = NovaCompute +osp_SCRIPTS = NovaCompute \ + NovaEvacuate ocf_SCRIPTS = ClusterMon \ CTDB \ diff --git a/heartbeat/NovaCompute b/heartbeat/NovaCompute index f71abeb..09eee38 100644 --- a/heartbeat/NovaCompute +++ b/heartbeat/NovaCompute @@ -107,15 +107,26 @@ Disable shared storage recovery for instances. Use at your own risk! + + +How long to wait for nova to finish evacuating instances elsewhere +before starting nova-compute. Only used when the agent detects +evacuations might be in progress. + +You may need to increase the start timeout when increasing this value. + +Delay to allow evacuations time to complete + + + - + - END @@ -132,7 +143,7 @@ sigterm_handler() { nova_usage() { cat < + + +1.0 + + +Facility for tacking a list of compute nodes and reliably evacuating the ones that fence_evacuate has flagged. + +Evacuator for OpenStack Nova Compute Server + + + + + +Authorization URL for connecting to keystone in admin context + +Authorization URL + + + + + +Username for connecting to keystone in admin context + +Username + + + + +Password for connecting to keystone in admin context + +Password + + + + + +Tenant name for connecting to keystone in admin context. +Note that with Keystone V3 tenant names are only unique within a domain. + +Tenant name + + + + + +Nova API location (internal, public or admin URL) + +Nova API location (internal, public or admin URL) + + + + + +Disable shared storage recovery for instances. Use at your own risk! + +Disable shared storage recovery for instances + + + + + + + + + + + + + +END +} + +####################################################################### + +# don't exit on TERM, to test that lrmd makes sure that we do exit +trap sigterm_handler TERM +sigterm_handler() { + ocf_log info "They use TERM to bring us down. No such luck." + return +} + +evacuate_usage() { + cat <