Skip to content

[Bug]: can't add new kata kernel in zst format even from local archive #767

@sitano

Description

@sitano

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

$ container system kernel set --arch amd64 --binary opt/kata/share/kata-containers/vmlinux-6.12.47-166 --recommended --tar ./kata-static-3.21.0-amd64.tar.zst
Installing the recommended kernel from https://github.com/kata-containers/kata-containers/releases/download/3.21.0/kata-static-3.21.0-amd64.tar.zst...
Error: unknown: "Unable to open the archive. Error code -30"

Current behavior

  1. it says can't open archive
  2. it downloads the kernel instead of using locally downloaded image

Expected behavior

  1. successfully complete the request
  2. use local file if it is ./file

Environment

- OS: Darwin sc-mac-02301 24.6.0 Darwin Kernel Version 24.6.0: Mon Aug 11 21:16:30 PDT 2025; root:xnu-11417.140.69.701.11~1/RELEASE_ARM64_T8132 arm64
- Xcode: 
- Container: 
container-apiserver version: container-apiserver version 0.5.0 (build: release, commit: 48230f3)
container-apiserver commit: 48230f380499efecd663fdc6749a2cbaf2f8ed76

Relevant log output

N/A

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions