Skip to content

retry removing finalizer from app cr #417

Open

Description

@cppforlife

Describe the problem/challenge you have

faced with following error: Delete failed: Unblocking for deploy: Updating app: Operation cannot be fulfilled on apps.kappctrl.k14s.io "xxx": the object has been modified; please apply your changes to the latest version and try again

Describe the solution you'd like
lets put in a retry behaviour for finalizer removal for both pkgr and app.


Vote on this request

This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.

👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"

We are also happy to receive and review Pull Requests if you want to help working on this issue.

Activity

  1. added
    enhancementThis issue is a feature request
    carvel-triageThis issue has not yet been reviewed for validity
    on Oct 29, 2021
  2. danielhelfand commented on Nov 1, 2021

    @danielhelfand
    Contributor

    Delete failed: Unblocking for deploy: Updating app: Operation cannot be fulfilled on apps.kappctrl.k14s.io "xxx": the object has been modified; please apply your changes to the latest version and try again

    Do we have any details on how to reproduce this error?

    lets put in a retry behaviour for finalizer removal for both pkgr and app.

    We should always retry, or is there a way to isolate this to a specific case?

    For the App CR, the finalizer removal func is located here: https://github.com/vmware-tanzu/carvel-kapp-controller/blob/4b0307d377e429c00d8f5cf6499bf59989f71f44/pkg/app/crd_app.go#L63

    For the PackageRepository, the finalizer removal func is here: https://github.com/vmware-tanzu/carvel-kapp-controller/blob/f30b42e0cbeb72e3b29f50a496abbc956c35c5de/pkg/pkgrepository/crd_app.go#L60

  3. cppforlife commented on Nov 4, 2021

    @cppforlife
    ContributorAuthor

    Do we have any details on how to reproduce this error?

    i dont have any specific repro scenarios (i was just deleting a package that installed other packages). i imagine it's either kapp-controller doing some updates, or just some other controller.

    We should always retry, or is there a way to isolate this to a specific case?

    i think we should be able to isolate retry logic just for unblock* methods.

  4. added
    carvel-acceptedThis issue should be considered for future work and that the triage process has been completed
    and removed
    carvel-triageThis issue has not yet been reviewed for validity
    on Nov 22, 2021
  5. danielhelfand commented on Nov 22, 2021

    @danielhelfand
    Contributor

    I think it would still be worthwhile to identify a way to consistently reproduce this. Any further thoughts you can provide on this would help.

    i think we should be able to isolate retry logic just for unblock* methods.

    Sounds reasonable to me though.

  6. moved this to To Triage in Carvelon Aug 18, 2022
  7. moved this from To Triage to Unprioritized in Carvelon Feb 22, 2023
  8. added
    priority/important-longtermImportant over the long term, but may not be staffed and/or may need multiple releases to complete.
    bugThis issue describes a defect or unexpected behavior
    on Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue describes a defect or unexpected behaviorcarvel-acceptedThis issue should be considered for future work and that the triage process has been completedenhancementThis issue is a feature requestpriority/important-longtermImportant over the long term, but may not be staffed and/or may need multiple releases to complete.

    Type

    No type

    Projects

    • Status
      Unprioritized

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions