Skip to content

platform: add quotes to Flatcar ID - #782

Merged
tormath1 merged 1 commit into
mainfrom
tormath1/id
Mar 4, 2026
Merged

tormath1 merged 1 commit into
mainfrom
tormath1/id

Conversation

@tormath1

@tormath1 tormath1 commented Mar 4, 2026 •

Copy link
Copy Markdown
Contributor

This is a follow-up from: flatcar/scripts#3750


Locally tested:

kola --qemu-image /opt/flatcar_production_qemu_uefi_image.img run cl.basic
PASS, output in _kola_temp/qemu-2026-03-04-0853-57

vs:

kola --qemu-image /opt/flatcar_production_qemu_uefi_image.img run cl.basic
=== RUN   cl.basic
--- FAIL: cl.basic (28.11s)
        harness.go:645: Cluster failed starting machines: machine "13320ae5-92b8-46f8-8652-ba8f144b2589" failed basic checks: not a Flatcar Container Linux instance
FAIL, output in _kola_temp/qemu-2026-03-04-0856-2
harness: test suite failed

@tormath1 tormath1 self-assigned this Mar 4, 2026
@tormath1
tormath1 marked this pull request as ready for review March 4, 2026 08:57
@tormath1
tormath1 requested a review from a team as a code owner March 4, 2026 08:57

@t-lo t-lo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, thanks for the quick fix!

@chewi chewi 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.

Heh, I made a point about not using single quotes but forgot it wasn't quoted at all before. I did run this through Jenkins at one point, I wonder why I missed this failure. 🤔

@chewi

chewi commented Mar 4, 2026

Copy link
Copy Markdown
Contributor

Wait, won't this break against the older releases?

@chewi

chewi commented Mar 4, 2026

Copy link
Copy Markdown
Contributor

Perhaps a better thing to do would be:

out, stderr, err := m.SSH(". /etc/os-release && echo \"${ID}\"")

This is a follow-up from: flatcar/scripts#3750

Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>

@chewi chewi 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.

I'm a little surprised that bytes.Equal doesn't require you to include a newline. I guess m.SSH trims this.

@tormath1

tormath1 commented Mar 4, 2026

Copy link
Copy Markdown
Contributor Author

I'm a little surprised that bytes.Equal doesn't require you to include a newline. I guess m.SSH trims this.

✔️ Tested with current Stable and this nightly.

@tormath1
tormath1 merged commit 992d39f into main Mar 4, 2026
6 checks passed
@tormath1
tormath1 deleted the tormath1/id branch March 4, 2026 09:37
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