Skip to content

Simplify Longhorn_is_ready log gate flag, tmp file not needed.#5854

Merged
rene merged 1 commit intolf-edge:masterfrom
andrewd-zededa:eve-k-lh-rdy-tmp
Apr 25, 2026
Merged

Simplify Longhorn_is_ready log gate flag, tmp file not needed.#5854
rene merged 1 commit intolf-edge:masterfrom
andrewd-zededa:eve-k-lh-rdy-tmp

Conversation

@andrewd-zededa
Copy link
Copy Markdown
Contributor

@andrewd-zededa andrewd-zededa commented Apr 23, 2026

Description

Just a global var instead, also removes race in mktemp usage without -u. Temp file was writing before readiness was determined in some cases.

PR dependencies

None

How to test and validate this PR

  • boot an eve-k node
  • verify "longhorn ds ready" log entry is seen in /persist/kubelog/k3s-install.log

Changelog notes

fix race in creating longhorn ds ready log entry

PR Backports

  • 16.0-stable: Yes
  • 14.5-stable: No, as the feature is not available there.
  • 13.4-stable: No, as the feature is not available there.

Checklist

  • I've provided a proper description
  • I've added the proper documentation
  • I've tested my PR on amd64 device
  • I've tested my PR on arm64 device
  • I've written the test verification instructions
  • I've set the proper labels to this PR

And the last but not least:

  • I've checked the boxes above, or I've provided a good reason why I didn't
    check them.

Please, check the boxes above after submitting the PR in interactive mode.

Just a global var instead, also removes race in mktemp usage without -u.
Temp file was writing before readiness was determined in some cases.

Signed-off-by: Andrew Durbin <andrewd@zededa.com>
@andrewd-zededa andrewd-zededa changed the title Simplify Longhorn_is_ready log gate flag, fs writes not needed. Simplify Longhorn_is_ready log gate flag, tmp file not needed. Apr 23, 2026
@github-actions github-actions Bot requested a review from zedi-pramodh April 23, 2026 21:25
@andrewd-zededa andrewd-zededa marked this pull request as ready for review April 23, 2026 22:31
Copy link
Copy Markdown

@zedi-pramodh zedi-pramodh left a comment

Choose a reason for hiding this comment

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

LGTM

I tested this in my setup

@rene rene merged commit 4b7981d into lf-edge:master Apr 25, 2026
38 of 44 checks passed
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