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

Resourcebinding NotFound. #1195

Closed
XiShanYongYe-Chang opened this issue Dec 30, 2021 · 2 comments · Fixed by #1199 or #1368
Closed

Resourcebinding NotFound. #1195

XiShanYongYe-Chang opened this issue Dec 30, 2021 · 2 comments · Fixed by #1199 or #1368
Assignees
Labels
kind/flake Categorizes issue or PR as related to a flaky test.
Milestone

Comments

@XiShanYongYe-Chang
Copy link
Member

Which jobs are flaking:

https://github.com/karmada-io/karmada/runs/4663848781?check_suite_focus=true

propagation with label and group constraints testing Deployment propagation testing 
  deployment propagation with label and group constraints testing
  /home/runner/work/karmada/karmada/test/e2e/scheduling_test.go:70
STEP: Creating PropagationPolicy(karmadatest-mv8/deploy-z8w)
STEP: Creating Deployment(karmadatest-mv8/deploy-z8w)
STEP: collect the target clusters in resource binding

• Failure [300.127 seconds]
propagation with label and group constraints testing
/home/runner/work/karmada/karmada/test/e2e/scheduling_test.go:36
  Deployment propagation testing
  /home/runner/work/karmada/karmada/test/e2e/scheduling_test.go:37
    deployment propagation with label and group constraints testing [It]
    /home/runner/work/karmada/karmada/test/e2e/scheduling_test.go:70

    Timed out after 300.001s.
    Error: Assertion in callback at /home/runner/work/karmada/karmada/test/e2e/framework/deployment.go:111 failed:
    Unexpected error:
        <*errors.StatusError | 0xc0005fc3c0>: {
            ErrStatus: {
                TypeMeta: {Kind: "", APIVersion: ""},
                ListMeta: {
                    SelfLink: "",
                    ResourceVersion: "",
                    Continue: "",
                    RemainingItemCount: nil,
                },
                Status: "Failure",
                Message: "resourcebindings.work.karmada.io \"deploy-z8w-deployment\" not found",
                Reason: "NotFound",
                Details: {
                    Name: "deploy-z8w-deployment",
                    Group: "work.karmada.io",
                    Kind: "resourcebindings",
                    UID: "",
                    Causes: nil,
                    RetryAfterSeconds: 0,
                },
                Code: 404,
            },
        }
        resourcebindings.work.karmada.io "deploy-z8w-deployment" not found
    occurred

    /home/runner/work/karmada/karmada/test/e2e/framework/deployment.go:118

Which test(s) are flaking:

ginkgo.It("deployment propagation with label and group constraints testing", func() {

Reason for failure:

Anything else we need to know:

Key logs:

2021-12-30T03:49:20.818645777Z stderr F I1230 03:49:20.818201       1 detector.go:206] Reconciling object: apps/v1, kind=Deployment, karmadatest-mv8/deploy-z8w
2021-12-30T03:49:20.820743343Z stderr F I1230 03:49:20.819080       1 detector.go:339] attempts to match policy for resource(apps/v1, kind=Deployment, karmadatest-mv8/deploy-z8w)
2021-12-30T03:49:20.821621071Z stderr F I1230 03:49:20.821444       1 detector.go:346] no propagationpolicy find in namespace(karmadatest-mv8).
2021-12-30T03:49:20.841408099Z stderr F I1230 03:49:20.841283       1 detector.go:751] Create PropagationPolicy(policy.karmada.io/v1alpha1, kind=PropagationPolicy, karmadatest-mv8/deploy-z8w)
2021-12-30T03:49:20.8414287Z stderr F I1230 03:49:20.841330       1 detector.go:793] PropagationPolicy(karmadatest-mv8/deploy-z8w) has been added.
2021-12-30T03:49:20.842470833Z stderr F I1230 03:49:20.842353       1 detector.go:377] attempts to match cluster policy for resource(apps/v1, kind=Deployment, karmadatest-mv8/deploy-z8w)
2021-12-30T03:49:20.842894446Z stderr F I1230 03:49:20.842766       1 detector.go:384] no propagationpolicy find.
2021-12-30T03:49:20.861188527Z stderr F I1230 03:49:20.857122       1 detector.go:946] Matched 0 resources by policy(karmadatest-mv8/deploy-z8w)
2021-12-30T03:49:20.87985912Z stderr F I1230 03:49:20.878372       1 detector.go:707] Add object(apps/v1, kind=Deployment, karmadatest-mv8/deploy-z8w) to waiting list, length of list is: 194
@XiShanYongYe-Chang XiShanYongYe-Chang added the kind/flake Categorizes issue or PR as related to a flaky test. label Dec 30, 2021
@XiShanYongYe-Chang
Copy link
Member Author

XiShanYongYe-Chang commented Dec 30, 2021

Analysis:
When PropagationPolicy and Resource are being processed at the same time, they cannot find each other. As a result, the binding creation process is not entered. This is a coincidence. Currently, I have only encountered this problem.

@RainbowMango
Copy link
Member

/assign @dddddai
(Just for issue triage.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/flake Categorizes issue or PR as related to a flaky test.
Projects
Status: Done
3 participants