Ji-Xinyou
ed23b47c71
tracing: Add tracing to runtime-rs
...
Introduce tracing into runtime-rs, only some functions are instrumented.
Fixes : #5239
Signed-off-by: Ji-Xinyou <jerryji0414@outlook.com >
Signed-off-by: Yushuo <y-shuo@linux.alibaba.com >
2023-07-09 22:09:43 +08:00
Peng Tao
ca6892ddb1
runtime-rs: update tokio dependency
...
Unify it to the latest 1.28.1 version.
Signed-off-by: Peng Tao <bergwolf@hyper.sh >
2023-05-18 08:18:22 +00:00
Tim Zhang
a6b4d92c84
runtime-rs: Bump ttrpc from 0.6.0 to 0.7.1
...
Fixes : #6646
Signed-off-by: Tim Zhang <tim@hyper.sh >
2023-04-17 19:49:20 +08:00
Li Hongyu
844bf053b2
runtime-rs: add the missing default trait
...
Some structs in the runtime-rs don't implement Default trait.
This commit adds the missing Default.
Fixes : #5463
Signed-off-by: Li Hongyu <lihongyu1999@bupt.edu.cn >
2023-03-10 08:19:56 +00:00
Jianyong Wu
464d4c94de
runtime-rs: process single_container
...
Process single_container like pod_sandbox when create container but like
pod_container when get the size info of memory/cpu from oci/spec.
Fixes : #6006
Signed-off-by: Jianyong Wu <jianyong.wu@arm.com >
2023-01-09 10:29:01 +08:00
Fabiano Fidêncio
025e78341e
runtime-rs: Fix needless_borrow warnings
...
As we bumped the rust toolchain to 1.66.0, some new warnings have been
raised due to needless_borrow.
Let's fix them all here.
For more info about the warnings, please, take a look at:
https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com >
2023-01-02 17:14:13 +01:00
Bin Liu
514b7778a2
Merge pull request #5807 from liubin/fix/5806-add-shim-lanuage
...
runtime: Add identification in version for runtime-rs
2022-12-02 11:36:55 +08:00
Bin Liu
d4321ab489
runtime: Add identification in version for runtime-rs
...
Now we are supporting two runtime/shim, the go version,
and the rust version, for debug purposes, we can
add an identification in the version info
to tell us which runtime/shim is used.
Fixes : #5806
Signed-off-by: Bin Liu <bin@hyper.sh >
2022-12-01 15:14:08 +08:00
Chen Taotao
67fe703ff5
runtime-rs: remove the version number from the commit display message
...
The displayed commit message and version message are partially duplicated.
Remove the version number from the commit display message.
Fixes:#5735
Signed-off-by: Chen Taotao <chentt10@chinatelecom.cn >
2022-11-25 13:00:01 +08:00
Chen TaoTao
936fe35acb
runtime-rs : fix shim source is ambiguous
...
In the documentation test, the name shim has multiple potential
sources of import, now give it a clear source.
Fixes : #5535
Signed-off-by: Chen TaoTao <chentt10@chinatelecom.cn >
2022-10-31 19:54:22 -07:00
Bin Liu
4d9dd8790d
runtime-rs: fix typo get_contaier_type to get_container_type
...
Change get_contaier_type to get_container_type
Fixes : #5415
Signed-off-by: Bin Liu <bin@hyper.sh >
2022-10-13 17:12:43 +08:00
Bin Liu
2de29b6f69
Merge pull request #5088 from liubin/fix/5087-force-shutdown-shim
...
runtime-rs: force shutdown shim process in it can't exit
2022-10-13 16:55:05 +08:00
Bin Liu
156e1c3247
runtime-rs: delete some allow(dead_code) attributes
...
Some #![allow(dead_code)]s and code are not needed indeed.
Fixes : #5164
Signed-off-by: Bin Liu <bin@hyper.sh >
2022-09-14 20:50:30 +08:00
Bin Liu
86ad832e37
runtime-rs: force shutdown shim process in it can't exit
...
In some case the call of cleanup from shim to service manager will fail,
and the shim process will continue to running, that will make process leak.
This commit will force shutdown the shim process in case of any errors in
service crate.
Fixes : #5087
Signed-off-by: Bin Liu <bin@hyper.sh >
2022-09-02 19:43:50 +08:00
Peng Tao
f1276180b1
Merge pull request #4996 from liubin/fix/4995-delete-socket-option-for-shim
...
runtime-rs: delete socket from shim command-line options
2022-08-31 14:16:56 +08:00
Bin Liu
11383c2c0e
Merge pull request #4797 from openanolis/runtime-rs-coresched
...
runtime-rs: add support for core scheduling
2022-08-29 14:28:30 +08:00
Bin Liu
cce99c5c73
runtime-rs: delete socket from shim command-line options
...
The socket is not used to specify the socket address, but
an ENV variable is used for runtime-rs.
Fixes : #4995
Signed-off-by: Bin Liu <bin@hyper.sh >
2022-08-25 15:32:17 +08:00
Peng Tao
338c282950
dep: update nix dependency
...
To fix CVE-2021-45707 that affects nix < 0.20.2.
Fixes : #4929
Signed-off-by: Peng Tao <bergwolf@hyper.sh >
2022-08-17 16:06:26 +08:00
Bin Liu
8cd1e50eb6
Merge pull request #4921 from liubin/fix/2920-delete-vergen
...
runtime-rs: delete vergen dependency
2022-08-17 10:09:12 +08:00
Bin Liu
eab7c8f28f
runtime-rs: delete vergen dependency
...
vergen is a build dependency, but it is not being used.
we are processing ver/commit hash by make command, but not by vergen.
Fixes : #4920
Signed-off-by: Bin Liu <bin@hyper.sh >
2022-08-16 15:31:24 +08:00
Zhongtao Hu
4d7f3edbaf
runtime-rs: support the functionality of cleanup
...
Cleanup sandbox resource
Fixes : #4891
Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com >
2022-08-13 15:56:38 +08:00
Ji-Xinyou
a355812e05
runtime-rs: fixed bug on core-sched error handling
...
Kernel code returns -errno, this should check negative values.
Fixes : #4429
Signed-off-by: Ji-Xinyou <jerryji0414@outlook.com >
2022-08-03 15:26:48 +08:00
Ji-Xinyou
591dfa4fe6
runtime-rs: add support for core scheduling
...
Linux 5.14 supports core scheduling to have better security control
for SMT siblings. This PR supports that.
Fixes : #4429
Signed-off-by: Ji-Xinyou <jerryji0414@outlook.com >
2022-08-02 17:54:04 +08:00
Zhongtao Hu
7247575fa2
runtime-rs:fix cargo clippy
...
fix cargo clippy
Fixes : #4791
Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com >
2022-08-02 13:17:37 +08:00
liubin
996a6b80bc
kata-sys-util: upgrade nix version
...
New nix is supporting UMOUNT_NOFOLLOW, upgrade nix
version to use this flag instead of the self-defined flag.
Fixes : #4670
Signed-off-by: liubin <liubin0329@gmail.com >
2022-07-15 17:38:15 +08:00
Quanwei Zhou
3d6156f6ec
runtime-rs: support dragonball and runtime-binary
...
Fixes : #3785
Signed-off-by: Quanwei Zhou <quanweiZhou@linux.alibaba.com >
Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com >
2022-07-14 08:49:30 +08:00
Fupan Li
ff7874bc23
protobuf: upgrade the protobuf version to 2.27.0
...
Signed-off-by: Fupan Li <fupan.lfp@antgroup.com >
2022-06-11 10:05:52 +08:00
Zhongtao Hu
10343b1f3d
runtime-rs: enhance runtimes
...
1. support oom event
2. use ContainerProcess to store container_id and exec_id
3. support stats
Fixes : #3785
Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com >
2022-06-10 22:01:05 +08:00
Quanwei Zhou
bdfee005fa
runtime-rs: service and runtime framework
...
1. service: Responsible for processing services, such as task service, image service
2. Responsible for implementing different runtimes, such as Virt-container,
Linux-container, Wasm-container
Fixes : #3785
Signed-off-by: Quanwei Zhou <quanweiZhou@linux.alibaba.com >
2022-06-10 19:57:36 +08:00
quanwei.zqw
e705ee07c5
runtime-rs: update containerd-shim-protos to 0.2.0
...
Fixes : #3866
Signed-off-by: quanwei.zqw <quanwei.zqw@alibaba-inc.com >
2022-06-10 19:57:14 +08:00
quanwei.zqw
8c0a60e191
runtime-rs: modify the review suggestion
...
Fixes : #3876
Signed-off-by: quanwei.zqw <quanwei.zqw@alibaba-inc.com >
2022-06-10 19:57:07 +08:00
Zack
278f843f92
runtime-rs: shim implements for runtime-rs
...
Responsible for processing shim related commands: start, delete.
This patch is extracted from Alibaba Cloud's internal repository *runD*
Thanks to all contributors!
Fixes : #3785
Signed-off-by: acetang <aceapril@126.com >
Signed-off-by: Bin Liu <bin@hyper.sh >
Signed-off-by: Chao Wu <chaowu@linux.alibaba.com >
Signed-off-by: Eryu Guan <eguan@linux.alibaba.com >
Signed-off-by: Fupan Li <lifupan@gmail.com >
Signed-off-by: gexuyang <gexuyang@linux.alibaba.com >
Signed-off-by: Helin Guo <helinguo@linux.alibaba.com >
Signed-off-by: He Rongguang <herongguang@linux.alibaba.com >
Signed-off-by: Hui Zhu <teawater@gmail.com >
Signed-off-by: Issac Hai <hjwissac@linux.alibaba.com >
Signed-off-by: Jiahuan Chao <jhchao@linux.alibaba.com >
Signed-off-by: lichenglong9 <lichenglong9@163.com >
Signed-off-by: mengze <mengze@linux.alibaba.com >
Signed-off-by: Qingyuan Hou <qingyuan.hou@linux.alibaba.com >
Signed-off-by: Quanwei Zhou <quanweiZhou@linux.alibaba.com >
Signed-off-by: shiqiangzhang <shiyu.zsq@linux.alibaba.com >
Signed-off-by: Simon Guo <wei.guo.simon@linux.alibaba.com >
Signed-off-by: Tim Zhang <tim@hyper.sh >
Signed-off-by: wanglei01 <wllenyj@linux.alibaba.com >
Signed-off-by: Wei Yang <wei.yang1@linux.alibaba.com >
Signed-off-by: yanlei <yl.on.the.way@gmail.com >
Signed-off-by: Yiqun Leng <yqleng@linux.alibaba.com >
Signed-off-by: yuchang.xu <yuchang.xu@linux.alibaba.com >
Signed-off-by: Yves Chan <lingfu@linux.alibaba.com >
Signed-off-by: Zack <zmlcc@linux.alibaba.com >
Signed-off-by: Zhiheng Tao <zhihengtao@linux.alibaba.com >
Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com >
Signed-off-by: Zizheng Bian <zizheng.bian@linux.alibaba.com >
2022-06-10 19:56:59 +08:00