Closed dahorak closed 5 years ago
@TimothyAsir
Simple updating the required version in specfile leads to unwanted situation, when ansible
package on Tendrl server is updated during execution of tendrl-ansible's site.yml
playbook (if it is executed from Tendrl server), which will cause quite ugly error.
So we should definitely update the specfile with the required version of ansible, but we should also probably update the (pre)installation instructions so the proper version of ansible will be installed together with installation of tendrl-ansible package and not updated later when site.yml
playbook is executed (this will require manual addition of epel repository).
Accordingly to Tendrl/commons/issues/944 and discussion on gitter
tendrl-commons
depends on ansible in version 2.5 or higher:But in package requirements it is only
ansible
without any version specified (output truncated):This "inconsistency" between real and specified requirements leads to unexpected and hardly understandable issues like this: https://www.redhat.com/archives/tendrl-devel/2018-June/msg00008.html
More detailed description
Package
ansible
in version2.4.2.0-2.el7
is available inextras
repository (by default available and enabled on any freshly installed CentOS machine). Packageansible
in version2.6.3-1.el7
is available fromepel
repository, which have to be additionally added (manually or in our case automatically by tendrl-ansible'ssite.yml
playbook).When I'll follow the tendrl-ansible's installation instructions and I'll firstly install
tendrl-ansible
on freshly installed Tendrl Server machine, it will automatically install ansible-2.4 from theextras
repository as a dependency. As a next step, I'll launchsite.yml
playbook, which will addepel
repository on Tendrl Server and all Gluster Storage Servers. Then it will installtendrl-commons
package. Since this package depends on any version ofansible
, it will install latest availableansible
(2.6
fromepel
repository) on all Gluster Storage Servers, but didn't automatically update the existingansible-2.4
on Tendrl Server.Expected state
If
tendrl-commons
requires specific minimal version ofansible
, it should be defined also in the package requirements, so it will be ensured, that the correct version ofansible
is installed together with thetendrl-commons
package.