Bug 1200785

Summary: pacemaker-cli requires pacemaker but does not depend on it
Product: Red Hat Enterprise Linux 7 Reporter: Bryn M. Reeves <bmr>
Component: pacemakerAssignee: Andrew Beekhof <abeekhof>
Status: CLOSED ERRATA QA Contact: cluster-qe <cluster-qe>
Severity: low Docs Contact:
Priority: low    
Version: 7.1CC: cluster-maint, fdinitto, jkortus, mjuricek
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: pacemaker-1.1.13-3.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-19 12:12:39 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:

Description Bryn M. Reeves 2015-03-11 11:46:49 UTC
Description of problem:
Installing pacemaker-cli (for crm_report) from yum will only install pacemaker-libs:

# yum -y localinstall pacemaker-cli-1.1.12-22.el7.x86_64.rpm 
[...]
(1/5): corosynclib-.3.4-4.el7.x86_64.rpm00:00:01     
(2/5): corosync-2.3.4-4.el7.x86_64.rpm
(3/5): libqb-.17.1-1.el7.x86_64.rpm
(4/5): libtool-ltdl-2.4.2-20.el7.x86_64.rpm
(5/5): pacemaker-libs-1.1.12-22.el7.x86_64.rpm

# crm_report -S -d --dest /var/tmp/crm-out 
/usr/sbin/crm_report: line 99: /usr/share/pacemaker/report.common: No such file or directory

Version-Release number of selected component (if applicable):
1.1.12-22.el7

How reproducible:
100%

Steps to Reproduce:
1. yum -y install pacemaker-cli
2. crm_report


Actual results:
# crm_report -S -d --dest /var/tmp/crm-out 
/usr/sbin/crm_report: line 99: /usr/share/pacemaker/report.common: No such file or directory

Expected results:
crm_report works

Additional info:
The report.common probably wants to be in pacemaker-libs or pacemaker-cli (or pacemaker-cli needs to depend on pacemaker).

Comment 2 Andrew Beekhof 2015-03-31 00:50:00 UTC
We've moved those files to pacemaker-cli for the next build

@@ -411,8 +411,11 @@ pacemaker
 %{_initrddir}/pacemaker
 %endif
 
+%exclude %{_datadir}/pacemaker/report.common
+%exclude %{_datadir}/pacemaker/report.collector
 %{_datadir}/pacemaker
 %{_datadir}/snmp/mibs/PCMK-MIB.txt
+
 %exclude %{_libexecdir}/pacemaker/lrmd_test
 %exclude %{_sbindir}/pacemaker_remoted
 %{_libexecdir}/pacemaker/*
@@ -478,6 +481,9 @@ pacemaker-cli
 %{_sbindir}/crm_simulate
 %{_sbindir}/crm_report
 %{_sbindir}/crm_ticket
+%{_datadir}/pacemaker/report.common
+%{_datadir}/pacemaker/report.collector
+
 %doc %{_mandir}/man8/*
 %exclude %{_mandir}/man8/attrd_updater.*
 %exclude %{_mandir}/man8/crm_attribute.*

Comment 6 errata-xmlrpc 2015-11-19 12:12:39 UTC
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, 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://rhn.redhat.com/errata/RHSA-2015-2383.html