Skip to content

Bug 39795650: Make DCR startup state deterministic - #1792

Draft
Mike Thompson (mthompson83) wants to merge 9 commits into
ci_prodfrom
user/mithomps/bug39795650/1
Draft

Mike Thompson (mthompson83) wants to merge 9 commits into
ci_prodfrom
user/mithomps/bug39795650/1

Conversation

@mthompson83

Copy link
Copy Markdown

Summary

  • establish DCR_REQUIRED from the configuration mode before startup waits
  • require authoritative MDSD onboarding and a valid applicable DCR before selecting the initial component topology
  • replace persistent executable parser state with caller-owned temporary Boolean output
  • make liveness validate stored and current DCR state only when DCR processing is required
  • preserve rate-limited parser file-operation diagnostics without redirecting the Bash function call

Work item

Validation

  • focused parser, liveness, and startup regression suites
  • installer suite: 118 tests, 2,408 assertions, 0 failures, 1 pre-existing skip
  • Bash and Ruby syntax checks
  • three independent final reviews with zero introduced issues

This draft is for implementation review. No reviewers are requested yet.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 441ffc4e-56a7-490d-9689-12c392813b15
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 441ffc4e-56a7-490d-9689-12c392813b15
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

This is a partial review.

Comment thread kubernetes/linux/main.sh
Comment thread kubernetes/linux/main.sh Outdated
Comment thread kubernetes/linux/main.sh Outdated
Comment thread kubernetes/linux/main.sh Outdated
Comment thread kubernetes/linux/main.sh Outdated
Comment thread kubernetes/linux/main.sh Outdated
Comment thread kubernetes/linux/main.sh
Comment thread kubernetes/linux/main.sh Outdated
Comment thread kubernetes/linux/main.sh Outdated
Comment thread kubernetes/linux/main.sh Outdated
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 441ffc4e-56a7-490d-9689-12c392813b15

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

If there are going to be automated tests, they must be wired in so that they are always run.

The tests may not be needed.

Comment thread kubernetes/linux/main.sh
Comment thread kubernetes/linux/main.sh Outdated
Comment thread kubernetes/linux/main.sh Outdated
Comment thread kubernetes/linux/main.sh Outdated
Comment thread kubernetes/linux/main.sh
Comment thread build/linux/installer/scripts/livenessprobe.sh Outdated
Comment thread build/linux/installer/scripts/livenessprobe.sh Outdated
Comment thread build/linux/installer/scripts/livenessprobe.sh Outdated
Comment thread build/linux/installer/scripts/dcr-config-parser.rb Outdated
Comment thread build/linux/installer/scripts/dcr-config-parser.rb Outdated
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 441ffc4e-56a7-490d-9689-12c392813b15

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

More issues

Comment thread build/linux/installer/scripts/livenessprobe.sh Outdated
Comment thread build/linux/installer/scripts/livenessprobe.sh Outdated
Comment thread build/linux/installer/scripts/livenessprobe.sh Outdated
Comment thread build/linux/installer/scripts/livenessprobe.sh Outdated
Comment thread kubernetes/linux/main.sh Outdated
Comment thread kubernetes/linux/main.sh Outdated
Comment thread kubernetes/linux/main.sh Outdated
Comment thread kubernetes/linux/main_test.rb Outdated
Comment thread build/linux/installer/scripts/livenessprobe_test.rb Outdated
Comment thread build/linux/installer/scripts/livenessprobe_test.rb Outdated
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 441ffc4e-56a7-490d-9689-12c392813b15
Comment thread build/linux/installer/scripts/livenessprobe.sh Outdated
@mthompson83

Copy link
Copy Markdown
Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
2 pipeline(s) were filtered out due to trigger conditions.

@mthompson83

Copy link
Copy Markdown
Author

 /azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
2 pipeline(s) were filtered out due to trigger conditions.

zanejohnson-azure and others added 3 commits October 1, 2026 11:38
)

* fix: quote ConfigMap-derived environment assignments

* Upgrade Linux Telegraf to 1.40.1

Remove the outdated Windows Telegraf update comment.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Revert misplaced Telegraf update

The Telegraf 1.40.1 bump and Windows note removal belong to PR #1764, not this ConfigMap shell-quoting PR. Reverts commit 44237c6.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Change umask to allow non-owner reading to reduce chance of causing a regression.
Change the umask when writing a sensitive file.
Change the temp DCR file handling to close a tiny create-but-not cleaned up window.
@mthompson83

Copy link
Copy Markdown
Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
2 pipeline(s) were filtered out due to trigger conditions.

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