Commit Graph

440 Commits

Author SHA1 Message Date
jokemanfire 10b41f16a6 fix(task): update debug is useless
The debug message in MessageFiled<Any> is useless

Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>
2025-08-22 21:57:15 +00:00
jokemanfire 45387cd5e6 fix(cgroup) : fix cgroup update if cgroup path is release
avoid update cgroup path if init process cgroup is release

Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>
2025-08-22 21:48:53 +00:00
胡丁洋10346053 7259c1ce28 fix(shim): Under certain extreme conditions, the kill cannot be completed
Let kill call in single task for not holding the lock.
2025-08-15 06:01:32 +00:00
jokemanfire 6b81286549 Fix: update cgroups-rs for fix a bug
bug ref:
7d4d4579a3

Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>
2025-08-02 22:43:43 +00:00
zzzzzzzzzy9 ae58ea3aed shim/loop-dev: fix setup_loop_dev returned error 2025-07-30 15:26:29 +00:00
Fabiano Fidêncio 42985376b5 Update dependencies
Signed-off-by: Fabiano Fidêncio <fidencio@northflank.com>
2025-07-18 22:00:07 +00:00
Fabiano Fidêncio 13ebc83b25 Bump shim crate to 0.10.0
Signed-off-by: Fabiano Fidêncio <fidencio@northflank.com>
2025-07-18 22:00:07 +00:00
Fabiano Fidêncio 608f5f0dc3 Update shim dependency
Signed-off-by: Fabiano Fidêncio <fidencio@northflank.com>
2025-07-18 21:44:27 +00:00
Fabiano Fidêncio cfd185006b Bump shim proto to 0.10.0
There was no change here, but we're bumping to keep the version the same
as the shim (which will be released soon enough).

Signed-off-by: Fabiano Fidêncio <fidencio@northflank.com>
2025-07-18 21:44:27 +00:00
Tim Zhang d8f28555b5 shim/loop-dev: fix variable undefined error for musl
Fixes: #413

Signed-off-by: Tim Zhang <tim@hyper.sh>
2025-07-18 10:24:34 -07:00
Tim Zhang 884ba3d6e1 shim: re-impl Events trait for async RemotePublisher
Fixes: https://github.com/containerd/rust-extensions/pull/318/files#r2212454388

Signed-off-by: Tim Zhang <tim@hyper.sh>
2025-07-17 11:16:54 +00:00
Maksym Pavlenko 4ae8331ea1
Update dependencies
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2025-07-16 14:22:42 -07:00
Maksym Pavlenko 333a23c22b
Bump shim crate to 0.9
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2025-07-16 14:22:02 -07:00
Maksym Pavlenko b5346f5390
Update shim dependency
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2025-07-16 14:15:25 -07:00
Maksym Pavlenko 3f82d7dc7e
Bump shim protos to 0.9.0
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2025-07-16 14:13:39 -07:00
Tim Zhang e4551b1013 shim-protos: replace ttrpc-codegen to the released crate version
The new version v0.6.0 has been released.

Signed-off-by: Tim Zhang <tim@hyper.sh>
2025-07-15 17:54:05 +00:00
jinda.ljd 0e4ff0c5da truncate backing file path exceeding 64 bytes in LoopInfo
When the backing file path exceeds 64 bytes, an 'out of range' error occurs due to the limitation of the `file_name` field in `LoopInfo`. This commit truncates the file path to ensure it does not exceed the maximum supported length, preventing the error while maintaining usability.

Signed-off-by: jinda.ljd <jinda.ljd@alibaba-inc.com>
2025-07-15 02:56:39 +00:00
zzzzzzzzzy9 afab3c8eba add some test for mount_rootfs and umount_recursive and setup_loop
Signed-off-by: zzzzzzzzzy9 <zhang.yu58@zte.com.cn>
2025-07-07 04:51:59 +00:00
zzzzzzzzzy9 11e97809b8 support loop-dev mount in mount_rootfs
Signed-off-by: zzzzzzzzzy9 <zhang.yu58@zte.com.cn>
2025-07-07 04:51:59 +00:00
zzzzzzzzzy9 15fbabcf8e Unmount the mount point of the container when the container is deleted.
Signed-off-by: zzzzzzzzzy9 <zhang.yu58@zte.com.cn>
2025-07-07 04:51:59 +00:00
zzzzzzzzzy9 6aa801807e move mount to mount_linux and mount_other
Signed-off-by: zzzzzzzzzy9 <zhang.yu58@zte.com.cn>
2025-07-07 04:51:59 +00:00
Maksym Pavlenko 220d6d6a65
Fix runc dependency
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2025-06-30 10:09:42 -07:00
Maksym Pavlenko b8107d6101
Bump runc crate version
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2025-06-30 09:54:17 -07:00
Bryant Biggs c0b92c4e96 chore: Update protobuf definitions using latest containerd version v2.1.1 2025-06-11 00:15:32 +00:00
Bryant Biggs 8469d6d7a8 chore: Bump ttrpc-codegen as well 2025-06-11 00:13:54 +00:00
Bryant Biggs ad6d647960 chore: Update protobuf dependency to latest 2025-06-11 00:13:54 +00:00
jokemanfire 055e49bf6f fix ut test
Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>
2025-06-11 00:13:30 +00:00
jokemanfire 0a07bdde72 runc: split the lib's trait from lib to async and sync
Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>
2025-06-11 00:13:30 +00:00
Bryant Biggs 468fbc0b4c chore: Move tokio dependency in `snapshots` to dev dependency 2025-06-11 00:09:51 +00:00
jokemanfire cea5523d20 fix(update): avoid update resource while the process is zombie
add a check in zombie init process

Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>
2025-05-09 01:42:38 +00:00
jokemanfire 3b42040af2 optimize: use a more user-friendly interface in ttrpc
Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>
2025-04-15 03:41:12 +00:00
Jorge Prendes 8130e41939 remove dependency on signal-hook-tokio
Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
2025-04-10 16:27:31 +00:00
Jorge Prendes 2a098d9f69 re-enable cargo machete
Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
2025-04-09 14:23:23 +00:00
Jorge Prendes 18fcf6bc52 remove unused dependencies
Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
2025-03-19 23:27:16 +00:00
Jorge Prendes 277a1a65f2 use windows activation strategy on async code
Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
2025-03-19 23:27:16 +00:00
Jorge Prendes df1b8f05dd use windows activation strategy on all platforms in sync code
Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
2025-03-19 23:27:16 +00:00
Jorge Prendes 35980682a6 Consolidate the NamedPipeLogger into the FifoLogger
Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
2025-03-19 23:25:14 +00:00
Jiaxiao (mossaka) Zhou 8fba47295b feat(shim): make logger module public
Downstream shim implementations can use this module to setup logger by
themselves. One example is runwasi's container process needs to use this
module to setup logger so that logs from the container process can be
populated to containerd.

Signed-off-by: Jiaxiao (mossaka) Zhou <duibao55328@gmail.com>
2025-02-25 23:17:12 +00:00
jokemanfire 906bd0f466 Update publisher err deal.
ref:https://github.com/containerd/ttrpc-rust/pull/259
Due to the inclusion of the latest version of ttrpc, this part of the code has been updated

Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>
2025-02-24 18:54:43 +00:00
Kyle Kosic 559cc576b9 add experimental flag 2025-02-20 18:20:05 +00:00
Phil Estes 9d9cc05d18 Add example using the transfer service
Pulls an image to the containerd content store

Signed-off-by: Phil Estes <estesp@amazon.com>
2025-02-01 06:55:48 +00:00
Maksym Pavlenko ae876e3a33
Fix shim dependency
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2025-01-28 12:06:30 -08:00
Maksym Pavlenko c016d933ed
Bump shim crate version to 0.8
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2025-01-28 11:59:33 -08:00
Maksym Pavlenko 2d999680fe
Fix publish?
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2025-01-28 11:49:18 -08:00
Maksym Pavlenko ef81c80577
Bump shim protos to 0.8
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2025-01-28 11:30:33 -08:00
jokemanfire e5db241747 Fix complie error
1. update ttrpc version
2. proto3 syntax  "To define 'optional' fields in Proto3, simply remove the 'optional' label, as fields are 'optional' by default"
3. compile fail because "required for the cast from `Arc<std::boxed::Box<<T as asynchronous::Shim>::T>>` to `Arc<(dyn containerd_shim_protos::shim_async::Task + std::marker::Send + Sync + 'static)>`"

Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>
2025-01-27 20:08:08 +00:00
jokemanfire 545b0e789e Add info for get runtimeinfo
This interface is already in goshim.
Use containerd-shim-runc-v2 --info.

Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>
2025-01-27 20:06:12 +00:00
Maksym Pavlenko 1f1e38dc06
Bump client to 0.8.0
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2025-01-16 13:46:49 -08:00
Phil Estes 2d47d88f13 Add a to_any helper in the containerd client crate
This provides a solution to Any->type matching that happens on
the containerd Go-based server side where the Any types in prost
use typeurl as defined in the protobuf spec and the server side
is matching on the fullname property of the type.

Signed-off-by: Phil Estes <estesp@amazon.com>
2025-01-16 20:44:01 +00:00
Maksym Pavlenko 2cb7714e76 Fix CI
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2025-01-16 19:22:09 +00:00