Commit Graph

5732 Commits

Author SHA1 Message Date
Phil Estes
e14cc99e23
Merge pull request #3438 from darfux/test_check_manifest_platform_nil
test: Check manifest.Platform before dereferencing
2019-07-22 09:53:29 -04:00
Li Yuxuan
5e5ae23d80 test: Check manifest.Platform before dereferencing
If the registry returns a manifest without platform info, the
`manifest.Platform` will be `nil` and cause panic when dereferencing.

Signed-off-by: Li Yuxuan <liyuxuan04@baidu.com>
2019-07-22 20:47:40 +08:00
Derek McGowan
f58fda97ec
Merge pull request #3432 from crosbymichael/stress-size
Add new shims for checking binary sizes and concurrent exec
2019-07-19 15:38:25 -07:00
Michael Crosby
1945e26ac3 Add concurrent execs in stress tests
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2019-07-19 19:12:44 +00:00
Michael Crosby
ffa86b25f9 Add new shims for checking binary sizes
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2019-07-19 17:49:11 +00:00
Michael Crosby
4005979c93
Merge pull request #3415 from dmcgowan/gc-flat-lease
Add flat GC label for leases
2019-07-19 11:01:50 -04:00
Brandon Lum
c118c45f89 Change image_enc_test so that it more reliably delete images
Signed-off-by: Brandon Lum <lumjjb@gmail.com>
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
2019-07-19 10:08:57 -04:00
Brandon Lum
c6d437fd70 Corrected lease implementation
Signed-off-by: Brandon Lum <lumjjb@gmail.com>
2019-07-18 18:17:20 -04:00
Brandon Lum
c00517a94c Made fixes and optimizations to encryption GC
Signed-off-by: Brandon Lum <lumjjb@gmail.com>
2019-07-18 15:15:32 -04:00
Michael Crosby
5631fe3b32
Merge pull request #3431 from dmcgowan/fix-nil-body
Fix bug in setting request body
2019-07-18 15:08:22 -04:00
Michael Crosby
725d3ad8cb Add --device flag to ctr
Closes #3066

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2019-07-18 18:51:05 +00:00
Derek McGowan
518be1cb07
Fix bug in setting request body
Go documentation says
`Use of GetBody still requires setting Body`.
This change ensures the body is always set in
addition to GetBody. This fixes a bug where
sometimes the body is nil.

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2019-07-18 11:21:51 -07:00
Derek McGowan
dd0a45dfe0
Add flat GC label for leases
Provide a flag which configures a lease to only hold
reference to its given references and ignore label references
during garbage collection rooted from the lease.

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2019-07-18 11:16:46 -07:00
Michael Crosby
dca17853d8 Add WithLinuxDevices Opt
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2019-07-18 17:11:14 +00:00
Wei Fu
283d5d9005
Merge pull request #3418 from stevvooe/backout-error-changes
errors: use errdefs errors in client and commands
2019-07-17 21:32:52 -04:00
Stephen Day
804ae89be6
errors: use errdefs errors in client and commands
This change moves from specific, global errors to the errdefs errors.
This makes it easy to handle certain classes of errors while still
adding context to the failure.

Signed-off-by: Stephen Day <stephen.day@getcruise.com>
2019-07-17 13:42:28 -07:00
Phil Estes
c90a3d4932
Merge pull request #3134 from stefanberger/encryption_code_plus_ctr.pr
Add image encryption support and ctr support
2019-07-17 15:47:12 -04:00
Derek McGowan
dde436e65b Crypto library movement and changes to content helper interfaces
Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2019-07-17 15:21:29 -04:00
Stefan Berger
bf8804c743 Implemented image encryption/decryption libraries and ctr commands
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Signed-off-by: Brandon Lum <lumjjb@gmail.com>
2019-07-17 15:19:58 -04:00
Stefan Berger
30c3443947 Add crypto dependencies/vendoring
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
2019-07-17 15:19:28 -04:00
Michael Crosby
1ff1f87fea
Merge pull request #3400 from dmcgowan/registry-configuration
Update resolver to handle endpoint configuration
2019-07-17 11:53:45 -04:00
Phil Estes
569f500e8d
Merge pull request #3423 from crosbymichael/update-cgroups
Update cgroups to c4b9ac5c7601384c965b9646fc51588
2019-07-17 11:34:27 -04:00
Michael Crosby
e237439a2d
Merge pull request #3422 from fuweid/me-support-customize-install-path
Makefile: allow custom base path to install
2019-07-17 11:15:56 -04:00
Michael Crosby
a1f3ebaec8 Update cgroups to c4b9ac5c7601384c965b9646fc51588
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2019-07-17 15:09:45 +00:00
Michael Crosby
063a4ff278
Merge pull request #3419 from AkihiroSuda/fix-task-start
runtime/v1/linux: ignore ErrCgroupDeleted in Task.Start
2019-07-17 09:56:50 -04:00
Wei Fu
b72673fdc7 Makefile: allow custom base path to install
for example, `make DESTDIR=/usr install`.

Signed-off-by: Wei Fu <fuweid89@gmail.com>
2019-07-17 09:26:25 -04:00
Phil Estes
129942ca4d
Merge pull request #3135 from dmcgowan/archive-importer-docker-types
Compress import blobs in Docker compatibility code
2019-07-17 09:25:40 -04:00
Akihiro Suda
fab016c7a1 runtime/v1/linux: ignore ErrCgroupDeleted in Task.Start
Fix a Rootless Docker-in-Docker issue on Fedora 30: https://github.com/docker-library/docker/pull/165#issuecomment-511717143
Related: #1598

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2019-07-17 12:19:15 +09:00
Derek McGowan
36e4c8e55d
Merge pull request #3420 from crosbymichael/sn-regression
Fix regression from #3403 with snapshot cmd
2019-07-16 13:52:09 -07:00
Michael Crosby
b5d0c78225
Merge pull request #3406 from fuweid/me-update-Manifest
images: only fetch the best matched manifest info
2019-07-16 15:32:09 -04:00
Michael Crosby
ce0d2489ac Fix regiression from #3403 with snapshot cmd
The snapshot command calls the snapshotter service directly, therefore,
the name must be resolved.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2019-07-16 19:24:24 +00:00
Michael Crosby
e4bfab7182
Merge pull request #3417 from dmcgowan/testing-log-hook
Add unit test logging hook
2019-07-16 15:11:12 -04:00
Derek McGowan
0b29c9c371
Update resolver to handle endpoint configuration
Adds support for registry mirrors
Adds support for multiple pull endpoints
Adds capabilities to limit trust in public mirrors
Fixes user agent header missing


Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2019-07-16 11:28:23 -07:00
Derek McGowan
63ceaf877d
Add testing log context
Enables showing debug logs in testing output.
For integration tests the client log output will show
in addition to daemon output, with timestamps for better
correlation.

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2019-07-16 10:31:43 -07:00
Derek McGowan
f63eab32e1
Add testing log hook to context
Allows log output to sent along with test output
for cleaner output and clearer ordering.

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2019-07-16 10:31:43 -07:00
Phil Estes
d6be45e151
Merge pull request #3416 from crosbymichael/hard-code-err
Replace hard coded error messages
2019-07-15 17:14:59 -04:00
Michael Crosby
61d930ad5b Move specific errors to their respective packages
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2019-07-15 20:21:11 +00:00
Derek McGowan
7d03fc63e1
Merge pull request #3414 from estesp/refactor-forloop
Small refactor due to CI linter changes
2019-07-15 11:19:48 -07:00
Phil Estes
82826df9bd
Small refactor due to CI linter changes
Without the open variable in use, no reason to define it or use it as the
for loop control.

Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com>
2019-07-15 10:43:31 -07:00
Michael Crosby
f3e148b1cc
Merge pull request #3411 from mxpv/linter
Switch from gometalinter to golangci-lint
2019-07-15 10:58:59 -04:00
Phil Estes
adb8b02b66
Merge pull request #3408 from wangpeng168/master
fix: view snapshot is deleted before diff
2019-07-15 09:39:28 -04:00
Maksym Pavlenko
ef7f46eb7b Fix linter errors
Signed-off-by: Maksym Pavlenko <makpav@amazon.com>
2019-07-14 20:49:40 -07:00
Maksym Pavlenko
2b521e25a7 Switch to golangci-lint
Signed-off-by: Maksym Pavlenko <makpav@amazon.com>
2019-07-14 20:49:28 -07:00
Fahed Dorgaa
abc152d14c fix name in containers file
Signed-off-by: Fahed Dorgaa <fahed.dorgaa@gmail.com>
2019-07-14 21:49:07 +02:00
Fahed Dorgaa
70b00a0fa9 fix variable name
Signed-off-by: Fahed Dorgaa <fahed.dorgaa@gmail.com>
2019-07-14 21:47:15 +02:00
Peng Wang
4988424fc0 * fix: view snapshot is deleted before diff
Signed-off-by: Peng Wang <wang_peng168@163.com>
2019-07-14 07:06:04 -04:00
Fahed Dorgaa
db95af43f3 centralize harded-code message
Signed-off-by: Fahed Dorgaa <fahed.dorgaa@gmail.com>
2019-07-13 15:07:23 +02:00
Wei Fu
d643f1dc88 images: only fetch the best matched manifest info
When client uses Pull action to pull image, it will limit the number of
manifest as one. But Unpack action will call Manifest to traverse all
the manifests including non-dowloaded one. If the platform has more than
one manifest, the Pull with unpack action will fail. And also, there is
no need to read non-best matched manifest. Therefore, the Manifest can
do the sort earlier.

Signed-off-by: Wei Fu <fuweid89@gmail.com>
2019-07-12 22:34:43 -04:00
Phil Estes
f2b6c31d0f
Merge pull request #3403 from mxpv/labels
Better default label handling
2019-07-11 16:17:53 -04:00
Maksym Pavlenko
550a6f1d73 Fix integration tests
Signed-off-by: Maksym Pavlenko <makpav@amazon.com>
2019-07-11 11:54:48 -07:00