Feature:
gdeploy is updated to work with Ansible 2.3.
Reason:
Current version of ansible has removed the support for extras/ module directory in their version 2.3. gdeploy used to ship the modules which were placed in this directory.
Playbook conditional was changed in Ansible 2.3, playbooks for gdeploy had to be modified to accommodate these changes.
Result:
gdeploy installer was modified to install the modules in search path. And the playbooks updated to work with Ansible release.
Description of problem:
-----------------------
Ansible-2.3 no longer considers the path where gdeploy modules are kept which is ansible/modules/extras. For ansible 2.3 to work there requires a spec file change in gdeploy and it has to be rebuilt.
Version-Release number of selected component (if applicable):
-------------------------------------------------------------
gdeploy-2.0.1-11.el7rhgs.noarch
How reproducible:
-----------------
Always
Steps to Reproduce:
-------------------
1. Have ansible 2.3 and latest gdeploy installed on the system.
Actual results:
----------------
gdeploy does not run successfully and results into syntax errors. A snip of the errors are present here.
The error appears to have been in '/tmp/tmpDZeVcQ/pvcreate.yml': line 16, column 5, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
# Create pv on all the disks
- name: Create Physical Volume
^ here
The error appears to have been in '/tmp/tmpDZeVcQ/pvcreate.yml': line 16, column 5, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
# Create pv on all the disks
- name: Create Physical Volume
^ here
Ignoring errors...
ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path.
The error appears to have been in '/tmp/tmpDZeVcQ/vgcreate.yml': line 8, column 5, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
tasks:
- name: Create volume group on the disks
^ here
The error appears to have been in '/tmp/tmpDZeVcQ/vgcreate.yml': line 8, column 5, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
tasks:
- name: Create volume group on the disks
^ here
Ignoring errors...
ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path.
The error appears to have been in '/tmp/tmpDZeVcQ/lvcreate.yml': line 7, column 9, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
tasks:
- name: Create LVs with specified size for the VGs
^ here
The error appears to have been in '/tmp/tmpDZeVcQ/lvcreate.yml': line 7, column 9, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
tasks:
- name: Create LVs with specified size for the VGs
^ here
+ RET_CODE=1
+ '[' 1 -ne 0 ']'
+ echo 'gdeploy setup on lago-hc-basic-suite-4-1-host0 failed with status 1.'
gdeploy setup on lago-hc-basic-suite-4-1-host0 failed with status 1.
+ exit 1
Expected results:
-----------------
gdeploy should run successfully with ansible 2.3 version.
--- Additional comment from SATHEESARAN on 2017-05-10 03:58:58 EDT ---
Its is essential to have gdeploy supported with Ansible-2.3 because RHV-H will be pulling the latest Ansible 2.3. The fix will help in the HC deployment with RHV-H ( containing Ansible-2.3 )
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:1333
Description of problem: ----------------------- Ansible-2.3 no longer considers the path where gdeploy modules are kept which is ansible/modules/extras. For ansible 2.3 to work there requires a spec file change in gdeploy and it has to be rebuilt. Version-Release number of selected component (if applicable): ------------------------------------------------------------- gdeploy-2.0.1-11.el7rhgs.noarch How reproducible: ----------------- Always Steps to Reproduce: ------------------- 1. Have ansible 2.3 and latest gdeploy installed on the system. Actual results: ---------------- gdeploy does not run successfully and results into syntax errors. A snip of the errors are present here. The error appears to have been in '/tmp/tmpDZeVcQ/pvcreate.yml': line 16, column 5, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: # Create pv on all the disks - name: Create Physical Volume ^ here The error appears to have been in '/tmp/tmpDZeVcQ/pvcreate.yml': line 16, column 5, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: # Create pv on all the disks - name: Create Physical Volume ^ here Ignoring errors... ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path. The error appears to have been in '/tmp/tmpDZeVcQ/vgcreate.yml': line 8, column 5, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: tasks: - name: Create volume group on the disks ^ here The error appears to have been in '/tmp/tmpDZeVcQ/vgcreate.yml': line 8, column 5, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: tasks: - name: Create volume group on the disks ^ here Ignoring errors... ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path. The error appears to have been in '/tmp/tmpDZeVcQ/lvcreate.yml': line 7, column 9, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: tasks: - name: Create LVs with specified size for the VGs ^ here The error appears to have been in '/tmp/tmpDZeVcQ/lvcreate.yml': line 7, column 9, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: tasks: - name: Create LVs with specified size for the VGs ^ here + RET_CODE=1 + '[' 1 -ne 0 ']' + echo 'gdeploy setup on lago-hc-basic-suite-4-1-host0 failed with status 1.' gdeploy setup on lago-hc-basic-suite-4-1-host0 failed with status 1. + exit 1 Expected results: ----------------- gdeploy should run successfully with ansible 2.3 version. --- Additional comment from SATHEESARAN on 2017-05-10 03:58:58 EDT --- Its is essential to have gdeploy supported with Ansible-2.3 because RHV-H will be pulling the latest Ansible 2.3. The fix will help in the HC deployment with RHV-H ( containing Ansible-2.3 )