1
0
mirror of https://github.com/containers/youki synced 2024-11-23 09:21:57 +01:00
Commit Graph

632 Commits

Author SHA1 Message Date
Yashodhan Joshi
2f8a153eb8 Add TestContainerKill required error message in kill command 2022-11-06 17:38:09 +05:30
Toru Komatsu
8487989c02
Merge pull request #1315 from containers/dependabot/cargo/caps-0.5.5
chore(deps): bump caps from 0.5.4 to 0.5.5
2022-11-04 15:11:34 +09:00
Toru Komatsu
da3bf55169
Merge pull request #1309 from containers/dependabot/cargo/once_cell-1.16.0
chore(deps): bump once_cell from 1.15.0 to 1.16.0
2022-11-03 21:38:35 +09:00
dependabot[bot]
0f55ee9d26
chore(deps): bump caps from 0.5.4 to 0.5.5
Bumps [caps](https://github.com/lucab/caps-rs) from 0.5.4 to 0.5.5.
- [Release notes](https://github.com/lucab/caps-rs/releases)
- [Commits](https://github.com/lucab/caps-rs/compare/v0.5.4...v0.5.5)

---
updated-dependencies:
- dependency-name: caps
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-03 01:24:23 +00:00
Yashodhan
0b90f8ffdc
Merge pull request #1204 from cyyzero/fix_kill
Thaw a paused container in cgroup v1 when it is deleted with --force.
2022-10-31 11:00:51 +05:30
dependabot[bot]
56587ea3ff
chore(deps): bump once_cell from 1.15.0 to 1.16.0
Bumps [once_cell](https://github.com/matklad/once_cell) from 1.15.0 to 1.16.0.
- [Release notes](https://github.com/matklad/once_cell/releases)
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md)
- [Commits](https://github.com/matklad/once_cell/compare/v1.15.0...v1.16.0)

---
updated-dependencies:
- dependency-name: once_cell
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-31 00:49:55 +00:00
Chen Yiyang
2a711e94fe
Allow kill --all even when container is stopped
To pass containerd integration test TestContainerKillInitPidHost, we
need to allow a container to be killed --all again when its status is
stopped.

Fix: #1225

Signed-off-by: Chen Yiyang <cyyzero@qq.com>
2022-10-29 17:06:08 +08:00
Toru Komatsu
1c32af7d29
Merge pull request #1302 from YJDoc2/log_final_result
Log result of the command before returning from main
2022-10-25 21:28:17 +09:00
Yashodhan Joshi
e8c5d6a595 Log result of the command before returning from main
Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>
2022-10-25 17:47:11 +05:30
Toru Komatsu
c87dc9acd8
Merge pull request #1301 from containers/dependabot/cargo/libbpf-sys-1.0.4v1.0.1
chore(deps): bump libbpf-sys from 1.0.3+v1.0.1 to 1.0.4+v1.0.1
2022-10-25 21:07:23 +09:00
Toru Komatsu
9ace4f7792
Merge pull request #1299 from containers/dependabot/cargo/mio-0.8.5
chore(deps): bump mio from 0.8.4 to 0.8.5
2022-10-25 21:06:36 +09:00
dependabot[bot]
768aaaab6a
chore(deps): bump libbpf-sys from 1.0.3+v1.0.1 to 1.0.4+v1.0.1
Bumps [libbpf-sys](https://github.com/libbpf/libbpf-sys) from 1.0.3+v1.0.1 to 1.0.4+v1.0.1.
- [Release notes](https://github.com/libbpf/libbpf-sys/releases)
- [Commits](https://github.com/libbpf/libbpf-sys/commits)

---
updated-dependencies:
- dependency-name: libbpf-sys
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-25 00:43:20 +00:00
dependabot[bot]
91554164d9
chore(deps): bump mio from 0.8.4 to 0.8.5
Bumps [mio](https://github.com/tokio-rs/mio) from 0.8.4 to 0.8.5.
- [Release notes](https://github.com/tokio-rs/mio/releases)
- [Changelog](https://github.com/tokio-rs/mio/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tokio-rs/mio/compare/v0.8.4...v0.8.5)

---
updated-dependencies:
- dependency-name: mio
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-25 00:42:13 +00:00
dependabot[bot]
adcb1f4a65
chore(deps): bump clap from 3.2.22 to 3.2.23
Bumps [clap](https://github.com/clap-rs/clap) from 3.2.22 to 3.2.23.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/v3.2.23/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.22...v3.2.23)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-25 00:40:29 +00:00
Toru Komatsu
d3f3c5f599
Merge pull request #1288 from YJDoc2/fix_cgroup_setup
Fix how cgroup manager is created based on cgroups path
2022-10-21 21:23:29 +09:00
Toru Komatsu
bcdfd59e96
Merge pull request #1252 from YJDoc2/fix-exec-return-code
Make exec behaviour consistent with runc's exec
2022-10-21 21:10:52 +09:00
Yashodhan Joshi
2d48e165fe Fix how cgroup manager is created based on cgroups path
Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>
2022-10-21 15:42:06 +05:30
Yashodhan Joshi
bed057fb75 Extract detached into main builder struct, better error message handling 2022-10-20 19:55:23 +05:30
dependabot[bot]
9e725a197f
chore(deps): bump mockall from 0.11.2 to 0.11.3
Bumps [mockall](https://github.com/asomers/mockall) from 0.11.2 to 0.11.3.
- [Release notes](https://github.com/asomers/mockall/releases)
- [Changelog](https://github.com/asomers/mockall/blob/v0.11.3/CHANGELOG.md)
- [Commits](https://github.com/asomers/mockall/compare/v0.11.2...v0.11.3)

---
updated-dependencies:
- dependency-name: mockall
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-19 12:07:53 +00:00
Yashodhan Joshi
60e3a2506e Update libbpf to 1.0.3+v1.0.1
This makes the relevant changes for the major release of libbpf-sys.
Apart from a function name and signature difference, there is no
visible breakage in the behavior.

Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>
2022-10-19 16:10:02 +05:30
dependabot[bot]
a85d036c15 chore(deps): bump syscalls from 0.6.6 to 0.6.7
Bumps [syscalls](https://github.com/jasonwhite/syscalls) from 0.6.6 to 0.6.7.
- [Release notes](https://github.com/jasonwhite/syscalls/releases)
- [Changelog](https://github.com/jasonwhite/syscalls/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jasonwhite/syscalls/compare/0.6.6...0.6.7)

---
updated-dependencies:
- dependency-name: syscalls
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-19 16:10:02 +05:30
Yashodhan Joshi
f5a84bd7ed Actually set value of detach from command args 2022-10-07 20:35:45 +05:30
Yashodhan Joshi
c6b8b819ec Make handling of exec containers slightly more idiomatic
Rather than drilling down RawFd from tenant to init_process,
this instead adds an enum in ContainerArgs, containing RawFd
2022-10-07 11:59:17 +05:30
Yashodhan Joshi
603475b478 Fix formatting 2022-10-06 14:00:10 +05:30
Yashodhan Joshi
b48a379d8f Close the write end from intermediate process as well 2022-10-06 13:58:48 +05:30
Yashodhan Joshi
911381c042 Fix exec command for detached 2022-10-04 16:01:05 +05:30
Yashodhan Joshi
15978cae6d Add vergen git commit sha override if .git not found 2022-10-04 14:40:12 +05:30
Yashodhan Joshi
98926ad165 Fix behaviour on exec failure 2022-10-03 12:00:39 +05:30
dependabot[bot]
fa0c39394c
chore(deps): bump libseccomp from 0.2.3 to 0.3.0
Bumps [libseccomp](https://github.com/libseccomp-rs/libseccomp-rs) from 0.2.3 to 0.3.0.
- [Release notes](https://github.com/libseccomp-rs/libseccomp-rs/releases)
- [Changelog](https://github.com/libseccomp-rs/libseccomp-rs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/libseccomp-rs/libseccomp-rs/compare/v0.2.3...v0.3.0)

---
updated-dependencies:
- dependency-name: libseccomp
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-03 01:27:30 +00:00
utam0k
c7503a42f8
Merge pull request #1214 from higuruchi/Support_domainname
Support domainname
2022-09-27 21:04:57 +09:00
higuruchi
9eb878dfd1 Changed to match and proper errno handling
Signed-off-by: higuruchi <fumiya2324@gmail.com>
2022-09-27 04:32:59 +00:00
utam0k
5a453b407d
Fix a warning from cargo clippy
Signed-off-by: utam0k <k0ma@utam0k.jp>
2022-09-26 20:48:25 +09:00
higuruchi
8df40c62c5 add domainname test
Signed-off-by: higuruchi <fumiya2324@gmail.com>
2022-09-26 09:14:37 +00:00
higuruchi
7b7a45a79a Support domainname
Signed-off-by: higuruchi <fumiya2324@gmail.com>
2022-09-26 05:18:13 +00:00
Chen Yiyang
e9dbb3c50f
Thaw a paused container in cgroup v1 when it is forcely deleted.
If force is not given, and cgroups is v1 and container is frozen, display
error saying could not be killed as it was forzen. If force option is given,
and cgroups is v1 and container is frozen, thaw it and send the kill signal.
If cgroups is v2 , nothing special needs to be done.

Fix: #1129

Signed-off-by: Chen Yiyang <cyyzero@qq.com>
2022-09-21 17:59:27 +08:00
dependabot[bot]
77d761effb
chore(deps): bump once_cell from 1.14.0 to 1.15.0
Bumps [once_cell](https://github.com/matklad/once_cell) from 1.14.0 to 1.15.0.
- [Release notes](https://github.com/matklad/once_cell/releases)
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md)
- [Commits](https://github.com/matklad/once_cell/compare/v1.14.0...v1.15.0)

---
updated-dependencies:
- dependency-name: once_cell
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-21 00:46:38 +00:00
utam0k
281c0a9e81
Merge pull request #1018 from utam0k/feature/exec-wait-pid
Get the result of exec command
2022-09-20 11:18:49 +09:00
dependabot[bot]
e4135f2580
chore(deps): bump clap from 3.2.21 to 3.2.22
Bumps [clap](https://github.com/clap-rs/clap) from 3.2.21 to 3.2.22.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/v3.2.22/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.21...v3.2.22)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-19 01:17:03 +00:00
Yashodhan Joshi
f8dc27f144 Fix clippy lint 2022-09-16 15:24:04 +05:30
dependabot[bot]
5e59b6296b
chore(deps): bump clap_complete from 3.2.4 to 3.2.5
Bumps [clap_complete](https://github.com/clap-rs/clap) from 3.2.4 to 3.2.5.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v3.2.4...clap_complete-v3.2.5)

---
updated-dependencies:
- dependency-name: clap_complete
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-15 11:28:33 +00:00
utam0k
a4c21c2f44
Merge pull request #1184 from containers/dependabot/cargo/clap-3.2.21
chore(deps): bump clap from 3.2.20 to 3.2.21
2022-09-15 20:27:45 +09:00
dependabot[bot]
a4a3a0f74f
chore(deps): bump anyhow from 1.0.63 to 1.0.65
Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.63 to 1.0.65.
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.63...1.0.65)

---
updated-dependencies:
- dependency-name: anyhow
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-14 00:46:43 +00:00
dependabot[bot]
af3a78090b
chore(deps): bump clap from 3.2.20 to 3.2.21
Bumps [clap](https://github.com/clap-rs/clap) from 3.2.20 to 3.2.21.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/v3.2.21/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.20...v3.2.21)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-13 00:39:28 +00:00
Yashodhan Joshi
c1d0f10b9c Move wait logic from intermediate process to main process 2022-09-12 15:56:23 +05:30
dependabot[bot]
f7d25286d3
chore(deps): bump oci-spec from 0.5.7 to 0.5.8
Bumps [oci-spec](https://github.com/containers/oci-spec-rs) from 0.5.7 to 0.5.8.
- [Release notes](https://github.com/containers/oci-spec-rs/releases)
- [Changelog](https://github.com/containers/oci-spec-rs/blob/main/release.md)
- [Commits](https://github.com/containers/oci-spec-rs/compare/v0.5.7...v0.5.8)

---
updated-dependencies:
- dependency-name: oci-spec
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-07 00:43:25 +00:00
Yashodhan Joshi
e526fe3c71 Make changes suggested in review 2022-09-06 12:34:46 +05:30
Yashodhan Joshi
4f2e27d588
Remove the is_exec_builder as it is redundant, replace with !init 2022-09-01 21:11:14 +09:00
Yashodhan Joshi
aa5d9c3c9b
Make the intermediate process wait conditionally, only for exec
Now the intermediate process waits for the main process only
when exec is called, not when the container is created. This
prevents it from waiting for created contianers, for which
exec might not be called.
This also fixes some formatting issues
2022-09-01 21:11:14 +09:00
utam0k
3de7458dc1
fix conflicts.
Signed-off-by: utam0k <k0ma@utam0k.jp>
2022-09-01 21:11:07 +09:00
utam0k
dacc73773f
wip.
Signed-off-by: utam0k <k0ma@utam0k.jp>
2022-09-01 21:06:21 +09:00