Bug 1655445 - The gdeploy execution should halt when an error is encountered.
Summary: The gdeploy execution should halt when an error is encountered.
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: gdeploy
Version: rhhi-1.1
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Sachidananda Urs
QA Contact: SATHEESARAN
URL:
Whiteboard:
Depends On:
Blocks: 1655443
TreeView+ depends on / blocked
 
Reported: 2018-12-03 07:59 UTC by Mugdha Soni
Modified: 2019-04-03 10:10 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1655443
Environment:
Last Closed: 2019-02-23 12:32:03 UTC
Embargoed:


Attachments (Terms of Use)
config file (177 bytes, text/plain)
2018-12-03 07:59 UTC, Mugdha Soni
no flags Details

Description Mugdha Soni 2018-12-03 07:59:42 UTC
Created attachment 1510818 [details]
config file

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

Description of problem:
---------------------------
Gdeploy execution did not stop when there was an error encountered with VDO volume creation.The vdo volume creation failed in one of the host still gdeploy went ahead and started created physical volume.


Version-Release number of selected component:
-----------------------------------------------
rhvh-4.2.8.0-0.20181127
glusterfs-cli-3.12.2-29.el7rhgs.x86_64

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


Steps to Reproduce:
-------------------
1.Log in to the cockpit UI and start with gluster deployment.


Actual results:
-------------------
The gdeploy execution proceeded when error was encountered.


Expected results:
------------------
The gdeploy execution should halt .

Additional Info:
------------------
Created a config file to create a vdo volume and then if that is successful it should create a test file.The vdo creation failed still the test file was generated.

Comment 2 Sahina Bose 2019-01-03 05:01:04 UTC
Sachi, is there a plan to address this bug? If not, can you close with comments

Comment 3 Sachidananda Urs 2019-01-03 06:06:44 UTC
(In reply to Sahina Bose from comment #2)
> Sachi, is there a plan to address this bug? If not, can you close with
> comments

I'm sorry, this missed somehow in my gdeploy query. I should address this,
will do it for the upcoming release. It shouldn't continue in case of errors.

Comment 4 Sachidananda Urs 2019-01-07 08:58:33 UTC
Mugdha, actually it is not skipping error but it is not running the vdo creation at all. That is because slabsize is not mentioned in the config file, because of which it is not populating the vdo variables into inventory.

We did not hit this in our rhhi installation because we always provide slabsize in config. gdeploy should add default values for slabsize. This is a good find, thank you.

The patch: https://github.com/gluster/gdeploy/commit/49f4e1efadaf31 fixes the issue.

Comment 5 Sachidananda Urs 2019-01-07 09:17:49 UTC
Some of the configurations:

[hosts]
10.70.43.52

[vdo]
action=create
devices=/dev/sde,/dev/sdd
names=test_vol_1,test_vol_2
logicalsize=50G,100G
slabsize=1G
ignore_vdo_errors=no

[shell]
action=execute
command=echo 'pass' > /root/test


=====================

[hosts]
10.70.43.52

[vdo]
action=create
devices=/dev/sde,/dev/sdd
names=test_vol_1,test_vol_2
ignore_vdo_errors=no

[shell]
action=execute
command=echo 'pass' > /root/test

Comment 9 SATHEESARAN 2019-02-19 20:07:34 UTC
Sac,

I see the fix is available for gdeploy, can we also have this fix in gluster-ansible roles ?

Comment 10 Sachidananda Urs 2019-02-20 04:37:54 UTC
sas, this fix is available in gluster-ansible we assume default slabsize in gluster-ansible.
Ref: https://github.com/gluster/gluster-ansible-infra/blob/master/roles/backend_setup/tasks/vdo_create.yml#L15

Comment 11 SATHEESARAN 2019-02-20 09:08:55 UTC
(In reply to Sachidananda Urs from comment #10)
> sas, this fix is available in gluster-ansible we assume default slabsize in
> gluster-ansible.
> Ref:
> https://github.com/gluster/gluster-ansible-infra/blob/master/roles/
> backend_setup/tasks/vdo_create.yml#L15

If the fix for this issue is already available in gluster-ansible,
then we can have this bug targeted for RHGS 3.4.4

Is that ok ?

Comment 12 Sachidananda Urs 2019-02-20 09:23:11 UTC
(In reply to SATHEESARAN from comment #11)
> (In reply to Sachidananda Urs from comment #10)
> > sas, this fix is available in gluster-ansible we assume default slabsize in
> > gluster-ansible.
> > Ref:
> > https://github.com/gluster/gluster-ansible-infra/blob/master/roles/
> > backend_setup/tasks/vdo_create.yml#L15
> 
> If the fix for this issue is already available in gluster-ansible,
> then we can have this bug targeted for RHGS 3.4.4
> 
> Is that ok ?

This is gdeploy bug, but component put wrongly.

Comment 13 SATHEESARAN 2019-02-23 12:32:03 UTC
Closing this bug, as this fix will not be consumed by cockpit.
Cockpit will be using gluster-ansible roles for the upcoming RHV releases.


Note You need to log in before you can comment on or make changes to this bug.