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

test: Do not require netpols in 'waitNextPolicyRevisions()' #17769

Merged
merged 1 commit into from Nov 5, 2021

Conversation

jrajahalme
Copy link
Member

'waitNextPolicyRevisions()' currently returns 'true' when no k8s
network policies are applied, bypassing the Cilium agent policy
revision wait in this case. As our tests typically (never?) have no
NPs applied, we have not actually waited for CNP or CCNP changes to
take place in all Cilium PODs before proceeding with the tests. This
may have caused CI flakes.

Fix this by removing the code that checks for the presence of NPs.

Reported-by: Paul Chaignon paul@cilium.io
Signed-off-by: Jarno Rajahalme jarno@isovalent.com

@jrajahalme jrajahalme added area/CI Continuous Integration testing issue or flake release-note/ci This PR makes changes to the CI. ci/flake This is a known failure that occurs in the tree. Please investigate me! labels Nov 3, 2021
@jrajahalme jrajahalme requested a review from a team as a code owner November 3, 2021 17:01
@jrajahalme
Copy link
Member Author

/test

Copy link
Member

@christarazi christarazi left a comment

Choose a reason for hiding this comment

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

(Meant to hit approve, can't delete this comment)

Copy link
Member

@christarazi christarazi left a comment

Choose a reason for hiding this comment

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

😮

@maintainer-s-little-helper maintainer-s-little-helper bot added this to Needs backport from master in 1.10.6 Nov 3, 2021
@maintainer-s-little-helper maintainer-s-little-helper bot added this to Needs backport from master in 1.9.11 Nov 3, 2021
@maintainer-s-little-helper maintainer-s-little-helper bot added this to Needs backport from master in 1.8.13 Nov 3, 2021
'waitNextPolicyRevisions()' currently returns 'true' when no k8s
network policies are applied, bypassing the Cilium agent policy
revision wait in this case. As our tests typically (never?) have no
NPs applied, we have not actually waited for CNP or CCNP changes to
take place in all Cilium PODs before proceeding with the tests. This
may have caused CI flakes.

Fix this by removing the code that checks for the presence of NPs.

Reported-by: Paul Chaignon <paul@cilium.io>
Signed-off-by: Jarno Rajahalme <jarno@isovalent.com>
@jrajahalme
Copy link
Member Author

jrajahalme commented Nov 4, 2021

/test

Job 'Cilium-PR-K8s-1.20-kernel-5.4' failed and has not been observed before, so may be related to your PR:

Click to show.

Test Name

K8sDatapathConfig AutoDirectNodeRoutes Check connectivity with sockops and direct routing

Failure Output

FAIL: Error creating resource /home/jenkins/workspace/Cilium-PR-K8s-1.20-kernel-5.4/src/github.com/cilium/cilium/test/k8sT/manifests/l3-policy-demo.yaml: Cannot retrieve cilium pod cilium-7cq7z policy revision: cannot get revision from json output '': could not parse JSON from command "kubectl exec -n kube-system cilium-7cq7z -- cilium policy get -o json"

If it is a flake, comment /mlh new-flake Cilium-PR-K8s-1.20-kernel-5.4 so I can create a new GitHub issue to track it.

@pchaigno
Copy link
Member

pchaigno commented Nov 5, 2021

Reviews are in. All affected test suites passed except for k8s-1.20-kernel-5.4 which failed with known flake #16852. Marking ready to merge and merging.

@pchaigno pchaigno added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Nov 5, 2021
@pchaigno pchaigno merged commit c8d2fc7 into cilium:master Nov 5, 2021
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Needs backport from master to Backport pending to v1.8 in 1.8.13 Nov 5, 2021
@joestringer joestringer added this to Backport pending to v1.8 in 1.8.14 Nov 5, 2021
@joestringer joestringer removed this from Backport pending to v1.8 in 1.8.13 Nov 5, 2021
@joestringer joestringer added this to Needs backport from master in 1.9.12 Nov 5, 2021
@joestringer joestringer removed this from Needs backport from master in 1.9.11 Nov 5, 2021
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Needs backport from master to Backport pending to v1.10 in 1.10.6 Nov 15, 2021
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Backport pending to v1.10 to Backport done to v1.10 in 1.10.6 Nov 23, 2021
@joestringer joestringer moved this from Needs backport from master to Backport done to v1.9 in 1.9.12 Dec 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/CI Continuous Integration testing issue or flake ci/flake This is a known failure that occurs in the tree. Please investigate me! ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/ci This PR makes changes to the CI.
Projects
No open projects
1.10.6
Backport done to v1.10
1.8.14
Backport pending to v1.8
1.9.12
Backport done to v1.9
Development

Successfully merging this pull request may close these issues.

None yet

7 participants