-
Notifications
You must be signed in to change notification settings - Fork 155
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
[Fleet]: After cancelling the Request for Schedule Upgrade, Upgrade scheduled label is not removed from the Agents tab. #4293
Comments
Pinging @elastic/fleet (Team:Fleet) |
@amolnater-qasource Kindly review |
Secondary Review for this ticket is Done. |
@amolnater-qasource @harshitgupta-qasource is this a new bug you found in 8.12 or something that was already existing? |
Hi @jlind23 While testing the elastic/kibana#168502 feature on 8.12.1 and then attempting to upgrade the agent via scheduled upgrade to 8.12.2, we have discovered this issue. |
Should this issue be moved to elastic-agent repo? I didn't find any logic in fleet-server regarding cancel action. Tested this, and I can confirm that the agent cancelled the action, so the bug is that the agent is stuck in
|
The elastic-agent/internal/pkg/agent/application/actions/handlers/handler_action_cancel.go Lines 34 to 44 in bdd885c
The action queue is registered as the canceller in elastic-agent/internal/pkg/agent/application/managed_mode.go Lines 380 to 387 in bdd885c
The actual cancel implementation is in elastic-agent/internal/pkg/queue/actionqueue.go Lines 136 to 149 in bdd885c
There is no notification that an upgrade is cancelled when it is removed from the queue like this, so I think we will stay in the upgrade scheduled state until an upgrade is eventually completed by a separate action. We likely need to update this cancel implementation to have some special handling for upgrade actions, specifically it needs to clear the upgrade details. The upgrade is marked as scheduled in elastic-agent/internal/pkg/agent/application/dispatcher/dispatcher.go Lines 358 to 361 in bdd885c
|
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
Kibana Build details:
Host OS and Browser version: All, All
Preconditions:
Steps to reproduce:
Expected:
After cancelling the Request for Schedule Upgrade, Upgrade scheduled label should be removed from the Agents tab.
Screencast:
Agents.-.Fleet.-.Elastic.Mozilla.Firefox.2024-02-20.17-15-05.mp4
The text was updated successfully, but these errors were encountered: