The reconciler loop should exit after setting metadata to prevent "the object has been modified" error

Open
#147 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
go, kubernetes

Research direction

Start by locating the reconciler loop that applies metadata such as finalizers, then reproduce the issue by applying and deleting the sample CRs. Done means the reconciler exits after changing metadata and the log no longer records the object-modified error.

Written by the indexing model from the issue text.

Description

bug
Bug report criteria
  • This bug report is not security related, security issues should be disclosed privately via netbox operator maintainers.
  • Existing open issues have been checked and this is not a duplicate.
What happened?

From time to time when applying the sample CRs, we might see the following error message in the log the object has been modified; please apply your changes to the latest version and try again

What did you expect to happen?

No such log should be recorded

How can we reproduce it (as minimally and precisely as possible)?

Apply/Delete the sample CRs

Netbox operator version

f882482f9dd6ee1d667fa664528af03a97eb4bb4

Netbox operator configuration (command line flags or environment variables)

No response

Relevant log output
the object has been modified; please apply your changes to the latest version and try again
Anything else we need to know?

The reconciler loop should exit after setting metadata, such as finalizers, to prevent such error

Dominant language
Go
Stars
157
Forks
28
Avg merge
18h 57m
Merged PRs (30d)
13

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from netbox-community/netbox-operator

All issues in netbox-community/netbox-operator

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.