-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
If an application is deleted from a managed agent, it gets re-created, then wedged and never receives any more updates
Steps to reproduce the behaviour
- Delete app on agent manually
- Agent detects "unauthorized deletion" → recreates app
- App was never unmanaged (since it was unauthorized deletion)
- Recreate tries Manage() → fails "already managed"
- Informer fires NewApp event for the recreated app
- NewApp handler also tries Manage() → fails "already managed"
Expected behavior
I think unmanaging before re-creating might make sense? Or Manage() becomes idempotent
Additional context
llm summarized logs for clarify / remove environment info
20:43:23 DEBUG cluster1 found in agent cache
20:43:23 DEBUG Status update queued
20:43:23 DEBUG Status update processed
20:43:23 INFO Updating application (rv=777063671)
20:43:23 INFO Application updated
20:44:01 INFO Updating application (rv=777064217)
20:44:01 INFO Application updated
20:44:01 DEBUG Ignored stale resource version
20:44:41–20:44:42
DEBUG cluster1 repeatedly reconciled
DEBUG Status updates queued and processed
20:44:43 WARN Delete event detected
20:44:43 WARN Unauthorized deletion — recreating application
20:44:43 INFO Application successfully recreated
20:44:43 WARN App already managed (duplicate manage attempt)
20:44:43 ERROR Cannot manage app that is already managed
20:44:43 DEBUG Final status event processed
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working