Bug 1817598

Summary: ocf-shellfuncs: fix ocf_is_clone() (clone_max can be 0 with cloned resources)
Product: Red Hat Enterprise Linux 8 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: 8.2CC: agk, cfeist, cluster-maint, fdinitto, heinzm, mjuricek, phagara
Target Milestone: rc   
Target Release: 8.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: resource-agents-4.1.1-46.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1818035 (view as bug list) Environment:
Last Closed: 2020-11-04 02:19:10 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:
Bug Depends On:    
Bug Blocks: 1818035    

Description Oyvind Albrigtsen 2020-03-26 16:03:24 UTC
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 6 errata-xmlrpc 2020-11-04 02:19:10 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 (Low: resource-agents security and bug fix 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/RHSA-2020:4605