Bug 1787532

Summary: invalid transition produced in crm_simulate with "start A then stop B" constraint
Product: Red Hat Enterprise Linux 7 Reporter: Nina Hostakova <nhostako>
Component: pacemakerAssignee: Ken Gaillot <kgaillot>
Status: CLOSED WONTFIX QA Contact: cluster-qe <cluster-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.8CC: cluster-maint, cluster-qe, kgaillot, tojeline
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1782887 Environment:
Last Closed: 2020-06-03 21:02:10 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: 1782887    
Bug Blocks:    

Description Nina Hostakova 2020-01-03 09:50:56 UTC
The same problem to be resolved in RHEL7

Version-Release number of selected component (if applicable):
pacemaker-1.1.21-3.el7

+++ This bug was initially created as a clone of Bug #1782887 +++

Description of problem:
crm_simulate exits with "An invalid transition was produced" in the specific case described below.


Version-Release number of selected component (if applicable):
pacemaker-2.0.3-3.el8


How reproducible:
always


Steps to Reproduce:
1. Have two resources, d1 and d2.
2. Create an order constraint: start d1 then stop d2
3. Use crm_simulate to see what happens when d1 is disabled:
# pcs cluster cib > cib.xml
# pcs -f cib.xml resource disable d1
# crm_simulate --simulate --xml-file=cib.xml


Actual results:
crm_simulate returns 1 and exits with:
Executing cluster transition:
Transition failed: terminated
An invalid transition was produced

--- Additional comment from Tomas Jelinek on 2019-12-12 15:06:55 UTC ---

this is the configuration of a cluster before disabling a resource

--- Additional comment from Tomas Jelinek on 2019-12-12 15:08:09 UTC ---

this cib contains the change to be simulated against the running cluster - d1 is disabled

--- Additional comment from Tomas Jelinek on 2019-12-12 15:08:45 UTC ---



--- Additional comment from Tomas Jelinek on 2019-12-12 15:10:11 UTC ---

This issue has been discovered when testing the safe-disable feature in pcs, see bz1631519#c17 and following comments there for more details.

Comment 2 Ken Gaillot 2020-06-03 21:02:10 UTC
Leaving this as RHEL 8 only since it will not be fixed in RHEL 7.9 time frame