Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verify that Ansible version -> running deploy-3scale-api pipeline #47

Open
sgutierr opened this issue Mar 20, 2019 · 5 comments
Open

Verify that Ansible version -> running deploy-3scale-api pipeline #47

sgutierr opened this issue Mar 20, 2019 · 5 comments
Labels
bug Something isn't working

Comments

@sgutierr
Copy link

I've found an issue executing the CICD ansible playbook using the deploy-3scale-api, the environment is new OCP 3.11 instance, 3scale 2.4 on-prem and Jenkins. It's curiosely another enviroment that I had working, now doesn't work for the same reasons.
This the log, aparently something regarding ansible version isn't working properly.

TASK [nmasse-itix.threescale-cicd : Verify that Ansible version is >= 2.4.6] ***
fatal: [3scale-admin.apps.5ef9.openshiftworkshop.com]: FAILED! => {
"assertion": "ansible_version.full is version_compare('2.4.6', '>=')",
"changed": false,
"evaluated_to": false,
"msg": "This module requires at least Ansible 2.4.6. The version that comes with RHEL and CentOS by default (2.4.2) has a known bug that prevent this role from running properly."

@nmasse-itix
Copy link
Owner

Did you choose the template based on RHEL or CentOS ?

@sgutierr
Copy link
Author

Centos for ansible-slave

@nmasse-itix
Copy link
Owner

ok, thanks. I will update the instructions to use pre-built images instead. It will be easier and less error-prone.

You are not the only one that reported this error. It happens because yum installed Ansible 2.4 instead of 2.6...

I try to come up with something in the next days.

@sgutierr
Copy link
Author

A workaround can be adding the epel repository in the CentOS template
" RUN yum -y install epel-release && \
yum install -y ansible && \ ... "

@nmasse-itix
Copy link
Owner

Nice ! 👍I added your fix to the Dockerfile and I'm using it to provide pre-built images.
Once the built is complete, I will test it and issue a new release.

@nmasse-itix nmasse-itix added the bug Something isn't working label Mar 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants