You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I have yum, service sections to install and start gluster server, then peer to create trusted storage pool and finally backend-setup section in gdeploy config file, gdeploy fails during execution, because it will try Create Physical Volume first (when the gluster is not yet installed) and fail.
Version
gdeploy-2.0.2-7.noarch (from sac-gdeploy copr)
Steps to reproduce
Prepapre set of clean CentOS 7 machines (with base system and CentOS repositories only)
Install centos-release-gluster310 package on all machines
Create new gdeploy config file (list all machines created in the previous step):
Gdeploy immediately fail during Create Physical Volume task:
$ gdeploy -c sample.conf
PLAY [gluster_servers] ******************************************************************************************************************************
TASK [Clean up filesystem signature] ****************************************************************************************************************
Friday 11 August 2017 12:12:11 -0400 (0:00:00.135) 0:00:00.135 *********
skipping: [mbukatov-usm1-gl1.example.com] => (item=/dev/vdc)
skipping: [mbukatov-usm1-gl1.example.com] => (item=/dev/vdb)
skipping: [mbukatov-usm1-gl2.example.com] => (item=/dev/vdc)
skipping: [mbukatov-usm1-gl2.example.com] => (item=/dev/vdb)
skipping: [mbukatov-usm1-gl3.example.com] => (item=/dev/vdc)
skipping: [mbukatov-usm1-gl3.example.com] => (item=/dev/vdb)
skipping: [mbukatov-usm1-gl4.example.com] => (item=/dev/vdc)
skipping: [mbukatov-usm1-gl4.example.com] => (item=/dev/vdb)
TASK [Create Physical Volume] ***********************************************************************************************************************
Friday 11 August 2017 12:12:12 -0400 (0:00:00.198) 0:00:00.334 *********
fatal: [mbukatov-usm1-gl4.example.com]: FAILED! => {"failed": true, "msg": "The conditional check 'result.rc != 0 and 'Physical Volu
me Exists' not in result.msg' failed. The error was: error while evaluating conditional (result.rc != 0 and 'Physical Volume Exists' not in result.ms
g): 'dict object' has no attribute 'rc'"}
fatal: [mbukatov-usm1-gl1.example.com]: FAILED! => {"failed": true, "msg": "The conditional check 'result.rc != 0 and 'Physical Volu
me Exists' not in result.msg' failed. The error was: error while evaluating conditional (result.rc != 0 and 'Physical Volume Exists' not in result.ms
g): 'dict object' has no attribute 'rc'"}
fatal: [mbukatov-usm1-gl3.example.com]: FAILED! => {"failed": true, "msg": "The conditional check 'result.rc != 0 and 'Physical Volu
me Exists' not in result.msg' failed. The error was: error while evaluating conditional (result.rc != 0 and 'Physical Volume Exists' not in result.ms
g): 'dict object' has no attribute 'rc'"}
fatal: [mbukatov-usm1-gl2.example.com]: FAILED! => {"failed": true, "msg": "The conditional check 'result.rc != 0 and 'Physical Volu
me Exists' not in result.msg' failed. The error was: error while evaluating conditional (result.rc != 0 and 'Physical Volume Exists' not in result.ms
g): 'dict object' has no attribute 'rc'"}
Note that Create Physical Volume is part of backend-setup tasks and that this section is listed last in the gdeploy config file.
Expected Result
Gdeploy will follow the order of sections listed in the config file, so that the operation will succeed.
The text was updated successfully, but these errors were encountered:
Martin it does. The initial design once upon a time was to do backend-setup first, irrespective of whereever it was listed in the config file. However it does not make sense anymore now after the development of yum and other sections. We have to change gdeploy to follow the order listed in the config file.
When I have
yum
,service
sections to install and start gluster server, thenpeer
to create trusted storage pool and finallybackend-setup
section in gdeploy config file, gdeploy fails during execution, because it will try Create Physical Volume first (when the gluster is not yet installed) and fail.Version
gdeploy-2.0.2-7.noarch (from sac-gdeploy copr)
Steps to reproduce
centos-release-gluster310
package on all machinesActual Result
Gdeploy immediately fail during Create Physical Volume task:
Note that Create Physical Volume is part of
backend-setup
tasks and that this section is listed last in the gdeploy config file.Expected Result
Gdeploy will follow the order of sections listed in the config file, so that the operation will succeed.
The text was updated successfully, but these errors were encountered: