github-actions[bot] commented on issue #14836: URL: https://github.com/apache/cloudstack/issues/14836#issuecomment-7313249994
> [!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 On `scaleKubernetesCluster` with `size`, the worker count only includes CKS-created workers, so nodes added with `addNodesToKubernetesCluster` are ignored. The scale-down log then says "No nodes to remove", the stored `size` changes, and the real node count no longer matches. Later scale-ups can wait for a Ready count that is never reached. The reporter also describes the same drift for `nodeids` with control or etcd nodes and for autoscaling `minsize` below the number of added nodes. ### 📊 Assessment | Dimension | Value | Reasoning | | --- | --- | --- | | **Type** | type:bug | Scale-down counts the wrong nodes, with reproduction steps and a worked example | | **Component** | component:cks | Scale worker node counting | | **Severity** | Severity:Major | Stored size drifts and breaks later scaling | | **Labels** | type:bug, component:cks, Severity:Major | Based on the issue text | | **Coding agent** | Suitable | Expected behaviour is specified: count added workers, and reject sizes below the added-node count | ### 🔗 Similar issues - #14807 (related) — scale without an offering moves nodes back to the cluster offering - #14805 (related) — scale uses the cluster offering for capacity and totals <details> <summary>💡 Notes and suggestions</summary> - Open PR #14837 is linked to this issue ("Count added nodes when scaling a Kubernetes cluster down"). Review it against the cases above, including the `nodeids` and autoscaling cases. - Reproduction: 1 control, 4 CKS workers, 2 added nodes (`size` = 6), then `scaleKubernetesCluster size=5`. </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]
