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

Processing Conflict: docker-engine-17.03.1.ce-1.el7.centos.x86_64 conflicts docker-io #50

Open
codyzhang opened this issue Dec 17, 2018 · 1 comment

Comments

@codyzhang
Copy link

codyzhang commented Dec 17, 2018

I had tried to execute this scripte, but met this issue.
Could you help me to check it? :)

[root@master1 kubeadm-ansible]# cat site.yaml 
---

- hosts: kube-cluster
  gather_facts: yes
  become: yes
  roles:
    - { role: docker, tags: docker }

- hosts: master
  gather_facts: yes
  become: yes
  roles:
    - { role: kubernetes/master, tags: master }
    - { role: cni, tags: cni }

- hosts: node
  gather_facts: yes
  become: yes
  roles:
    - { role: kubernetes/node, tags: node }


[root@master1 kubeadm-ansible]# ansible-playbook site.yaml

TASK [docker : Install docker engine (RHEL/CentOS)] **************************************************************************************************************************************************************************************************************************
Friday 14 December 2018  11:33:03 +0200 (0:00:00.550)       0:00:02.481 ******* 
fatal: [192.168.0.32]: FAILED! => {"changed": false, "msg": "\n\nTransaction check error:\n  file /usr/bin/docker from install of docker-engine-17.03.1.ce-1.el7.centos.x86_64 conflicts with file from package docker-common-2:1.13.1-75.git8633870.el7.centos.x86_64\n  file /usr/bin/docker-containerd from install of docker-engine-17.03.1.ce-1.el7.centos.x86_64 conflicts with file from package docker-common-2:1.13.1-75.git8633870.el7.centos.x86_64\n  file /usr/bin/docker-containerd-shim from install of docker-engine-17.03.1.ce-1.el7.centos.x86_64 conflicts with file from package docker-common-2:1.13.1-75.git8633870.el7.centos.x86_64\n  file /usr/bin/dockerd from install of docker-engine-17.03.1.ce-1.el7.centos.x86_64 conflicts with file from package docker-common-2:1.13.1-75.git8633870.el7.centos.x86_64\n\nError Summary\n-------------\n\n", "rc": 1, "results": ["Loaded plugins: fastestmirror, langpacks\nLoading mirror speeds from cached hostfile\n * epel: mirror.yandex.ru\nResolving Dependencies\n--> Running transaction check\n---> Package docker-engine.x86_64 0:17.03.1.ce-1.el7.centos will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package            Arch        Version                       Repository   Size\n================================================================================\nInstalling:\n docker-engine      x86_64      17.03.1.ce-1.el7.centos       Docker       19 M\n\nTransaction Summary\n================================================================================\nInstall  1 Package\n\nTotal size: 19 M\nInstalled size: 19 M\nDownloading packages:\nRunning transaction check\nRunning transaction test\n"]}
fatal: [192.168.0.33]: FAILED! => {"changed": false, "msg": "\n\nTransaction check error:\n  file /usr/bin/docker from install of docker-engine-17.03.1.ce-1.el7.centos.x86_64 conflicts with file from package docker-common-2:1.13.1-75.git8633870.el7.centos.x86_64\n  file /usr/bin/docker-containerd from install of docker-engine-17.03.1.ce-1.el7.centos.x86_64 conflicts with file from package docker-common-2:1.13.1-75.git8633870.el7.centos.x86_64\n  file /usr/bin/docker-containerd-shim from install of docker-engine-17.03.1.ce-1.el7.centos.x86_64 conflicts with file from package docker-common-2:1.13.1-75.git8633870.el7.centos.x86_64\n  file /usr/bin/dockerd from install of docker-engine-17.03.1.ce-1.el7.centos.x86_64 conflicts with file from package docker-common-2:1.13.1-75.git8633870.el7.centos.x86_64\n\nError Summary\n-------------\n\n", "rc": 1, "results": ["Loaded plugins: fastestmirror, langpacks\nLoading mirror speeds from cached hostfile\n * epel: www.nic.funet.fi\nResolving Dependencies\n--> Running transaction check\n---> Package docker-engine.x86_64 0:17.03.1.ce-1.el7.centos will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package            Arch        Version                       Repository   Size\n================================================================================\nInstalling:\n docker-engine      x86_64      17.03.1.ce-1.el7.centos       Docker       19 M\n\nTransaction Summary\n================================================================================\nInstall  1 Package\n\nTotal size: 19 M\nInstalled size: 19 M\nDownloading packages:\nRunning transaction check\nRunning transaction test\n"]}
fatal: [192.168.0.18]: FAILED! => {"changed": false, "msg": "Error: docker-engine conflicts with 2:docker-1.13.1-88.git07f3374.el7.centos.x86_64\n", "rc": 1, "results": ["Loaded plugins: fastestmirror, langpacks\nLoading mirror speeds from cached hostfile\n * epel: www.nic.funet.fi\nResolving Dependencies\n--> Running transaction check\n---> Package docker-engine.x86_64 0:17.03.1.ce-1.el7.centos will be installed\n--> Processing Conflict: docker-engine-17.03.1.ce-1.el7.centos.x86_64 conflicts docker-io\n--> Restarting Dependency Resolution with new changes.\n--> Running transaction check\n---> Package docker.x86_64 2:1.13.1-75.git8633870.el7.centos will be updated\n---> Package docker.x86_64 2:1.13.1-88.git07f3374.el7.centos will be an update\n--> Processing Dependency: docker-common = 2:1.13.1-88.git07f3374.el7.centos for package: 2:docker-1.13.1-88.git07f3374.el7.centos.x86_64\n--> Processing Dependency: docker-client = 2:1.13.1-88.git07f3374.el7.centos for package: 2:docker-1.13.1-88.git07f3374.el7.centos.x86_64\n--> Running transaction check\n---> Package docker-client.x86_64 2:1.13.1-75.git8633870.el7.centos will be updated\n---> Package docker-client.x86_64 2:1.13.1-88.git07f3374.el7.centos will be an update\n---> Package docker-common.x86_64 2:1.13.1-75.git8633870.el7.centos will be updated\n---> Package docker-common.x86_64 2:1.13.1-88.git07f3374.el7.centos will be an update\n--> Processing Conflict: docker-engine-17.03.1.ce-1.el7.centos.x86_64 conflicts docker-io\n--> Processing Conflict: docker-engine-17.03.1.ce-1.el7.centos.x86_64 conflicts docker\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"]}
        to retry, use: --limit @/root/workspace/kubeadm-ansible/site.retry

PLAY RECAP *******************************************************************************************************************************************************************************************************************************************************************
192.168.0.18               : ok=3    changed=0    unreachable=0    failed=1   
192.168.0.32               : ok=3    changed=0    unreachable=0    failed=1   
192.168.0.33               : ok=3    changed=0    unreachable=0    failed=1   
@cdrage
Copy link
Collaborator

cdrage commented Dec 18, 2018

Looks like you've already got docker installed on your CentOS machines. I'd suggest removing them with yum from each machine and trying the ansible script again. Kubernetes requires a specific version of Docker to run successfully.

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

No branches or pull requests

2 participants