Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ui: fix journal parsing in ProgressView #2085

Conversation

Chris-Peterson444
Copy link
Contributor

@Chris-Peterson444 Chris-Peterson444 commented Sep 17, 2024

The ProgressView.other_event function splits messages on the ":" character to get the context type and the message from journal messages. This code will crash if the message has more than one ":" character. When passing cloud-config with invalid top level keys, subiquity will check these keys and report on the journal with a message: "cloud-init schema validation failure for: [, , ...]", which was causing the UI to crash repeatedly.

LP: #2080918

The ProgressView.other_event function splits messages on the ":"
character to get the context type and the message from journal messages.
This code will crash if the message has more than one ":" character.
When passing cloud-config with invalid top level keys, subiquity will
check these keys and report on the journal with a message:
"cloud-init schema validation failure for: <key1> [, <key2>, ...]",
which was causing the UI to crash repeatedly.

LP: #2080918
@Chris-Peterson444
Copy link
Contributor Author

I was pretty sure I tested this out in Noble before and didn't run into this, but I can recreate it with the Noble release ISO.

@Chris-Peterson444 Chris-Peterson444 merged commit ccd71d5 into canonical:main Sep 17, 2024
12 checks passed
@Chris-Peterson444 Chris-Peterson444 deleted the journal-parsing-unpack-error branch September 17, 2024 15:59
@mwhudson
Copy link
Collaborator

doh

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.

4 participants