github-actions[bot] commented on issue #14805: URL: https://github.com/apache/cloudstack/issues/14805#issuecomment-7280535791
> [!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 `KubernetesClusterScaleWorker` uses the cluster offering where it should use the node type's offering. The capacity check before adding workers uses the cluster offering, not the worker offering. The stored cores and memory count new workers at the cluster offering, and after an offering scale of a running cluster the old offering is read from VMs that were already upgraded, so the totals do not change. The result is a capacity check on the wrong numbers and cluster totals that drift from what is deployed. The reporter gives a worked example: 2 vCPU cluster offering, 4 vCPU worker offering, scale up by 2, and cores grow by 4 instead of 8. ### ๐ Assessment | Dimension | Value | Reasoning | | --- | --- | --- | | **Type** | type:bug | Wrong offering used in capacity and totals, with a worked example | | **Component** | component:cks | `KubernetesClusterScaleWorker` | | **Severity** | Severity:Major | Capacity decisions and stored resource totals are wrong | | **Labels** | type:bug, component:cks, Severity:Major | Based on the issue text | | **Coding agent** | Suitable | Fix is specified: use the node type's offering, falling back to the cluster offering as deployment does | ### ๐ Similar issues - #14807 (related) โ scale without an offering moves nodes back to the cluster offering - #14458 (related) โ `nodeids` scale-in can resize unrelated nodes to the legacy offering - #14213 (related) โ Kubernetes nodes report stale capacity after a live resize <details> <summary>๐ก Notes and suggestions</summary> - Reproduction: create a cluster with a cluster offering and a different worker offering, scale by size, then compare `cores` and `memory` on `listKubernetesClusters`. - Check the stored totals after an offering-only scale of a running cluster as well. </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]
