github-actions[bot] commented on issue #14840:
URL: https://github.com/apache/cloudstack/issues/14840#issuecomment-7313251193

   > [!WARNING]
   > threat detection engine error
   > The threat detection engine encountered an error and could not complete 
analysis. This is a tooling failure, not a security finding.
   >
   > <!-- gh-aw-threat-engine-error -->
   >
   > <details>
   > <summary>What happened</summary>
   >
   > The threat detection engine failed to produce results.
   >
   > Review the [workflow run 
logs](https://github.com/apache/cloudstack/actions/runs/46657804450) for 
details.
   >
   > </details>
   
   ## ๐ŸŽฏ Triage report
   
   When VM HA restart fails with a `CloudRuntimeException` (not one of the 
typed exceptions caught in `restart()`), `processWork()` snapshots a stale VM 
`update_count`. On the next attempt the guard in `restart()` sees a changed 
counter and returns `null`, which marks the work as Done. The VM stays stopped 
after 2 of 5 attempts. The reporter's analysis proposes reloading the VM in the 
generic `catch (Exception e)` block before recording its update time and state.
   
   ### ๐Ÿ“Š Assessment
   
   | Dimension | Value | Reasoning |
   | --- | --- | --- |
   | **Type** | type:bug | HA work is marked complete after one failed attempt, 
with a detailed code path |
   | **Component** | component:orchestration | 
`HighAvailabilityManagerImpl.processWork` and `restart()` |
   | **Severity** | Severity:Major | HA gives up early and the VM is not 
restarted |
   | **Labels** | type:bug, component:orchestration, Severity:Major | Based on 
the issue text and the reporter's analysis |
   | **Coding agent** | Suitable | Specific change proposed: reload the VM 
before snapshotting the counter in the generic catch block |
   
   ### ๐Ÿ”— Similar issues
   
   - #13785 (related) โ€” HA operation is attempted on a VM in error state
   - #14744 (related) โ€” HA restart puts a VM back on the host that stopped it
   - #14230 (related) โ€” restarting KVM VMs after a host fails when the 
management server is unreachable
   
   <details>
   <summary>๐Ÿ’ก Notes and suggestions</summary>
   
   - Open PR #14919 is linked to this issue ("server: reload the VM before 
recording its state when HA work fails"). Review it against the proposal.
   - Reproduction: a start failure that surfaces as a `CloudRuntimeException`, 
such as QEMU write-lock contention on shared storage. Check the HA log for 
"Took 2/5 attempts".
   
   </details>
   
   > Generated by [Daily Issue 
Triage](https://github.com/apache/cloudstack/actions/runs/46657804450) ยท 
copilot ยท haiku55 ยท \~9 AIC ยท โŠž 3.8K ยท 
[โ—ท](https://github.com/search?q=repo%3Aapache%2Fcloudstack+%22gh-aw-workflow-call-id%3A+apache%2Fcloudstack%2Fdaily-issue-triage%22&type=issues)
   
   <details>
   <summary><sub>Add this agentic workflow to your repo</sub></summary>
   
   To install this agentic workflow, run
   
   ```
   gh aw add 
githubnext/agentics/workflows/daily-issue-triage.md@139fa09ef17cde4135e696ff8e7af09bc5ddfa6e
   ```
   
   </details>
   
   <!-- gh-aw-workflow-call-id: apache/cloudstack/daily-issue-triage -->
   
   <!-- gh-aw-agentic-workflow: Daily Issue Triage, engine: copilot, model: 
claude-haiku-5.5, id: 46657804450, workflow_id: daily-issue-triage, run: 
https://github.com/apache/cloudstack/actions/runs/46657804450 -->
   
   <!-- gh-aw-execution: 
{"version":1,"repo_id":"9759448","repository":"apache/cloudstack","aw_workflow_id":"daily-issue-triage","run_id":"46657804450","run_attempt":"1","run_url":"https://github.com/apache/cloudstack/actions/runs/46657804450","publishing_job":{"key":"safe_outputs","check_run_id":"142687507625"}}
 -->


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to