Bug 1626518

Summary: gdeploy should create XFS filesystem with JBOD disktype without diskcount
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: SATHEESARAN <sasundar>
Component: rhhiAssignee: Sahina Bose <sabose>
Status: CLOSED CURRENTRELEASE QA Contact: bipin <bshetty>
Severity: high Docs Contact:
Priority: unspecified    
Version: rhhiv-1.5CC: bshetty, msaini, rhs-bugs, sankarshan, smohan, storage-qa-internal, surs
Target Milestone: ---   
Target Release: RHHI-V 1.5   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1626513 Environment:
Last Closed: 2019-05-20 04:55:17 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: 1626513    
Bug Blocks: 1520836    

Description SATHEESARAN 2018-09-07 14:13:37 UTC
+++ This bug was initially created as a clone of Bug #1626513 +++

Description of problem:
------------------------
If the 'disktype' is chosen as 'jbod' gdeploy should execute without 'diskcount' & 'stripesize'

Version-Release number of selected component (if applicable):
--------------------------------------------------------------
gdeploy-2.0.2-27.el7rhgs

How reproducible:
-------------------
Always

Steps to Reproduce:
--------------------
1. Create a config file with 'disktype' as 'jbod' without 'diskcount' & 'stripesize'
2. Execute the config file with gdeploy

Actual results:
----------------
gdeploy fails and requires 'diskcount'

Expected results:
------------------
gdeploy should execute without 'diskcount' mentioned

--- Additional comment from SATHEESARAN on 2018-09-07 10:11:20 EDT ---

The problem here is while creating the filesystem gdeploy tries to do this:
mkfs.xfs -d <su,sw> /dev/mapper/vg-lv

So 'su' is the stripe-size (unit) and 'sw' is the stripe-width.

RHGS Admin guide - 21.2 point 2, clearly states for JBOD su, sw should be ignored. Gdeploy should follow that

--- Additional comment from SATHEESARAN on 2018-09-07 10:12:03 EDT ---

#gdeploy configuration generated by cockpit-gluster plugin
[hosts]
host1

[disktype]
jbod

[pv1]
action=create
devices=vdb
ignore_pv_errors=no

[vg1]
action=create
vgname=gluster_vg_vdb
pvname=vdb
ignore_vg_errors=no

[lv4]
action=create
lvname=gluster_lv_vmstore
ignore_lv_errors=no
vgname=gluster_vg_vdb
mount=/gluster_bricks/vmstore
size=10GB
lvtype=thick

Comment 1 SATHEESARAN 2018-09-24 18:45:20 UTC
The gdeploy bug is fixed and hence this bug too should be ON_QA

@Sahina, could you provide devel_ack and move this bug ON_QA ?

Comment 5 bipin 2018-10-11 12:56:57 UTC
Verified the bug using  gdeploy-2.0.2-29 bits for both lv and backend-setup.
Attaching the results.