Bug 1612828

Summary: lvm resource agent mode script is missing a dash for vgchange command flags
Product: Red Hat Enterprise Linux 7 Reporter: Roman Bednář <rbednar>
Component: resource-agentsAssignee: Oyvind Albrigtsen <oalbrigt>
Status: CLOSED ERRATA QA Contact: cluster-qe <cluster-qe>
Severity: high Docs Contact:
Priority: unspecified    
Version: 7.6CC: agk, cluster-maint, cmackows, fdinitto, mlisik, nwahl
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: resource-agents-4.1.1-6.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-30 11:39:24 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 Roman Bednář 2018-08-06 11:32:21 UTC
resource-agents-4.1.1-4.el7

/usr/lib/ocf/lib/heartbeat/lvm-tag.sh line 150 is missing a dash in front of 'aly' flags. This is causing lvm resource to fail during start:

[root@p8-224-node13 ~]# pcs resource show halvm
 Resource: halvm (class=ocf provider=heartbeat type=LVM)
  Attributes: exclusive=true partial_activation=false volgrpname=shared
  Operations: methods interval=0s timeout=5s (halvm-methods-interval-0s)
              monitor interval=10s timeout=30s (halvm-monitor-interval-10s)
              start interval=0s timeout=30s (halvm-start-interval-0s)
              stop interval=0s timeout=30s (halvm-stop-interval-0s)

[root@p8-224-node13 ~]# pcs resource debug-start halvm
Operation start for halvm (ocf:heartbeat:LVM) returned: 'ok' (0)
 >  stdout: volume_list="rhel_p8-224-node13"
 >  stdout: volume_list="rhel_p8-224-node13"
 >  stderr: Aug 06 06:00:09 WARNING: Disable lvmetad in lvm.conf. lvmetad should never be enabled in a clustered environment. Set use_lvmetad=0 and kill the lvmetad process
 >  stderr: Aug 06 06:00:10 INFO: Activating volume group shared
 >  stderr: Aug 06 06:00:10 INFO:  Reading volume groups from cache. Found volume group "rhel_p8-224-node13" using metadata type lvm2 Found volume group "shared" using metadata type lvm2 
 >  stderr: Aug 06 06:00:10 ERROR:  No command with matching syntax recognised. Run 'vgchange --help' for more information. 


Bash debug revealing the failing command:

 >  stderr: ++ vgchange aly --config 'activation{volume_list=["@pacemaker"]}' shared
 >  stderr: + output='  No command with matching syntax recognised.  Run '\''vgchange --help'\'' for more information.'




Assuming this bug got there during the recent rebase from upstream:

https://github.com/ClusterLabs/resource-agents/commit/bfa84cdce0eafc35cc186672e6277c8612872e9b#diff-6c336594610881cd935991177b3528b5R150

Comment 4 Oyvind Albrigtsen 2018-08-13 12:33:03 UTC
https://github.com/ClusterLabs/resource-agents/pull/1190

Comment 8 errata-xmlrpc 2018-10-30 11:39:24 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://access.redhat.com/errata/RHBA-2018:3278