Bug 1260597 - gdeploy: On RHEL6, gdeploy fails after backend setup
Summary: gdeploy: On RHEL6, gdeploy fails after backend setup
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: gdeploy
Version: rhgs-3.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Sachidananda Urs
QA Contact: Anush Shetty
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-09-07 10:51 UTC by Anush Shetty
Modified: 2017-03-25 14:23 UTC (History)
3 users (show)

Fixed In Version: gdeploy-1.0-9
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-03-25 14:23:50 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1277841 0 unspecified CLOSED gdeploy uses deprecated default tuned profile 2021-02-22 00:41:40 UTC

Internal Links: 1277841

Description Anush Shetty 2015-09-07 10:51:15 UTC
Description of problem: On RHEL6, gdeploy exits after setting up bricks, failing to set performance tunables.

 
Version-Release number of selected component (if applicable): gdeploy-1.0-8.el6rhs.noarch


How reproducible: Always

Steps to Reproduce:
1. Create a config file for setting up bricks:
 
gdeploy config: gluster.conf

[hosts]
rhshdp03.lab.eng.blr.redhat.com
rhshdp04.lab.eng.blr.redhat.com
rhshdp05.lab.eng.blr.redhat.com
rhshdp06.lab.eng.blr.redhat.com

[devices]
/dev/vdb

[mountpoints]
/gluster1/brick1/

[brick_dirs]
s1

[peer]
manage=probe

[volume]
action=create
volname=gluster_vol1
replica=yes
replica_count=2

2. Run gdeploy: gdeploy -c gluster.conf

Actual results:

Fails after setting up bricks. Output below.


Expected results:

gdeploy should create a peer cluster and create the volume.

Additional info:



gdeploy output:

#gdeploy -c gluster.conf

INFO: Back-end setup triggered
INFO: Peer management(action: probe) triggered
INFO: Volume management(action: create) triggered

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

TASK: [Create Physical Volume on all the nodes] ******************************* 
changed: [rhshdp06.lab.eng.blr.redhat.com]
changed: [rhshdp03.lab.eng.blr.redhat.com]
changed: [rhshdp04.lab.eng.blr.redhat.com]
changed: [rhshdp05.lab.eng.blr.redhat.com]

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

TASK: [Create volume group on the disks] ************************************** 
changed: [rhshdp03.lab.eng.blr.redhat.com] => (item={'brick': '/dev/vdb', 'vg': 'GLUSTER_vg1'})
changed: [rhshdp04.lab.eng.blr.redhat.com] => (item={'brick': '/dev/vdb', 'vg': 'GLUSTER_vg1'})
changed: [rhshdp05.lab.eng.blr.redhat.com] => (item={'brick': '/dev/vdb', 'vg': 'GLUSTER_vg1'})
changed: [rhshdp06.lab.eng.blr.redhat.com] => (item={'brick': '/dev/vdb', 'vg': 'GLUSTER_vg1'})

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

TASK: [Create logical volume named metadata] ********************************** 
changed: [rhshdp04.lab.eng.blr.redhat.com] => (item=GLUSTER_vg1)
changed: [rhshdp03.lab.eng.blr.redhat.com] => (item=GLUSTER_vg1)
changed: [rhshdp05.lab.eng.blr.redhat.com] => (item=GLUSTER_vg1)
changed: [rhshdp06.lab.eng.blr.redhat.com] => (item=GLUSTER_vg1)

TASK: [Create a thin pool] **************************************************** 
changed: [rhshdp03.lab.eng.blr.redhat.com] => (item={'pool': 'GLUSTER_pool1', 'vg': 'GLUSTER_vg1'})
changed: [rhshdp04.lab.eng.blr.redhat.com] => (item={'pool': 'GLUSTER_pool1', 'vg': 'GLUSTER_vg1'})
changed: [rhshdp06.lab.eng.blr.redhat.com] => (item={'pool': 'GLUSTER_pool1', 'vg': 'GLUSTER_vg1'})
changed: [rhshdp05.lab.eng.blr.redhat.com] => (item={'pool': 'GLUSTER_pool1', 'vg': 'GLUSTER_vg1'})

TASK: [Convert the logical volume] ******************************************** 
changed: [rhshdp03.lab.eng.blr.redhat.com] => (item={'pool': 'GLUSTER_pool1', 'vg': 'GLUSTER_vg1'})
changed: [rhshdp05.lab.eng.blr.redhat.com] => (item={'pool': 'GLUSTER_pool1', 'vg': 'GLUSTER_vg1'})
changed: [rhshdp04.lab.eng.blr.redhat.com] => (item={'pool': 'GLUSTER_pool1', 'vg': 'GLUSTER_vg1'})
changed: [rhshdp06.lab.eng.blr.redhat.com] => (item={'pool': 'GLUSTER_pool1', 'vg': 'GLUSTER_vg1'})

TASK: [Create logical volume for the pools] *********************************** 
changed: [rhshdp04.lab.eng.blr.redhat.com] => (item={'lv': 'GLUSTER_lv1', 'pool': 'GLUSTER_pool1', 'vg': 'GLUSTER_vg1'})
changed: [rhshdp05.lab.eng.blr.redhat.com] => (item={'lv': 'GLUSTER_lv1', 'pool': 'GLUSTER_pool1', 'vg': 'GLUSTER_vg1'})
changed: [rhshdp03.lab.eng.blr.redhat.com] => (item={'lv': 'GLUSTER_lv1', 'pool': 'GLUSTER_pool1', 'vg': 'GLUSTER_vg1'})
changed: [rhshdp06.lab.eng.blr.redhat.com] => (item={'lv': 'GLUSTER_lv1', 'pool': 'GLUSTER_pool1', 'vg': 'GLUSTER_vg1'})

TASK: [Change the attributes of the logical volume] *************************** 
changed: [rhshdp06.lab.eng.blr.redhat.com] => (item={'pool': 'GLUSTER_pool1', 'vg': 'GLUSTER_vg1'})
changed: [rhshdp05.lab.eng.blr.redhat.com] => (item={'pool': 'GLUSTER_pool1', 'vg': 'GLUSTER_vg1'})
changed: [rhshdp04.lab.eng.blr.redhat.com] => (item={'pool': 'GLUSTER_pool1', 'vg': 'GLUSTER_vg1'})
changed: [rhshdp03.lab.eng.blr.redhat.com] => (item={'pool': 'GLUSTER_pool1', 'vg': 'GLUSTER_vg1'})

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

TASK: [Create a xfs filesystem] *********************************************** 
changed: [rhshdp06.lab.eng.blr.redhat.com] => (item=/dev/GLUSTER_vg1/GLUSTER_lv1)
changed: [rhshdp03.lab.eng.blr.redhat.com] => (item=/dev/GLUSTER_vg1/GLUSTER_lv1)
changed: [rhshdp04.lab.eng.blr.redhat.com] => (item=/dev/GLUSTER_vg1/GLUSTER_lv1)
changed: [rhshdp05.lab.eng.blr.redhat.com] => (item=/dev/GLUSTER_vg1/GLUSTER_lv1)

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

TASK: [Create the backend disks, fails if present] **************************** 
changed: [rhshdp04.lab.eng.blr.redhat.com] => (item={'device': '/dev/GLUSTER_vg1/GLUSTER_lv1', 'path': '/gluster1/brick1/'})
changed: [rhshdp05.lab.eng.blr.redhat.com] => (item={'device': '/dev/GLUSTER_vg1/GLUSTER_lv1', 'path': '/gluster1/brick1/'})
changed: [rhshdp03.lab.eng.blr.redhat.com] => (item={'device': '/dev/GLUSTER_vg1/GLUSTER_lv1', 'path': '/gluster1/brick1/'})
changed: [rhshdp06.lab.eng.blr.redhat.com] => (item={'device': '/dev/GLUSTER_vg1/GLUSTER_lv1', 'path': '/gluster1/brick1/'})

TASK: [Mount the volumes] ***************************************************** 
changed: [rhshdp06.lab.eng.blr.redhat.com] => (item={'device': '/dev/GLUSTER_vg1/GLUSTER_lv1', 'path': '/gluster1/brick1/'})
changed: [rhshdp04.lab.eng.blr.redhat.com] => (item={'device': '/dev/GLUSTER_vg1/GLUSTER_lv1', 'path': '/gluster1/brick1/'})
changed: [rhshdp03.lab.eng.blr.redhat.com] => (item={'device': '/dev/GLUSTER_vg1/GLUSTER_lv1', 'path': '/gluster1/brick1/'})
changed: [rhshdp05.lab.eng.blr.redhat.com] => (item={'device': '/dev/GLUSTER_vg1/GLUSTER_lv1', 'path': '/gluster1/brick1/'})

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

TASK: [Performance tune for general storage.] ********************************* 
failed: [rhshdp04.lab.eng.blr.redhat.com] => {"changed": true, "cmd": "tuned-adm profile rhs-high-throughput", "delta": "0:00:00.104726", "end": "2015-09-07 15:57:44.226835", "rc": 1, "start": "2015-09-07 15:57:44.122109", "warnings": []}
stderr: Requested profile 'rhs-high-throughput' doesn't exist.
failed: [rhshdp06.lab.eng.blr.redhat.com] => {"changed": true, "cmd": "tuned-adm profile rhs-high-throughput", "delta": "0:00:00.188975", "end": "2015-09-07 15:57:43.311282", "rc": 1, "start": "2015-09-07 15:57:43.122307", "warnings": []}
stderr: Requested profile 'rhs-high-throughput' doesn't exist.
failed: [rhshdp03.lab.eng.blr.redhat.com] => {"changed": true, "cmd": "tuned-adm profile rhs-high-throughput", "delta": "0:00:00.218398", "end": "2015-09-07 15:57:42.973423", "rc": 1, "start": "2015-09-07 15:57:42.755025", "warnings": []}
stderr: Requested profile 'rhs-high-throughput' doesn't exist.
failed: [rhshdp05.lab.eng.blr.redhat.com] => {"changed": true, "cmd": "tuned-adm profile rhs-high-throughput", "delta": "0:00:00.416273", "end": "2015-09-07 15:57:44.521669", "rc": 1, "start": "2015-09-07 15:57:44.105396", "warnings": []}
stderr: Requested profile 'rhs-high-throughput' doesn't exist.

FATAL: all hosts have already failed -- aborting

PLAY RECAP ******************************************************************** 
           to retry, use: --limit @/root/ansible_playbooks.retry

rhshdp03.lab.eng.blr.redhat.com : ok=10   changed=10   unreachable=0    failed=1   
rhshdp04.lab.eng.blr.redhat.com : ok=10   changed=10   unreachable=0    failed=1   
rhshdp05.lab.eng.blr.redhat.com : ok=10   changed=10   unreachable=0    failed=1   
rhshdp06.lab.eng.blr.redhat.com : ok=10   changed=10   unreachable=0    failed=1

Comment 2 Nandaja Varma 2015-09-07 12:07:34 UTC
Fixed. Now the option 'tune-profile' can be set to none, so this won't be run. Otherwise by default rh-high-throughput will be set

[tune-profile]
none

Comment 3 Anush Shetty 2015-09-08 09:48:02 UTC
Verified with gdeploy-1.0-9.el6rhs.noarch

Comment 6 Nandaja Varma 2015-11-04 04:25:03 UTC
'rhs-high-throughput' tune profile is not present in RHEL-7. The default profile we set using gdeploy is 'rhs-high-throughput'. To override this, either use a different profile available in RHEL 7 or give 
[profile]
none

which will make gdeploy skip calling tuned-amd.


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