-
Notifications
You must be signed in to change notification settings - Fork 373
Kata-env and Kata-check are not architecture-independent #349
Comments
Hi @Pennyzct - thanks for raising. We had recently noticed this in reviewing #286. That PR reworks those commands for PPC64el but also improves the situation for ARM64. I have a local branch that builds on #286 that will fix this bug for ARM64. However, we really need the Kata Project's CI to support both PPC64el and ARM64. Could you help with the latter maybe? /cc @egernst, @grahamwhaley, @chavafg. |
@jodh-intel Hi~I have read the Arm64-relevant code in this PR. Maybe I can refine it after merging. I'm very happy to help with the CI project.😊 |
I am setting up an ARM64 instance on packet.net, and if everything goes well, we will use it for the ARM64 integration test @jodh-intel |
@gnawux @jodh-intel @Pennyzct Thanks! We will set up a local machine for Kata CI too : ) |
Thanks @Weichen81!! Ideally, we'd "gate" all PRs to ensure all tests pass on all architectures before the PR is merged. A local CI would be helpful but you'll then have to raise PRs to fix the build after it's broken which probably isn't ideal for you. |
As we still don't have an ARM CI, the ARM64 build broke. Fixes kata-containers#349. Signed-off-by: James O. D. Hunt <[email protected]>
Hi @Pennyzct - FYI, I've got a branch that fixes the ARM64 build (https://github.com/jodh-intel/runtimes/tree/fix-arm64-build) but I still need to fix the tests (hopefully later today). |
As we still don't have an ARM CI, the ARM64 build broke. Fixes kata-containers#349. Signed-off-by: James O. D. Hunt <[email protected]>
As we still don't have an ARM CI, the ARM64 build broke. Fixes kata-containers#349. Signed-off-by: James O. D. Hunt <[email protected]>
Fix ARM64 build which silently broken (as we still don't have an ARM CI). Fixes kata-containers#349. Signed-off-by: James O. D. Hunt <[email protected]>
PR raised as #362. I'd appreciate it if you could validate on your systems. |
@jodh-intel Thanks, we will validate it on next Monday : ) |
Description of problem
For now, the functionality of kata-check and kata-env are missing in Arm architecture. Error outputs are as follows:
It could come from following aspects:
vmContainerCapableDetails
was architecture-relevant, for example, there were no tag showing virtualization capability in /proc/cpuinfo in aarch64, so variablerequiredCPUFlags
could be no use.flag
filed in /proc/cpuinfo may only amd64-specific.CPUInfo
was also architecture-relevant, e.g. variable vendor and model are meaningless for arm architecture. Because funcgetCPUDetails()
is related toCPUInfo
, it may not be included in universal file cli/utils.gohostIsVMContainerCapable()
is only suitable for amd64 to check host's capability of creating a VM containerWe think that we could move the architecture-relevant variable and func to files with specific architecture suffixes. e.g. func
getCPUFlags
,checkCPUFlags
,hostIsVMContainerCapable
and constcpuFlagsTag
should be transferred to filekata-check_amd64.go
.@bergwolf @gnawux @jodh-intel @Weichen81
The text was updated successfully, but these errors were encountered: