From b239514cbd257c9a8539f0501caf79c68eb94b9a Mon Sep 17 00:00:00 2001 From: Kengo Takahara Date: Fri, 10 Feb 2017 20:44:06 +0900 Subject: [PATCH] Add warning messages about deprecation to process/host monitor This patch adds warning messages to process/host monitor, and adds a release note about process/host monitor. Change-Id: I6527438fca457eb2ec6d7ca224520d7a8748394e Implements: bp pythonize-host-and-process-monitor --- masakarimonitors/hostmonitor/hostmonitor.sh | 3 +++ masakarimonitors/processmonitor/processmonitor.sh | 4 ++++ .../notes/pythonize-monitors-081e74dfaf78fe99.yaml | 8 ++++++++ 3 files changed, 15 insertions(+) create mode 100644 releasenotes/notes/pythonize-monitors-081e74dfaf78fe99.yaml diff --git a/masakarimonitors/hostmonitor/hostmonitor.sh b/masakarimonitors/hostmonitor/hostmonitor.sh index 52f8cbe..c2e8752 100755 --- a/masakarimonitors/hostmonitor/hostmonitor.sh +++ b/masakarimonitors/hostmonitor/hostmonitor.sh @@ -811,6 +811,9 @@ else SCRIPT_CONF_FILE=$1 fi +# Output warning message. +log_info "WARNING : $0 is deprecated as of the Ocata release and will be removed in the Queens release. Use masakari-hostmonitor implemented in python instead of $0." + # main route log_info "begin" diff --git a/masakarimonitors/processmonitor/processmonitor.sh b/masakarimonitors/processmonitor/processmonitor.sh index ae4cde4..963535f 100755 --- a/masakarimonitors/processmonitor/processmonitor.sh +++ b/masakarimonitors/processmonitor/processmonitor.sh @@ -449,6 +449,10 @@ fi # Initial processing (check proc.list and read conf file) . $SCRIPT_COMMON_SH + +# Output warning message. +log_info "WARNING : $0 is deprecated as of the Ocata release and will be removed in the Queens release. Use masakari-processmonitor implemented in python instead of $0." + log_debug "processmonitor start!!" check_proc_file_common set_conf_value diff --git a/releasenotes/notes/pythonize-monitors-081e74dfaf78fe99.yaml b/releasenotes/notes/pythonize-monitors-081e74dfaf78fe99.yaml new file mode 100644 index 0000000..9f9371f --- /dev/null +++ b/releasenotes/notes/pythonize-monitors-081e74dfaf78fe99.yaml @@ -0,0 +1,8 @@ +--- +features: + - Added the masakari-hostmonitor and masakari-processmonitor which were + implemented in python. +deprecations: + - The masakari-hostmonitor and masakari-processmonitor which were implemented + in bash shell script are deprecated as of the Ocata release and will be + removed in the Queens release.