Skip to content
This repository has been archived by the owner on Jul 1, 2023. It is now read-only.

Update fork with upstream fixes/changes #11

Merged
merged 6 commits into from
Jan 25, 2022
Merged

Conversation

knisbet
Copy link

@knisbet knisbet commented Jan 25, 2022

Pulls in upstream changes from:

Also tweaks / fixes

  • We're still using glog and not klog, so tweaks the above patches to use glog
  • re-vendor of dependencies
  • disable udp backend tests. We don't seem to have this backend and don't use it, so avoids a test failure.

vadorovsky and others added 6 commits January 24, 2022 23:58
systemd 242+ assigns MAC addresses for all virtual devices which don't
have the address assigned already. That resulted in systemd overriding
MAC addresses of flannel.* interfaces. The fix which prevents systemd
from setting the address is to define the concrete MAC address when
creating the link.

Fixes: flannel-io#1155
Ref: k3s-io/k3s#4188
Signed-off-by: Michal Rostecki <mrostecki@opensuse.org>
(cherry picked from commit 0198d5d)
Currently flannel interface ip addresses are checked on startup when
using vxlan and ipip backends. If multiple addresses are found, startup
fails fatally. If only one address is found and is not the currently
leased one, it will be assumed that it comes from a previous lease and
be removed.

This criteria seems arbitrary both in how it is done and in its timing.
It may cause failures in situations where it might not be strictly
necessary like for example if the node is running a dhcp client that is
assigning link local addresses to all interfaces. It also might fail at
flannel unexpected restarts which are completly unrelated to
the external event that caused the unexpected modification in the
flannel interface.

This patch proposes to concern and check only ip address within the
flannel network and takes the simple approach to ignore any other ip
addresses assuming these would pose no problem on flannel operation.

A discarded but more agressive alternative would be to remove all
addresses that are not the currently leased one.

Fixes flannel-io#1060

Signed-off-by: Jaime Caamaño Ruiz <jcaamano@suse.com>
(cherry picked from commit 33a2fac)
(cherry picked from commit 78035d0)
This PR fixs an issue when flannel gets illegal subnet event in
watching leases, it doesn't move forward the etcd cursor and
will stuck in the same invalid event forever.

(cherry picked from commit 1a1b6f1)
@knisbet knisbet merged commit 8b92dc7 into master Jan 25, 2022
@knisbet knisbet deleted the kevin/master/update-fork branch January 25, 2022 16:32
knisbet pushed a commit to gravitational/planet that referenced this pull request Jan 25, 2022
knisbet pushed a commit to gravitational/planet that referenced this pull request Jan 26, 2022
knisbet pushed a commit to gravitational/planet that referenced this pull request Jan 26, 2022
knisbet pushed a commit to gravitational/planet that referenced this pull request Jan 26, 2022
knisbet pushed a commit to gravitational/planet that referenced this pull request Jan 26, 2022
knisbet pushed a commit to gravitational/planet that referenced this pull request Jan 26, 2022
knisbet pushed a commit to gravitational/planet that referenced this pull request Jan 26, 2022
knisbet pushed a commit to gravitational/planet that referenced this pull request Jan 26, 2022
knisbet pushed a commit to gravitational/planet that referenced this pull request Jan 26, 2022
knisbet pushed a commit to gravitational/planet that referenced this pull request Jan 26, 2022
knisbet pushed a commit to gravitational/planet that referenced this pull request Jan 26, 2022
knisbet pushed a commit to gravitational/gravity that referenced this pull request Jan 26, 2022
knisbet pushed a commit to gravitational/gravity that referenced this pull request Jan 26, 2022
knisbet pushed a commit to gravitational/gravity that referenced this pull request Jan 26, 2022
knisbet pushed a commit to gravitational/gravity that referenced this pull request Jan 26, 2022
knisbet pushed a commit to gravitational/gravity that referenced this pull request Jan 26, 2022
knisbet pushed a commit to gravitational/gravity that referenced this pull request Jan 26, 2022
knisbet pushed a commit to gravitational/gravity that referenced this pull request Jan 26, 2022
knisbet pushed a commit to gravitational/gravity that referenced this pull request Jan 26, 2022
knisbet pushed a commit to gravitational/gravity that referenced this pull request Jan 26, 2022
knisbet pushed a commit to gravitational/gravity that referenced this pull request Feb 1, 2022
* update flannel fork: gravitational/flannel#11

* Revert go 1.17.5 changes in Planet

gravitational/planet#880

Co-authored-by: Bernard Kim <bernard@goteleport.com>
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