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

Fails on systems without yum (but with dnf) #19

Closed
dfarrell07 opened this issue Jan 27, 2016 · 2 comments
Closed

Fails on systems without yum (but with dnf) #19

dfarrell07 opened this issue Jan 27, 2016 · 2 comments

Comments

@dfarrell07
Copy link
Owner

On distros that have moved to dnf as the default package manager over yum (like Fedora 22, Fedora 23), the role fails with a yum import error.

Traceback (most recent call last):
  File "/home/vagrant/.ansible/tmp/ansible-tmp-1453913472.43-6655968565982/yum", line 27, in <module>
    import yum
ImportError: No module named yum

The right way to fix this is to use the package Ansible role, which supports both yum and dnf. That came out in Ansible 2.0, which was very recently released but hasn't yet been packaged and distributed as an RPM. The could be fixed by moving to the dnf Ansible module, but that would break yum distros like CentOS 7. Could add some conditional to the tasks, but that's hack.

For now we'll target CentOS 7 over F22/F23 and move to the package module once it's out.

@dfarrell07 dfarrell07 self-assigned this Jan 27, 2016
dfarrell07 added a commit to dfarrell07/vagrant-opendaylight that referenced this issue Jan 27, 2016
Currently fails because ansible-opendaylight expects yum vs dnf.

Fix is to move to the `package` Ansbile module after Ansible 2.0 is
available.

dfarrell07/ansible-opendaylight#19

Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
@dfarrell07
Copy link
Owner Author

CentOS now has Ansible 2.0.1.0-2.el7, so this is unblocked.

dfarrell07 added a commit that referenced this issue Apr 27, 2016
When moving from the yum module to the package module as a part of #22
and #19, the `update_cache` param became deprecated.

Deployments against Fedora 23 now work.

Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
@dfarrell07
Copy link
Owner Author

This was fixed in #22 and e56dd8a.

dfarrell07 added a commit to dfarrell07/vagrant-opendaylight that referenced this issue Apr 27, 2016
Fixes in ansible-opendaylight have Ansible-on-Fedora deployments working
again.

dfarrell07/ansible-opendaylight#22
dfarrell07/ansible-opendaylight#19

Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant