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

Re-enable cilium when upgrading #625

Merged
merged 2 commits into from
Sep 3, 2019
Merged

Re-enable cilium when upgrading #625

merged 2 commits into from
Sep 3, 2019

Conversation

ktsakalozos
Copy link
Member

@joestringer the cilium addon will not upgrade as expected. To see what happens deploy microk8s from beta enable some addons and cilium and then upgrade refresh to edge:

sudo snap install microk8s --classic --beta
sudo microk8s.status --wait-ready
sudo microk8s.enable dns dashboard
sudo microk8s.enable cilium
# simulate an upgrade
sudo snap refresh microk8s --channel edge

The cilium socket seems to be missing, but I was not able to revive it in an "elegant" way.

This PR will detect if cilium is enabled and and then force a re-enabling/re-installation. Not that pretty but I believe it works.

As this blocks our release cycle (failing upgrades will stop any new releases) I would like to merge it soon and perhaps do a proper fix at a later stage based on your feedback. Many thanks.

Copy link
Contributor

@joestringer joestringer left a comment

Choose a reason for hiding this comment

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

If the socket is missing, then the daemon is likely not running. Is there any chance that some daemon logs from Cilium could be floating around somewhere after upgrade?

Also worth verifying that it's not just stuck pulling a new container image because the imagePullPolicy is set to Always (rather than what it should be, IfNotPresent).

One minor comment below but otherwise looks good.

@@ -302,3 +302,9 @@ then
systemctl restart snap.${SNAP_NAME}.daemon-apiserver
fi

if [ -f "${SNAP_DATA}/bin/cilium" ]
Copy link
Contributor

Choose a reason for hiding this comment

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

@ktsakalozos ktsakalozos merged commit b485fd2 into master Sep 3, 2019
@ktsakalozos ktsakalozos deleted the bug/cilium-upgrade branch October 14, 2019 10:28
ianbibby pushed a commit to ianbibby/microk8s that referenced this pull request Jan 10, 2020
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

Successfully merging this pull request may close these issues.

2 participants