Bug 1857728
| Summary: | crm_mon html output file is empty | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Martin Juricek <mjuricek> |
| Component: | pacemaker | Assignee: | Chris Lumens <clumens> |
| Status: | CLOSED ERRATA | QA Contact: | cluster-qe <cluster-qe> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 8.2 | CC: | cluster-maint, kgaillot, phagara, sfoucek |
| Target Milestone: | rc | Keywords: | Regression |
| Target Release: | 8.3 | Flags: | pm-rhel:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | pacemaker-2.0.4-4.el8 | Doc Type: | Bug Fix |
| Doc Text: |
Cause: A reimplementation of crm_mon output failed to properly reset an HTML output file between status checks when used with the --daemonize option.
Consequence: HTML output would be blank when used with the --daemonize option.
Fix: The HTML file is properly reset between status checks.
Result: HTML output is again properly generated when crm_mon is used with the --daemonize option.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-11-04 04:00:53 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Comment 1
Chris Lumens
2020-07-17 18:56:05 UTC
Since this was a regression in 8.2, I'll see if we can get the fix for 8.3 even though we're toward the end of that cycle qa_ack+, reproducer in description Tested on a basic 2-node cluster. Before fix: > [root@virt-018 ~]# rpm -q pacemaker > pacemaker-2.0.3-5.el8_2.1.x86_64 > [root@virt-018 ~]# mkdir /var/www && mkdir /var/www/html > [root@virt-018 ~]# crm_mon --daemonize --output-as html --output-to /var/www/html/index.html > [root@virt-018 ~]# stat /var/www/html/index.html > File: /var/www/html/index.html > Size: 0 Blocks: 0 IO Block: 4096 regular empty file > Device: fd00h/64768d Inode: 13650344 Links: 1 > Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root) > Context: unconfined_u:object_r:var_t:s0 > Access: 2020-08-03 21:06:53.748309133 +0200 > Modify: 2020-08-03 21:06:53.748309133 +0200 > Change: 2020-08-03 21:06:53.748309133 +0200 > Birth: - Result: output file is empty. After fix: > [root@virt-152 ~]# rpm -q pacemaker > pacemaker-2.0.4-5.el8.x86_64 > [root@virt-152 ~]# mkdir /var/www && mkdir /var/www/html > [root@virt-152 ~]# crm_mon --daemonize --output-as html --output-to /var/www/html/index.html > [root@virt-152 ~]# stat /var/www/html/index.html > File: /var/www/html/index.html > Size: 1435 Blocks: 8 IO Block: 4096 regular file > Device: fd00h/64768d Inode: 9170328 Links: 1 > Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root) > Context: unconfined_u:object_r:var_t:s0 > Access: 2020-08-03 21:11:28.837139541 +0200 > Modify: 2020-08-03 21:11:28.860141407 +0200 > Change: 2020-08-03 21:11:28.860141407 +0200 > Birth: - > [root@virt-152 ~]# file /var/www/html/index.html > /var/www/html/index.html: HTML document, ASCII text Result: output file is not empty and contains HTML. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (pacemaker bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2020:4804 |