[Debian-ha-maintainers] Bug#715391: Cluster report generation fails.

Jan-Marek Glogowski glogow at fbihome.de
Mon Jul 8 17:35:01 UTC 2013


Package: pacemaker-mgmt
Version: 2.0.0+hg1141-2.2
Severity: normal
Tags: patch

My pacemaker cluster is running wheezy with a backport of the
pacemaker-mgmt package.

The "Tools" -> "Cluster Report" command fails instantly. The cluster log
contains (hb_report ... /tmp/clrp.XXXXXX contains illegal characters),
which is from the following code in hb_report from the cluster-glue
(wheezy or sid) package ($1 = basename of report temp file):

chkname() {
        [ "$1" ] || usage short
        echo $1 | grep -qs '[^a-zA-Z0-9 at _+=:-]' &&
                fatal "$1 contains illegal characters"
}

The mgmtd daemon contains the following code to generate the reports
temporary file:

const char *tempdir = "/tmp";
char *dest = tempnam(tempdir, "clrp.");

I couldn't find a quick source for the character set used by tempnam to
generate the filename, so the patch might just be a incomplete / wrong
workaround.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-cluster-report-filename.patch
Type: text/x-patch
Size: 373 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-ha-maintainers/attachments/20130708/fb492798/attachment.bin>


More information about the Debian-ha-maintainers mailing list