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

Docker 17.03.x fails to install on RHEL / CentOS #2527

Closed
mheese opened this issue Mar 25, 2018 · 3 comments · Fixed by #2536
Closed

Docker 17.03.x fails to install on RHEL / CentOS #2527

mheese opened this issue Mar 25, 2018 · 3 comments · Fixed by #2536

Comments

@mheese
Copy link

mheese commented Mar 25, 2018

Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT

Environment:

  • Cloud provider or hardware configuration: aws

  • OS (printf "$(uname -srm)\n$(cat /etc/os-release)\n"): rhel 7.4

  • Version of Ansible (ansible --version): 2.4.2

Kubespray version (commit) (git rev-parse --short HEAD):

Network plugin used: cloud

Copy of your inventory file:

Command used to invoke ansible:

Output of ansible run:

{
    "_ansible_parsed": true,
    "changed": false,
    "_ansible_no_log": false,
    "_ansible_notify": [
        "restart docker"
    ],
    "_ansible_item_result": true,
    "results": [
        "Loaded plugins: amazon-id, rhui-lb, search-disabled-repos\nResolving Dependencies\n--> Running transaction check\n---> Package docker-ce.x86_64 0:17.03.2.ce-1.el7.centos will be installed\n--> Processing Dependency: docker-ce-selinux >= 17.03.2.ce-1.el7.centos for package: docker-ce-17.03.2.ce-1.el7.centos.x86_64\nPackage docker-ce-selinux is obsoleted by docker-ce, but obsoleting package does not provide for requirements\n--> Processing Dependency: libltdl.so.7()(64bit) for package: docker-ce-17.03.2.ce-1.el7.centos.x86_64\n--> Running transaction check\n---> Package docker-ce.x86_64 0:17.03.2.ce-1.el7.centos will be installed\n--> Processing Dependency: docker-ce-selinux >= 17.03.2.ce-1.el7.centos for package: docker-ce-17.03.2.ce-1.el7.centos.x86_64\nPackage docker-ce-selinux is obsoleted by docker-ce, but obsoleting package does not provide for requirements\n---> Package libtool-ltdl.x86_64 0:2.4.2-22.el7_3 will be installed\n--> Finished Dependency Resolution\n You could try using --skip-broken to work around the problem\n You could try running: rpm -Va --nofiles --nodigest\n"
    ],
    "item": {
        "name": "docker-ce-17.03.2.ce-1.el7.centos"
    },
    "attempts": 4,
    "rc": 1,
    "invocation": {
        "module_args": ""
    },
    "_ansible_ignore_errors": null,
    "msg": "Error: Package: docker-ce-17.03.2.ce-1.el7.centos.x86_64 (docker-ce)\n           Requires: docker-ce-selinux >= 17.03.2.ce-1.el7.centos\n           Available: docker-ce-selinux-17.03.0.ce-1.el7.centos.noarch (docker-ce)\n               docker-ce-selinux = 17.03.0.ce-1.el7.centos\n           Available: docker-ce-selinux-17.03.1.ce-1.el7.centos.noarch (docker-ce)\n               docker-ce-selinux = 17.03.1.ce-1.el7.centos\n           Available: docker-ce-selinux-17.03.2.ce-1.el7.centos.noarch (docker-ce)\n               docker-ce-selinux = 17.03.2.ce-1.el7.centos\n"
}

Anything else do we need to know:
This is directly related to this issue: moby/moby#33930

Apparently their obsoleting of docker-ce-selinux made the package obsolete for all versions in the repo. And currently there is no way of passing --setopt=obsoletes=0 to the ansible yum module.

@missnebun
Copy link

I had the same problem and I had to disable the obsolete in yum.conf

@mheese
Copy link
Author

mheese commented Mar 28, 2018

@chadswen awesome! Thank you so much! 👍

@rushins
Copy link

rushins commented Apr 6, 2020

i had the same error ? failed: [node1] (item={u'yum_conf': u'/etc/yum_docker.conf', u'name': u'docker-ce-17.03.2.ce-1.el7.centos'})/

what is the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants