Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.

qemu: Don't crash if virtiofsd path is non existent#2583

Merged
devimc merged 1 commit into
kata-containers:masterfrom
fidencio:wip/virtiofsd_not_present
Apr 3, 2020
Merged

qemu: Don't crash if virtiofsd path is non existent#2583
devimc merged 1 commit into
kata-containers:masterfrom
fidencio:wip/virtiofsd_not_present

Conversation

@fidencio
Copy link
Copy Markdown
Member

@fidencio fidencio commented Apr 3, 2020

Instead, report an error and exit gracefully, as shown below:

dahmer fidencio # podman run -ti --runtime=/usr/bin/kata-runtime fedora sh
Error: stat /usr/libexec/virtiofsd: no such file or directory: OCI runtime command not found error

Fixes: #2582

Signed-off-by: Fabiano Fidêncio fidencio@redhat.com

@fidencio fidencio force-pushed the wip/virtiofsd_not_present branch from e4efebd to d347b20 Compare April 3, 2020 12:33
@grahamwhaley
Copy link
Copy Markdown
Contributor

/test

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 3, 2020

Codecov Report

❗ No coverage uploaded for pull request base (master@705713b). Click here to learn what that means.
The diff coverage is 0%.

@@            Coverage Diff            @@
##             master    #2583   +/-   ##
=========================================
  Coverage          ?   50.46%           
=========================================
  Files             ?      118           
  Lines             ?    17018           
  Branches          ?        0           
=========================================
  Hits              ?     8588           
  Misses            ?     7389           
  Partials          ?     1041

Copy link
Copy Markdown

@devimc devimc left a comment

Choose a reason for hiding this comment

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

thanks @fidencio - I left some comments

Comment thread virtcontainers/qemu.go Outdated
Comment thread virtcontainers/qemu.go Outdated
Instead, report an error and exit gracefully, as shown below:
```
dahmer fidencio # podman run -ti --runtime=/usr/bin/kata-runtime fedora sh
Error: virtiofsd path (/usr/libexec/virtiofsd) does not exist: OCI runtime error
```

Fixes: kata-containers#2582

Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
@fidencio fidencio force-pushed the wip/virtiofsd_not_present branch from d347b20 to fd625b3 Compare April 3, 2020 13:44
Copy link
Copy Markdown

@devimc devimc left a comment

Choose a reason for hiding this comment

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

thanks @fidencio

Copy link
Copy Markdown

@jodh-intel jodh-intel left a comment

Choose a reason for hiding this comment

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

Ouch! / Good catch! 😄

Thanks @fidencio.

lgtm

@jodh-intel
Copy link
Copy Markdown

/test

@fidencio
Copy link
Copy Markdown
Member Author

fidencio commented Apr 3, 2020

The two CI failures are well known and not related to this patch:

@devimc devimc merged commit 2b92007 into kata-containers:master Apr 3, 2020
@fidencio fidencio deleted the wip/virtiofsd_not_present branch April 3, 2020 22:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Segmentation fault if virtiofsd is not present

5 participants