Title: Operator Error messages about concurrent modifications · Issue #825 · secureCodeBox/secureCodeBox · GitHub
Open Graph Title: Operator Error messages about concurrent modifications · Issue #825 · secureCodeBox/secureCodeBox
X Title: Operator Error messages about concurrent modifications · Issue #825 · secureCodeBox/secureCodeBox
Description: 🐞 Bug report The operator keeps throwing error messages about "the object has been modified; please apply your changes to the latest version and try again". Seems like there is some concurrent modification going on somewhere? We should t...
Open Graph Description: 🐞 Bug report The operator keeps throwing error messages about "the object has been modified; please apply your changes to the latest version and try again". Seems like there is some concurrent modi...
X Description: 🐞 Bug report The operator keeps throwing error messages about "the object has been modified; please apply your changes to the latest version and try again". Seems like there is some concu...
Opengraph URL: https://github.com/secureCodeBox/secureCodeBox/issues/825
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Operator Error messages about concurrent modifications","articleBody":"## 🐞 Bug report\r\nThe operator keeps throwing error messages about \"the object has been modified; please apply your changes to the latest version and try again\". Seems like there is some concurrent modification going on somewhere? We should track this down.\r\n\r\nFull error message with a bit of context around it:\r\n```bash\r\n2021-11-18T08:33:44.189+0100\tINFO\tcontrollers.execution.Scan\tMatching ParseDefinition Found\t{\"scan_parse\": \"default/nmap-localhost\", \"ParseDefinition\": \"nmap-xml\"}\r\n2021-11-18T08:33:49.217+0100\tINFO\tcontrollers.execution.Scan\tFound ScanCompletionHooks\t{\"ScanCompletionHooks\": 1}\r\n2021-11-18T08:33:49.227+0100\tINFO\tcontrollers.execution.Scan\tProcessing hook\t{\"hook\": {\"hookName\":\"cascading-scans\",\"state\":\"Pending\",\"priority\":0,\"type\":\"ReadOnly\"}, \"jobType\": \"read-only-hook\"}\r\n2021-11-18T08:33:49.231+0100\tINFO\tcontrollers.execution.Scan\tCreated job for hook\t{\"hook\": {\"hookName\":\"cascading-scans\",\"state\":\"InProgress\",\"jobName\":\"cascading-scans-nmap-localhost-fbt7r\",\"priority\":0,\"type\":\"ReadOnly\"}}\r\n2021-11-18T08:33:49.239+0100\tINFO\tcontrollers.execution.Scan\tProcessing hook\t{\"hook\": {\"hookName\":\"cascading-scans\",\"state\":\"Pending\",\"priority\":0,\"type\":\"ReadOnly\"}, \"jobType\": \"read-only-hook\"}\r\n2021-11-18T08:33:49.252+0100\tERROR\tcontrollers.execution.Scan\tUnable to update Scan status\t{\"error\": \"Operation cannot be fulfilled on scans.execution.securecodebox.io \\\"nmap-localhost\\\": the object has been modified; please apply your changes to the latest version and try again\"}\r\ngithub.com/go-logr/zapr.(*zapLogger).Error\r\n\t/Users/mmaass/go/pkg/mod/github.com/go-logr/zapr@v0.2.0/zapr.go:132\r\ngithub.com/secureCodeBox/secureCodeBox/operator/controllers/execution/scans.(*ScanReconciler).executeHooks\r\n\t/Users/mmaass/Documents/Code/SecureCodeBox/operator/controllers/execution/scans/hook_reconciler.go:147\r\ngithub.com/secureCodeBox/secureCodeBox/operator/controllers/execution/scans.(*ScanReconciler).Reconcile\r\n\t/Users/mmaass/Documents/Code/SecureCodeBox/operator/controllers/execution/scans/scan_controller.go:109\r\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\r\n\t/Users/mmaass/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.8.3/pkg/internal/controller/controller.go:298\r\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\r\n\t/Users/mmaass/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.8.3/pkg/internal/controller/controller.go:253\r\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1.2\r\n\t/Users/mmaass/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.8.3/pkg/internal/controller/controller.go:216\r\nk8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext.func1\r\n\t/Users/mmaass/go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:185\r\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1\r\n\t/Users/mmaass/go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:155\r\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil\r\n\t/Users/mmaass/go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:156\r\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\r\n\t/Users/mmaass/go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:133\r\nk8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext\r\n\t/Users/mmaass/go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:185\r\nk8s.io/apimachinery/pkg/util/wait.UntilWithContext\r\n\t/Users/mmaass/go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:99\r\n2021-11-18T08:33:49.252+0100\tERROR\tcontroller-runtime.manager.controller.scan\tReconciler error\t{\"reconciler group\": \"execution.securecodebox.io\", \"reconciler kind\": \"Scan\", \"name\": \"nmap-localhost\", \"namespace\": \"default\", \"error\": \"Operation cannot be fulfilled on scans.execution.securecodebox.io \\\"nmap-localhost\\\": the object has been modified; please apply your changes to the latest version and try again\"}\r\ngithub.com/go-logr/zapr.(*zapLogger).Error\r\n\t/Users/mmaass/go/pkg/mod/github.com/go-logr/zapr@v0.2.0/zapr.go:132\r\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\r\n\t/Users/mmaass/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.8.3/pkg/internal/controller/controller.go:302\r\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\r\n\t/Users/mmaass/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.8.3/pkg/internal/controller/controller.go:253\r\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1.2\r\n\t/Users/mmaass/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.8.3/pkg/internal/controller/controller.go:216\r\nk8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext.func1\r\n\t/Users/mmaass/go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:185\r\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1\r\n\t/Users/mmaass/go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:155\r\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil\r\n\t/Users/mmaass/go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:156\r\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\r\n\t/Users/mmaass/go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:133\r\nk8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext\r\n\t/Users/mmaass/go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:185\r\nk8s.io/apimachinery/pkg/util/wait.UntilWithContext\r\n\t/Users/mmaass/go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:99\r\n2021-11-18T08:33:49.252+0100\tINFO\tcontrollers.execution.Scan\tProcessing hook\t{\"hook\": {\"hookName\":\"cascading-scans\",\"state\":\"InProgress\",\"jobName\":\"cascading-scans-nmap-localhost-fbt7r\",\"priority\":0,\"type\":\"ReadOnly\"}, \"jobType\": \"read-only-hook\"}\r\n2021-11-18T08:33:49.263+0100\tINFO\tcontrollers.execution.Scan\tProcessing hook\t{\"hook\": {\"hookName\":\"cascading-scans\",\"state\":\"InProgress\",\"jobName\":\"cascading-scans-nmap-localhost-fbt7r\",\"priority\":0,\"type\":\"ReadOnly\"}, \"jobType\": \"read-only-hook\"}\r\n```\r\n\r\nIt seems to happen during cascading scan hook execution if I interpret this correctly.","author":{"url":"https://github.com/malexmave","@type":"Person","name":"malexmave"},"datePublished":"2021-11-18T09:28:31.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/825/secureCodeBox/issues/825"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7e46c074-9ec8-8399-f892-da1a21a30e28 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AD32:1DF886:B18C77:E41057:698FC39F |
| html-safe-nonce | ff89cde351df095fe483eecf634ae14a8cec988cb3addbd762e3874e1256390c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRDMyOjFERjg4NjpCMThDNzc6RTQxMDU3OjY5OEZDMzlGIiwidmlzaXRvcl9pZCI6IjE5MTI5NDM0NDczNjUyMzE2NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 361f428ba6483e6d6f1d932a1548a175ea1f63a9a2f17c13fa773001fcc26dd4 |
| hovercard-subject-tag | issue:1057127975 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/secureCodeBox/secureCodeBox/825/issue_layout |
| twitter:image | https://opengraph.githubassets.com/60f25a356706f4e7e0af72735f869d8065842f2a923d091d99bf31fed2a1f496/secureCodeBox/secureCodeBox/issues/825 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/60f25a356706f4e7e0af72735f869d8065842f2a923d091d99bf31fed2a1f496/secureCodeBox/secureCodeBox/issues/825 |
| og:image:alt | 🐞 Bug report The operator keeps throwing error messages about "the object has been modified; please apply your changes to the latest version and try again". Seems like there is some concurrent modi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | malexmave |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/secureCodeBox/secureCodeBox git https://github.com/secureCodeBox/secureCodeBox.git |
| octolytics-dimension-user_id | 34573705 |
| octolytics-dimension-user_login | secureCodeBox |
| octolytics-dimension-repository_id | 80711933 |
| octolytics-dimension-repository_nwo | secureCodeBox/secureCodeBox |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 80711933 |
| octolytics-dimension-repository_network_root_nwo | secureCodeBox/secureCodeBox |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 111423ee085528bc9fa8c25b2e698c30347f841e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width