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

[BUG] the cnf-default namespace stays terminating because of remaining resources #2212

Open
collivier opened this issue Jan 27, 2025 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@collivier
Copy link
Collaborator

Describe the bug

cnf_testsuite cannot be run via functest kubernetes twice because the cnf-default namespace cannot be fully deleted

kubectl describe namespaces cnf-default
Name:         cnf-default
Labels:       kubernetes.io/metadata.name=cnf-default
              pod-security.kubernetes.io/enforce=privileged
Annotations:  <none>
Status:       Terminating
Conditions:
  Type                                         Status  LastTransitionTime               Reason                Message
  ----                                         ------  ------------------               ------                -------
  NamespaceDeletionDiscoveryFailure            False   Fri, 24 Jan 2025 19:33:06 +0000  ResourcesDiscovered   All resources successfully discovered
  NamespaceDeletionGroupVersionParsingFailure  False   Fri, 24 Jan 2025 19:33:06 +0000  ParsedGroupVersions   All legacy kube types successfully parsed
  NamespaceDeletionContentFailure              False   Fri, 24 Jan 2025 19:33:06 +0000  ContentDeleted        All content successfully deleted, may be waiting on finalization
  NamespaceContentRemaining                    True    Fri, 24 Jan 2025 19:33:06 +0000  SomeResourcesRemain   Some resources are remaining: chaosengines.litmuschaos.io has 1 resource instances
  NamespaceFinalizersRemaining                 True    Fri, 24 Jan 2025 19:33:06 +0000  SomeFinalizersRemain  Some content in the namespace has finalizers remaining: chaosengine.litmuschaos.io/finalizer in 1 resource instances

No resource quota.

No LimitRange resource.

To Reproduce

run cnf_testsuite via functest_kuberntes and then call kubectl describe namespaces cnf-default

@collivier collivier added the bug Something isn't working label Jan 27, 2025
@svteb
Copy link
Collaborator

svteb commented Jan 28, 2025

Seems like we should review/update the tools_uninstall task and its sub-tasks, far as I know we do not exactly check whether any dependencies get properly uninstalled.

@collivier
Copy link
Collaborator Author

It's ok by adding an extra call to uninstall_all (waiting for 1.4.1)
https://gerrit.opnfv.org/gerrit/c/functest-kubernetes/+/74723

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: To do
Development

No branches or pull requests

2 participants