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

   > [!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/46428878382) for 
details.
   >
   > </details>
   
   ## ๐ŸŽฏ Triage report
   
   `scaleKubernetesCluster` without `serviceofferingid` or `nodeofferings` 
moves nodes back to the cluster offering. `createNodeTypeToServiceOfferingMap` 
falls back to the cluster offering as `DEFAULT`, so any node type running a 
different offering appears to need an offering scale. This affects size-only 
changes, `nodeids` scale-in (including autoscaler removals), and autoscaling 
on/off. On KVM the offering scale fails with a running-VM error, sometimes 
after a downscale has already removed nodes. The proposed fix is to pass an 
empty offering map when no offering is requested.
   
   ### ๐Ÿ“Š Assessment
   
   | Dimension | Value | Reasoning |
   | --- | --- | --- |
   | **Type** | type:bug | A size-only scale changes node offerings, with 
reproduction steps |
   | **Component** | component:cks | `createNodeTypeToServiceOfferingMap` and 
the scale worker |
   | **Severity** | Severity:Major | Scale fails partway on KVM, and nodes are 
resized unintentionally |
   | **Labels** | type:bug, component:cks, Severity:Major | Based on the issue 
text |
   | **Coding agent** | Suitable | Fix is specified: pass an empty map when no 
offering is requested |
   
   ### ๐Ÿ”— Similar issues
   
   - #14805 (related) โ€” scale uses the cluster offering for capacity and totals
   - #14458 (related) โ€” `nodeids` scale-in can resize unrelated nodes to the 
legacy offering
   - #14552 (related) โ€” scale requests without an offering resize nodes to an 
outdated offering
   
   <details>
   <summary>๐Ÿ’ก Notes and suggestions</summary>
   
   - Reproduction: create a cluster with `nodeofferings` for workers, then call 
`scaleKubernetesCluster clustersize=<n>` only.
   - Autoscaling on/off with min and max is affected too; check that path with 
the same fix.
   
   </details>
   
   > Generated by [Daily Issue 
Triage](https://github.com/apache/cloudstack/actions/runs/46428878382) ยท 
copilot ยท haiku55 ยท \~8 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: 46428878382, workflow_id: daily-issue-triage, run: 
https://github.com/apache/cloudstack/actions/runs/46428878382 -->
   
   <!-- gh-aw-execution: 
{"version":1,"repo_id":"9759448","repository":"apache/cloudstack","aw_workflow_id":"daily-issue-triage","run_id":"46428878382","run_attempt":"1","run_url":"https://github.com/apache/cloudstack/actions/runs/46428878382","publishing_job":{"key":"safe_outputs","check_run_id":"141896161471"}}
 -->


-- 
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