Commit Graph

159 Commits

Author SHA1 Message Date
Eric Ernst
8a73e8b764
Merge pull request #1571 from bergwolf/1.12.2-branch-bump
# Kata Containers 1.12.2
2021-03-30 06:05:05 -07:00
Peng Tao
d0c98276ce release: Kata Containers 1.12.2
Version bump no changes

Signed-off-by: Peng Tao <bergwolf@hyper.sh>
2021-03-30 07:42:54 +00:00
Eric Ernst
ea0b45f5b9
Merge pull request #1285 from egernst/holyhell-this-is-it-stable-1.12
actions: fix error with nemu build job
2021-01-15 16:20:12 -08:00
Eric Ernst
e7e55e906c actions: fix error with nemu build job
No need to dereference the environment variable. Doing so will result in
a true evaluation, which was causing NEMU to be tracked as built, when
it actually wasn't. This only impacts 1.x workflows, and is why it
wasn't caught with 2.x release process.

Fixes: #1273

Signed-off-by: Eric Ernst <eric.g.ernst@gmail.com>
2021-01-15 16:12:56 -08:00
Eric Ernst
2ef1eba120
Merge pull request #1284 from egernst/fixup-release-1.12
actions: w/a deprecated set-env
2021-01-15 15:23:28 -08:00
Eric Ernst
e8e53b0661 actions: w/a deprecated set-env
set-env is no longer allowed. Updated to use the new recommended syntax.

Fixes: #1273

Signed-off-by: Eric Ernst <eric.g.ernst@gmail.com>
2021-01-15 14:51:08 -08:00
Eric Ernst
0a3963f0bf
Merge pull request #1254 from egernst/1.12.1-branch-bump
# Kata Containers 1.12.1
2021-01-13 09:50:40 -08:00
Eric Ernst
5ef327a738 release: Kata Containers 1.12.1
Version bump no changes

Signed-off-by: Eric Ernst <eric_ernst@apple.com>
2021-01-13 09:18:43 -08:00
Archana Shinde
ae3645ac3d
Merge pull request #1097 from katabuilder/1.12.0-branch-bump
# Kata Containers 1.12.0
2020-11-11 12:59:35 -08:00
katacontainersbot
de89796190 release: Kata Containers 1.12.0
Version bump no changes

Signed-off-by: katacontainersbot <katacontainersbot@gmail.com>
2020-11-11 07:42:12 +00:00
Jose Carlos Venegas Munoz
fcc48d1de7
Merge pull request #1008 from jcvenegas/1.12.0-rc0-branch-bump
# Kata Containers 1.12.0-rc0
2020-10-21 15:46:20 -05:00
Carlos Venegas
fac05f0fa8 release: Kata Containers 1.12.0-rc0
Version bump no changes

Signed-off-by: Carlos Venegas <jos.c.venegas.munoz@intel.com>
2020-10-20 13:33:43 -05:00
Salvador Fuentes
5f1a9d28ea
Merge pull request #633 from egernst/1.12.0-alpha1-branch-bump
# Kata Containers 1.12.0-alpha1
2020-09-01 10:24:43 -05:00
Eric Ernst
a662908478 release: Kata Containers 1.12.0-alpha1
- actions: Pin to a particular sha for actions
- actions: Add action to perform checks for pull requests

57b64f35 actions: Pin to a particular sha for actions
1b157e50 actions: Add github actions to perform DCO check
0d96145c actions: Add action to perform WIP check for pull requests

Signed-off-by: Eric Ernst <eric.g.ernst@gmail.com>
2020-08-31 15:24:47 -07:00
Archana Shinde
e357dd3ca9
Merge pull request #442 from amshinde/add-wip-action
actions: Pin to a particular sha for actions
2020-07-23 12:02:19 -07:00
Archana Shinde
57b64f35e0 actions: Pin to a particular sha for actions
Since actions can access the github token, lets use a
particular version of sha rather than using master.

Fixes: #437

Signed-off-by: Archana Shinde <archana.m.shinde@intel.com>
2020-07-22 18:40:15 -07:00
Archana Shinde
4c004891b5
Merge pull request #438 from amshinde/add-wip-action
actions: Add action to perform checks for pull requests
2020-07-22 12:25:52 -07:00
Archana Shinde
1b157e5015 actions: Add github actions to perform DCO check
Action performs a check to verify PR raised has commits
that are signed-off.

Signed-off-by: Archana Shinde <archana.m.shinde@intel.com>
2020-07-21 17:50:14 -07:00
Archana Shinde
0d96145c29 actions: Add action to perform WIP check for pull requests
Use github actions for performing WIP checks on PRs.
The action checks for keywords in subject line
as well labels.

Fixes: #437

Signed-off-by: Archana Shinde <archana.m.shinde@intel.com>
2020-07-21 17:50:14 -07:00
Peng Tao
c2539b1b3d
Merge pull request #350 from bergwolf/1.12.0-alpha0-branch-bump
# Kata Containers 1.12.0-alpha0
2020-07-02 12:00:22 +08:00
Peng Tao
8af8129a1a release: Kata Containers 1.12.0-alpha0
- agent: fix protobuf depenedency
- ci: install rust back to 1.42.0 to avoid ci failure.
- release: actions: pin artifact to v1

1f21947d agent: fix protobuf depenedency
ba3078b8 ci: install rust back to 1.42.0 to avoid ci failure.
bf567135 release: actions: pin artifact to v1

Signed-off-by: Peng Tao <bergwolf@hyper.sh>
2020-07-02 10:41:09 +08:00
Peng Tao
1f21947dd1 agent: fix protobuf depenedency
So that we don't use the latest one that requires unstable rust
features.

Signed-off-by: Peng Tao <bergwolf@hyper.sh>
2020-07-02 10:40:13 +08:00
James O. D. Hunt
e902aeb5cf
Merge pull request #221 from jongwu/cargo
ci: install rust back to 1.42.0 to avoid ci failure.
2020-05-21 14:06:33 +01:00
Jianyong Wu
ba3078b8e5 ci: install rust back to 1.42.0 to avoid ci failure.
There maybe a bug in the 1.43.1 cargo, so we need install rust back
to 1.42.0 to avoid the failure when make the rust agent using the latest
rust.

Fixes: #202
Signed-off-by: Jianyong Wu <jianyong.wu@arm.com>
2020-05-19 10:14:23 +08:00
Jose Carlos Venegas Munoz
a276da6194
Merge pull request #212 from jcvenegas/fix-211
release: actions: pin artifact to v1
2020-05-07 10:28:19 -05:00
Jose Carlos Venegas Munoz
bf5671357e release: actions: pin artifact to v1
the actions upload/download-artifact moved to a new version
and master now is not comptible.

Fixes: #211

Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
2020-05-07 03:48:03 +00:00
Archana Shinde
c95d09a34d
Merge pull request #181 from chavafg/1.11.0-rc0-branch-bump
# Kata Containers 1.11.0-rc0
2020-04-17 14:55:51 -07:00
Salvador Fuentes
63d9a8696f release: Kata Containers 1.11.0-rc0
- Fix potentianl crash
- sandbox: fix the issue of missing setting hostname
- unify the rustjail's log to contain container id and exec id
- Refactor the way of creating container process

ba3c732 grpc: fix the issue of potential crashes
32431d7 rpc: fix the issue of kill container process
986e666 sandbox: fix the issue of missing setting hostname
7d9bdf7 grpc: Fix the issue passing wrong exec_id to exec process
9220fb8 rustjail: unify the rustjail's log to contain container id and exec id
c1b6838 rustjail: refactoring the way of creating container process
e56b10f rustjail: remove the unused imported crates
ded27f4 oci: add Default and Clone to oci spec objects
7df8ede rustjail: replace protocol spec with oci spec

Signed-off-by: Salvador Fuentes <salvador.fuentes@intel.com>
2020-04-17 17:51:05 +00:00
Yang Bo
c0dc7676e0
Merge pull request #179 from lifupan/fix_potentianl_crash
Fix potentianl crash
2020-04-07 19:58:52 +08:00
fupan.lfp
ba3c732f86 grpc: fix the issue of potential crashes
It's better to check whether the sandbox's get_container
result instead of unwrap it directly, otherwise it would
crash the agent if the conainer id is invalid.

Fixes: #178

Signed-off-by: fupan.lfp <fupan.lfp@antfin.com>
2020-04-02 18:58:24 +08:00
fupan.lfp
32431d701c rpc: fix the issue of kill container process
When kill a process, if the exec id is empty, then
it means to kill all processes in the container, if
the exec id isn't empty, then it will only kill the
specific exec process.

Signed-off-by: fupan.lfp <fupan.lfp@antfin.com>
2020-04-02 17:58:46 +08:00
Yang Bo
6d61ab439c
Merge pull request #176 from lifupan/fix_hostname
sandbox: fix the issue of missing setting hostname
2020-04-01 10:00:31 +08:00
fupan.lfp
986e666b0b sandbox: fix the issue of missing setting hostname
When setup the persisten uts namespace, it's should
set the hostname for this ns.

Fixes: #175

Signed-off-by: fupan.lfp <fupan.lfp@antfin.com>
2020-03-31 17:22:24 +08:00
fupan.lfp
7d9bdf7b01 grpc: Fix the issue passing wrong exec_id to exec process
This issue was brought accidently by PR #174, fix this issue.

Signed-off-by: fupan.lfp <fupan.lfp@antfin.com>
2020-03-31 17:19:40 +08:00
James O. D. Hunt
c948d8a802
Merge pull request #174 from lifupan/unify_log
unify the rustjail's log to contain container id and exec id
2020-03-30 10:02:39 +01:00
fupan.lfp
9220fb8e0c rustjail: unify the rustjail's log to contain container id and exec id
Add the container id and exec id to start container's log
which would make it clearly to check the log.

Fixes: #173

Signed-off-by: fupan.lfp <fupan.lfp@antfin.com>
2020-03-27 20:10:50 +08:00
Yang Bo
1e15465012
Merge pull request #167 from lifupan/refactor
Refactor the way of creating container process
2020-03-24 11:18:42 +08:00
fupan.lfp
c1b6838e25 rustjail: refactoring the way of creating container process
In the previous implementation, create a container process
by forking the parent process as the container process,
and then at the forked child process do much more setting,
such as rootfs mounting, drop capabilities and so on, at
last exec the container entry cmd to switch into container
process.

But since the parent is a muti thread process, which would
cause a dead lock in the forked child. For example, if one
of the parent process's thread do some malloc operation, which
would take a mutex lock, and at the same time, the parent forked
a child process, since the mutex lock status would be inherited
by the child process but there's no chance to release the lock
in the child since the child process only has a single thread
which would meet a dead lock if it would do some malloc operation.

Thus, the new implementation would do exec directly after forked
and then do the setting in the exec process. Of course, this requred
a data communication between parent and child since the child cannot
depends on the shared memory by fork way.

Fixes: #166
Fixes: #133

Signed-off-by: fupan.lfp <fupan.lfp@antfin.com>
2020-03-23 17:12:10 +08:00
fupan.lfp
e56b10f835 rustjail: remove the unused imported crates
remove the unused imported crates

Signed-off-by: fupan.lfp <fupan.lfp@antfin.com>
2020-03-20 17:04:05 +08:00
fupan.lfp
ded27f48d5 oci: add Default and Clone to oci spec objects
Add the clone and default feature to oci
spec objects.

Signed-off-by: fupan.lfp <fupan.lfp@antfin.com>
2020-03-20 17:03:54 +08:00
fupan.lfp
7df8edef1b rustjail: replace protocol spec with oci spec
transform the rpc protocol spec to
oci spec.

Signed-off-by: fupan.lfp <fupan.lfp@antfin.com>
2020-03-20 16:26:32 +08:00
James O. D. Hunt
8280208443
Merge pull request #154 from awprice/issue-152
agent: add configurable container pipe size cmdline option
2020-03-18 08:36:23 +00:00
GabyCT
7087b5f43c
Merge pull request #165 from bergwolf/1.11.0-alpha1-branch-bump
# Kata Containers 1.11.0-alpha1
2020-03-17 13:10:53 -06:00
James O. D. Hunt
fe0a3a0c7c
Merge pull request #156 from lifupan/master
add a workspace and run all the tests in the workspace
2020-03-17 11:10:27 +00:00
Peng Tao
fbf1d015e7 release: Kata Containers 1.11.0-alpha1
- actions: Add verbose information
- systemd-service: build rust-agent systemd services
- grpc: fix the issue of crash agent when didn't find the process

cd233c0 actions: Add verbose information
f0eaeac path-absolutize: version update
3136712 systemd-service: build rust-agent systemd services
289d617 grpc: fix the issue of crash agent when didn't find the process

Signed-off-by: Peng Tao <bergwolf@hyper.sh>
2020-03-16 12:38:41 +00:00
fupan.lfp
245183cb28 cargo: add a workspace and run all the tests in the workspace
Add a worksapce and run all of the tests in
under this workspace.

Fixes:#155

Signed-off-by: fupan.lfp <fupan.lfp@antfin.com>
2020-03-16 16:34:59 +08:00
GabyCT
22afde1850
Merge pull request #158 from jcvenegas/fix-157
actions: Add verbose information
2020-03-04 15:15:42 -06:00
Jose Carlos Venegas Munoz
cd233c047a actions: Add verbose information
Add a logs to debug actions easily

Fixes: #157

Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
2020-03-04 16:02:06 +00:00
Alex Price
204edf0e51 agent: add configurable container pipe size cmdline option
Adds a cmdline option to configure the stdout/stderr pipe sizes.
Uses `F_SETPIPE_SZ` to resize the write side of the pipe after
creation.

Example Cmdline option: `agent.container_pipe_size=2097152`

fixes #152

Signed-off-by: Alex Price <aprice@atlassian.com>
2020-03-04 15:31:59 +11:00
GabyCT
35c33bba47
Merge pull request #145 from Pennyzct/build_service_for_rust_agent
systemd-service: build rust-agent systemd services
2020-03-03 13:17:27 -06:00