Bug 1425767

Summary: grafton-sanity-check doesn't fail when a given disk doesn't exist or disk is not blank
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Ramesh N <rnachimu>
Component: gdeployAssignee: Sachidananda Urs <surs>
Status: CLOSED WONTFIX QA Contact: SATHEESARAN <sasundar>
Severity: medium Docs Contact:
Priority: high    
Version: rhgs-3.2CC: jcall, rhs-bugs, sabose, sasundar, smohan, storage-qa-internal
Target Milestone: ---Keywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-22 05:38:55 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: 1433896    

Description Ramesh N 2017-02-22 11:10:39 UTC
Description of problem:

grafton-sanity-check doesn't fail when a given disk doesn't exist or disk is not empty

Version-Release number of selected component (if applicable):
gdeploy-2.0.1-11.el7rhgs

How reproducible:
Always

Steps to Reproduce:
1. Create gdeploy configuration file like the following.
##################################################################
[hosts]
dhcp42-123.lab.eng.blr.redhat.com
dhcp43-152.lab.eng.blr.redhat.com

[script1]
action=execute
ignore_script_errors=no
file=/usr/share/ansible/gdeploy/scripts/grafton-sanity-check.sh -d vdb,xxx -h dhcp42-123.lab.eng.blr.redhat.com,dhcp43-152.lab.eng.blr.redhat.com
########################################################################

2. Give a disk name which does not exists and another disk name which is already used (Either as OS partition or as Gluster Brick)

  In the above example, disk 'vdb' is used already used for OS installation and disk 'xxx' doesn't exists in any system.

Actual results:
[root@dhcp42-123 ~]# echo $?
0
[root@dhcp42-123 ~]# 


grafton-sanity-check.sh passes and return success code 0. 


Expected results:

grafton-sanity-check.sh should fail to indicate that disk xxx doesn't exist and disk 'vdb' is not blank.

Comment 4 Sachidananda Urs 2018-10-22 05:38:55 UTC
This will be handled in gluster-ansible releases