Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runtime: make kata-runtime check error more understandable when /dev/kvm doesn't exist #9583

Merged

Conversation

cncal
Copy link
Contributor

@cncal cncal commented May 2, 2024

If device /dev/kvm does not exist, kata-runtime check would fail with an ambiguous error messae 'no such file or directory'. I added a little more details to make it understandable and it will belike:

ERRO[0000] cannot open kvm device: no such file or directory  arch=arm64 check-type=full device=/dev/kvm name=kata-runtime pid=2849085 source=runtime
ERRO[0000] no such file or directory                          arch=arm64 name=kata-runtime pid=2849085 source=runtime
no such file or directory

@katacontainersbot katacontainersbot added the size/tiny Smallest and simplest task label May 2, 2024
Copy link
Member

@stevenhorsman stevenhorsman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @cncal - you PRs are both failing the commit check. Just to remind you the required commit format is documented here: https://github.com/kata-containers/community/blob/main/CONTRIBUTING.md#patch-format

For both your PRs I think runtime is the correct subsystem to use. Thanks

If device /dev/kvm does not exist, kata-runtime check would fail with
an ambiguous error messae 'no such file or directory'. I added a little
more details to make it understandable and it will belike:

```
ERRO[0000] cannot open kvm device: no such file or directory  arch=arm64 check-type=full device=/dev/kvm name=kata-runtime pid=2849085 source=runtime
ERRO[0000] no such file or directory                          arch=arm64 name=kata-runtime pid=2849085 source=runtime
no such file or directory
```

Signed-off-by: cncal <flycalvin@qq.com>
@cncal cncal force-pushed the update_check_error_message branch from d359c62 to 9caa7be Compare May 3, 2024 00:31
@cncal cncal changed the title make kata-runtime check error more understandable when /dev/kvm doesn't exist runtime: make kata-runtime check error more understandable when /dev/kvm doesn't exist May 3, 2024
@stevenhorsman
Copy link
Member

/test

@stevenhorsman
Copy link
Member

/test

Copy link
Contributor

@sprt sprt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@stevenhorsman stevenhorsman merged commit b89c3e3 into kata-containers:main May 24, 2024
590 of 653 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ok-to-test size/tiny Smallest and simplest task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants