ansible-kubernetes-openshift-pi3 icon indicating copy to clipboard operation
ansible-kubernetes-openshift-pi3 copied to clipboard

Error to exec playbook "kubernetes.yml"

Open JaviPG opened this issue 7 years ago • 6 comments

I trying build the cluster but I have the follow error when I tried launch "ansible-playbook -i hosts kubernetes.yml"

"item": [ "kubelet=1.8.1*", "kubeadm=1.8.1*", "kubectl=1.8.1*", "kubernetes-cni" ], "msg": [ "'/usr/bin/apt-get -y -o "Dpkg::Options::=--force-confdef" -o "Dpkg::Options::=--force-confold" --force-yes install 'kubelet=1.8.1*' 'kubeadm=1.8.1*' 'kubectl=1.8.1*' 'kubernetes-cni'' failed: E: Unable to correct problems, you have held broken packages.", "" ], "rc": "100", "stderr": [ "E: Unable to correct problems, you have held broken packages.", "" ], "stderr_lines": [ "E: Unable to correct problems, you have held broken packages." ], "stdout": [ "Reading package lists...", "Building dependency tree...", "Reading state information...", "Some packages could not be installed. This may mean that you have", "requested an impossible situation or if you are using the unstable", "distribution that some required packages have not yet been created", "or been moved out of Incoming.", "The following information may help to resolve the situation:", "", "The following packages have unmet dependencies:", " kubelet : Depends: kubernetes-cni (= 0.5.1) but 0.6.0-00 is to be installed", "" ],

Could you kindly help me please?

JaviPG avatar Jan 08 '18 01:01 JaviPG

I have to check this later. Seems that there have been some package updates lately. 'hope to resolve this until the weekend.

rhuss avatar Jan 10 '18 09:01 rhuss

First of all thank you for your interest in helping me.

At the end, I could run the cluster. I changed kubernetes version 1.8.1 to 1.9.1 in the follow file: roles / kubernetes / defaults / main.yml

@rhuss, thanks for your contribution. This project is very interestant and powerfull. I'll try colaborate with you.

JaviPG avatar Jan 10 '18 15:01 JaviPG

Changed the version in the file you mentioned. Not really a impact. Seems that there is kind of mix-n-match of versions of kubernetes/docker. Has anyone a running cluster out there. with a actual version. Or which versions do work together? As soon there is an apt-get upgrade, seems it gets destroyed.

patrickschlaepfer avatar Feb 01 '18 20:02 patrickschlaepfer

This project is pure magic ! :')

kubernetesVersion: "latest-1.8" needs to be changed to : kubernetesVersion: "latest-1.9"

in roles/kubernetes/templates/kubeadm.yml

(and also thanks to JaviPG, I could run the cluster. I also changed kubernetes version 1.8.1 to 1.9.2 in roles/kubernetes/defaults/main.yml)

uplg avatar Feb 07 '18 13:02 uplg

@Ghostfly thanks for the heads up ! I'm still behind in my backlog, so I won't be able to update playbooks within the next two weeks. Sorry ...

PRs are always welcome ;-)

rhuss avatar Feb 08 '18 11:02 rhuss

https://github.com/Project31/ansible-kubernetes-openshift-pi3/pull/40 update to 1.9 + some other stuff :)

mjudeikis avatar Feb 25 '18 19:02 mjudeikis