autok3s icon indicating copy to clipboard operation
autok3s copied to clipboard

[BUG] Autok3s ui create cluster air gap bug

Open baozitao opened this issue 1 year ago • 4 comments

Autok3s creat cluster logs "arm64 resource doesn't exist in package " after import air-gap packages.

baozitao avatar Jun 10 '23 02:06 baozitao

@baozitao Please describe the reproduction step for this issue so that we can dig more about this. The error logs show your air gap package does not contain the ARM64 resource, please make sure you're using the correct package.

JacieChao avatar Jun 10 '23 06:06 JacieChao

air-gap package : k3s-airgap-images-arm64.tar.gz air-gap package download repositry: https://github.com/k3s-io/k3s package version : v1.25.9+k3s1

when i use autok3s ui air-gap package option,and select create button , Import Package File, i import k3s-airgap-images-arm64.tar.gz, but ui display status Active , the k3s version and k3s arch colum is empty , i don'y know which air gap package is right for autok3s.

baozitao avatar Jun 13 '23 12:06 baozitao

You can refer to this docs https://github.com/cnrancher/autok3s/tree/master/docs/i18n/zh_cn/airgap#%E5%88%9B%E6%96%B0%E7%A6%BB%E7%BA%BF%E5%AE%89%E8%A3%85%E5%8C%85 and the design docs of airgap function https://github.com/cnrancher/autok3s/discussions/480

orangedeng avatar Jun 21 '23 06:06 orangedeng

The origin airgap import/export airgap package function doesn't support importing an raw k3s airgap package which manually downloaded from Github. There is no way we can verify the package is ok or not. For now, when you create an airgap package in UI/CLI, Autok3s will download the package from a trusted site(Github/AliyunOSS) and store it with our file structure. The export/import function respect that file structure.

orangedeng avatar Jun 21 '23 06:06 orangedeng