{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kops/issues/6225","repository_url":"https://api.github.com/repos/kubernetes/kops","labels_url":"https://api.github.com/repos/kubernetes/kops/issues/6225/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kops/issues/6225/comments","events_url":"https://api.github.com/repos/kubernetes/kops/issues/6225/events","html_url":"https://github.com/kubernetes/kops/issues/6225","id":392541301,"node_id":"MDU6SXNzdWUzOTI1NDEzMDE=","number":6225,"title":"Docker 17.06+ won't install on CentOS / RHEL / Amazon Linux due to unavailable dependency","user":{"login":"bcorijn","id":22590657,"node_id":"MDQ6VXNlcjIyNTkwNjU3","avatar_url":"https://avatars0.githubusercontent.com/u/22590657?v=4","gravatar_id":"","url":"https://api.github.com/users/bcorijn","html_url":"https://github.com/bcorijn","followers_url":"https://api.github.com/users/bcorijn/followers","following_url":"https://api.github.com/users/bcorijn/following{/other_user}","gists_url":"https://api.github.com/users/bcorijn/gists{/gist_id}","starred_url":"https://api.github.com/users/bcorijn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcorijn/subscriptions","organizations_url":"https://api.github.com/users/bcorijn/orgs","repos_url":"https://api.github.com/users/bcorijn/repos","events_url":"https://api.github.com/users/bcorijn/events{/privacy}","received_events_url":"https://api.github.com/users/bcorijn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-12-19T10:45:07Z","updated_at":"2019-01-03T20:12:13Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"**1. What `kops` version are you running? The command `kops version`, will display\r\n this information.**\r\nKops head shortly after the 1.11.beta release ( Version 1.11.0-alpha.1 (git-4806708) ), which included my PR https://github.com/kubernetes/kops/commit/4806708c3bd6e8876cfe466de51d2092ad59e71b\r\n**2. What Kubernetes version are you running? `kubectl version` will print the\r\n version if a cluster is running or provide the Kubernetes version specified as\r\n a `kops` flag.**\r\n1.11.5\r\n**3. What cloud provider are you using?**\r\nAWS\r\n**4. What commands did you run?  What is the simplest way to reproduce this issue?**\r\nCreate a cluster, set docker version in cluster spec to anything higher than 17.06 (I tried 18.06 and 17.09 and use a RHEL / CentOS / Amazon Linux 2 AMI. (I personally use Amazon Linux 2)\r\nAs of 17.06 docker decided to use `container-selinux` as dependency instead of packaging in their own, so any version higher than that will show this issue.\r\nIf you don't even want to bother with kops, launching one of those AMI's and manually installing docker from an RPM also has this issue.\r\n**5. What happened after the commands executed?**\r\nNodeup tries to install the higher docker version, but the instal fails with the following message:\r\n```\r\nError: Package: docker-ce-18.06.1.ce-3.el7.x86_64 (/docker-ce-18.06.1.ce-3.el7.x86_64)\r\n           Requires: container-selinux >= 2.9\r\n```\r\nWhich is not present by default in these distros. Centos and RHEL offer it in their extras I believe (that you might need to enable), Amazon linux does not have it available. You can install it manually from http://mirror.centos.org/centos/7/extras/x86_64/Packages/ though. Installing docker through the extras channels in these distros does not require this step. \r\n\r\nSince Docker can't be installed, the cluster obviously does not come up.\r\n**6. What did you expect to happen?**\r\nCluster comes up with the requested version of docker\r\n\r\n**9. Anything else do we need to know?**\r\nI did my PR mirroring what was already available for 17.09, not expecting any issues but didn't verify that 17.09 itself would work. I am not really sure how to handle this case since the dependency is not readily availably from yum and fixing it seems to depend on which distro you are using. \r\nShould I add a direct URL to the dependency (fixing the version, which is not ideal), bake this into the AMI (not very future proof either) or should this be solved somewhere else in nodeup? \r\n\r\nThe install issue itself is a known issue outside of kops fwiw: https://stackoverflow.com/questions/45272827/docker-ce-on-rhel-requires-container-selinux-2-9"},"comment":{"url":"https://api.github.com/repos/kubernetes/kops/issues/comments/451262824","html_url":"https://github.com/kubernetes/kops/issues/6225#issuecomment-451262824","issue_url":"https://api.github.com/repos/kubernetes/kops/issues/6225","id":451262824,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MTI2MjgyNA==","user":{"login":"xrl","id":693059,"node_id":"MDQ6VXNlcjY5MzA1OQ==","avatar_url":"https://avatars2.githubusercontent.com/u/693059?v=4","gravatar_id":"","url":"https://api.github.com/users/xrl","html_url":"https://github.com/xrl","followers_url":"https://api.github.com/users/xrl/followers","following_url":"https://api.github.com/users/xrl/following{/other_user}","gists_url":"https://api.github.com/users/xrl/gists{/gist_id}","starred_url":"https://api.github.com/users/xrl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xrl/subscriptions","organizations_url":"https://api.github.com/users/xrl/orgs","repos_url":"https://api.github.com/users/xrl/repos","events_url":"https://api.github.com/users/xrl/events{/privacy}","received_events_url":"https://api.github.com/users/xrl/received_events","type":"User","site_admin":false},"created_at":"2019-01-03T20:12:13Z","updated_at":"2019-01-03T20:12:13Z","author_association":"NONE","body":"I am going to test a kops hook off the cluster object:\r\n\r\n```\r\nspec:\r\n  hooks:\r\n  - name: install-dockers-prereq.service\r\n    before:\r\n      - kops-configuration.service\r\n    roles: [Master]\r\n    manifest: |\r\n      [Unit]\r\n      Description=Hack-Workaround: Download Docker Prerequisite Package\r\n      [Service]\r\n      Type=oneshot\r\n      ExecStart=yum install -y http://mirror.centos.org/centos/7/extras/x86_64/Packages/container-selinux-2.68-1.el7.noarch.rpm\r\n```"}}
{"actor":{"display_login":"xrl"}}