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

Unmet dependencies on cluster create #195

Closed
Zebradil opened this issue Oct 7, 2018 · 3 comments
Closed

Unmet dependencies on cluster create #195

Zebradil opened this issue Oct 7, 2018 · 3 comments

Comments

@Zebradil
Copy link

Zebradil commented Oct 7, 2018

Got the following error while trying to create a new cluster:

stderr:Process exited with status 1002018/10/07 00:44:49 run failed
command:apt-get install -y docker-ce kubelet=1.9.6-00 kubeadm=1.9.6-00 kubectl=1.9.6-00 wireguard linux-headers-$(uname -r) linux-headers-virtual
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.6.0) but 0.6.0-02 is to be installed

As a workaround I explicitly added kubernetes-cni=0.6.0-00 into installation instruction:

diff --git a/pkg/clustermanager/provision_node.go b/pkg/clustermanager/provision_node.go
index 39f245f..5a99b46 100644
--- a/pkg/clustermanager/provision_node.go
+++ b/pkg/clustermanager/provision_node.go
@@ -168,7 +168,7 @@ func (provisioner *NodeProvisioner) updateAndInstall() error {
 	}
 
 	provisioner.eventService.AddEvent(provisioner.node.Name, "installing packages")
-	command := fmt.Sprintf("apt-get install -y docker-ce kubelet=%s kubeadm=%s kubectl=%s wireguard linux-headers-$(uname -r) linux-headers-virtual",
+	command := fmt.Sprintf("apt-get install -y docker-ce kubelet=%s kubeadm=%s kubectl=%s kubernetes-cni=0.6.0-00 wireguard linux-headers-$(uname -r) linux-headers-virtual",
 		*K8sVersion, *K8sVersion, *K8sVersion)
 	_, err = provisioner.communicator.RunCmd(provisioner.node, command)
 	if err != nil {
@Zebradil
Copy link
Author

Zebradil commented Oct 7, 2018

However, it'd be better to avoid hardcoding versions in such way. I can send PR for this if you like.

@JohnnyQQQQ
Copy link
Collaborator

JohnnyQQQQ commented Oct 7, 2018

@Zebradil I just merged #193 which should fix the issue. You can build from source if you need the fix now.

@Zebradil
Copy link
Author

Zebradil commented Oct 7, 2018

Cool stuff. Thanks!

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