[Bug 907528] New: crm history fails to update logs
http://bugzilla.opensuse.org/show_bug.cgi?id=907528 Bug ID: 907528 Summary: crm history fails to update logs Classification: openSUSE Product: openSUSE Factory Version: 201411* Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: High Availability Assignee: lmb@suse.com Reporter: dmuhamedagic@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Created attachment 615276 --> http://bugzilla.opensuse.org/attachment.cgi?id=615276&action=edit output of crm -d history info sle12-a:~ # crm history info INFO: fetching new logs, please wait ... [1] 16:34:17 [SUCCESS] sle12-a [2] 16:34:17 [SUCCESS] sle12-c ERROR: append /var/cache/crm/history/psshout/sle12-a to /var/cache/crm/history/live/sle12-a/ha-log.txt: File not open for writing ERROR: append /var/cache/crm/history/psshout/sle12-c to /var/cache/crm/history/live/sle12-c/ha-log.txt: File not open for writing Source: live ... I already used history on this host. Didn't see these messages until today. Whatever happened in the meantime. Attaching the debug output. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=907528
--- Comment #1 from Dejan Muhamedagic
http://bugzilla.opensuse.org/show_bug.cgi?id=907528
Dejan Muhamedagic
Could it be that we need here a write/append option for open?
modules/utils.py:
565 open(dest).write(open(src).read())
Seems to work with: 565 open(dest, "a").write(open(src).read()) Can you please check. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=907528
--- Comment #3 from Kristoffer Gronlund
http://bugzilla.opensuse.org/show_bug.cgi?id=907528
Kristoffer Gronlund
participants (1)
-
bugzilla_noreply@novell.com