Bug 1544917

Summary: Colonizer should abort on any ansible play failures
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Dustin Black <dblack>
Component: gluster-colonizerAssignee: Dustin Black <dblack>
Status: CLOSED ERRATA QA Contact: Nag Pavan Chilakam <nchilaka>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rhgs-3.3CC: japplewh, nchilaka, rcyriac, rhs-bugs, rreddy
Target Milestone: ---Keywords: Rebase, ZStream
Target Release: RHGS 3.3.1 Async   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: gluster-colonizer-1.0.3-1.el7rhgs Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-12 12:06:14 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: 1542835    
Attachments:
Description Flags
validation screenshot of playbookerror when run on new node with already existing nas setup available on network none

Description Dustin Black 2018-02-13 18:20:40 UTC
Description of problem:
The gluster-colonizer currently continues to process plays for other hosts once a play for one host fails.

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


How reproducible:
Consistently


Steps to Reproduce:
1. Run colonizer to deploy 4 nodes
2. Re-run colonizer to deploy 6 nodes, 4 of the same
3. System config difference leads to play failure for 2 nodes, but other nodes continue attempting to deploy.

Actual results:
gluster-colonizer deployment fails with split configuration -- nodes in significantly different states


Expected results:
gluster-colonizer fails at first play failure, leaving nodes in close consistency at failure



Additional info:

Comment 2 Dustin Black 2018-02-14 16:50:14 UTC
Added any_errors_fatal: True to playbooks in upstream merge commit ff881a517a9100747c311c37862bad2eadf30378

https://github.com/gluster/gluster-colonizer/commit/ff881a517a9100747c311c37862bad2eadf30378

Comment 4 Nag Pavan Chilakam 2018-03-01 16:17:40 UTC
verification on 1.0.3.1 colonizer
===========================
ran the same test as in description
ran below too:
1) had setup a arbiter nas setup on 4 node successfully
2) brought 1 extra fresh node online 
3) now from one of the existing nas setup, reran a new nas setup, ->failed as expected
4) now reran step#4 from a fresh node, it did discover the existing nodes where setup passed in step#1, but later failed with ansible playbook errors. see screenshot-> worked as expected

hence moving to verified

Comment 5 Nag Pavan Chilakam 2018-03-01 16:18:36 UTC
Created attachment 1402587 [details]
validation screenshot of playbookerror when run on new node with already existing nas setup available on network

Comment 8 errata-xmlrpc 2018-03-12 12:06:14 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/RHEA-2018:0477