Bug 1547619 - [gdeploy ] The PV and VG name should be same as VDO volume in gdeploy conf file
Summary: [gdeploy ] The PV and VG name should be same as VDO volume in gdeploy conf file
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: rhhi
Version: rhhiv-1.5
Hardware: Unspecified
OS: Linux
unspecified
high
Target Milestone: ---
: RHHI-V 1.5
Assignee: Sahina Bose
QA Contact: bipin
URL:
Whiteboard:
Depends On: 1547622
Blocks: 1520836
TreeView+ depends on / blocked
 
Reported: 2018-02-21 16:04 UTC by bipin
Modified: 2018-11-15 11:28 UTC (History)
2 users (show)

Fixed In Version: cockpit-ovirt-0.11.17-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1547622 (view as bug list)
Environment:
Last Closed: 2018-11-08 05:37:26 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2018:3523 0 None None None 2018-11-08 05:38:11 UTC

Description bipin 2018-02-21 16:04:38 UTC
Description of problem:
In the cockpit UI, the gdeploy conf should have a uniform volume name. Currently the VDO,PV and VG makes use of same devices. Since the VDO volume is mounted in the first and when the PV makes use of same device it fails telling the device has already been mounted.


Version-Release number of selected component (if applicable):
cockpit-ovirt-dashboard-0.11.11-0.1.el7ev.noarch
kmod-kvdo-6.1.0.146-13.el7.x86_64
vdo-6.1.0.146-16.x86_64
gdeploy-2.0.2-22.el7rhgs.noarch


How reproducible:
Everytime

Steps to Reproduce:
1. Go to the Cockpit UI
2. Select the gluster deployment and go to the end(preview)
3. In the gdeploy conf file the vdo and pv section make use of same device 

Actual results:
The PV volume creation fails since the device has already been mounted

Expected results:
The volume creation shouldn't fail 

Additional info:

Snippet from the gdeploy conf file:

PLAY [gluster_servers] *********************************************************

TASK [Create VDO with specified size] ******************************************
changed: [10.70.36.243] => (item={u'disk': u'/dev/sdb', u'logicalsize': u'200000', u'name': u'engine'})
changed: [10.70.36.241] => (item={u'disk': u'/dev/sdb', u'logicalsize': u'200000', u'name': u'engine'})
changed: [10.70.36.242] => (item={u'disk': u'/dev/sdb', u'logicalsize': u'200000', u'name': u'engine'})

<..>
<..>

PLAY [gluster_servers] *********************************************************

TASK [Clean up filesystem signature] *******************************************
skipping: [10.70.36.241] => (item=/dev/sdb) 
skipping: [10.70.36.242] => (item=/dev/sdb) 
skipping: [10.70.36.243] => (item=/dev/sdb) 

TASK [Create Physical Volume] **************************************************
failed: [10.70.36.241] (item=/dev/sdb) => {"changed": false, "failed_when_result": true, "item": "/dev/sdb", "msg": "  Can't open /dev/sdb exclusively.  Mounted filesystem?\n", "rc": 5}
failed: [10.70.36.243] (item=/dev/sdb) => {"changed": false, "failed_when_result": true, "item": "/dev/sdb", "msg": "  Can't open /dev/sdb exclusively.  Mounted filesystem?\n", "rc": 5}
failed: [10.70.36.242] (item=/dev/sdb) => {"changed": false, "failed_when_result": true, "item": "/dev/sdb", "msg": "  Can't open /dev/sdb exclusively.  Mounted filesystem?\n", "rc": 5}
	to retry, use: --limit @/tmp/tmp9hqOHr/pvcreate.retry

Comment 2 SATHEESARAN 2018-02-21 17:04:38 UTC
In this case, PV and VG components should make use of VDO volume's name and not the device name directly.

Comment 3 SATHEESARAN 2018-04-17 11:03:43 UTC
As the dependent bug is already ON_QA, moving this bug to ON_QA

Comment 7 bipin 2018-04-17 14:53:21 UTC
Verified the bug in the below component version's successfully.

Component versions's:
gdeploy-2.0.2-23.el7rhgs.noarch
cockpit-ovirt-dashboard-0.11.20-1.el7ev.noarch

Steps:
1. Install VDO 
2. Go to the cockpit UI and check the compression and deduplication tab.
3. Proceed to the review tab.
4. Check the PV,LV sections with appropriate parameters like below

Result:

[vdo1:10.70.45.29]
action=create
devices=sdb
names=vdo_sdb
logicalsize=200000G
blockmapcachesize=128M
readcache=enabled
readcachesize=20M
emulate512=enabled
writepolicy=sync
ignore_vdo_errors=no
slabsize=32G

[pv1:10.70.45.29]
action=create
devices=/dev/mapper/vdo_sdb
ignore_pv_errors=no

[vg1:10.70.45.29]
action=create
vgname=gluster_vg_sdb
pvname=/dev/mapper/vdo_sdb
ignore_vg_errors=no

Comment 9 errata-xmlrpc 2018-11-08 05:37:26 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-2018:3523


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