Skip to content

refactor(linux): move cgroup telemetry service enable and start to nodePrep - #9934

Open
Cameron Meissner (cameronmeissner) wants to merge 7 commits into
mainfrom
cameissner/rm-events
Open

Cameron Meissner (cameronmeissner) wants to merge 7 commits into
mainfrom
cameissner/rm-events

Conversation

@cameronmeissner

@cameronmeissner Cameron Meissner (cameronmeissner) commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

move cgroup telemetry enablement and startup to nodePrep, rather than during the VHD build - we don't need telemetry during builds - this will also fix

Which issue(s) this PR fixes:

Fixes #

…ns.CustomScript/events/ after configuring cgroup telemetry
Copilot AI balanced review requested due to automatic review settings October 28, 2026 16:14
@cameronmeissner Cameron Meissner (cameronmeissner) changed the title fix(build): forcefully remove /var/log/azure/Microsoft.Azure.Extensions.CustomScript/events/ after configuring cgroup telemetry fix(build): forcefully remove events directory after configuring cgroup telemetry Oct 28, 2026
@github-actions

github-actions Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Windows Unit Test Results

  3 files   18 suites   1m 16s ⏱️
662 tests 662 ✅ 0 💤 0 ❌
685 runs  685 ✅ 0 💤 0 ❌

Results for commit f90e630.

♻️ This comment has been updated with latest results.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues remain for the telemetry cleanup change.

No open issues 🎉

What changed in this PR

This PR adjusts telemetry cleanup during Linux VHD builds to address intermittent failures after cgroup telemetry configuration.

Changes:

  • Changes CustomScript log-directory removal from rm -r to rm -rf.
  • Preserves the existing cleanup condition and failure handling.
File Description
vhdbuilder/​packer/​install-dependencies.sh Adds force mode to CustomScript log cleanup after telemetry configuration.

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings October 28, 2026 17:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The telemetry cleanup change has no active review issues.

No open issues 🎉

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings October 28, 2026 21:04
@cameronmeissner Cameron Meissner (cameronmeissner) changed the title fix(build): forcefully remove events directory after configuring cgroup telemetry refactor(linux): move cgroup telemetry service startup and enablement to nodePrep Oct 28, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Missing timeout arguments in three service calls produce invalid timeout systemctl commands, exhausting retries and causing provisioning failures on affected Linux distributions.

1 open issue

Review effort: Balanced

Comment thread parts/linux/cloud-init/artifacts/cse_config.sh Outdated
Copilot AI balanced review requested due to automatic review settings October 28, 2026 21:11
@cameronmeissner Cameron Meissner (cameronmeissner) changed the title refactor(linux): move cgroup telemetry service startup and enablement to nodePrep refactor(linux): move cgroup telemetry service enable and start to nodePrep Oct 28, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Three service startup calls omit required timeout arguments, causing repeated command failures and aborting node provisioning with exit code 247.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings October 28, 2026 21:16
@github-actions

Copy link
Copy Markdown
Contributor

Code Coverage

Package Line Rate Health
test 0% ❌
windows 27% ❌
staging_cse_windows Package 1 68% ➖
debug 0% ❌
provisioningscripts 2% ❌
parts_windows Package 1 73% ➖
Summary 39% (1819 / 7001) ❌

@github-actions

Copy link
Copy Markdown
Contributor

Code Coverage

Package Line Rate Health
shellspec spec 29% ❌
Summary 29% (4707 / 16475) ❌

@github-actions

Copy link
Copy Markdown
Contributor

Code Coverage

Package Line Rate Health
github.com/Azure/agentbaker/aks-node-controller 73% ➖
github.com/Azure/agentbaker/aks-node-controller/common 100% ✔
github.com/Azure/agentbaker/aks-node-controller/helpers 68% ➖
github.com/Azure/agentbaker/aks-node-controller/parser 88% ✔
github.com/Azure/agentbaker/aks-node-controller/pkg/gpu 100% ✔
github.com/Azure/agentbaker/aks-node-controller/pkg/nodeconfigutils 89% ✔
github.com/Azure/agentbaker/aks-node-controller/utils 0% ❌
github.com/Azure/agentbaker/apiserver 24% ❌
github.com/Azure/agentbaker/cmd 0% ❌
github.com/Azure/agentbaker/cmd/starter 0% ❌
github.com/Azure/agentbaker/fuzz/api 0% ❌
github.com/Azure/agentbaker/hotfix/render-nodecustomdata 35% ❌
github.com/Azure/agentbaker/pkg/agent 78% ➖
github.com/Azure/agentbaker/pkg/agent/datamodel 77% ➖
github.com/Azure/agentbaker/pkg/agent/toggles 0% ❌
github.com/Azure/agentbaker/pkg/vhdbuilder/datamodel 87% ✔
Summary 75% (6023 / 7989) ➖

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues were identified for the change moving Linux cgroup telemetry startup from image building to node provisioning.

No open issues 🎉

Review effort: Balanced

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants