Bug 1808152

Summary: [ RHHI-V 1.8 ] Failed to create VDO
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: SATHEESARAN <sasundar>
Component: gluster-ansibleAssignee: Gobinda Das <godas>
Status: CLOSED ERRATA QA Contact: SATHEESARAN <sasundar>
Severity: urgent Docs Contact:
Priority: high    
Version: rhhiv-1.8CC: asakthiv, godas, info, mwaykole, pprakash, rcyriac, rhs-bugs, sabose, sasundar
Target Milestone: ---   
Target Release: RHGS 3.5.z Batch Update 2   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: gluster-ansible-roles-1.0.5-7.el8rhgs Doc Type: Bug Fix
Doc Text:
VDO volume creation fails with ‘readcache’ and ‘readcache Size’ options. With this fix, ‘readcache’ and ‘readcache Size’ options are removed from VDO option as VDO ‘readcache’ is no longer supported in RHEL-8. VDO volume creation is now successful.
Story Points: ---
Clone Of: 1808081 Environment:
rhhiv, rhel8
Last Closed: 2020-06-16 05:57:29 UTC Type: ---
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: 1808081    

Description SATHEESARAN 2020-02-28 01:09:45 UTC
Description of problem:
-----------------------
VDO Readcache is no longer supported in VDO in RHEL-8
So those attributes needs to removed with gluster-ansible-infra

Version-Release number of selected component (if applicable):
-------------------------------------------------------------
gluster-ansible-infra-1.0.4-4.el8rhgs.noarch
gluster-ansible-cluster-1.0-1.el8rhgs.noarch
gluster-ansible-repositories-1.0.1-2.el8rhgs.noarch
gluster-ansible-features-1.0.5-4.el8rhgs.noarch
gluster-ansible-roles-1.0.5-5.el8rhgs.noarch
gluster-ansible-maintenance-1.0.1-1.el8rhgs.noarch

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

Steps to Reproduce:
-------------------
1. Run ansible based RHHI deployment 

Actual results:
----------------
Deployment fails with VDO creation

Expected results:
-----------------
VDO creation should succeed


Additional info:
-----------------
failed: [node.example.com] (item={'name': 'vdo_sdc', 'device': '/dev/sdc', 'slabsize': '32G', 'logicalsize': '10000G', 'blockmapcachesize': '128M', 'emulate512': 'off', 'writepolicy': 'auto'}) => {
    "ansible_loop_var": "item",
    "changed": false,
    "err": "usage: vdo create [-h] -n <volume> --device <devicepath>\n                  [--activate {disabled,enabled}]\n                  [--blockMapCacheSize <megabytes>]\n                  [--blockMapPeriod <period>]\n                  [--compression {disabled,enabled}]\n                  [--deduplication {disabled,enabled}]\n                  [--emulate512 {disabled,enabled}] [--force]\n                  [--indexMem <gigabytes>] [--maxDiscardSize <megabytes>]\n                  [--sparseIndex {disabled,enabled}] [--uuid <uuid>]\n                  [--vdoAckThreads <threadCount>]\n                  [--vdoBioRotationInterval <ioCount>]\n                  [--vdoBioThreads <threadCount>]\n                  [--vdoCpuThreads <threadCount>]\n                  [--vdoHashZoneThreads <threadCount>]\n                  [--vdoLogicalSize <megabytes>]\n                  [--vdoLogicalThreads <threadCount>]\n                  [--vdoLogLevel {critical,error,warning,notice,info,debug}]\n                  [--vdoPhysicalThreads <threadCount>]\n                  [--vdoSlabSize <megabytes>]\n                  [--writePolicy {async,async-unsafe,sync,auto}] [-f <file>]\n                  [--logfile <pathname>] [--verbose]\nvdo create: error: unrecognized arguments: --readCacheSize=0\n",
    "invocation": {
        "module_args": {
            "ackthreads": "1",
            "activated": true,
            "biothreads": "4",
            "blockmapcachesize": "128M",
            "compression": "enabled",
            "cputhreads": "2",
            "deduplication": null,
            "device": "/dev/sdc",
            "emulate512": false,
            "growphysical": false,
            "indexmem": "0.25",
            "indexmode": "dense",
            "logicalsize": "10000G",
            "logicalthreads": "1",
            "name": "vdo_sdc",
            "physicalthreads": "1",
            "readcache": "disabled",
            "readcachesize": "0",
            "running": true,
            "slabsize": "32G",
            "state": "present",
            "writepolicy": "auto"
        }
    },
    "item": {
        "blockmapcachesize": "128M",
        "device": "/dev/sdc",
        "emulate512": "off",
        "logicalsize": "10000G",
        "name": "vdo_sdc",
        "slabsize": "32G",
        "writepolicy": "auto"
    },
    "msg": "Creating VDO vdo_sdc failed.",
    "rc": 2
}

NO MORE HOSTS LEFT ***************************************************************************************************************************************************************************

PLAY RECAP **********************************************************************************************************************

Comment 5 SATHEESARAN 2020-03-20 10:28:02 UTC
Tested with gluster-ansible-roles-1.0.5-7.el8rhgs. 
vdo 'readCache' is removed.

[root@ ~]# rpm -qa | grep gluster-ansibl
gluster-ansible-repositories-1.0.1-2.el8rhgs.noarch
gluster-ansible-features-1.0.5-6.el8rhgs.noarch
gluster-ansible-infra-1.0.4-6.el8rhgs.noarch
gluster-ansible-maintenance-1.0.1-2.el8rhgs.noarch
gluster-ansible-cluster-1.0-1.el8rhgs.noarch
gluster-ansible-roles-1.0.5-7.el8rhgs.noarch

[root@ ~]# grep -i read /etc/ansible/roles/gluster.infra/roles/backend_setup/tasks/vdo_create.yml
    ackthreads: "{{ item.ackthreads | default('1') }}"
    biothreads: "{{ item.biothreads | default('4') }}"
    cputhreads: "{{ item.cputhreads | default('2') }}"
    logicalthreads: "{{ item.logicalthreads | default('1') }}"
    physicalthreads: "{{ item.physicalthreads | default('1') }}"

[root@ ~]# less /etc/ansible/roles/gluster.ansible/playbooks/hc-ansible-deployment/gluster_inventory.yml 
[root@ ~]# grep -i read /etc/ansible/roles/gluster.ansible/playbooks/hc-ansible-deployment/gluster_inventory.yml
[root@ ~]#

Comment 8 Gobinda Das 2020-05-04 09:12:51 UTC
*** Bug 1824305 has been marked as a duplicate of this bug. ***

Comment 9 Amrita 2020-06-11 12:11:26 UTC
Gobinda,

Please review the doc text

Comment 10 Gobinda Das 2020-06-11 12:28:02 UTC
RDT looks good to me.

Comment 12 errata-xmlrpc 2020-06-16 05:57:29 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-2020:2575