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

v1.7 backports 2020-10-23 #13721

Merged
merged 4 commits into from
Oct 23, 2020
Merged

v1.7 backports 2020-10-23 #13721

merged 4 commits into from
Oct 23, 2020

Conversation

gandro
Copy link
Member

@gandro gandro commented Oct 23, 2020

Once this PR is merged, you can update the PR labels via:

$ for pr in 12313 13244 13696; do contrib/backporting/set-labels.py $pr done 1.7; done

Each commit had some conflicts. They all seemed rather simple, but it would be good if I get an additional set of eyes on this:

commit 9673c48

Rather trivial merge conflict where v1.7 used errors.Wrapf instead of
fmt.Errorf.

commit c5b709b

Simple multiple merge conflicts in the String() functions, as v1.7 seemed
to use fmt.Sprintf instead of net.JoinHostPort.

I skipped the the changes to the pkg/maps/lbmap/affinity.go file,
which does not seem to exist in the v1.7 branch.

commit 682f682

Simple merge conflict in String() due to loadbalancer.ScopeInternal
check which is not present in v1.7

Skipped the changes to functions related affinity map dumping in
pkg/maps/lbmap/lbmap.go. They do not seem present in v1.7.

Skipped changes to pkg/maps/lbmap/source_range.go
and pkg/maps/lbmap/affinity.go, neither of which ar present in v1.7.

commit 5733f6a

Simple removal of the labels. references in
pkg/labels/filter_test.go due to this file being part
of the labels package instead the labelsfilters package in v1.7.

ArthurChiao and others added 4 commits October 23, 2020 11:59
[ upstream commit 9673c48 ]

Identity allocation uses cache and refcnt mechanisms, if the identity info is
already in remote kvstore and localkeys store, it will just increase the refcnt,
then notify the caller that this identity is reused. The caller will then not
bump up the identity counter. However, there is a corner case that not get
handled: refcnt from 0 to 1, which will result to negative identity count in
the metrics output.

This patch fixes the problem by returning another flag to indicate whether the
identity is first-time referenced (refcnt from 0 to 1) or not. The caller then
uses this information to determine whether or not to increase the counter.

Signed-off-by: arthurchiao <arthurchiao@hotmail.com>
Signed-off-by: Sebastian Wicki <sebastian@isovalent.com>
[ upstream commit c5b709b ]

The port/RevNat info is stored in the bpf map in network byte order;
When displaying the given lbmap content, the port needs to be
converted to host byte order.

Add ToHost() function for lbmap
ToHost converts fields to host byte order.

Signed-off-by: Jianlin Lv <Jianlin.Lv@arm.com>
Signed-off-by: Sebastian Wicki <sebastian@isovalent.com>
[ upstream commit 682f682 ]

Gets rid of ToNetwork() in DumpParser().

Signed-off-by: Jianlin Lv <Jianlin.Lv@arm.com>
Signed-off-by: Sebastian Wicki <sebastian@isovalent.com>
[ upstream commit 5733f6a ]

This change is only adding more unit tests to better understand the
behavior of the labelsfilter as well as improving the documentation for
the expectation of filtering labels.

Signed-off-by: André Martins <andre@cilium.io>
Signed-off-by: Sebastian Wicki <sebastian@isovalent.com>
@gandro gandro requested a review from a team as a code owner October 23, 2020 10:07
@gandro gandro added backport/1.7 kind/backports This PR provides functionality previously merged into master. labels Oct 23, 2020
@gandro
Copy link
Member Author

gandro commented Oct 23, 2020

test-backport-1.7

@gandro
Copy link
Member Author

gandro commented Oct 23, 2020

@gandro
Copy link
Member Author

gandro commented Oct 23, 2020

test-backport-1.7

Copy link
Member

@aanm aanm left a comment

Choose a reason for hiding this comment

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

All good for the first and last commit

Copy link
Member

@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.

Checked the middle PR backport, LGTM based on features that were not present in v1.7 branch.

@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Oct 23, 2020
@joestringer joestringer merged commit 792414c into v1.7 Oct 23, 2020
@joestringer joestringer deleted the pr/v1.7-backport-2020-10-23 branch October 23, 2020 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/backports This PR provides functionality previously merged into master. ready-to-merge This PR has passed all tests and received consensus from code owners to merge.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants