Commit Graph

14496 Commits

Author SHA1 Message Date
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
Maksym Pavlenko
c0e34fb7c8
Merge pull request #10174 from dcantah/simplify-errs
Chore: Simplify some syscall error checks
2024-05-07 03:32:49 +00:00
Akihiro Suda
e151b4d054
Merge pull request #10182 from containerd/dependabot/go_modules/github.com/pelletier/go-toml/v2-2.2.2
build(deps): bump github.com/pelletier/go-toml/v2 from 2.2.1 to 2.2.2
2024-05-07 03:17:41 +00:00
Akihiro Suda
6e9273c466
Merge pull request #10181 from containerd/dependabot/go_modules/golang-x-1f871509c5
build(deps): bump golang.org/x/sys from 0.19.0 to 0.20.0 in the golang-x group
2024-05-07 03:17:18 +00:00
dependabot[bot]
a6e417dc63
build(deps): bump go.etcd.io/bbolt from 1.3.9 to 1.3.10
Bumps [go.etcd.io/bbolt](https://github.com/etcd-io/bbolt) from 1.3.9 to 1.3.10.
- [Release notes](https://github.com/etcd-io/bbolt/releases)
- [Commits](https://github.com/etcd-io/bbolt/compare/v1.3.9...v1.3.10)

---
updated-dependencies:
- dependency-name: go.etcd.io/bbolt
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-06 23:16:38 +00:00
dependabot[bot]
4401c3cb7e
build(deps): bump github.com/pelletier/go-toml/v2 from 2.2.1 to 2.2.2
Bumps [github.com/pelletier/go-toml/v2](https://github.com/pelletier/go-toml) from 2.2.1 to 2.2.2.
- [Release notes](https://github.com/pelletier/go-toml/releases)
- [Changelog](https://github.com/pelletier/go-toml/blob/v2/.goreleaser.yaml)
- [Commits](https://github.com/pelletier/go-toml/compare/v2.2.1...v2.2.2)

---
updated-dependencies:
- dependency-name: github.com/pelletier/go-toml/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-06 23:16:30 +00:00
dependabot[bot]
42e02c6c0b
build(deps): bump golang.org/x/sys in the golang-x group
Bumps the golang-x group with 1 update: [golang.org/x/sys](https://github.com/golang/sys).


Updates `golang.org/x/sys` from 0.19.0 to 0.20.0
- [Commits](https://github.com/golang/sys/compare/v0.19.0...v0.20.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: golang-x
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-06 23:16:18 +00:00
Maksym Pavlenko
c30ac85477
Merge pull request #10176 from akhilerm/remove-go-1.21
remove go1.21.9 from CI matrix
2024-05-06 22:36:08 +00:00
Maksym Pavlenko
7686062c4e
Merge pull request #10178 from dmcgowan/update-api-1.8-0-rc.0
Update containerd api to v1.8.0-rc.0
2024-05-06 19:45:23 +00:00
Phil Estes
04c7d6ccbf
Merge pull request #9960 from adrianreber/2024-03-12-criu-not-found
Return correct error if CRIU binary is missing
2024-05-06 19:41:38 +00:00
Maksym Pavlenko
6c72ad9565
Merge pull request #10171 from fuweid/follow-up-10158
core/metadata: failfast on content.Commit
2024-05-06 19:23:52 +00:00
Derek McGowan
88b52119ce
Update api version to v1.8.0-rc.0
Signed-off-by: Derek McGowan <derek@mcg.dev>
2024-05-06 11:11:52 -07:00
Derek McGowan
1c9c64f316
Update release procedure to mention api replace
Signed-off-by: Derek McGowan <derek@mcg.dev>
2024-05-06 11:11:52 -07:00
Derek McGowan
e69efd56d6
Add go mod replace when proto changes happen
Signed-off-by: Derek McGowan <derek@mcg.dev>
2024-05-06 11:03:07 -07:00
Abel Feng
678137199a sandbox: remove PID() in sandbox client
which is not used and for some sandbox implementation, we may not get
the pid of a sandbox.

Signed-off-by: Abel Feng <fshb1988@gmail.com>
2024-05-07 00:51:33 +08:00
Maksym Pavlenko
114ef75833
Merge pull request #10169 from AkihiroSuda/crun-1.15
CI: bump up crun to 1.15
2024-05-06 16:12:47 +00:00
Derek McGowan
cc4d86922b
Merge pull request #10167 from dmcgowan/prepare-api-1.8.0
Prepare release notes for api/v1.8.0-rc.0
2024-05-06 15:58:56 +00:00
Akhil Mohan
13f2fa1de1
remove go1.21.9 from CI matrix
since go.mod got updated to go1.22, 1.22 is the minimum version to build
containerd. even if 1.21.9 is the version present on the host, go
command will build using 1.22.0 go version.

Signed-off-by: Akhil Mohan <akhilerm@gmail.com>
2024-05-06 16:00:41 +05:30
Danny Canter
f0363a7f6b Chore: Simplify some syscall error checks
This just replaces some type casts to check whether a few dial errors are
a specific syscall with the stdlibs errors.As/errors.Is pals.

Signed-off-by: Danny Canter <danny@dcantah.dev>
2024-05-06 00:44:13 -07:00
Derek McGowan
a26c686ea2
Merge pull request #10168 from dmcgowan/api-release-action
Add API release action
2024-05-04 22:34:23 +00:00
Wei Fu
99ad11a00a core/metadata: failfast on content.Commit
Close: #10158

Signed-off-by: Wei Fu <fuweid89@gmail.com>
2024-05-04 17:24:00 +08:00
Akihiro Suda
3fb84403b1
CI: bump up crun to 1.15
Changes:
- https://github.com/containers/crun/releases/tag/1.14.4
- https://github.com/containers/crun/releases/tag/1.15

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2024-05-04 14:12:23 +09:00
Derek McGowan
55fcebffc7
Prepare release notes for api/v1.8.0
Signed-off-by: Derek McGowan <derek@mcg.dev>
2024-05-03 16:51:50 -07:00
Derek McGowan
b811a88793
Add API release action
Signed-off-by: Derek McGowan <derek@mcg.dev>
2024-05-03 16:26:11 -07:00
Maksym Pavlenko
b6ffa2794e
Merge pull request #10164 from henry118/shim-fix
Update ctr shim subcommand to task v3
2024-05-03 19:37:36 +00:00
Kazuyoshi Kato
30fad38ce6
Merge pull request #10148 from containerd/dependabot/go_modules/otel-2cd70c4535
build(deps): bump the otel group with 8 updates
2024-05-03 18:17:10 +00:00