Skip to content
This repository was archived by the owner on Jun 28, 2024. It is now read-only.

Topic/fix k8s tests#462

Merged
grahamwhaley merged 2 commits intokata-containers:masterfrom
chavafg:topic/fix-k8s-tests
Jul 2, 2018
Merged

Topic/fix k8s tests#462
grahamwhaley merged 2 commits intokata-containers:masterfrom
chavafg:topic/fix-k8s-tests

Conversation

@chavafg
Copy link
Contributor

@chavafg chavafg commented Jun 29, 2018

  • Remove CNI configuration before starting kubeadm
  • Add kubectl describe for debugging purposes


# Remove existing CNI configurations:
sudo rm -r /var/lib/cni/networks/*
sudo rm -r /etc/cni/net.d/*
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you move it before you start crio, just in case!

@jcvenegas
Copy link
Member

after address @sboeuf comment lgtm

Copy link
Member

@jcvenegas jcvenegas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@chavafg chavafg force-pushed the topic/fix-k8s-tests branch from f6c0051 to a20366a Compare June 29, 2018 20:35
@chavafg
Copy link
Contributor Author

chavafg commented Jun 29, 2018

fixed.

@GabyCT
Copy link
Contributor

GabyCT commented Jun 29, 2018

lgtm

Approved with PullApprove


# Remove existing CNI configurations:
sudo rm -r /var/lib/cni/networks/*
sudo rm -r /etc/cni/net.d/*
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might fail if those folders are empty, I think adding -f should help here:

sudo rm -rf /var/lib/cni/networks/*
sudo rm -rf /etc/cni/net.d/*

@chavafg chavafg force-pushed the topic/fix-k8s-tests branch 2 times, most recently from 0fedf48 to 2527737 Compare June 30, 2018 04:09
@sboeuf
Copy link

sboeuf commented Jun 30, 2018

@chavafg @jcvenegas we'll have to check this on Monday since it consistently fails for some new reasons now. We'll try another interactive debug session on a vexxhost machine :)

@chavafg chavafg force-pushed the topic/fix-k8s-tests branch from 2527737 to 2fbca3e Compare July 1, 2018 18:57
chavafg added 2 commits July 1, 2018 15:30
Kubernetes will create a new cni configuration when
it is initialized, and if an existing configuration is
found, it can cause network errors.

Fixes: kata-containers#461.

Signed-off-by: Salvador Fuentes <[email protected]>
kubectl describe will allow us to know if something went
wrong when launching a pod.

Depends-on: github.com/kata-containers/runtime#454

Signed-off-by: Salvador Fuentes <[email protected]>
@chavafg chavafg force-pushed the topic/fix-k8s-tests branch from 2fbca3e to 4c4d363 Compare July 1, 2018 20:34
@chavafg
Copy link
Contributor Author

chavafg commented Jul 1, 2018

@sboeuf the cni0 interface needed to be deleted. Updated the PR.

This was the error

Jul 01 17:01:25 fuentess-test kubelet[8655]: E0701 17:01:25.693589    8655 pod_workers.go:186] Error syncing pod 58dab16a-7d4f-11e8-97b8-fa163e3118a0 ("kube-dns-86f4d74b45-n7z2s_kube-system(58dab16a-7d4f-11e8-97
b8-fa163e3118a0)"), skipping: failed to "CreatePodSandbox" for "kube-dns-86f4d74b45-n7z2s_kube-system(58dab16a-7d4f-11e8-97b8-fa163e3118a0)" with CreatePodSandboxError: "CreatePodSandbox for pod \"kube-dns-86f4d
74b45-n7z2s_kube-system(58dab16a-7d4f-11e8-97b8-fa163e3118a0)\" failed: rpc error: code = Unknown desc = failed to create pod network sandbox k8s_kube-dns-86f4d74b45-n7z2s_kube-system_58dab16a-7d4f-11e8-97b8-fa1
63e3118a0_0(61293a3587f3e1156b570cdf8daa2f6a7d527ab0f13b8b823cd40923752259c5): failed to set bridge addr: \"cni0\" already has an IP address different from 10.244.0.1/24"

@grahamwhaley
Copy link
Contributor

Looks like @chavafg fixed the final niggle - I'm going to press the big green button....

@grahamwhaley grahamwhaley merged commit 8d28e6a into kata-containers:master Jul 2, 2018
Pennyzct added a commit to Pennyzct/tests that referenced this pull request Jul 11, 2018
patch kata-containers#462(kata-containers/runtime#462)
has been restructured under upstream review, so refining image-type
to follow change.

Fixes: kata-containers#472

Signed-off-by: Penny Zheng <[email protected]>
@chavafg chavafg deleted the topic/fix-k8s-tests branch September 10, 2018 14:09
caoruidong pushed a commit to caoruidong/runtime that referenced this pull request Sep 14, 2018
Some test were CI test were failing due to a race condition.

Update cri-o repository to have a stable CI.

Update K8s to latest stable version

Depends-on: github.com/kata-containers/tests#462

Fixes: kata-containers#435

Signed-off-by: Jose Carlos Venegas Munoz <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants