|
|
60de42 |
From b30af11ddd465a299cf1bd66cc3c42a1ce741368 Mon Sep 17 00:00:00 2001
|
|
|
60de42 |
From: Ken Gaillot <kgaillot@redhat.com>
|
|
|
60de42 |
Date: Tue, 4 Apr 2017 16:22:03 -0500
|
|
|
60de42 |
Subject: [PATCH 1/4] Log: libcrmcommon: more useful message if can't open dump
|
|
|
60de42 |
file
|
|
|
60de42 |
|
|
|
60de42 |
also avoids a static analysis false positive
|
|
|
60de42 |
---
|
|
|
60de42 |
lib/common/schemas.c | 5 ++++-
|
|
|
60de42 |
1 file changed, 4 insertions(+), 1 deletion(-)
|
|
|
60de42 |
|
|
|
60de42 |
diff --git a/lib/common/schemas.c b/lib/common/schemas.c
|
|
|
60de42 |
index f1a0238..055d141 100644
|
|
|
60de42 |
--- a/lib/common/schemas.c
|
|
|
60de42 |
+++ b/lib/common/schemas.c
|
|
|
60de42 |
@@ -553,7 +553,10 @@ dump_file(const char *filename)
|
|
|
60de42 |
CRM_CHECK(filename != NULL, return);
|
|
|
60de42 |
|
|
|
60de42 |
fp = fopen(filename, "r");
|
|
|
60de42 |
- CRM_CHECK(fp != NULL, return);
|
|
|
60de42 |
+ if (fp == NULL) {
|
|
|
60de42 |
+ crm_perror(LOG_ERR, "Could not open %s for reading", filename);
|
|
|
60de42 |
+ return;
|
|
|
60de42 |
+ }
|
|
|
60de42 |
|
|
|
60de42 |
fprintf(stderr, "%4d ", ++line);
|
|
|
60de42 |
do {
|
|
|
60de42 |
--
|
|
|
60de42 |
1.8.3.1
|
|
|
60de42 |
|
|
|
60de42 |
|
|
|
60de42 |
From 9d912a09ca730b9fa9612de850839a2340aeb6d0 Mon Sep 17 00:00:00 2001
|
|
|
60de42 |
From: Ken Gaillot <kgaillot@redhat.com>
|
|
|
60de42 |
Date: Tue, 4 Apr 2017 16:27:47 -0500
|
|
|
60de42 |
Subject: [PATCH 2/4] Low: libpe_status: only set container hostname if have IP
|
|
|
60de42 |
|
|
|
60de42 |
---
|
|
|
60de42 |
lib/pengine/container.c | 13 +++++++++++--
|
|
|
60de42 |
1 file changed, 11 insertions(+), 2 deletions(-)
|
|
|
60de42 |
|
|
|
60de42 |
diff --git a/lib/pengine/container.c b/lib/pengine/container.c
|
|
|
60de42 |
index b93d98f..127b144 100644
|
|
|
60de42 |
--- a/lib/pengine/container.c
|
|
|
60de42 |
+++ b/lib/pengine/container.c
|
|
|
60de42 |
@@ -214,8 +214,17 @@ create_docker_resource(
|
|
|
60de42 |
create_nvp(xml_obj, "force_kill", "false");
|
|
|
60de42 |
create_nvp(xml_obj, "reuse", "false");
|
|
|
60de42 |
|
|
|
60de42 |
- offset += snprintf(buffer+offset, max-offset, "-h %s-%d --restart=no ",
|
|
|
60de42 |
- data->prefix, tuple->offset);
|
|
|
60de42 |
+ offset += snprintf(buffer+offset, max-offset, " --restart=no");
|
|
|
60de42 |
+
|
|
|
60de42 |
+ /* Set a container hostname only if we have an IP to map it to.
|
|
|
60de42 |
+ * The user can set -h or --uts=host themselves if they want a nicer
|
|
|
60de42 |
+ * name for logs, but this makes applications happy who need their
|
|
|
60de42 |
+ * hostname to match the IP they bind to.
|
|
|
60de42 |
+ */
|
|
|
60de42 |
+ if (data->ip_range_start != NULL) {
|
|
|
60de42 |
+ offset += snprintf(buffer+offset, max-offset, " -h %s-%d",
|
|
|
60de42 |
+ data->prefix, tuple->offset);
|
|
|
60de42 |
+ }
|
|
|
60de42 |
|
|
|
60de42 |
if(data->docker_network) {
|
|
|
60de42 |
// offset += snprintf(buffer+offset, max-offset, " --link-local-ip=%s", tuple->ipaddr);
|
|
|
60de42 |
--
|
|
|
60de42 |
1.8.3.1
|
|
|
60de42 |
|
|
|
60de42 |
|
|
|
60de42 |
From ff8813761d1024de2bba3d813e3e8aacc698bb54 Mon Sep 17 00:00:00 2001
|
|
|
60de42 |
From: Ken Gaillot <kgaillot@redhat.com>
|
|
|
60de42 |
Date: Tue, 4 Apr 2017 16:44:20 -0500
|
|
|
60de42 |
Subject: [PATCH 3/4] Fix: crmd: don't abandon fencing after one "no devices"
|
|
|
60de42 |
failure
|
|
|
60de42 |
|
|
|
60de42 |
---
|
|
|
60de42 |
crmd/te_callbacks.c | 7 -------
|
|
|
60de42 |
1 file changed, 7 deletions(-)
|
|
|
60de42 |
|
|
|
60de42 |
diff --git a/crmd/te_callbacks.c b/crmd/te_callbacks.c
|
|
|
60de42 |
index ff0a664..6c0670c 100644
|
|
|
60de42 |
--- a/crmd/te_callbacks.c
|
|
|
60de42 |
+++ b/crmd/te_callbacks.c
|
|
|
60de42 |
@@ -633,7 +633,6 @@ process_te_message(xmlNode * msg, xmlNode * xml_data)
|
|
|
60de42 |
GHashTable *stonith_failures = NULL;
|
|
|
60de42 |
struct st_fail_rec {
|
|
|
60de42 |
int count;
|
|
|
60de42 |
- int last_rc;
|
|
|
60de42 |
};
|
|
|
60de42 |
|
|
|
60de42 |
gboolean
|
|
|
60de42 |
@@ -639,9 +638,6 @@ too_many_st_failures(void)
|
|
|
60de42 |
if (value->count > 10) {
|
|
|
60de42 |
crm_notice("Too many failures to fence %s (%d), giving up", key, value->count);
|
|
|
60de42 |
return TRUE;
|
|
|
60de42 |
- } else if (value->last_rc == -ENODEV) {
|
|
|
60de42 |
- crm_notice("No devices found in cluster to fence %s, giving up", key);
|
|
|
60de42 |
- return TRUE;
|
|
|
60de42 |
}
|
|
|
60de42 |
}
|
|
|
60de42 |
return FALSE;
|
|
|
60de42 |
@@ -671,7 +667,6 @@ st_fail_count_reset(const char *target)
|
|
|
60de42 |
|
|
|
60de42 |
if (rec) {
|
|
|
60de42 |
rec->count = 0;
|
|
|
60de42 |
- rec->last_rc = 0;
|
|
|
60de42 |
}
|
|
|
60de42 |
}
|
|
|
60de42 |
|
|
|
60de42 |
@@ -697,8 +692,6 @@ st_fail_count_increment(const char *target, int rc)
|
|
|
60de42 |
rec->count = 1;
|
|
|
60de42 |
g_hash_table_insert(stonith_failures, strdup(target), rec);
|
|
|
60de42 |
}
|
|
|
60de42 |
- rec->last_rc = rc;
|
|
|
60de42 |
-
|
|
|
60de42 |
}
|
|
|
60de42 |
|
|
|
60de42 |
void
|
|
|
60de42 |
--
|
|
|
60de42 |
1.8.3.1
|
|
|
60de42 |
|
|
|
60de42 |
|
|
|
60de42 |
From bf4eda2d233f40795ff4141aad8985f0da5a7b0b Mon Sep 17 00:00:00 2001
|
|
|
60de42 |
From: Ken Gaillot <kgaillot@redhat.com>
|
|
|
60de42 |
Date: Tue, 4 Apr 2017 17:55:59 -0500
|
|
|
60de42 |
Subject: [PATCH 4/4] Test: make new valgrind suppression compatible with older
|
|
|
60de42 |
versions
|
|
|
60de42 |
|
|
|
60de42 |
---
|
|
|
60de42 |
valgrind-pcmk.suppressions | 1 -
|
|
|
60de42 |
1 file changed, 1 deletion(-)
|
|
|
60de42 |
|
|
|
60de42 |
diff --git a/valgrind-pcmk.suppressions b/valgrind-pcmk.suppressions
|
|
|
60de42 |
index 48eec9e..33d3b06 100644
|
|
|
60de42 |
--- a/valgrind-pcmk.suppressions
|
|
|
60de42 |
+++ b/valgrind-pcmk.suppressions
|
|
|
60de42 |
@@ -31,7 +31,6 @@
|
|
|
60de42 |
{
|
|
|
60de42 |
Bash leak in cli regression testing
|
|
|
60de42 |
Memcheck:Leak
|
|
|
60de42 |
- match-leak-kinds: definite
|
|
|
60de42 |
fun:malloc
|
|
|
60de42 |
fun:xmalloc
|
|
|
60de42 |
obj:/usr/bin/bash
|
|
|
60de42 |
--
|
|
|
60de42 |
1.8.3.1
|
|
|
60de42 |
|