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

Release 1.0.1 #2139

Merged
merged 9 commits into from
Apr 30, 2021
Merged

Release 1.0.1 #2139

merged 9 commits into from
Apr 30, 2021

Conversation

antoninbas
Copy link
Contributor

No description provided.

antoninbas and others added 9 commits April 29, 2021 15:25
When dispatching the build workflow to the
vmware-tanzu/antrea-build-infra repository (to build the multi-arch
Antrea docker image), the docker-tag parameter was wrong (empty string
instead of the Github tag).
The second parameter to wait.PollImmediate (the timeout) is a
time.Duration value. When using 5 as the parameter value, it is
interpreted as 5ns, and not 5s. This means that EnableHostInterface
basically never does any retry.
A Policy rule may have multiple AppliedToGroups, not all of which select
some workloads on the Nodes that the Policy applies to. It's by design
that an AppliedToGroup won't be sent to a Node if it doesn't select any
workload on it, so agents shouldn't require all AppliedToGroups to be
received before it can realize a rule. What's more, it may happen that
none of its AppliedToGroups is sent to a Node when the rule itself is
being evaluated on the Node if it's sent to the Node because other rules
of its parent Policy apply to it.

This patch fixes the logic by making the controller install a rule when
any of its AppliedToGroups can be populated and all of its AddressGroups
can be populated, and uninstall it when none of its AppliedToGroups can
be populated.
IsPresent field of connection should be updated before having
IsConnectionDying check otherwise IsConnectionDying will always
return true, which makes existing connections cannot be updated and
octetDeltaCount always return 0.

This commit also changes the delta count of first record from zero
to its total delta count, modifies throughput calculation of first
record in logstash config and changes names of thoughput diagram
from 'throughput' to 'cumulative bytes'.
Packets to the tunnel or gateway port will go directly to
ConntrackCommitTable and bypass the IngressMetricsTable, which causing these
packets uncounted when applying by certain Networkpolicy with ingress rules.

Fixed by forwarding these packets to IngressMetricsTable.
…pped in AntreaProxy (antrea-io#2101)

For antrea-io#2092

Due to the message size and the implementation of Service in AntreaProxy,
the maximum number of Endpoints that AntreaProxy can support now is 800.
If the the number of Endpoints in given Service exceeds 800, the extra
Endpoints will be dropped and a warning will be logged.

In AntreaProxy, OVS group is the key part of Service implementation. For
now, Antrea is using Openflow 1.3 to communicate with OVS. In previous
design, every bucket of a OVS group has five actions. Two actions for loading
Endpoint IP and port to registers and resubmit action must be preserved.The
other two actions for loading values to register can be moved to flows (in
current patch, they are moved to table 41), and then one message can hold
more bucket items. As a result, the maximum Endpoint has changed from 511
to 800. Unfortunately, to ensure AntreaProxy running correctly, the extra
Endpoints will be dropped.
The Group objects were not reset correctly when attempting to replay
them, leading to confusing error log messages and invalid datapath
state. We fix the implementation of Reset() for groups and we ensure
that the method is called during replay.

We also update the TestOVSFlowReplay e2e test to make sure it is more
comprehensive: instead of just checking Pod-to-Pod connectivity after a
replay, we ensure that the number of OVS flows / groups is the same
before and after a restart / replay. We confirmed that the updated test
fails when the patch is not applied.

Fixes antrea-io#2127
@codecov-commenter
Copy link

codecov-commenter commented Apr 29, 2021

Codecov Report

Merging #2139 (e05c68f) into release-1.0 (a37a34a) will decrease coverage by 34.32%.
The diff coverage is 29.06%.

❗ Current head e05c68f differs from pull request most recent head 3604831. Consider uploading reports for the commit 3604831 to get more accurate results
Impacted file tree graph

@@               Coverage Diff                @@
##           release-1.0    #2139       +/-   ##
================================================
- Coverage        61.07%   26.74%   -34.33%     
================================================
  Files              270      264        -6     
  Lines            20366    19590      -776     
================================================
- Hits             12438     5240     -7198     
- Misses            6635    13686     +7051     
+ Partials          1293      664      -629     
Flag Coverage Δ
e2e-tests 26.74% <29.06%> (?)
kind-e2e-tests ?
unit-tests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/agent/agent.go 35.25% <0.00%> (-12.48%) ⬇️
pkg/agent/controller/networkpolicy/cache.go 12.69% <0.00%> (-72.60%) ⬇️
...ntroller/networkpolicy/networkpolicy_controller.go 39.03% <0.00%> (-32.08%) ⬇️
...gent/controller/networkpolicy/status_controller.go 17.80% <0.00%> (-54.80%) ⬇️
pkg/agent/flowexporter/exporter/exporter.go 13.53% <0.00%> (-55.93%) ⬇️
pkg/agent/proxy/endpoints.go 75.00% <0.00%> (+7.46%) ⬆️
pkg/ovs/openflow/ofctrl_group.go 45.94% <0.00%> (-2.63%) ⬇️
pkg/agent/openflow/client.go 34.65% <25.00%> (-25.19%) ⬇️
pkg/agent/proxy/proxier.go 61.39% <27.27%> (-5.39%) ⬇️
pkg/agent/flowexporter/connections/connections.go 60.56% <100.00%> (-15.67%) ⬇️
... and 146 more

@antoninbas
Copy link
Contributor Author

/test-all
/test-whole-conformance
/test-ipv6-all
/test-ipv6-only-all

@antoninbas
Copy link
Contributor Author

/test-ipv6-networkpolicy
/test-ipv6-only-e2e
/test-windows-networkpolicy

@antoninbas
Copy link
Contributor Author

/test-networkpolicy
/test-ipv6-e2e
/test-ipv6-networkpolicy

Copy link
Member

@tnqn tnqn left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@antoninbas
Copy link
Contributor Author

TestTraceflowIntraNode/traceflowGroupTest/intraNodeUDPDstIPTraceflowIPv6 is failing in jenkins-ipv6-ds-e2e. I believe this is a well-known issue which has been fixed in main already (#2114).

@antoninbas antoninbas merged commit b33b93d into antrea-io:release-1.0 Apr 30, 2021
@antoninbas antoninbas deleted the release-1.0.1 branch April 30, 2021 04:41
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.

8 participants