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

The ReportType cluster(appsubreport) still exists, even though the application ReportType has been removed #323

Open
yanmxa opened this issue Mar 22, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@yanmxa
Copy link
Member

yanmxa commented Mar 22, 2023

Describe the bug
When I deploy a subscription on OCM hub, I can see the below appsubreport on hub:

» oc get appsubreport -A
NAMESPACE            NAME                 REPORTTYPE    DEPLOYED   INPROGRESS   FAILED   PROPAGATIONFAILED   CLUSTERS   AGE
helloworld           helloworld-appsub    Application   1          0            0        0                   1          5m20s
kind-hub1-cluster1   kind-hub1-cluster1   Cluster       n/a        n/a          n/a      n/a                 n/a        7s

Then I delete the subscription, and see that the appsubreport helloworld(Application) is gone, but the other appsubreport(Cluster) created by the subscription is still there.

» oc get appsubreport -A
NAMESPACE            NAME                 REPORTTYPE   DEPLOYED   INPROGRESS   FAILED   PROPAGATIONFAILED   CLUSTERS   AGE
kind-hub1-cluster1   kind-hub1-cluster1   Cluster      n/a        n/a          n/a      n/a                 n/a        32m

Expected behavior
I understand that deleting subscribtion should delete all AppSubreports related to it, but now some reports of cluster type are still retained. Is this the intention?

Environment ie: Kubernetes version:

» oc version                                                         
Client Version: 4.8.11
Kubernetes Version: v1.23.6
@mikeshng
Copy link
Member

@philipwu08 @lennysgarage do you guys know what was the reason of leaving the cluster report behind?

I guess it's to avoid unnecessary writes and deletes since it's the cluster report type so there is always only one per managed cluster.

@philipwu08
Copy link
Collaborator

If there's no more appsubs on that cluster I think we should remove the report. I don't think we need to keep it around.

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
None yet
Development

No branches or pull requests

3 participants