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

Add more logging when ns deletion fails to work #1206

Merged
merged 2 commits into from
Oct 15, 2018

Conversation

venturasr
Copy link
Contributor

Description

This pull request add some logging to test-kubeless, in order to identify a possible reason for the time out when namespaces are being deleted.

Related issue(s)

@venturasr venturasr force-pushed the add-more-log-to-test-kubeless branch 2 times, most recently from 797ac0f to 1b99beb Compare October 10, 2018 13:30
@venturasr venturasr force-pushed the add-more-log-to-test-kubeless branch from 8db9172 to 38fb097 Compare October 10, 2018 13:37
@@ -41,11 +41,17 @@ func deleteNamespace(namespace string) {
for {
select {
case <-timeout:
cmd := exec.Command("kubectl", "get", "ns", namespace, "-o yaml")
Copy link
Contributor

Choose a reason for hiding this comment

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

It will not solve our problem. Printing namespace details tell us only that namespace has "kubernetes" finalizer - but still, we don't know which object from this namespace cannot be removed.
Could you analize "namespaced_resources_deleter.go" (https://github.com/kubernetes/kubernetes/blob/7f23a743e8c23ac6489340bbb34fa6f1d392db9d/pkg/controller/namespace/deletion/namespaced_resources_deleter.go), especially deleteAllContent method. They are using the dynamic client to detect what should be deleted. Maybe we can do the same and just print resources which are still not deleted after the timeout (6min)

@sayanh sayanh force-pushed the add-more-log-to-test-kubeless branch 8 times, most recently from 0094b4f to 3185738 Compare October 15, 2018 12:21
- Added force deletion of all k8s resources
- Added extensive logging while deletion of ns times out
@sayanh sayanh force-pushed the add-more-log-to-test-kubeless branch from 3185738 to c7d4408 Compare October 15, 2018 12:34
@sayanh sayanh changed the title Add more logging to indetify finalizers in namespace Add more logging when ns deletion fails to work Oct 15, 2018
Copy link
Contributor

@aszecowka aszecowka left a comment

Choose a reason for hiding this comment

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

lgtm

@sayanh sayanh merged commit 1bc49b4 into kyma-project:master Oct 15, 2018
@venturasr venturasr deleted the add-more-log-to-test-kubeless branch January 27, 2019 17:04
grischperl pushed a commit to grischperl/kyma that referenced this pull request Nov 10, 2020
* Added pre-master-kyma-gke-integration-xip-dubg job.

* Added debug job tests in separate function due to conflicts with other presubmit jobs settings.
grischperl pushed a commit to grischperl/kyma that referenced this pull request Nov 10, 2020
* Added pre-master-kyma-gke-integration-xip-dubg job.

* Added missing base_ref value for extra_refs.

* Moved debug job tests to separate function due to conflicts with other presubmit jobs settings.

* Changed branch name.

* Changed SkipReport test expected value.

* Reverted CLEANUP_CLUSTER value. It will be changed after merge.

* Disabled cluster cleanup.

* Enabled xip.io DNS for kyma-gke-integration-xip-debug job.

* Corrected typo in job template name.
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.

4 participants