Hello community, here is the log from the commit of package resource-agents for openSUSE:Factory checked in at 2017-08-12 19:59:51 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/resource-agents (Old) and /work/SRC/openSUSE:Factory/.resource-agents.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "resource-agents" Sat Aug 12 19:59:51 2017 rev:75 rq:514976 version:4.0.1+git.1495055229.643177f1 Changes: -------- --- /work/SRC/openSUSE:Factory/resource-agents/resource-agents.changes 2017-07-21 22:36:44.159907641 +0200 +++ /work/SRC/openSUSE:Factory/.resource-agents.new/resource-agents.changes 2017-08-12 19:59:53.845568887 +0200 @@ -1,0 +2,6 @@ +Mon Aug 7 12:52:17 UTC 2017 - [email protected] + +- High: CTDB: Don't fail on empty directory (bsc#1052577) + * Add 0010-High-CTDB-Don-t-fail-on-empty-directory-bsc-1052577.patch + +------------------------------------------------------------------- New: ---- 0010-High-CTDB-Don-t-fail-on-empty-directory-bsc-1052577.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ resource-agents.spec ++++++ --- /var/tmp/diff_new_pack.2ArX5t/_old 2017-08-12 19:59:54.889422674 +0200 +++ /var/tmp/diff_new_pack.2ArX5t/_new 2017-08-12 19:59:54.897421554 +0200 @@ -45,6 +45,8 @@ Patch8: 0008-Low-sg_persist-Read-empty-value-when-when-no-attribu.patch # PATCH-FIX-UPSTREAM: High: aws-vpc-route53: Add agent for AWS Route 53 (fate#322781) Patch9: 0009-High-aws-vpc-route53-Add-agent-for-AWS-Route-53-fate.patch +# PATCH-FIX-UPSTREAM: High: CTDB: Don't fail on empty directory (bsc#1052577) +Patch10: 0010-High-CTDB-Don-t-fail-on-empty-directory-bsc-1052577.patch BuildRequires: autoconf BuildRequires: automake @@ -121,6 +123,7 @@ %patch7 -p1 %patch8 -p1 %patch9 -p1 +%patch10 -p1 %build autoreconf -fvi ++++++ 0010-High-CTDB-Don-t-fail-on-empty-directory-bsc-1052577.patch ++++++ >From 24a5b8dd76611d23e5071cec5c7be147ce9d7dbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristoffer=20Gr=C3=B6nlund?= <[email protected]> Date: Mon, 7 Aug 2017 14:46:55 +0200 Subject: [PATCH] High: CTDB: Don't fail on empty directory (bsc#1052577) Commit 4c9a39d834 introduced a bug which causes the agent to fail with a database corrupted error if the /persistent directory is empty. --- heartbeat/CTDB | 1 + 1 file changed, 1 insertion(+) diff --git a/heartbeat/CTDB b/heartbeat/CTDB index 3e36dd0d..709dbc8e 100755 --- a/heartbeat/CTDB +++ b/heartbeat/CTDB @@ -553,6 +553,7 @@ ctdb_start() { persistent_db_dir="${OCF_RESKEY_ctdb_dbdir}/persistent" mkdir -p $persistent_db_dir 2>/dev/null for pdbase in $persistent_db_dir/*.tdb.[0-9]; do + [ -f "$pdbase" ] || break /usr/bin/tdbdump "$pdbase" >/dev/null 2>/dev/null || { ocf_exit_reason "Persistent database $pdbase is corrupted! CTDB will not start." return $OCF_ERR_GENERIC -- 2.13.2
