Quanwei Zhou
57c556a801
runtime-rs: fix stop failed in azure
...
Fix the stop failed in azure.
Fixes : #4740
Signed-off-by: Quanwei Zhou <quanweiZhou@linux.alibaba.com >
2022-07-26 12:16:32 +08:00
Peng Tao
3f4dd92c2d
Merge pull request #4702 from openanolis/runtime-rs-endpoint-dev
...
runtime-rs: add functionalities support for macvlan and vlan endpoints
2022-07-25 17:04:45 +08:00
Quanwei Zhou
c825065b27
runtime-rs: fix tc filter setup failed
...
Fix bug using tc filter and protocol needs to use network byte order.
Fixes : #4726
Signed-off-by: Quanwei Zhou <quanweiZhou@linux.alibaba.com >
2022-07-25 11:16:33 +08:00
Quanwei Zhou
e0194dcb5e
runtime-rs: update route destination with prefix
...
Update route destination with prefix.
Fixes : #4726
Signed-off-by: Quanwei Zhou <quanweiZhou@linux.alibaba.com >
2022-07-25 11:16:22 +08:00
Ji-Xinyou
896478c92b
runtime-rs: add functionalities support for macvlan and vlan endpoints
...
Add macvlan and vlan support to runtime-rs code and corresponding unit
tests.
Fixes : #4701
Signed-off-by: Ji-Xinyou <jerryji0414@outlook.com >
2022-07-22 10:09:11 +08:00
Quanwei Zhou
54f53d57ef
runtime-rs: support disable_guest_seccomp
...
support disable_guest_seccomp
Fixes : #4691
Signed-off-by: Quanwei Zhou <quanweiZhou@linux.alibaba.com >
2022-07-21 07:46:28 +08:00
Bin Liu
540303880e
Merge pull request #4688 from quanweiZhou/fix_sandbox_cgroup_false
...
runtime-rs: fix sandbox_cgroup_only=false panic
2022-07-19 20:38:57 +08:00
Peng Tao
7c146a5d95
Merge pull request #4684 from quanweiZhou/fix-ctr-exit-error
...
runtime-rs: fix ctr exit failed
2022-07-19 16:02:20 +08:00
Peng Tao
4c3bd6b1d1
Merge pull request #4656 from openanolis/runtime-rs-ipvlan
...
runtime-rs: support functionalities of ipvlan endpoint
2022-07-19 11:15:31 +08:00
Bin Liu
960f2a7f70
Merge pull request #4678 from Tim-0731-Hzt/runtime-rs-makefile-2
...
runtime-rs: remove the value of hypervisor path in DB config
2022-07-19 09:34:45 +08:00
Quanwei Zhou
e9988f0c68
runtime-rs: fix sandbox_cgroup_only=false panic
...
When run with configuration `sandbox_cgroup_only=false`, we will call
`gen_overhead_path()` as the overhead path. The `cgroup-rs` will push
the path with the subsystem prefix by `PathBuf::push()`. When the path
has prefix “/” it will act as root path, such as
```
let mut path = PathBuf::from("/tmp");
path.push("/etc");
assert_eq!(path, PathBuf::from("/etc"));
```
So we shoud not set overhead path with prefix "/".
Fixes : #4687
Signed-off-by: Quanwei Zhou <quanweiZhou@linux.alibaba.com >
2022-07-19 08:30:34 +08:00
Quanwei Zhou
cebbebbe8a
runtime-rs: fix ctr exit failed
...
During use, there will be cases where the container is in the stop state
and get another stop. In this case, the second stop needs to be ignored.
Fixes : #4683
Signed-off-by: Quanwei Zhou <quanweiZhou@linux.alibaba.com >
2022-07-19 07:43:22 +08:00
Bin Liu
758cc47b32
Merge pull request #4671 from liubin/4670-upgrade-nix
...
kata-sys-util: upgrade nix version
2022-07-18 23:31:07 +08:00
Ji-Xinyou
62182db645
runtime-rs: add unit test for ipvlan endpoint
...
Add unit test to check the integrity of IPVlanEndpoint::new(...)
Fixes : #4655
Signed-off-by: Ji-Xinyou <jerryji0414@outlook.com >
2022-07-18 15:56:06 +08:00
xuejun-xj
99654ce694
runtime-rs: update dbs-xxx dependencies
...
Update dbs-xxx commit ID for aarch64 in runtime-rs/Cargo.toml file to add
dependencies for aarch64.
Fixes : #4676
Signed-off-by: xuejun-xj <jiyunxue@alibaba.linux.com >
2022-07-18 13:46:46 +08:00
xuejun-xj
f4c3adf596
runtime-rs: Add compile option file
...
Add file aarch64-options.mk for compiling on aarch64 architectures.
Fixes : #4676
Signed-off-by: xuejun-xj <jiyunxue@alibaba.linux.com >
2022-07-18 13:46:46 +08:00
xuejun-xj
545ae3f0ee
runtime-rs: fix warning
...
Module anyhow::anyhow is only used on x86_64 architecture in
crates/hypervisor/src/device/vfio.rs file.
Fixes : #4676
Signed-off-by: xuejun-xj <jiyunxue@alibaba.linux.com >
2022-07-18 13:46:39 +08:00
Zhongtao Hu
19eca71cd9
runtime-rs: remove the value of hypervisor path in DB config
...
As a built in VMM, Path, jailer path, ctlpath are not needed for
Dragonball. So we don't generate those value in Makefile.
Fixes : #4677
Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com >
2022-07-18 13:37:51 +08:00
Ji-Xinyou
d8920b00cd
runtime-rs: support functionalities of ipvlan endpoint
...
Add support for ipvlan endpoint
Fixes : #4655
Signed-off-by: Ji-Xinyou <jerryji0414@outlook.com >
2022-07-18 11:34:03 +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
3c989521b1
dragonball: update for review
...
update for review
Fixes : #3785
Signed-off-by: Quanwei Zhou <quanweiZhou@linux.alibaba.com >
2022-07-14 10:43:59 +08:00
Chao Wu
1befbe6738
runtime-rs: Cargo lock for fix version problem
...
Cargo lock for fix version problem
Signed-off-by: Chao Wu <chaowu@linux.alibaba.com >
2022-07-14 08:49:39 +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
James O. D. Hunt
59cab9e835
Merge pull request #4380 from Tim-0731-Hzt/rund/makefile
...
runtime-rs: makefile for dragonball
2022-07-01 09:12:38 +01:00
Zhongtao Hu
07231b2f3f
runtime-rs:refactor network model with netlink
...
add unit test for tcfilter
Fixes : #4289
Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com >
2022-06-29 11:38:23 +08:00
Zhongtao Hu
c8a9052063
build: format files
...
add Enter at the end of the file
Fixes : #4379
Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com >
2022-06-29 11:19:10 +08:00
Zhongtao Hu
242992e3de
build: put install methods in utils.mk
...
put install methods in utils.mk to avoid duplication
Fixes : #4379
Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com >
2022-06-29 11:19:10 +08:00
Zhongtao Hu
8a697268d0
build: makefile for dragonball config
...
use makefile to generate dragonball config file
Fixes : #4379
Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com >
2022-06-29 11:19:07 +08:00
Zhongtao Hu
9c526292e7
runtime-rs:refactor network model with netlink
...
refactor tcfilter with netlink
Fixes : #4289
Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com >
2022-06-29 11:03:29 +08:00
Fupan Li
9cb15ab4c5
agent: add the FSGroup support
...
Signed-off-by: Fupan Li <fupan.lfp@antgroup.com >
2022-06-11 11:30:51 +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
06f398a34f
runtime-rs: use withContext to evaluate lazily
...
Fixes : #4129
Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com >
2022-06-10 22:03:13 +08:00
Quanwei Zhou
fd4c26f9c1
runtime-rs: support network resource
...
Fixes : #3785
Signed-off-by: Quanwei Zhou <quanweiZhou@linux.alibaba.com >
2022-06-10 22:02:58 +08:00
Tim Zhang
4be7185aa4
runtime-rs: runtime part implement
...
Fixes : #3785
Signed-off-by: Tim Zhang <tim@hyper.sh >
Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com >
Signed-off-by: Quanwei Zhou <quanweiZhou@linux.alibaba.com >
2022-06-10 22:01:12 +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
3ff0db05a7
runtime-rs: support rootfs volume for resource
...
Fixes : #3785
Signed-off-by: Quanwei Zhou <quanweiZhou@linux.alibaba.com >
2022-06-10 19:58:01 +08:00
Tim Zhang
234d7bca04
runtime-rs: support cgroup resource
...
Fixes : #3785
Signed-off-by: Tim Zhang <tim@hyper.sh >
2022-06-10 19:57:53 +08:00
Quanwei Zhou
75e282b4c1
runtime-rs: hypervisor base define
...
Responsible for VM manager, such as Qemu, Dragonball
Fixes : #3785
Signed-off-by: Quanwei Zhou <quanweiZhou@linux.alibaba.com >
2022-06-10 19:57:45 +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 Zhou
4296e3069f
runtime-rs: agent implements
...
Responsible for communicating with the agent, such as kata-agent in the VM
Fixes : #3785
Signed-off-by: Quanwei Zhou <quanweiZhou@linux.alibaba.com >
2022-06-10 19:57:29 +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