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: Delete hubble-ca-secret when cleaning up #17591

Merged
merged 1 commit into from
Oct 17, 2021

Conversation

jrajahalme
Copy link
Member

@jrajahalme jrajahalme commented Oct 13, 2021

Remove hubble-ca-secret when cleaning up Cilium components. This may help
avoid test fails installing Cilium with this error message:

Error: rendered manifests contain a resource that already
exists. Unable to continue with install: existing resource conflict:
kind: Secret, namespace: kube-system, name: hubble-ca-secret

Signed-off-by: Jarno Rajahalme jarno@isovalent.com

@jrajahalme jrajahalme added kind/bug/CI This is a bug in the testing code. area/CI-improvement Topic or proposal to improve the Continuous Integration workflow release-note/misc This PR makes changes that have no direct user impact. labels Oct 13, 2021
@jrajahalme jrajahalme requested a review from a team as a code owner October 13, 2021 13:21
@tklauser
Copy link
Member

tklauser commented Oct 13, 2021

/test

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

Click to show.

Test Name

K8sIstioTest Istio Bookinfo Demo Tests bookinfo inter-service connectivity

Failure Output

FAIL: Found 1 k8s-app=cilium logs matching list of errors that must be investigated:

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

@aanm
Copy link
Member

aanm commented Oct 13, 2021

@jrajahalme I assume we can close #17525?

@jrajahalme
Copy link
Member Author

@jrajahalme I assume we can close #17525?

I had forgotten about that. It has more reviews and still does not need to be rebased, so I'll close this one instead.

@jrajahalme jrajahalme closed this Oct 15, 2021
@jrajahalme
Copy link
Member Author

Oops, there are a number of CI flakes on #17525, so I'll reopen this and close that as some of them might have been resolved in the meanwhile.

@jrajahalme jrajahalme reopened this Oct 15, 2021
@jrajahalme
Copy link
Member Author

jrajahalme commented Oct 15, 2021

/test

Job 'Cilium-PR-K8s-1.20-kernel-4.19' has 2 failures but they might be new flakes since it also hit 1 known flakes: #17270 (94.10)

@@ -2517,6 +2517,9 @@ func (kub *Kubectl) CiliumInstall(filename string, options map[string]string) er
return res.GetErr("Unable to delete existing cilium YAML")
}

// Remove any dangling resources not yet deleted
kub.CleanupCiliumComponents()

Copy link
Member Author

Choose a reason for hiding this comment

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

Adding this here was a mistake.

CleanupCiliumComponents removes all the cilium related components from the cluster, including CRDs.
This means that CiliumNode resources get deleted, too. This causes any new Cilium nodes to get
reassigned IP allocation pools, which may be different than before. This then causes all endpoints
to fail restore and get in a bad shape. This means that all Cilium-managed pods must also be deleted
when this is called!

@jrajahalme jrajahalme marked this pull request as draft October 15, 2021 12:47
Remove hubble-ca-secret when cleaning up Cilium components. This may help
avoid test fails installing Cilium with this error message:

  Error: rendered manifests contain a resource that already
  exists. Unable to continue with install: existing resource conflict:
  kind: Secret, namespace: kube-system, name: hubble-ca-secret

Signed-off-by: Jarno Rajahalme <jarno@isovalent.com>
@jrajahalme jrajahalme marked this pull request as ready for review October 15, 2021 12:58
@nathanjsweet
Copy link
Member

/test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/CI-improvement Topic or proposal to improve the Continuous Integration workflow kind/bug/CI This is a bug in the testing code. release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants