Bug 1680548

Summary: Successful gluster deployment message is displayed when an ansible syntax error is encountered.
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Mugdha Soni <musoni>
Component: rhhiAssignee: Sahina Bose <sabose>
Status: CLOSED ERRATA QA Contact: Mugdha Soni <musoni>
Severity: high Docs Contact:
Priority: unspecified    
Version: rhhiv-1.6CC: godas, pasik, rhs-bugs, sankarshan, sasundar
Target Milestone: ---   
Target Release: RHHI-V 1.6   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1680551 (view as bug list) Environment:
Last Closed: 2019-05-09 06:09:09 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: 1680551    
Bug Blocks: 1672932    
Attachments:
Description Flags
Screen-recording of the issue
none
Bug Verification screenshot none

Description Mugdha Soni 2019-02-25 10:05:49 UTC
Description of problem:
---------------------------------
The successful gluster deployment message is  displayed in cockpit UI  when an ansible syntax error in encountered if user edit's the inventory file in review tab.
There are no volumes created and user is allowed to proceed with hosted engine deployment.

Version-Release number of selected component:
----------------------------------------------
rhvh-4.3.0.5-0.20190221
glusterfs-server-3.12.2-45
cockpit-ovirt-dashboard-0.12.2-1
gluster-ansible-cluster-1.0-1.el7

How reproducible:
-----------------
Everytime

Steps to Reproduce:
-------------------
1.Configure all the parameters required for gluster deployment in cockpit UI.
2.Add some parameter with wrong syntax in the generated ansible wizard inventory file in review tab.
3.Click on save and then deploy button.

Actual results:
------------------
The cockpit UI shows successful gluster deployment even though there are volumes created.

Expected results:
------------------
Proper error message should be displayed when there is an ansible syntax error.



-

Comment 1 SATHEESARAN 2019-02-25 16:41:55 UTC
Created attachment 1538511 [details]
Screen-recording of the issue

Comment 2 Mugdha Soni 2019-03-20 12:23:54 UTC
Created attachment 1546055 [details]
Bug Verification screenshot

Comment 3 Mugdha Soni 2019-03-20 12:24:50 UTC
Tested with the following:-
glusterfs-server-3.12.2-47.el7rhgs
gluster-ansible-repositories-1.0-1.el7rhgs.noarch
gluster-ansible-maintenance-1.0.1-1.el7rhgs.noarch
gluster-ansible-features-1.0.4-5.el7rhgs.noarch
gluster-ansible-cluster-1.0-1.el7rhgs.noarch
gluster-ansible-roles-1.0.4-4.el7rhgs.noarch
gluster-ansible-infra-1.0.3-3.el7rhgs.noarch

rhvh-4.3.0.5-0.20190313

If there is any syntax error then the deployment fails at the very initial point saying "ERROR! No inventory was parsed, please check your configuration and options. Could be problem in inventory file."
Error message  is displayed and the deployment doesn't proceed .

Hence ,moving the bug to verified state.

Comment 5 errata-xmlrpc 2019-05-09 06:09:09 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-2019:1121