Bug 1480567 - backend-setup fails while changing the attributes of the logical volume
Summary: backend-setup fails while changing the attributes of the logical volume
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: gdeploy
Version: rhgs-3.3
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
: RHGS 3.3.1
Assignee: Sachidananda Urs
QA Contact: SATHEESARAN
URL:
Whiteboard:
Depends On:
Blocks: 1475688
TreeView+ depends on / blocked
 
Reported: 2017-08-11 12:04 UTC by SATHEESARAN
Modified: 2017-11-29 03:27 UTC (History)
6 users (show)

Fixed In Version: gdeploy-2.0.2-16
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1494041 (view as bug list)
Environment:
Last Closed: 2017-11-29 03:27:19 UTC
Embargoed:


Attachments (Terms of Use)
console output while creating bricks (14.03 KB, application/octet-stream)
2017-08-11 12:06 UTC, SATHEESARAN
no flags Details
gdeploy configuration file used (135 bytes, application/octet-stream)
2017-08-11 12:09 UTC, SATHEESARAN
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:3274 0 normal SHIPPED_LIVE [RHEL7] gdeploy bug fixes 2017-11-29 08:26:49 UTC

Description SATHEESARAN 2017-08-11 12:04:55 UTC
Description of problem:
------------------------
While creating gluster bricks, using backend-setup of gdeploy, I observed that gdeploy failed in the step to change attributes of the logical volume. 

Note:
This happens consistently with RHEL 7.4 platform, and works well with RHEL 7.3

Version-Release number of selected component (if applicable):
-------------------------------------------------------------
RHEL 7.4
gdeploy-2.0.2-14

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

Steps to Reproduce:
-------------------
1. Create bricks using backend-setup module of gdeploy with RHGS node based on RHEL 7.4 

Actual results:
---------------
gdeploy throws error while changing attributes of the logical volume

Expected results:
------------------
All the steps for backend-setup should work successfully and should not fail


Additional info:
-----------------
Here is the conf file used to create bricks:

[hosts]
host1.example.com
host2.example.com
host3.example.com

[backend-setup]
devices=vdb,vdc

Here is the error snip
<snip>
TASK [Change the attributes of the logical volume] *****************************
failed: [dhcp37-77.lab.eng.blr.redhat.com] (item={u'lv': u'GLUSTER_lv1', u'pool': u'GLUSTER_pool1', u'vg': u'GLUSTER_vg1'}) => {"failed": true, "item": {"lv": "GLUSTER_lv1", "pool": "GLUSTER_pool1", "vg": "GLUSTER_vg1"}, "msg": "  \"GLUSTER_vg1/GLUSTER_vg1/GLUSTER_pool1\": Invalid path for Logical Volume.\n", "rc": 5}
failed: [dhcp37-214.lab.eng.blr.redhat.com] (item={u'lv': u'GLUSTER_lv1', u'pool': u'GLUSTER_pool1', u'vg': u'GLUSTER_vg1'}) => {"failed": true, "item": {"lv": "GLUSTER_lv1", "pool": "GLUSTER_pool1", "vg": "GLUSTER_vg1"}, "msg": "  \"GLUSTER_vg1/GLUSTER_vg1/GLUSTER_pool1\": Invalid path for Logical Volume.\n", "rc": 5}
failed: [dhcp37-209.lab.eng.blr.redhat.com] (item={u'lv': u'GLUSTER_lv1', u'pool': u'GLUSTER_pool1', u'vg': u'GLUSTER_vg1'}) => {"failed": true, "item": {"lv": "GLUSTER_lv1", "pool": "GLUSTER_pool1", "vg": "GLUSTER_vg1"}, "msg": "  \"GLUSTER_vg1/GLUSTER_vg1/GLUSTER_pool1\": Invalid path for Logical Volume.\n", "rc": 5}
...ignoring
failed: [dhcp37-77.lab.eng.blr.redhat.com] (item={u'lv': u'GLUSTER_lv2', u'pool': u'GLUSTER_pool2', u'vg': u'GLUSTER_vg2'}) => {"failed": true, "item": {"lv": "GLUSTER_lv2", "pool": "GLUSTER_pool2", "vg": "GLUSTER_vg2"}, "msg": "  \"GLUSTER_vg2/GLUSTER_vg2/GLUSTER_pool2\": Invalid path for Logical Volume.\n", "rc": 5}
...ignoring
failed: [dhcp37-214.lab.eng.blr.redhat.com] (item={u'lv': u'GLUSTER_lv2', u'pool': u'GLUSTER_pool2', u'vg': u'GLUSTER_vg2'}) => {"failed": true, "item": {"lv": "GLUSTER_lv2", "pool": "GLUSTER_pool2", "vg": "GLUSTER_vg2"}, "msg": "  \"GLUSTER_vg2/GLUSTER_vg2/GLUSTER_pool2\": Invalid path for Logical Volume.\n", "rc": 5}
...ignoring
failed: [dhcp37-209.lab.eng.blr.redhat.com] (item={u'lv': u'GLUSTER_lv2', u'pool': u'GLUSTER_pool2', u'vg': u'GLUSTER_vg2'}) => {"failed": true, "item": {"lv": "GLUSTER_lv2", "pool": "GLUSTER_pool2", "vg": "GLUSTER_vg2"}, "msg": "  \"GLUSTER_vg2/GLUSTER_vg2/GLUSTER_pool2\": Invalid path for Logical Volume.\n", "rc": 5}

</snip>

Comment 1 SATHEESARAN 2017-08-11 12:06:44 UTC
Created attachment 1312106 [details]
console output while creating bricks

Comment 2 SATHEESARAN 2017-08-11 12:09:04 UTC
Created attachment 1312108 [details]
gdeploy configuration file used

Comment 3 SATHEESARAN 2017-08-11 12:10:55 UTC
With the testing that I did, I could not estimate the consequence of this issue.
Sac will investigating, what had failed, why it had failed and its consequence.

Comment 5 SATHEESARAN 2017-09-21 11:39:27 UTC
I'm seeing the same problem, with RHHI product while setting up lvmcache with the help of gdeploy.

Here is the configuration file:

[hosts]
host1
host2
host3

[lv]
action=setup-cache
ssd=sdc
vgname=vg1
poolname=thinpool1
cache_lv=lvcache
cache_lvsize=10GB

While executing the above configuration file, gdeploy fails with error as follows:
# gdeploy -c lvmcache.conf 

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

TASK [Setup SSD for caching | Create the physical volume] *********************************************************************************************************************************************************
changed: [10.70.36.73] => (item=/dev/sdc)
changed: [10.70.36.75] => (item=/dev/sdc)
changed: [10.70.36.74] => (item=/dev/sdc)

TASK [Setup SSD for caching | Extend the Volume Group] ************************************************************************************************************************************************************
changed: [10.70.36.75] => (item=/dev/sdc)
changed: [10.70.36.73] => (item=/dev/sdc)
changed: [10.70.36.74] => (item=/dev/sdc)

TASK [Setup SSD for caching | Change the attributes of the logical volume] ****************************************************************************************************************************************
fatal: [10.70.36.73]: FAILED! => {"changed": false, "failed": true, "msg": "  \"gluster_vg_sdb/gluster_vg_sdb/gluster_thinpool_sdb\": Invalid path for Logical Volume.\n", "rc": 5}
fatal: [10.70.36.74]: FAILED! => {"changed": false, "failed": true, "msg": "  \"gluster_vg_sdb/gluster_vg_sdb/gluster_thinpool_sdb\": Invalid path for Logical Volume.\n", "rc": 5}
fatal: [10.70.36.75]: FAILED! => {"changed": false, "failed": true, "msg": "  \"gluster_vg_sdb/gluster_vg_sdb/gluster_thinpool_sdb\": Invalid path for Logical Volume.\n", "rc": 5}
	to retry, use: --limit @/tmp/tmpSxgQ0n/cache_setup.retry

PLAY RECAP ********************************************************************************************************************************************************************************************************
10.70.36.73                : ok=2    changed=2    unreachable=0    failed=1   
10.70.36.74                : ok=2    changed=2    unreachable=0    failed=1   
10.70.36.75                : ok=2    changed=2    unreachable=0    failed=1   

Ignoring errors...


Re-proposing this bug for RHGS 3.3.1, as this is needed for RHHI 1.1

Comment 6 Sachidananda Urs 2017-09-22 07:27:57 UTC
Commit: https://github.com/gluster/gdeploy/commit/be2c9ddbecb47c fixes the issue.

Comment 7 SATHEESARAN 2017-09-22 16:03:03 UTC
Verified with gdeploy-2.0.2-16.el7rhgs and this issue is not seen.

The configuration file used is:

[host]
host1

[backend-setup]
devices=vdb,vdc

Observed that the bricks are created successfully and mounted as expected


Note:
Not marking this bug as **VERIFIED** as the gdeploy errata is not yet available.
Once the gdeploy errata is available with this specified build, I will move this bug to VERIFIED state.

Comment 8 SATHEESARAN 2017-10-06 07:07:06 UTC
The build - gdeploy-2.0.2-16.el7rhgs is available with the errata and with comment7 marking this bug as VERIFIED

Comment 11 errata-xmlrpc 2017-11-29 03:27:19 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/RHBA-2017:3274


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