Closed marji closed 5 years ago
Looking at /var/log/yum.log after I overcome this problem:
Dec 15 05:12:42 Installed: epel-release-7-11.noarch
Dec 15 05:14:41 Installed: jemalloc-3.6.0-1.el7.x86_64
Dec 15 05:14:41 Installed: redis-3.2.12-2.el7.x86_64
Dec 15 05:18:54 Installed: socat-1.7.3.2-2.amzn2.0.1.x86_64
Dec 15 05:36:08 Installed: ncurses-compat-libs-6.0-8.20170212.amzn2.1.2.x86_64
Dec 15 05:36:11 Installed: erlang-20.3.8.14-1.el7.centos.x86_64
Dec 15 05:36:11 Installed: rabbitmq-server-3.7.9-1.el7.noarch
Dec 15 05:40:06 Installed: 1:uchiwa-1.4.1-1.x86_64
It shows it was the ncurses-compat-libs
missing.
And this is the cause: https://github.com/sensu/sensu-ansible/blob/2.6.0/tasks/Amazon/rabbit.yml#L57 as this code disables other repositories, therefore the dependency package cannot be installed.
Working workaround (in my playbook):
pre_tasks:
- name: sensu bug workaround
yum:
name: ncurses-compat-libs
state: present
I think this PR https://github.com/sensu/sensu-ansible/pull/192 fixes it.
Hey @marji,
Thanks for the issue, Inspec has been busted on Amazon Linux 2 for a while now. However, I opened up https://github.com/inspec/inspec/pull/3657 which got released in 3.1.3: https://github.com/inspec/inspec/blob/master/CHANGELOG.md#v313-2018-12-13
I've opened up https://github.com/sensu/sensu-ansible/pull/193 which should get us up to the latest version and ensure we're fully testing Amazon Linux 2. Once that's in, I'll re-run testing against your branch to see how it looks. Sorry for the trouble!
Hm, interesting, I'll note that w/ my PR above, the Amazon Linux 1 and 2 integration tests passed, and didn't fail at this step: https://travis-ci.org/sensu/sensu-ansible/jobs/469044480#L915-L945
The integration tests continue to pass for both Amazon Linux 1 and 2 off of the latest master. I'm unable to locate how this could be happening locally but, I expect it might be something to do with either a custom repo serving up a different release of erlang
in addition to the repo's we lay down via this role or, potentially our integration Docker images are shipping with some other difference.
However, since I can't seem to reproduce this locally, I'll close the issue. Feel free to re-open this if you'd like to revisit it though. Ideally, we could have a way to reproduce the issue to test again.
While provisioning a sensu master, I get an error:
My Ansible version (executing on Ubuntu 18.04)
A Snippet of my playbook:
The server: