Hello community,

here is the log from the commit of package pacemaker for openSUSE:Factory 
checked in at 2017-04-11 12:39:38
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/pacemaker (Old)
 and      /work/SRC/openSUSE:Factory/.pacemaker.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "pacemaker"

Tue Apr 11 12:39:38 2017 rev:107 rq:483190 version:1.1.16

Changes:
--------
--- /work/SRC/openSUSE:Factory/pacemaker/pacemaker.changes      2017-03-10 
20:59:24.757144684 +0100
+++ /work/SRC/openSUSE:Factory/.pacemaker.new/pacemaker.changes 2017-04-11 
12:39:40.925061272 +0200
@@ -1,0 +2,54 @@
+Thu Mar 23 16:02:22 UTC 2017 - [email protected]
+
+- libcrmcluster,crmd: log join phase as text rather than integer
+- pacemaker-remote: pacemaker_remoted shutdown while unmanaged
+- tools: disable agent stdout/stderr for crm_resource --validate
+- tools: Add "--validate" command to crm_resource
+- tools: crm_resource should set OCF_RESKEY_crm_feature_set
+- tools: make crm_failcount compatible with per-operation failcounts
+- tools: support clearing failure of a single operation with crm_resource -C
+- crmd: support clearing failure of a single operation
+- crmd: make clearing last failure more efficient
+- attrd,libcrmcommon: support clearing failure of a single operation
+- attrd,crmd,libraries,tools: track resource failures per-operation
+- tools: support crm_failcount -q as advertised
+- Upstream version cs: 77ea74d01bcb6b7100e1c7acab0e66e79aceaf8b
+
+-------------------------------------------------------------------
+Fri Mar 17 16:10:49 UTC 2017 - [email protected]
+
+- NodeUtilization: Never set hv_memory to a negative value (bsc#1015842)
+  * bug-1015842_pacemaker-NodeUtilization-RA-3.patch
+
+- NodeUtilization: Fix mixed indentation, set executable bit (bsc#1015842)
+  * bug-1015842_pacemaker-NodeUtilization-RA-2.patch
+
+- RA: NodeUtilization - Use xl if available (bsc#1015842)
+  * Drop obsolete bug-1015842_pacemaker-NodeUtilization-RA.patch
+  * Add bug-1015842_pacemaker-NodeUtilization-RA-1.patch
+
+-------------------------------------------------------------------
+Fri Mar 17 11:07:49 UTC 2017 - [email protected]
+
+- spec: Merge the SLE and Factory versions
+  * enable_fatal_warnings=0
+
+-------------------------------------------------------------------
+Thu Mar 16 14:25:19 UTC 2017 - [email protected]
+
+- crmd: new cluster option stonith-max-attempts with default value 10
+- crmd: Change of the log level and addition of uuid.
+- crmd: use new attrd op to clear fail counts
+- tools: crm_resource -C should clear last-failure
+- libcrmcommon: add API for new attrd clear-failure operation
+- attrd: add more detail to legacy attrd messages
+- attrd: add API for clearing failures
+- Upstream version cs: e55d506cc390f0a0335b4ec6e365ea89da30b6b1
+
+-------------------------------------------------------------------
+Mon Mar 13 13:46:36 UTC 2017 - [email protected]
+
+- pacemaker.service: Add presetting TasksMax=4915 (bsc#1028138)
+  * bug-1028138_pacemaker-pacemaker.service-TasksMax.patch
+
+-------------------------------------------------------------------

Old:
----
  bug-1015842_pacemaker-NodeUtilization-RA.patch
  pacemaker-1.1.16+git20170302.a7825f4.tar.bz2

New:
----
  bug-1015842_pacemaker-NodeUtilization-RA-1.patch
  bug-1015842_pacemaker-NodeUtilization-RA-2.patch
  bug-1015842_pacemaker-NodeUtilization-RA-3.patch
  bug-1028138_pacemaker-pacemaker.service-TasksMax.patch
  pacemaker-1.1.16+20170320.77ea74d.tar.bz2

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ pacemaker.spec ++++++
--- /var/tmp/diff_new_pack.BxsTGI/_old  2017-04-11 12:39:41.816935254 +0200
+++ /var/tmp/diff_new_pack.BxsTGI/_new  2017-04-11 12:39:41.820934689 +0200
@@ -25,8 +25,10 @@
 ## Where to install Pacemaker documentation
 %global pcmk_docdir %{_docdir}/%{name}
 
+%global commit 1.1.16+20170320.77ea74d
+
 ## Corosync version
-%global cs_version 2
+%define cs_version 2
 
 %define with_nagios             1
 %define with_snmp               1
@@ -42,12 +44,29 @@
 ## Add option to enable support for stonith/external fencing agents
 %bcond_without stonithd
 
+## Add option to create binaries suitable for use with profiling tools
+%bcond_with profiling
+
+## Add option to create binaries with coverage analysis
+%bcond_with coverage
+
 ## Add option to skip generating documentation
 ## (the build tools aren't available everywhere)
 %bcond_with doc
 
+## Add option to turn off hardening of libraries and daemon executables
+%bcond_with hardening
+
+# Keep sane profiling data if requested
+%if %{with profiling}
+
+## Disable -debuginfo package and stripping binaries/libraries
+%define debug_package %{nil}
+
+%endif
+
 Name:           pacemaker
-Version:        1.1.16+git20170302.a7825f4
+Version:        1.1.16
 Release:        0
 Summary:        Scalable High-Availability cluster resource manager
 License:        GPL-2.0 and GPL-2.0+ and LGPL-2.1+
@@ -56,20 +75,23 @@
 Url:            http://www.clusterlabs.org
 # Hint: use "spectool -s 0 pacemaker.spec" (rpmdevtools) to check the final 
URL:
 # 
https://github.com/ClusterLabs/pacemaker/archive/e91769e5a39f5cb2f7b097d3c612368f0530535e/pacemaker-e91769e.tar.gz
-Source0:        %{name}-%{version}.tar.bz2
+Source0:        %{name}-%{commit}.tar.bz2
 Source1:        crm_report.in
 Source100:      pacemaker.rpmlintrc
 Patch1:         bug-806256_pacemaker-log-level-notice.patch
 Patch2:         bug-728579_pacemaker-stonith-dev-id.patch
-Patch3:         bug-1015842_pacemaker-NodeUtilization-RA.patch
-Patch4:         pacemaker-cibsecret-tool-temp-disabled.patch
-Patch5:         pacemaker-nagios-plugin-dir.patch
-Patch6:         bug-812269_pacemaker-fencing-device-register-messages.patch
-Patch7:         pacemaker-Wno-format-signedness.patch
-Patch8:         bug-943295_pacemaker-lrmd-log-notice.patch
-Patch9:         bug-977201_pacemaker-controld-self-fencing.patch
-Patch10:        bug-995365_pacemaker-cts-restart-systemd-journald.patch
-Patch11:        pacemaker-lrmd.h-include-libxml.patch
+Patch3:         pacemaker-cibsecret-tool-temp-disabled.patch
+Patch4:         pacemaker-nagios-plugin-dir.patch
+Patch5:         bug-812269_pacemaker-fencing-device-register-messages.patch
+Patch6:         pacemaker-Wno-format-signedness.patch
+Patch7:         bug-943295_pacemaker-lrmd-log-notice.patch
+Patch8:         bug-977201_pacemaker-controld-self-fencing.patch
+Patch9:         bug-995365_pacemaker-cts-restart-systemd-journald.patch
+Patch10:        bug-1028138_pacemaker-pacemaker.service-TasksMax.patch
+Patch11:        bug-1015842_pacemaker-NodeUtilization-RA-1.patch
+Patch12:        bug-1015842_pacemaker-NodeUtilization-RA-2.patch
+Patch13:        bug-1015842_pacemaker-NodeUtilization-RA-3.patch
+Patch14:        pacemaker-lrmd.h-include-libxml.patch
 # Required for core functionality
 BuildRequires:  autoconf
 BuildRequires:  automake
@@ -256,7 +278,8 @@
 Group:          Productivity/Clustering/HA
 Requires:       libpacemaker3 = %{version}-%{release}
 Requires:       python >= 2.6
-Requires:       python-systemd
+#Requires:       python-systemd
+Recommends:     python-systemd
 
 %description   cts
 Test framework for cluster-related technologies like Pacemaker
@@ -274,7 +297,7 @@
 %endif
 
 %prep
-%setup -q
+%setup -q -n %{name}-%{commit}
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
@@ -286,19 +309,34 @@
 %patch9 -p1
 %patch10 -p1
 %patch11 -p1
+%patch12 -p1
+%patch13 -p1
+%patch14 -p1
 
 %build
 
 export systemdunitdir=%{?_unitdir}%{?!_unitdir:no}
 
+%if %{with hardening}
+# prefer distro-provided hardening flags in case they are defined
+# through _hardening_{c,ld}flags macros, configure script will
+# use its own defaults otherwise; if such hardenings are completely
+# undesired, rpmbuild using "--without hardening"
+# (or "--define '_without_hardening 1'")
+export CFLAGS_HARDENED_EXE="%{?_hardening_cflags}"
+export CFLAGS_HARDENED_LIB="%{?_hardening_cflags}"
+export LDFLAGS_HARDENED_EXE="%{?_hardening_ldflags}"
+export LDFLAGS_HARDENED_LIB="%{?_hardening_ldflags}"
+%endif
+
 autoreconf -fvi
 
 %configure \
+        %{?with_profiling:   --with-profiling}     \
+        %{?with_coverage:    --with-coverage}      \
         --docdir=%{_docdir}/%{name}                \
         --disable-static                           \
         --disable-silent-rules                     \
-        --without-profiling                        \
-        --without-coverage                         \
         --without-cman                             \
         --without-heartbeat                        \
         --with-acl=true                            \
@@ -318,6 +356,7 @@
         --enable-fatal-warnings=no                 \
 %endif
         %{!?with_doc:        --with-brand=}        \
+        %{!?with_hardening:  --disable-hardening}  \
         --with-initdir=%{_initddir}                \
         --localstatedir=%{_var}                    \
         --with-version=%{version}-%{release}
@@ -337,8 +376,11 @@
 # These are not actually scripts
 find %{buildroot} -name '*.xml' -type f -print0 | xargs -0 chmod a-x
 
+# Don't package static libs
+find %{buildroot} -type f -name "*.a" -delete -print
 find %{buildroot} -type f -name "*.la" -delete -print
 
+# Do not package these either
 rm -f %{buildroot}/%{_libdir}/service_crm.so
 
 # Don't ship init scripts for systemd based platforms
@@ -348,6 +390,16 @@
 # Don't ship fence_pcmk where it has no use
 rm -f %{buildroot}/%{_sbindir}/fence_pcmk
 
+%if %{with coverage}
+GCOV_BASE=%{buildroot}/%{_var}/lib/pacemaker/gcov
+mkdir -p $GCOV_BASE
+find . -name '*.gcno' -type f | while read F ; do
+        D=`dirname $F`
+        mkdir -p ${GCOV_BASE}/$D
+        cp $F ${GCOV_BASE}/$D
+done
+%endif
+
 ln -s service %{buildroot}%{_sbindir}/rcpacemaker
 ln -s service %{buildroot}%{_sbindir}/rcpacemaker_remote
 ln -s service %{buildroot}%{_sbindir}/rccrm_mon
@@ -595,6 +647,9 @@
 %{_datadir}/pacemaker/tests
 %{_includedir}/pacemaker
 %{_libdir}/*.so
+%if %{with coverage}
+%{_var}/lib/pacemaker/gcov
+%endif
 %{_libdir}/pkgconfig/*.pc
 #%license licenses/LGPLv2.1
 %doc COPYING ChangeLog

++++++ _service ++++++
--- /var/tmp/diff_new_pack.BxsTGI/_old  2017-04-11 12:39:41.856929603 +0200
+++ /var/tmp/diff_new_pack.BxsTGI/_new  2017-04-11 12:39:41.856929603 +0200
@@ -11,7 +11,7 @@
     <param name="version">1.1.16</param>
 -->
     <param name="versionformat">1.1.16+git%cd.%h</param>
-    <param name="revision">a7825f4f0a8db272d1ce0b1f93e8044cbcaa5144</param>
+    <param name="revision">77ea74d01bcb6b7100e1c7acab0e66e79aceaf8b</param>
   </service>
 
   <service name="recompress" mode="disabled">

++++++ bug-1015842_pacemaker-NodeUtilization-RA-1.patch ++++++
>From b8d5e3eec6ade13af37cf4a8f5a08c3488585f68 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Kristoffer=20Gr=C3=B6nlund?= <[email protected]>
Date: Thu, 2 Feb 2017 09:06:00 +0100
Subject: [PATCH] Medium: NodeUtilization: Add NodeUtilization agent

---
 extra/resources/Makefile.am     |   1 +
 extra/resources/NodeUtilization | 224 
++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 225 insertions(+)
 create mode 100644 extra/resources/NodeUtilization

diff --git a/extra/resources/Makefile.am b/extra/resources/Makefile.am
--- a/extra/resources/Makefile.am
+++ b/extra/resources/Makefile.am
@@ -38,7 +38,8 @@ ocf_SCRIPTS        =  ClusterMon      \
                        SysInfo         \
                        SystemHealth \
                        attribute       \
-                       remote
+                       remote          \
+                       NodeUtilization
 
 isolationtech_SCRIPTS  = docker-wrapper
 
diff --git a/extra/resources/NodeUtilization b/extra/resources/NodeUtilization
new file mode 100644
index 0000000..b9c737e
--- /dev/null
+++ b/extra/resources/NodeUtilization
@@ -0,0 +1,224 @@
+#!/bin/sh
+#
+#
+#      NodeUtilization OCF Resource Agent
+#
+# Copyright (c) 2011 SUSE LINUX, John Shi
+# Copyright (c) 2016 SUSE LINUX, Kristoffer Gronlund
+#                    All Rights Reserved.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of version 2 of the GNU General Public License as
+# published by the Free Software Foundation.
+#
+# This program is distributed in the hope that it would be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+#
+# Further, this software is distributed without any warranty that it is
+# free of the rightful claim of any third person regarding infringement
+# or the like.  Any license provided herein, whether implied or
+# otherwise, applies only to this software file.  Patent licenses, if
+# any, provided herein do not apply to combinations of this program with
+# other software, or any other product whatsoever.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write the Free Software Foundation,
+# Inc., 59 Temple Place - Suite 330, Boston MA 02111-1307, USA.
+#
+#######################################################################
+# Initialization:
+
+: ${OCF_FUNCTIONS_DIR=${OCF_ROOT}/lib/heartbeat}
+. ${OCF_FUNCTIONS_DIR}/ocf-shellfuncs
+
+#######################################################################
+
+NodeUtilization_meta_data() {
+       cat <<END
+<?xml version="1.0"?>
+<!DOCTYPE resource-agent SYSTEM "ra-api-1.dtd">
+<resource-agent name="NodeUtilization">
+<version>1.0</version>
+
+<longdesc lang="en">
+The Node Utilization agent detects system parameters like available CPU, host
+memory and hypervisor memory availability, and adds them into the CIB for each
+node using crm_attribute. Run the agent as a clone resource to have it populate
+these parameters on each node.
+Note: Setting hv_memory only works with Xen at the moment, using the xl or xm
+command line tools.
+</longdesc>
+<shortdesc lang="en">Node Utilization</shortdesc>
+
+<parameters>
+<parameter name="dynamic" unique="0" required="0">
+<longdesc lang="en">
+If set, parameters will be updated if there are differences between the HA
+parameters and the system values when running the monitor action.
+If not set, the parameters will be set once when the resource instance starts.
+</longdesc>
+<shortdesc lang="en">Dynamically update parameters in monitor</shortdesc>
+<content type="boolean" default="true" />
+</parameter>
+
+<parameter name="utilization_cpu" unique="0" required="0">
+<longdesc lang="en">Enable setting node CPU utilization limit.</longdesc>
+<shortdesc lang="en">Set node CPU utilization limit.</shortdesc>
+<content type="boolean" default="true" />
+</parameter>
+
+<parameter name="utilization_cpu_reservation" unique="0" required="0">
+<longdesc lang="en">Subtract this value when setting the CPU utilization 
parameter.</longdesc>
+<shortdesc lang="en">CPU reservation.</shortdesc>
+<content type="integer" default="1" />
+</parameter>
+
+<parameter name="utilization_host_memory" unique="0" required="0">
+<longdesc lang="en">Enable setting available host memory.</longdesc>
+<shortdesc lang="en">Set available host memory.</shortdesc>
+<content type="boolean" default="true" />
+</parameter>
+
+<parameter name="utilization_host_memory_reservation" unique="0" required="0">
+<longdesc lang="en">Subtract this value when setting host memory utilization, 
in MB.</longdesc>
+<shortdesc lang="en">Host memory reservation, in MB.</shortdesc>
+<content type="integer" default="512" />
+</parameter>
+
+<parameter name="utilization_hv_memory" unique="0" required="0">
+<longdesc lang="en">Enable setting available hypervisor memory.</longdesc>
+<shortdesc lang="en">Set available hypervisor memory.</shortdesc>
+<content type="boolean" default="true" />
+</parameter>
+
+<parameter name="utilization_hv_memory_reservation" unique="0" required="0">
+<longdesc lang="en">Subtract this value when setting hypervisor memory 
utilization, in MB.</longdesc>
+<shortdesc lang="en">Hypervisor memory reservation, in MB.</shortdesc>
+<content type="integer" default="512" />
+</parameter>
+</parameters>
+
+<actions>
+<action name="start"   timeout="90" />
+<action name="stop"    timeout="100" />
+<action name="monitor" timeout="20s" interval="60s"/>
+<action name="meta-data"  timeout="5" />
+<action name="validate-all"  timeout="30" />
+</actions>
+</resource-agent>
+END
+}
+
+Host_Total_Memory() {
+    local xentool
+
+    xentool=$(which xl 2> /dev/null || which xm 2> /dev/null)
+
+    if [ -x $xentool ]; then
+        $xentool info | awk '/total_memory/{printf("%d\n",$3);exit(0)}'
+    else
+        ocf_log warn "Can only set hv_memory for Xen hypervisor"
+        echo "0"
+    fi
+}
+
+
+set_utilization() {
+    host_name="$(ocf_local_nodename)"
+
+    if ocf_is_true "$OCF_RESKEY_utilization_cpu"; then
+        sys_cpu=$(( $(grep -c processor /proc/cpuinfo) - 
$OCF_RESKEY_utilization_cpu_reservation ))
+        uti_cpu=$(crm_attribute -Q -t nodes -U "$host_name" -z -n cpu 
2>/dev/null)
+
+        if [ "$sys_cpu" != "$uti_cpu" ]; then
+            if ! crm_attribute -t nodes -U "$host_name" -z -n cpu -v $sys_cpu; 
then
+                ocf_log err "Failed to set the cpu utilization attribute for 
$host_name using crm_attribute."
+                return 1
+            fi
+        fi
+    fi
+
+    if ocf_is_true "$OCF_RESKEY_utilization_host_memory"; then
+        sys_mem=$(( $(awk '/MemTotal/{printf("%d\n",$2/1024);exit(0)}' 
/proc/meminfo) - $OCF_RESKEY_utilization_host_memory_reservation ))
+        uti_mem=$(crm_attribute -Q -t nodes -U "$host_name" -z -n host_memory 
2>/dev/null)
+
+        if [ "$sys_mem" != "$uti_mem" ]; then
+            if ! crm_attribute -t nodes -U "$host_name" -z -n host_memory -v 
$sys_mem; then
+                ocf_log err "Failed to set the host_memory utilization 
attribute for $host_name using crm_attribute."
+                return 1
+            fi
+        fi
+    fi
+
+    if ocf_is_true "$OCF_RESKEY_utilization_hv_memory"; then
+        hv_mem=$(( $(Host_Total_Memory) - 
OCF_RESKEY_utilization_hv_memory_reservation ))
+        uti_mem=$(crm_attribute -Q -t nodes -U "$host_name" -z -n hv_memory 
2>/dev/null)
+
+        if [ "$hv_mem" != "$uti_mem" ]; then
+            if ! crm_attribute -t nodes -U "$host_name" -z -n hv_memory -v 
$hv_mem; then
+                ocf_log err "Failed to set the hv_memory utilization attribute 
for $host_name using crm_attribute."
+                return 1
+            fi
+        fi
+    fi
+}
+
+NodeUtilization_usage() {
+    cat <<END
+usage: $0 {start|stop|monitor|validate-all|meta-data}
+
+Expects to have a fully populated OCF RA-compliant environment set.
+END
+}
+
+NodeUtilization_start() {
+       ha_pseudo_resource $statefile start
+    if ! ocf_is_true "$OCF_RESKEY_dynamic"; then
+        if ! set_utilization; then
+            exit $OCF_ERR_GENERIC
+        fi
+    fi
+    exit $OCF_SUCCESS
+}
+
+NodeUtilization_stop() {
+       ha_pseudo_resource $statefile stop
+    exit $OCF_SUCCESS
+}
+
+NodeUtilization_monitor() {
+       local rc
+       ha_pseudo_resource $statefile monitor
+       rc=$?
+
+       case $rc in
+               $OCF_SUCCESS)
+                       if ocf_is_true "$OCF_RESKEY_dynamic"; then
+                               if ! set_utilization; then
+                                       exit $OCF_ERR_GENERIC
+                               fi
+                       fi
+                       ;;
+               *) exit $rc;;
+       esac
+}
+
+NodeUtilization_validate() {
+    exit $OCF_SUCCESS
+}
+
+statefile=$OCF_RESOURCE_TYPE.$(echo $OCF_RESOURCE_INSTANCE | sed -e 's/^.*://')
+
+: ${OCF_RESKEY_pidfile:="$HA_VARRUN/NodeUtilization-${OCF_RESOURCE_INSTANCE}"}
+: ${OCF_RESKEY_dynamic:="true"}
+: ${OCF_RESKEY_utilization_cpu:="true"}
+: ${OCF_RESKEY_utilization_cpu_reservation="1"}
+: ${OCF_RESKEY_utilization_hv_memory:="true"}
+: ${OCF_RESKEY_utilization_hv_memory_reservation="512"}
+: ${OCF_RESKEY_utilization_host_memory:="true"}
+: ${OCF_RESKEY_utilization_host_memory_reservation="512"}
+
+OCF_REQUIRED_PARAMS=""
+OCF_REQUIRED_BINARIES=""
+ocf_rarun $*
++++++ bug-1015842_pacemaker-NodeUtilization-RA-2.patch ++++++
>From 25264762338c210e865b3531baa33705c40e7ea9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Kristoffer=20Gr=C3=B6nlund?= <[email protected]>
Date: Wed, 15 Mar 2017 13:30:19 +0100
Subject: [PATCH] NodeUtilization: Fix mixed indentation, set executable bit

---
 extra/resources/NodeUtilization | 32 ++++++++++++++++----------------
 1 file changed, 16 insertions(+), 16 deletions(-)
 mode change 100644 => 100755 extra/resources/NodeUtilization

diff --git a/extra/resources/NodeUtilization b/extra/resources/NodeUtilization
old mode 100644
new mode 100755
index b9c737e..f246010
--- a/extra/resources/NodeUtilization
+++ b/extra/resources/NodeUtilization
@@ -173,7 +173,7 @@ END
 }
 
 NodeUtilization_start() {
-       ha_pseudo_resource $statefile start
+    ha_pseudo_resource $statefile start
     if ! ocf_is_true "$OCF_RESKEY_dynamic"; then
         if ! set_utilization; then
             exit $OCF_ERR_GENERIC
@@ -183,25 +183,25 @@ NodeUtilization_start() {
 }
 
 NodeUtilization_stop() {
-       ha_pseudo_resource $statefile stop
+    ha_pseudo_resource $statefile stop
     exit $OCF_SUCCESS
 }
 
 NodeUtilization_monitor() {
-       local rc
-       ha_pseudo_resource $statefile monitor
-       rc=$?
-
-       case $rc in
-               $OCF_SUCCESS)
-                       if ocf_is_true "$OCF_RESKEY_dynamic"; then
-                               if ! set_utilization; then
-                                       exit $OCF_ERR_GENERIC
-                               fi
-                       fi
-                       ;;
-               *) exit $rc;;
-       esac
+    local rc
+    ha_pseudo_resource $statefile monitor
+    rc=$?
+
+    case $rc in
+        $OCF_SUCCESS)
+            if ocf_is_true "$OCF_RESKEY_dynamic"; then
+                if ! set_utilization; then
+                    exit $OCF_ERR_GENERIC
+                fi
+            fi
+            ;;
+        *) exit $rc;;
+    esac
 }
 
 NodeUtilization_validate() {
++++++ bug-1015842_pacemaker-NodeUtilization-RA-3.patch ++++++
>From a678ce6daf71326fee7c6e2309c480f34673b0d3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Kristoffer=20Gr=C3=B6nlund?= <[email protected]>
Date: Wed, 15 Mar 2017 13:36:15 +0100
Subject: [PATCH] NodeUtilization: Never set hv_memory to a negative value

---
 extra/resources//NodeUtilization | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/heartbeat/NodeUtilization b/heartbeat/NodeUtilization
index f246010..61969e6 100755
--- a/extra/resources//NodeUtilization
+++ b/extra/resources//NodeUtilization
@@ -155,6 +155,8 @@ set_utilization() {
         hv_mem=$(( $(Host_Total_Memory) - 
OCF_RESKEY_utilization_hv_memory_reservation ))
         uti_mem=$(crm_attribute -Q -t nodes -U "$host_name" -z -n hv_memory 
2>/dev/null)
 
+        [ $hv_mem -lt 0 ] && hv_mem=0
+
         if [ "$hv_mem" != "$uti_mem" ]; then
             if ! crm_attribute -t nodes -U "$host_name" -z -n hv_memory -v 
$hv_mem; then
                 ocf_log err "Failed to set the hv_memory utilization attribute 
for $host_name using crm_attribute."
++++++ bug-1028138_pacemaker-pacemaker.service-TasksMax.patch ++++++
Index: pacemaker/mcp/pacemaker.service.in
===================================================================
--- pacemaker.orig/mcp/pacemaker.service.in
+++ pacemaker/mcp/pacemaker.service.in
@@ -26,6 +26,7 @@ NotifyAccess=main
 EnvironmentFile=-@CONFIGDIR@/pacemaker
 EnvironmentFile=-@CONFIGDIR@/sbd
 SuccessExitStatus=100
+TasksMax=4915
 
 ExecStart=@sbindir@/pacemakerd -f
 
++++++ pacemaker-1.1.16+git20170302.a7825f4.tar.bz2 -> 
pacemaker-1.1.16+20170320.77ea74d.tar.bz2 ++++++
++++ 5089 lines of diff (skipped)


Reply via email to