Bug 1782887

Summary: invalid transition produced in crm_simulate with "start A then stop B" constraint
Product: Red Hat Enterprise Linux 8 Reporter: Tomas Jelinek <tojeline>
Component: pacemakerAssignee: Ken Gaillot <kgaillot>
Status: CLOSED WONTFIX QA Contact: cluster-qe <cluster-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.2CC: cluster-maint, msmazova
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1787532 (view as bug list) Environment:
Last Closed: 2021-12-13 07:27:06 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: 1787532    
Attachments:
Description Flags
the original cib
none
the updated cib
none
crm_simulate output none

Description Tomas Jelinek 2019-12-12 15:05:40 UTC
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

Comment 1 Tomas Jelinek 2019-12-12 15:06:55 UTC
Created attachment 1644455 [details]
the original cib

this is the configuration of a cluster before disabling a resource

Comment 2 Tomas Jelinek 2019-12-12 15:08:09 UTC
Created attachment 1644456 [details]
the updated cib

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

Comment 3 Tomas Jelinek 2019-12-12 15:08:45 UTC
Created attachment 1644457 [details]
crm_simulate output

Comment 4 Tomas Jelinek 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 11 RHEL Program Management 2021-12-13 07:27:06 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.

Comment 12 Ken Gaillot 2021-12-13 14:54:41 UTC
This is still a priority and will be reopened when developer time becomes available to address it