-
Notifications
You must be signed in to change notification settings - Fork 584
Description
I have done the following
- I have searched the existing issues
- If possible, I've reproduced the issue using the 'main' branch of this project
Steps to reproduce
The options for using --tar with a filesystem path are not well documented.
% container system kernel set --tar kata-static-3.17.0-arm64.tar.xz
Error: Missing argument '--binary'
Usage: container [--debug] <subcommand>
See 'container --help' for more information.
% container system kernel set --help
Warning! Running debug build. Performance may be degraded.
OVERVIEW: Set the default kernel
USAGE: container system kernel set [--binary <binary>] [--tar <tar>] [--arch <arch>] [--recommended]
OPTIONS:
--binary <binary> Path to the binary to set as the default kernel. If used with --tar, this points to a location inside the tar
--tar <tar> Filesystem path or remote URL to a tar ball that contains the kernel to use
--arch <arch> The architecture of the kernel binary. One of (amd64, arm64) (default: arm64)
--recommended Download and install the recommended kernel as the default. This flag ignores any other arguments
--version Show the version.
-h, --help Show help information.
This first set of error messages did not indicate to me that --binary is required when using --tar, it looks like I can use one or both.
% container system kernel set --tar kata-static-3.17.0-arm64.tar.xz --binary opt/kata/share/kata-containers/vmlinux-6.12.28-153
Error: unknown: "HTTPClientError.emptyScheme"
Using both flags gives me an unhelpful error about an empty scheme? Maybe we need to specify a URI?
% container system kernel set --tar file://`pwd`/kata-static-3.17.0-arm64.tar.xz --binary opt/kata/share/kata-containers/vmlinux-6.12.28-153
Error: unknown: "HTTPClientError.unsupportedScheme("file")"
Nope that didn't work either. I finally found #475 that showed using it with an absolute path and no scheme, and it worked for me after that.
Reproduces with 0.4.1 release
Current behavior
Cryptic error messages when trying to set a system kernel.
Expected behavior
Friendly error messages when setting a system kernel, or no error messages at all and for it to work.
Environment
- OS: macOS 15.6
- Xcode: N/A
- Container: 0.4.1 releaseRelevant log output
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
No labels