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

Upgrade etcd to version 3.4 #894

Merged
merged 13 commits into from
Feb 10, 2020
Merged

Conversation

lazzarello
Copy link
Contributor

Changes the default version of etcd to 3.4 and forces API version 2 for Flanneld.

@lazzarello lazzarello mentioned this pull request Jan 6, 2020
@ktsakalozos
Copy link
Member

Thank you for this PR @lazzarello Please find some comments inline.

@lazzarello
Copy link
Contributor Author

@ktsakalozos trying to build a version with changes to the install hook but I'm getting a false positive error. I'm new to the snapcraft build process so apologies in advance if I'm missing something obvious.

lee@henry:~/src/microk8s$ snapcraft --use-lxd --debug
The LXD provider is offered as a technology preview for early adopters.
The command line interface, container names or lifecycle handling may change in upcoming releases.
Launching a container.
/snap/snapcraft/3440/lib/python3.5/site-packages/pylxd/models/_model.py:116: UserWarning: Attempted to set unknown attribute "type" on instance of "Container"
  key, self.__class__.__name__
Waiting for cloud-init
...............
status: done
Skipping pull cluster-agent (already ran)
Skipping pull libnftnl (already ran)
Skipping pull iptables (already ran)
Skipping pull containerd (already ran)
Skipping pull libnvidia (already ran)
Skipping pull libnvidia-tools (already ran)
Skipping pull microk8s (already ran)
Skipping pull nvidia-runtime (already ran)
Skipping pull nvidia-runtime-hook (already ran)
Skipping build cluster-agent (already ran)
Skipping build libnftnl (already ran)
Skipping build iptables (already ran)
Skipping build containerd (already ran)
Skipping build libnvidia (already ran)
Skipping build libnvidia-tools (already ran)
Updating build step for microk8s ('pull' step changed)
Failed to copy '/root/parts/microk8s/src/.git/objects/48/61d635f0a34943090ffefea1a22efa41c9cd72': no such file or directory.
Check the path and try again.
snapcraft-microk8s # ls -l /root/parts/microk8s/src/.git/objects/48/61d635f0a34943090ffefea1a22efa41c9cd72
-r--r--r-- 1 root root 172 Jan  9 22:42 /root/parts/microk8s/src/.git/objects/48/61d635f0a34943090ffefea1a22efa41c9cd72

@balchua
Copy link
Collaborator

balchua commented Jan 10, 2020

@lazzarello what i do if i get this is to do a clean first.
snapcraft clean after that you can do the normal build.
snapcraft --use-lxd
I tend to get this occasionally, i think when i switch branches.

Copy link
Collaborator

@balchua balchua left a comment

Choose a reason for hiding this comment

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

The check ideally should be in the configure hook instead of install.

There are certain helper functions in the util.sh where you can add or remove options.
To add "options"

  • refresh_opt_in_config <option name> <value> <file>

In your case it will look like this refresh_opt_in_config enable-v2 true etcd

Give it a try.

@lazzarello
Copy link
Contributor Author

lazzarello commented Jan 17, 2020

Thanks for the comments. I'll follow up on this but it's got a little lower in priority on my side.

update got some more time. I'll take this one over the finish line.

@lazzarello
Copy link
Contributor Author

@ktsakalozos lemme know if you can get to a review. CI build tests pass now.

Copy link
Member

@ktsakalozos ktsakalozos left a comment

Choose a reason for hiding this comment

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

LGTM +1 Thank you @lazzarello

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.

3 participants