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-rs: DirectVolume/rawblock doesn't work well when block driver is virtio-blk-pci #8707

Closed
Apokleos opened this issue Dec 20, 2023 · 0 comments · Fixed by #8708
Closed
Assignees
Labels
bug Incorrect behaviour needs-review Needs to be assessed by the team.

Comments

@Apokleos
Copy link
Contributor

DirectVolume/Rawblock doesn't work well when block driver is virtio-blk-pci

reproduce command line:

$sudo ctr run -t --rm --runtime io.containerd.run.kata.v2 --mount type=directvol,src=/kubelet/vol-test001,dst=/disk002,options=rbind:rw docker.io/library/ubuntu:22.04 hellotes-rs-directvol-004 sh
ctr: failed to create shim task: Others("failed to handle message create container\n\nCaused by:\n    0: create\n    1: agent create container\n    2: rpc status: Status { code: INTERNAL, message: \"failed to mount /dev/vda to /run/kata-containers/shared/containers/passthrough/e3334477e0-1a23d994-disk002, with error: ENXIO: No such device or address\", details: [], special_fields: SpecialFields { unknown_fields: UnknownFields { fields: None }, cached_size: CachedSize { size: 0 } } }"): unknown

Root Casue:

Storage.source for Volume settting is not correct.

@Apokleos Apokleos added bug Incorrect behaviour needs-review Needs to be assessed by the team. labels Dec 20, 2023
@Apokleos Apokleos self-assigned this Dec 20, 2023
Apokleos added a commit to Apokleos/kata-containers that referenced this issue Dec 20, 2023
DirectVolume/Rawblock doesn't work well when device's block driver
is virtio-blk-pci and the storage handler is DRIVER_BLK_PCI_TYPE.

Fixes: kata-containers#8707

Signed-off-by: alex.lyn <alex.lyn@antgroup.com>
@katacontainersbot katacontainersbot moved this from To do to In progress in Issue backlog Dec 20, 2023
Apokleos added a commit to Apokleos/kata-containers that referenced this issue Jan 16, 2024
DirectVolume/Rawblock doesn't work well when device's block driver
is virtio-blk-pci and the storage handler is DRIVER_BLK_PCI_TYPE.

Fixes: kata-containers#8707

Signed-off-by: alex.lyn <alex.lyn@antgroup.com>
c3d pushed a commit to c3d/kata-containers that referenced this issue Feb 23, 2024
DirectVolume/Rawblock doesn't work well when device's block driver
is virtio-blk-pci and the storage handler is DRIVER_BLK_PCI_TYPE.

Fixes: kata-containers#8707

Signed-off-by: alex.lyn <alex.lyn@antgroup.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Incorrect behaviour needs-review Needs to be assessed by the team.
Projects
Issue backlog
  
In progress
Development

Successfully merging a pull request may close this issue.

1 participant