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: Enhancing DirectVolMount Handling with Patching Support #8301

Merged
merged 8 commits into from Dec 4, 2023

Conversation

Apokleos
Copy link
Contributor

The current infra(K8S, CSI, CRI, Containerd) for Kata containers is unable to properly handle direct volumes, resulting in the need for workarounds like patching up mount type and options after it created.

Fixes: #8300

@katacontainersbot katacontainersbot added the size/medium Average sized task label Oct 24, 2023
@Apokleos Apokleos force-pushed the do-direct-volume branch 2 times, most recently from e5ed9f6 to 3c97361 Compare October 25, 2023 01:51
@Apokleos Apokleos self-assigned this Oct 25, 2023
src/agent/Cargo.lock Outdated Show resolved Hide resolved
src/libs/kata-sys-util/src/k8s.rs Outdated Show resolved Hide resolved
src/libs/kata-sys-util/src/k8s.rs Outdated Show resolved Hide resolved
src/tools/kata-ctl/Cargo.lock Outdated Show resolved Hide resolved
@Apokleos Apokleos force-pushed the do-direct-volume branch 2 times, most recently from 8262827 to b230792 Compare October 26, 2023 08:18
@katacontainersbot katacontainersbot added size/large Task of significant size and removed size/medium Average sized task labels Oct 31, 2023
@amshinde amshinde self-requested a review November 9, 2023 00:00
@Apokleos
Copy link
Contributor Author

/test

(1) rawblock volume is directvol mount type.
(2) block volume is based on the bind mount type.

Fixes: kata-containers#8300

Signed-off-by: alex.lyn <alex.lyn@antgroup.com>
Add a new dire direct_volumes containing spdk, rawblock and vfio volume.

Fixes: kata-containers#8300

Signed-off-by: alex.lyn <alex.lyn@antgroup.com>
@katacontainersbot katacontainersbot added size/huge Largest and most complex task (probably needs breaking into small pieces) and removed size/large Task of significant size labels Nov 25, 2023
@Apokleos
Copy link
Contributor Author

/test

The current infra(K8S, CSI, CRI, Containerd) for Kata containers is
unable to properly handle direct volumes, resulting in the need for
workarounds like searching/comparision and then patch up volume type.

In this commit, reimplement of handling method is added to support
raw block volume which backends may be rawdisk or other format file.

Fixes: kata-containers#8300

Signed-off-by: alex.lyn <alex.lyn@antgroup.com>
(1) Add enum DirectVolumeType for direct volumes.
(2) Reimplement spdk volume into direct_volume and
do alignment of rawblock volume.

Fixes: kata-containers#8300

Signed-off-by: alex.lyn <alex.lyn@antgroup.com>
Reimplement vfio volume into direct_volume and do alignment
of rawblock/spdk volume.

Fixes: kata-containers#8300

Signed-off-by: alex.lyn <alex.lyn@antgroup.com>
@Apokleos
Copy link
Contributor Author

/test-ubuntu

@BbolroC
Copy link
Member

BbolroC commented Dec 4, 2023

/test

@studychao studychao merged commit 52fd57e into kata-containers:main Dec 4, 2023
167 of 174 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ok-to-test runtime-rs size/huge Largest and most complex task (probably needs breaking into small pieces)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

runtime-rs: Enhancing Direct Volume Mount Handling with Patching Support for current infra(K8S/CSI)
7 participants