1
0
mirror of https://github.com/containers/youki synced 2024-09-20 10:54:22 +02:00
Commit Graph

849 Commits

Author SHA1 Message Date
dependabot[bot]
ec989b7748
chore(deps): bump syscalls from 0.6.11 to 0.6.12
Bumps [syscalls](https://github.com/jasonwhite/syscalls) from 0.6.11 to 0.6.12.
- [Changelog](https://github.com/jasonwhite/syscalls/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jasonwhite/syscalls/compare/0.6.11...0.6.12)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-29 01:46:00 +00:00
Toru Komatsu
65aceec198
Merge pull request #1963 from yihuaf/yihuaf/coverage
Add some clean up that improves coverage
2023-05-26 21:40:42 +09:00
dependabot[bot]
19db135686
chore(deps): bump regex from 1.8.2 to 1.8.3
Bumps [regex](https://github.com/rust-lang/regex) from 1.8.2 to 1.8.3.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.8.2...1.8.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-26 01:17:48 +00:00
dependabot[bot]
733d9a0756
chore(deps): bump vergen from 8.2.0 to 8.2.1
Bumps [vergen](https://github.com/rustyhorde/vergen) from 8.2.0 to 8.2.1.
- [Release notes](https://github.com/rustyhorde/vergen/releases)
- [Commits](https://github.com/rustyhorde/vergen/compare/8.2.0...8.2.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-25 01:06:33 +00:00
yihuaf
f76835ed7e fix test_utils dependency
Signed-off-by: yihuaf <yihuaf@unkies.org>
2023-05-24 14:12:12 -07:00
yihuaf
31d4a8b0ec fixed utils io functions
Signed-off-by: yihuaf <yihuaf@unkies.org>
2023-05-24 14:04:18 -07:00
yihuaf
1d81f05f93 remove do_exec now that default executor is used.
Signed-off-by: yihuaf <yihuaf@unkies.org>
2023-05-24 14:04:18 -07:00
dependabot[bot]
50294dd03e
chore(deps): bump wasmtime from 8.0.1 to 9.0.1 (#1959)
* chore(deps): bump wasmtime-wasi from 8.0.1 to 9.0.1

Bumps [wasmtime-wasi](https://github.com/bytecodealliance/wasmtime) from 8.0.1 to 9.0.1.
- [Release notes](https://github.com/bytecodealliance/wasmtime/releases)
- [Changelog](https://github.com/bytecodealliance/wasmtime/blob/main/docs/WASI-some-possible-changes.md)
- [Commits](https://github.com/bytecodealliance/wasmtime/compare/v8.0.1...v9.0.1)

---
updated-dependencies:
- dependency-name: wasmtime-wasi
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore(deps): bump wasmtime from 8.0.1 to 9.0.1

Bumps [wasmtime](https://github.com/bytecodealliance/wasmtime) from 8.0.1 to 9.0.1.
- [Release notes](https://github.com/bytecodealliance/wasmtime/releases)
- [Changelog](https://github.com/bytecodealliance/wasmtime/blob/main/docs/WASI-some-possible-changes.md)
- [Commits](https://github.com/bytecodealliance/wasmtime/compare/v8.0.1...v9.0.1)

---
updated-dependencies:
- dependency-name: wasmtime
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Yashodhan Joshi <yjdoc2@gmail.com>
2023-05-23 23:54:13 -07:00
Eric Fang
2427aef05b
Fix the test to not use sigkill (#1948)
* Fix the test to not use sigkill

Sigkill is not the right signal to use because it kills the process without
going through the handler. Use sigint instead. Also add tracing for
debugging in the future.

Signed-off-by: yihuaf <yihuaf@unkies.org>

* refactored test_in_child_process and channel into its own crate

Signed-off-by: yihuaf <yihuaf@unkies.org>

* refactor tracing test to use test in child process

Signed-off-by: yihuaf <yihuaf@unkies.org>

* fix cargo

Signed-off-by: yihuaf <yihuaf@unkies.org>

* fix failed CI

Signed-off-by: yihuaf <yihuaf@unkies.org>

* fix review

Signed-off-by: yihuaf <yihuaf@unkies.org>

* fix review

Signed-off-by: yihuaf <yihuaf@unkies.org>

---------

Signed-off-by: yihuaf <yihuaf@unkies.org>
2023-05-23 19:57:02 +09:00
dependabot[bot]
161af61b2d
chore(deps): bump regex from 1.8.1 to 1.8.2
Bumps [regex](https://github.com/rust-lang/regex) from 1.8.1 to 1.8.2.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.8.1...1.8.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-23 01:20:20 +00:00
dependabot[bot]
3f1decff82
chore(deps): bump vergen from 8.1.3 to 8.2.0 (#1953)
Bumps [vergen](https://github.com/rustyhorde/vergen) from 8.1.3 to 8.2.0.
- [Release notes](https://github.com/rustyhorde/vergen/releases)
- [Commits](https://github.com/rustyhorde/vergen/compare/8.1.3...8.2.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-21 23:13:51 -07:00
yihuaf
c45e5f2063 removed unified syscall error
Signed-off-by: yihuaf <yihuaf@unkies.org>
2023-05-19 23:54:22 -07:00
yihuaf
8a6a8c6e96 simplified the syscall error
Signed-off-by: yihuaf <yihuaf@unkies.org>
2023-05-19 23:54:22 -07:00
Eric Fang
0d6b0d563b
Finally, remove anyhow from the libcontainer dependency. (#1937)
* remove anyhow

Signed-off-by: yihuaf <yihuaf@unkies.org>

* removed anyhow from workload

Signed-off-by: yihuaf <yihuaf@unkies.org>

* clean up the anyhow errors

Signed-off-by: yihuaf <yihuaf@unkies.org>

* fix

Signed-off-by: yihuaf <yihuaf@unkies.org>

* fix

Signed-off-by: yihuaf <yihuaf@unkies.org>

* fix error message

Signed-off-by: yihuaf <yihuaf@unkies.org>

* fixed wasm error

Signed-off-by: yihuaf <yihuaf@unkies.org>

---------

Signed-off-by: yihuaf <yihuaf@unkies.org>
2023-05-19 19:03:37 +09:00
Toru Komatsu
ca6bc31281
Merge pull request #1943 from containers/dependabot/cargo/bitflags-2.3.1
chore(deps): bump bitflags from 2.2.1 to 2.3.1
2023-05-18 20:23:40 +09:00
dependabot[bot]
8c9e4ecf51
chore(deps): bump bitflags from 2.2.1 to 2.3.1
Bumps [bitflags](https://github.com/bitflags/bitflags) from 2.2.1 to 2.3.1.
- [Release notes](https://github.com/bitflags/bitflags/releases)
- [Changelog](https://github.com/bitflags/bitflags/blob/main/CHANGELOG.md)
- [Commits](https://github.com/bitflags/bitflags/compare/2.2.1...2.3.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-18 01:16:11 +00:00
dependabot[bot]
020b48ae93
chore(deps): bump syscalls from 0.6.10 to 0.6.11
Bumps [syscalls](https://github.com/jasonwhite/syscalls) from 0.6.10 to 0.6.11.
- [Changelog](https://github.com/jasonwhite/syscalls/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jasonwhite/syscalls/compare/0.6.10...0.6.11)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-18 01:06:46 +00:00
Toru Komatsu
6633786ea4
Merge pull request #1930 from yihuaf/yihuaf/container-error
implemented thiserror for containers - Part 5
2023-05-17 21:02:47 +09:00
Ismo Puustinen
ae49a0aa2d main_process: close the channel receivers.
Signed-off-by: Ismo Puustinen <ismo.puustinen@intel.com>
2023-05-17 13:22:01 +03:00
yihuaf
b82f42e4b5 implemented thiserror for containers
Signed-off-by: yihuaf <yihuaf@unkies.org>
2023-05-16 14:50:45 -07:00
Eric Fang
9ebebc2420
Implemented thiserror for libcontainer - Part 4 (#1912)
* implemented this error for rootfs

Signed-off-by: yihuaf <yihuaf@unkies.org>

* container state error

Signed-off-by: yihuaf <yihuaf@unkies.org>

* implemented intel rdt error

Signed-off-by: yihuaf <yihuaf@unkies.org>

* process module converted to thiserror

Signed-off-by: yihuaf <yihuaf@unkies.org>

* workload mod

Signed-off-by: yihuaf <yihuaf@unkies.org>

* moved executable utils

Signed-off-by: yihuaf <yihuaf@unkies.org>

* rootless

Signed-off-by: yihuaf <yihuaf@unkies.org>

* refactored missing spec error

Signed-off-by: yihuaf <yihuaf@unkies.org>

* fix lint

Signed-off-by: yihuaf <yihuaf@unkies.org>

* fix

Signed-off-by: yihuaf <yihuaf@unkies.org>

---------

Signed-off-by: yihuaf <yihuaf@unkies.org>
2023-05-15 20:20:55 +09:00
yihuaf
90313c46eb Switch vm to VmBuilder
Signed-off-by: yihuaf <yihuaf@unkies.org>
2023-05-14 21:13:46 -07:00
dependabot[bot]
a9fd3adfc6
chore(deps): bump wasmedge-sdk from 0.7.1 to 0.8.1
Bumps [wasmedge-sdk](https://github.com/WasmEdge/WasmEdge) from 0.7.1 to 0.8.1.
- [Release notes](https://github.com/WasmEdge/WasmEdge/releases)
- [Changelog](https://github.com/WasmEdge/WasmEdge/blob/master/Changelog.md)
- [Commits](https://github.com/WasmEdge/WasmEdge/compare/0.7.1...0.8.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-15 01:38:39 +00:00
Toru Komatsu
91b476a35f
Use safe_path crate instead of our original secure_join (#1911)
Our secure_join had a bug and did not work perfectly with K8s.
It did not take into account the case where the symbolic destination is an absolute path.
Thus there are many cases where secure_join should be considered;
it would be more worthwhile to use safe_path,
which kata-container makes, and mature this one.

Signed-off-by: utam0k <k0ma@utam0k.jp>
2023-05-13 10:30:17 -07:00
Eric Fang
dcc13ff365
convert youki to use tracing (#1899)
* convert youki to use tracing

Signed-off-by: yihuaf <yihuaf@unkies.org>

* fix default logging to stderr

Signed-off-by: yihuaf <yihuaf@unkies.org>

* fix unsafe

Signed-off-by: yihuaf <yihuaf@unkies.org>

* turn off time stamp for text log to stderr

Signed-off-by: yihuaf <yihuaf@unkies.org>

---------

Signed-off-by: yihuaf <yihuaf@unkies.org>
2023-05-12 20:47:05 +09:00
Ismo Puustinen
131beacf15 deps: do not use chrono default-features.
Signed-off-by: Ismo Puustinen <ismo.puustinen@intel.com>
2023-05-11 08:44:38 +03:00
yihuaf
737d8ff410 implemented seccomp
Signed-off-by: yihuaf <yihuaf@unkies.org>
2023-05-09 14:51:06 +00:00
yihuaf
a04aebfae2 minor fixes
Signed-off-by: yihuaf <yihuaf@unkies.org>
2023-05-09 14:51:06 +00:00
yihuaf
fb4facacb0 implement util error
Signed-off-by: yihuaf <yihuaf@unkies.org>
2023-05-09 14:51:06 +00:00
yihuaf
9968af0f84 Implement TTY error
Signed-off-by: yihuaf <yihuaf@unkies.org>
2023-05-09 14:51:06 +00:00
Eric Fang
654c7f45f7
Migrate to tempfile for libcontainer and youki crate (#1887)
* libcontainer and youki removed TempDir

Signed-off-by: yihuaf <yihuaf@unkies.org>

* remove the use of test name to create tmp dir

Signed-off-by: yihuaf <yihuaf@unkies.org>

* fix review

Signed-off-by: yihuaf <yihuaf@unkies.org>

---------

Signed-off-by: yihuaf <yihuaf@unkies.org>
2023-05-09 21:53:57 +09:00
dependabot[bot]
cc45fd355c
chore(deps): bump libc from 0.2.143 to 0.2.144
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.143 to 0.2.144.
- [Release notes](https://github.com/rust-lang/libc/releases)
- [Commits](https://github.com/rust-lang/libc/compare/0.2.143...0.2.144)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-09 01:02:01 +00:00
Toru Komatsu
72a5fec17e
Merge pull request #1884 from utam0k/test-k3s
Add easy way to test with K8s
2023-05-08 22:00:28 +09:00
yihuaf
af149531f0 replaced libcgroup tempdir
Signed-off-by: yihuaf <yihuaf@unkies.org>
2023-05-08 05:33:59 +00:00
Eric Fang
5c31fae50a
Implemented more thiserror for libcontainer (Part 2) (#1881)
Implemented more thiserror for the libcontainer. This PR covers most of the low hanging fruits with smaller crates. Note, I decided to add a new syscall error wrapper that wraps the nix::Error, std::io::Error, and our own syscall crate. This aims to simplify where we call syscalls from 3 different sources and can simplify/unify many errors.
---------

Signed-off-by: yihuaf <yihuaf@unkies.org>
2023-05-07 20:24:00 -07:00
dependabot[bot]
aee9befb9d
chore(deps): bump libc from 0.2.142 to 0.2.143
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.142 to 0.2.143.
- [Release notes](https://github.com/rust-lang/libc/releases)
- [Commits](https://github.com/rust-lang/libc/compare/0.2.142...0.2.143)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-08 01:10:46 +00:00
utam0k
29cf869c68
Add the handly script for kind and youki
Signed-off-by: utam0k <k0ma@utam0k.jp>
2023-05-07 06:03:00 +00:00
utam0k
ec2f58d4b2
Add easy way to test with K8s
Signed-off-by: utam0k <k0ma@utam0k.jp>
2023-05-06 12:03:36 +00:00
Toru Komatsu
5edbc9e314
Merge pull request #1880 from containers/dependabot/cargo/wasmer-wasix-0.4.0
chore(deps): bump wasmer-wasix from 0.3.1 to 0.4.0
2023-05-06 10:43:18 +09:00
Eric Fang
5f31428347
rewrote the bpf example (#1877)
Signed-off-by: yihuaf <yihuaf@unkies.org>
2023-05-03 23:08:29 -07:00
Eric Fang
b51cf1ab25
Implement thiserror for libcontainer - Part 1 (#1876)
* introduced libcontainer error

Signed-off-by: yihuaf <yihuaf@unkies.org>

* implemented syscall error

Signed-off-by: yihuaf <yihuaf@unkies.org>

* implemented namespace error

Signed-off-by: yihuaf <yihuaf@unkies.org>

* Implemented rest of the thiserror for process, syscall, namespace and etc.

Signed-off-by: yihuaf <yihuaf@unkies.org>

* Fix libcgroup error

Signed-off-by: yihuaf <yihuaf@unkies.org>

* remove dead code

Signed-off-by: yihuaf <yihuaf@unkies.org>

* fix dead code

Signed-off-by: yihuaf <yihuaf@unkies.org>

---------

Signed-off-by: yihuaf <yihuaf@unkies.org>
2023-05-04 10:47:45 +09:00
dependabot[bot]
03e60c6472
chore(deps): bump wasmer-wasix from 0.3.1 to 0.4.0
Bumps [wasmer-wasix](https://github.com/wasmerio/wasmer) from 0.3.1 to 0.4.0.
- [Release notes](https://github.com/wasmerio/wasmer/releases)
- [Changelog](https://github.com/wasmerio/wasmer/blob/master/CHANGELOG.md)
- [Commits](https://github.com/wasmerio/wasmer/commits/0.4.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-04 01:18:55 +00:00
Mia
ae408ad4bb
Adopt thiserror for libcgroups (#1872)
* convert systemd controllers to thiserror

Signed-off-by: squili <74628488+squili@users.noreply.github.com>

* finish systemd manager except for the CgroupManager impl

Signed-off-by: squili <74628488+squili@users.noreply.github.com>

* refactor controller traits to be internal

Signed-off-by: squili <74628488+squili@users.noreply.github.com>

* convert v1 controllers to thiserror

Signed-off-by: squili <74628488+squili@users.noreply.github.com>

* convert v2 controllers to thiserror

Signed-off-by: squili <74628488+squili@users.noreply.github.com>

* make StatsProvider an internal trait

Signed-off-by: squili <74628488+squili@users.noreply.github.com>

* replace v1 stats provider anyhow with thiserror

Signed-off-by: squili <74628488+squili@users.noreply.github.com>

* remove anyhow from v2 stats providers

Signed-off-by: squili <74628488+squili@users.noreply.github.com>

* fix lints

Signed-off-by: squili <74628488+squili@users.noreply.github.com>

* get rid of doc test error

Signed-off-by: squili <74628488+squili@users.noreply.github.com>

* convert managers from anyhow to thiserror

Signed-off-by: squili <74628488+squili@users.noreply.github.com>

* fix lints

Signed-off-by: squili <74628488+squili@users.noreply.github.com>

* get rid of the rest of the references to anyhow

Signed-off-by: squili <74628488+squili@users.noreply.github.com>

* AnyManager -> AnyCgroupManager

Signed-off-by: squili <74628488+squili@users.noreply.github.com>

* fix formatting

Signed-off-by: squili <74628488+squili@users.noreply.github.com>

* fix lint in libcgroups devices

Signed-off-by: squili <74628488+squili@users.noreply.github.com>

---------

Signed-off-by: squili <74628488+squili@users.noreply.github.com>
2023-05-03 14:59:55 +09:00
dependabot[bot]
8ec706bd9b
chore(deps): bump anyhow from 1.0.70 to 1.0.71
Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.70 to 1.0.71.
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.70...1.0.71)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-01 01:51:39 +00:00
dependabot[bot]
df8420d048
chore(deps): bump wasmtime-wasi from 8.0.0 to 8.0.1
Bumps [wasmtime-wasi](https://github.com/bytecodealliance/wasmtime) from 8.0.0 to 8.0.1.
- [Release notes](https://github.com/bytecodealliance/wasmtime/releases)
- [Changelog](https://github.com/bytecodealliance/wasmtime/blob/main/docs/WASI-some-possible-changes.md)
- [Commits](https://github.com/bytecodealliance/wasmtime/compare/v8.0.0...v8.0.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-01 01:39:58 +00:00
github-actions[bot]
8f3018bf06
Merge pull request #1860 from containers/dependabot/cargo/vergen-8.1.3 2023-04-28 01:25:54 +00:00
dependabot[bot]
5b19b3bcb7
chore(deps): bump vergen from 8.1.2 to 8.1.3
Bumps [vergen](https://github.com/rustyhorde/vergen) from 8.1.2 to 8.1.3.
- [Release notes](https://github.com/rustyhorde/vergen/releases)
- [Commits](https://github.com/rustyhorde/vergen/compare/8.1.2...8.1.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-28 01:17:33 +00:00
dependabot[bot]
21a488116d
chore(deps): bump wasmtime from 8.0.0 to 8.0.1
Bumps [wasmtime](https://github.com/bytecodealliance/wasmtime) from 8.0.0 to 8.0.1.
- [Release notes](https://github.com/bytecodealliance/wasmtime/releases)
- [Changelog](https://github.com/bytecodealliance/wasmtime/blob/main/docs/WASI-some-possible-changes.md)
- [Commits](https://github.com/bytecodealliance/wasmtime/compare/v8.0.0...v8.0.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-28 01:11:49 +00:00
Toru Komatsu
7d9d0917b2
Merge pull request #1822 from ipuustin/intel-rdt
Add support to Intel RDT.
2023-04-27 12:12:16 +09:00
boaz-quotient
f54ca68ecd
Override log opt when specified more than once (#1847)
* Override log opt when specified more than once

Signed-off-by: Boaz Shuster <boaz.shuster.github@gmail.com>

* Add a comment about the log flag "override" behavior

Signed-off-by: Boaz Shuster <boaz.shuster.github@gmail.com>

---------

Signed-off-by: Boaz Shuster <boaz.shuster.github@gmail.com>
Co-authored-by: Boaz Shuster <boaz.shuster.github@gmail.com>
2023-04-26 09:48:24 -07:00