Commit Graph

14070 Commits

Author SHA1 Message Date
Kazuyoshi Kato
24c2ae8115
Merge pull request #10026 from ningmingxiao/info_exited_event
internal/cri: log ctr's exit event on info level
2024-05-17 01:28:43 +00:00
Kazuyoshi Kato
ff66ec7a73
Merge pull request #10105 from fidencio/topic/fix-typos-in-image_pull_test.go
images: tests: Fix typos in the tests
2024-05-17 01:27:46 +00:00
Derek McGowan
288f0592e5
Prepare release notes for v2.0.0-rc.2
Signed-off-by: Derek McGowan <derek@mcg.dev>
2024-05-16 17:41:52 -07:00
Maksym Pavlenko
90a8667310
Merge pull request #10190 from abel-von/fix-streaming-io-path
fix: modify streaming io url and add docs of sandboxer and io_type
2024-05-16 19:57:27 +00:00
Maksym Pavlenko
4fa8ce9d30
Merge pull request #10075 from ZhangShuaiyi/fix/docs
docs: update registry config guide
2024-05-16 19:42:21 +00:00
Justin Chadwell
9831a62d72 auth: add span to FetchToken helpers
Before this, during a call to the docker resolver, we would generate
span wrappers for each HTTPRequest correctly, however, as the docker
resolver reaches out to the docker authorizer, it could create HTTP
requests (for fetching tokens) that would not be wrapped in any span.

This can result in rather confusing traces, e.g. something like:

	remotes.docker.resolver.HTTPRequest
		HTTP HEAD (fetch index, fails with 401)
	HTTP GET (fetch token)
	remotes.docker.resolver.HTTPRequest
		HTTP HEAD (fetch index)
	remotes.docker.resolver.HTTPRequest
		HTTP GET (fetch manifest)

By adding a span into the FetchToken, this trace becomes a little easier
to consume:

	remotes.docker.resolver.HTTPRequest
		HTTP HEAD (fetch index, fails with 401)
	remotes.docker.resolver.FetchToken
		HTTP GET (fetch token)
	remotes.docker.resolver.HTTPRequest
		HTTP HEAD (fetch index)
	remotes.docker.resolver.HTTPRequest
		HTTP GET (fetch manifest)

Signed-off-by: Justin Chadwell <me@jedevc.com>
2024-05-15 15:54:37 +01:00
Maksym Pavlenko
a673c3452a
Merge pull request #10222 from containerd/dependabot/github_actions/ossf/scorecard-action-2.3.3
build(deps): bump ossf/scorecard-action from 2.3.1 to 2.3.3
2024-05-14 16:13:17 +00:00
Maksym Pavlenko
112ba8396d
Merge pull request #10224 from containerd/dependabot/go_modules/github.com/prometheus/client_golang-1.19.1
build(deps): bump github.com/prometheus/client_golang from 1.19.0 to 1.19.1
2024-05-14 16:12:53 +00:00
Phil Estes
c518783b3d
Merge pull request #10223 from containerd/dependabot/github_actions/golangci/golangci-lint-action-6
build(deps): bump golangci/golangci-lint-action from 5 to 6
2024-05-14 14:55:15 +00:00
Phil Estes
bef778aff3
Merge pull request #10220 from kiashok/update-ttrpc-tag
Update ttrpc tag to 1.2.4
2024-05-14 13:51:54 +00:00
dependabot[bot]
f24a951854
build(deps): bump github.com/prometheus/client_golang
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.19.0 to 1.19.1.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prometheus/client_golang/compare/v1.19.0...v1.19.1)

---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-14 00:03:06 +00:00
dependabot[bot]
8b2a69c19a
build(deps): bump golangci/golangci-lint-action from 5 to 6
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 5 to 6.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v5...v6)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-13 23:54:52 +00:00
dependabot[bot]
96ff18d37c
build(deps): bump ossf/scorecard-action from 2.3.1 to 2.3.3
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.3.1 to 2.3.3.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](0864cf1902...dc50aa9510)

---
updated-dependencies:
- dependency-name: ossf/scorecard-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-13 23:54:50 +00:00
Kirtana Ashok
1cae3dc9b7 update ttrpc to 1.2.4
Signed-off-by: Kirtana Ashok <kiashok@microsoft.com>
2024-05-13 16:13:26 -07:00
Maksym Pavlenko
536608ef22
Merge pull request #10218 from kiashok/update-platform-pkg
Update platforms package to v0.2.0
2024-05-13 23:09:49 +00:00
Derek McGowan
1bed3e90f2
Merge pull request #10219 from estesp/update-fuzz-instrument
Update instrumentation fuzzer with new flag
2024-05-13 16:09:07 -07:00
Phil Estes
e2251f9487
Update instrumentation fuzzer with new flag
Signed-off-by: Phil Estes <estesp@gmail.com>
2024-05-13 16:56:24 -04:00
Kirtana Ashok
ef76a90e95 Update platforms package to v0.2.0
Signed-off-by: Kirtana Ashok <kiashok@microsoft.com>
2024-05-13 10:27:42 -07:00
Abel Feng
0b113d78d4 doc: add the description of sandboxer and io_type
Signed-off-by: Abel Feng <fshb1988@gmail.com>
2024-05-13 17:42:58 +08:00
Abel Feng
7cead88004 cri: restart created container with correct io type
Signed-off-by: Abel Feng <fshb1988@gmail.com>
2024-05-13 17:42:58 +08:00
Abel Feng
42f778fc14 modify streaming io url form
sandbox address should be in the form of
<ttrpc|grpc>+<unix|vsock|hvsock>://<uds-path|vsock-cid:vsock-port|uds-path:hvsock-port>
for example: ttrpc+hvsock:///run/test.hvsock:1024
or: grpc+vsock://1111111:1024
and the Stdin/Stdout/Stderr will add a `streaming_id` as a parameter of the url
result form is:
<ttrpc|grpc>+<unix|vsock|hvsock>://<uds-path|vsock-cid:vsock-port|uds-path:hvsock-port>?streaming_id=<stream-id>
for example ttrpc+hvsock:///run/test.hvsock:1024?streaming_id=111111
or grpc+vsock://1111111:1024?streaming_id=222222

Signed-off-by: Abel Feng <fshb1988@gmail.com>
2024-05-13 17:42:51 +08:00
Maksym Pavlenko
29a6ab8261
Merge pull request #10202 from dmcgowan/unpack-fetch-all
Unpack fetch all
2024-05-11 20:17:27 +00:00
Akihiro Suda
76895c4a31
Merge pull request #10200 from swagatbora90/preserve-unprivileged-flags
Preserve Unprivileged locked flags during remount of bind mounts
2024-05-10 21:21:31 +00:00
Derek McGowan
2a54da04cd
Merge pull request #10206 from austinvazquez/update-golang-toolchain-to-1.22.3
Update tooling to Go 1.22.3 for net/http bug fixes
2024-05-10 18:54:26 +00:00
Austin Vazquez
25c2f690a8
Update toolchain to Go 1.22.3
Go 1.22.3 release includes bug fixes for the core net/http package.

Full release notes: https://go.dev/doc/devel/release#go1.22.minor

Signed-off-by: Austin Vazquez <macedonv@amazon.com>
2024-05-10 15:49:18 +00:00
Derek McGowan
681a083fab
Update unpacker to always fetch all
When a set of layers are provided to the unpacker, then the unpacker
should still fetch them regardless of whether they will be used for
unpack. The image handler filters are responsible for removing content
which is not intended to be fetched. Currently there is no way to use an
unpacker and also fetch all platforms.

Signed-off-by: Derek McGowan <derek@mcg.dev>
2024-05-09 21:59:42 -07:00
Derek McGowan
2788604e49
Update ctr image pull all platforms
Allows supporting fetching of all platforms while unpacking for a subset
of platforms.

Signed-off-by: Derek McGowan <derek@mcg.dev>
2024-05-09 20:48:38 -07:00
Abel Feng
58be881890 sandbox: do retry for wait to remote sandbox controller
remote sandbox controller may restart, the Wait call should be retried
if it is an grpc disconnetion error.

Signed-off-by: Abel Feng <fshb1988@gmail.com>
2024-05-10 10:18:42 +08:00
Swagat Bora
0597317759 Preserve CL_UNPRIVILEGED locked flags during remount of bind mounts
Signed-off-by: Swagat Bora <sbora@amazon.com>
2024-05-10 00:31:21 +00:00
Maksym Pavlenko
b168147ca8
Merge pull request #10193 from henry118/shim-sock
fix: delete sockets on shim exit
2024-05-09 05:06:41 +00:00
Akihiro Suda
cb6fb0b2f9
Merge pull request #10194 from mxpv/queue
Don't require vagrant tests in merge queues
2024-05-09 01:02:05 +00:00
Maksym Pavlenko
9a9a8c46a6 Don't require vagrant tests in merge queues
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2024-05-08 15:41:41 -07:00
Maksym Pavlenko
a8e921ad06
Merge pull request #10175 from dcantah/swap-to-newclient-grpc
Integration: Change to grpc.NewClient
2024-05-08 22:26:08 +00:00
Maksym Pavlenko
f690928709
Merge pull request #10187 from dmcgowan/metadata-add-lease-on-prepare
Update metadata snapshotter to lease on already exists
2024-05-08 22:25:11 +00:00
Henry Wang
d9dc2811ae fix: delete sockets on shim exit
Signed-off-by: Henry Wang <henwang@amazon.com>
2024-05-08 21:53:39 +00:00
Phil Estes
d2f160701a
Merge pull request #10188 from ktock/golangci-lint-1.58
CI: bump up golangci-lint to v1.58.0
2024-05-08 21:36:49 +00:00
Kohei Tokunaga
41dc94ee17
CI: bump up golangci-lint to v1.58.0
This also fixes the following warnings:

```
WARN [config_reader] The configuration option `run.skip-dirs` is deprecated, please use `issues.exclude-dirs`.
WARN [lintersdb] The name "vet" is deprecated. The linter has been renamed to: govet.
```

Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
2024-05-08 12:09:30 +09:00
Danny Canter
9ecfac7f6a Integration: Change to grpc.NewClient
Fun times: In grpc 1.63 grpc.Dial and a few of the options we use (WithBlock) are
deprecated in favor of the no-IO variant NewClient. The uses in the integration tests
should be easy to swap however as they don't use WithBlock anyways, so that's what this
change aims to do. This also removes some context.WithTimeout's as I don't see anywhere
the context is actually used in Dial if you don't also specify WithBlock (and it's
especially not used now with NewClient as it doesn't even take in a context).

Signed-off-by: Danny Canter <danny@dcantah.dev>
2024-05-07 17:13:15 -07:00
Derek McGowan
8c6183d749
Add lease test for metadata snapshotter
Signed-off-by: Derek McGowan <derek@mcg.dev>
2024-05-07 16:53:20 -07:00
Akihiro Suda
bfdc224861
Merge pull request #9920 from AkihiroSuda/cri-tools-20240304
critools-version: v1.30.0
2024-05-07 21:27:53 +00:00
Derek McGowan
c7fb8a9255
Update metadata snapshotter to lease on exists
Currently the metadata snapshotter is not consistently adding keys to a
lease when already exists is returned. When a lease is provided, any
already exists errors should add the relevant key to the lease. It is
not expected that clients must explicitly lease a key after calling
Prepare/Commit.

Signed-off-by: Derek McGowan <derek@mcg.dev>
2024-05-07 11:27:05 -07:00
Derek McGowan
a993add92e
Merge pull request #10184 from containerd/dependabot/go_modules/google.golang.org/protobuf-1.34.1
build(deps): bump google.golang.org/protobuf from 1.33.0 to 1.34.1
2024-05-07 17:53:47 +00:00
Fu Wei
313fc12b8a
Merge pull request #9965 from abel-von/streaming-io
cri: support io by streaming API
2024-05-07 14:22:12 +00:00
Phil Estes
c5f538c4c4
Merge pull request #10147 from containerd/dependabot/github_actions/lycheeverse/lychee-action-1.10.0
build(deps): bump lycheeverse/lychee-action from 1.9.3 to 1.10.0
2024-05-07 14:21:21 +00:00
Abel Feng
b8dfb4d8f5 cri: support io by streaming api
Signed-off-by: Abel Feng <fshb1988@gmail.com>
2024-05-07 20:26:40 +08:00
Wei Fu
3b065cdddb
CI: skip test in arm64 CI
Co-authored-by: Wei Fu <fuweid89@gmail.com>
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2024-05-07 21:24:28 +09:00
Akihiro Suda
6c3c5376fc
critools-version: v1.30.0
Pulls in kubernetes-sigs/cri-tools PR 1344 (`KEP-3857: Recursive Read-only (RRO) mounts`)
to test PR 9787

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2024-05-07 21:23:51 +09:00
Akihiro Suda
45b49487e5
Merge pull request #10183 from containerd/dependabot/go_modules/go.etcd.io/bbolt-1.3.10
build(deps): bump go.etcd.io/bbolt from 1.3.9 to 1.3.10
2024-05-07 05:07:15 +00:00
dependabot[bot]
b488e76db6
build(deps): bump google.golang.org/protobuf from 1.33.0 to 1.34.1
Bumps google.golang.org/protobuf from 1.33.0 to 1.34.1.

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-07 04:55:53 +00:00
Maksym Pavlenko
cd7825da08
Merge pull request #9883 from abel-von/modify-sandbox-client
sandbox: modify sandbox client
2024-05-07 04:16:57 +00:00