-
Notifications
You must be signed in to change notification settings - Fork 880
stage0/{run,prepare}: remove ondisk verification #3623
Conversation
rkt/image_verify.go
Outdated
var ( | ||
cmdImageVerify = &cobra.Command{ | ||
Use: "verify IMAGE...", | ||
Short: "Verify one or more images in the local store", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: "verify one or more rendered images"...
One thought: right now, whether or not an image is "rendered" is not really exposed to the user. It might make sense to skip or otherwise treat non-rendered images as not an error. |
@squeed Made that change, good call. In reality, unrendered images are fairly rare. |
The semaphore failure is a flake; the rest of the bots are happy |
For backwards compatibility, specifying 'insecure-options=ondisk' will still run without error, however it will also not do anything. Implements rkt#3481
This command replaces the previous ondisk verification that was done on every run. It can be used in cases where the user suspects their treestore has been corrupted in some way.
This avoids rendering an image that has not yet been rendered, and skips doing the verification for it since it's a nonsensical operation.
Rebased; fixed my imports to be |
This LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
For backwards compatibility, specifying 'insecure-options=ondisk' will
still run without error, however it will also not do anything.
Implements #3481
This also implements an
image verify
subcommand that provides the original ondisk verification functionality.This makes things much faster 💨 🚀.