Bug 1818035

Summary: ocf-shellfuncs: fix ocf_is_clone() (clone_max can be 0 with cloned resources) (RHEL7)
Product: Red Hat Enterprise Linux 7 Reporter: Oyvind Albrigtsen <oalbrigt>
Component: resource-agentsAssignee: Oyvind Albrigtsen <oalbrigt>
Status: CLOSED ERRATA QA Contact: cluster-qe <cluster-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.8CC: agk, cfeist, cluster-maint, cluster-qe, fdinitto, heinzm, mjuricek, phagara
Target Milestone: rc   
Target Release: 7.9   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: resource-agents-4.1.1-53.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1817598 Environment:
Last Closed: 2020-09-29 19:17:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1817598    
Bug Blocks:    

Description Oyvind Albrigtsen 2020-03-27 13:59:47 UTC
+++ This bug was initially created as a clone of Bug #1817598 +++

Description of problem:
ocf_is_clone() doesnt report true when clone_max is 0 (which is default and means use nr of nodes in the cluster).

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Test agent which uses ocf_is_clone() without specifying clone_max meta attribute
2.
3.

Actual results:
Isnt detected as clone.

Expected results:
Is detected as clone.

Additional info:
https://github.com/ClusterLabs/resource-agents/pull/1469

Comment 9 errata-xmlrpc 2020-09-29 19:17:04 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 (resource-agents 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/RHBA-2020:3853