Commit graph

5678 commits

Author SHA1 Message Date
Giuseppe Scrivano
1fc8239332 config: use EventsLogger=file without systemd
if systemd is not available, use the file events logger backend.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-12-10 10:45:39 -05:00
OpenShift Merge Robot
94b784255c
Merge pull request #4401 from mheon/revert_4216
Revert "catch runc v2 error" [v1.6]
2019-11-08 21:40:44 +01:00
OpenShift Merge Robot
96b1d5642c
Merge pull request #4421 from mheon/bump_163
Bump to v1.6.3
2019-11-01 21:18:55 +01:00
Matthew Heon
72d83ff6a4 Bump gitvalidation epoch
Signed-off-by: Matthew Heon <mheon@redhat.com>
2019-11-01 14:50:10 -04:00
Matthew Heon
7d94e5dcd6 Bump to v1.6.4-dev
Signed-off-by: Matthew Heon <mheon@redhat.com>
2019-11-01 14:49:37 -04:00
Matthew Heon
9d087f6a76 Bump to v1.6.3
Signed-off-by: Matthew Heon <mheon@redhat.com>
2019-11-01 14:48:58 -04:00
OpenShift Merge Robot
69ad905e8f
Merge pull request #4419 from mheon/buildah_update_163
Update containers/buildah
2019-11-01 19:46:15 +01:00
Matthew Heon
3fdb27ccc2 Update containers/buildah
Pin to 20e92ffe09820ad80e44117f8fae8f4a6b3883e7 to grab
FIPS fixes.

Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2019-11-01 13:32:05 -04:00
Matthew Heon
d9f40fedcd Update Cirrus branch info for new branch
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2019-11-01 13:32:05 -04:00
OpenShift Merge Robot
2d4989e016
Merge pull request #4417 from mheon/release_notes_1.6.3
Release notes for v1.6.3
2019-11-01 18:13:05 +01:00
Matthew Heon
1abd1a6fee Add release notes for v1.6.3
Signed-off-by: Matthew Heon <mheon@redhat.com>
2019-11-01 12:10:06 -04:00
OpenShift Merge Robot
95b2fd6c27
Merge pull request #4403 from mheon/cherrypick_163
Cherrypicks for v1.6.3 final
2019-10-31 22:39:01 +01:00
Jhon Honce
28ad43940f Update document formatting and packaging code
* Refactored code and Makefile to support new docs layout
* Removed some old code packaging code
* Add Readme.md to document what we're doing

Signed-off-by: Jhon Honce <jhonce@redhat.com>
Signed-off-by: baude <bbaude@redhat.com>
2019-10-31 16:34:29 -04:00
baude
27e79f5540 Restructure documentation dir
Restructuring the docs dir to make integration with sphinx easier.  man
pages now exist in docs/source/man and the sphinx make files exists in
docs.

Signed-off-by: baude <bbaude@redhat.com>
2019-10-31 16:34:21 -04:00
Valentin Rothberg
d4ee76aae5 container start: fix regression when using name
When starting a container by using its name as a reference, we should
print the name instead of the ID.  We regressed on this behaviour
with commit b4124485ae which made it into Podman v1.6.2.

Kudos to openSUSE testing for catching it.  To prevent future
regressions, extend the e2e tests to check the printed container
name/ID.

Reported-by: @sysrich
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2019-10-31 16:33:54 -04:00
Valentin Rothberg
b716276b30 add libpod/config
Refactor the `RuntimeConfig` along with related code from libpod into
libpod/config.  Note that this is a first step of consolidating code
into more coherent packages to make the code more maintainable and less
prone to regressions on the long runs.

Some libpod definitions were moved to `libpod/define` to resolve
circular dependencies.

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2019-10-31 16:33:33 -04:00
Matthew Heon
ae1637bbd0 Revert "catch runc v2 error"
This reverts commit c35d71e3da.

This is a Fedora-specific patch we do not want in upstream
releases.

Signed-off-by: Matthew Heon <mheon@redhat.com>
2019-10-31 14:17:27 -04:00
OpenShift Merge Robot
a15a20d3c5
Merge pull request #4387 from mheon/bump-1.6.3-rc1
Bump to v1.6.3-rc1
2019-10-31 00:33:36 +01:00
Matthew Heon
76dd2bd1a0 Bump to v1.6.3-dev
Signed-off-by: Matthew Heon <mheon@redhat.com>
2019-10-30 16:48:56 -04:00
Matthew Heon
86d438492c Bump to v1.6.3-rc1
Signed-off-by: Matthew Heon <mheon@redhat.com>
2019-10-30 16:45:32 -04:00
OpenShift Merge Robot
45e0bd3891
Merge pull request #4379 from cevich/fix_upload_release_archive
Cirrus: Fix upload_release_archive on branch or tag
2019-10-30 21:31:32 +01:00
OpenShift Merge Robot
32266d155f
Merge pull request #4305 from mheon/fix_volume_mount
Wait for `mount` command to finish when mounting volume
2019-10-30 21:18:49 +01:00
Matthew Heon
3e891c1b60 Wait for mount command to finish when mounting volume
command.Start() just starts the command. That catches some
errors, but the nasty ones - bad options and similar - happen
when the command runs. Use CombinedOutput() instead - it waits
for the command to exit, and thus catches non-0 exit of the
`mount` command (invalid options, for example).

STDERR from the `mount` command is directly used, which isn't
necessarily the best, but we can't really get much more info on
what went wrong.

Fixes #4303

Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2019-10-30 14:41:16 -04:00
Chris Evich
326ef19d94
Cirrus: Fix upload_release_archive on branch or tag
Cirrus-CI only sets `$CIRRUS_BASE_SHA` when testing PRs since the
destination and it's state is easy to discover.  However, when
post-merge and/or tag-push testing, the previous state is not
easily discoverable (changes have already merged).  The
`upload_release_archive` script incorrectly assumed this
variable was always set, causing a constant stream of post-merge
testing failures.

Tweak the `is_release()` function to properly handle an empty
`$CIRRUS_BASE_SHA` whether or not `$CIRRUS_TAG` is also set.  Also
update the unit-tests to check for this.  Also account for a
corner case where hack/get_ci_vm.sh is running on a VM w/o git.

Signed-off-by: Chris Evich <cevich@redhat.com>
2019-10-30 14:31:38 -04:00
OpenShift Merge Robot
9ba8dae0bf
Merge pull request #4365 from cevich/safe_load
Cirrus: Fix minor python deprecation warning
2019-10-30 18:10:16 +01:00
OpenShift Merge Robot
a35d002b72
Merge pull request #4376 from giuseppe/drop-ostree
build: drop support for ostree
2019-10-30 15:49:26 +01:00
OpenShift Merge Robot
63b57f5147
Merge pull request #4375 from vrothberg/stale
stale action: add exempt-issue-label
2019-10-30 14:45:09 +01:00
OpenShift Merge Robot
2e8eb8403d
Merge pull request #4372 from rhatdan/exec
Processes execed into container should match container label
2019-10-30 14:29:54 +01:00
OpenShift Merge Robot
7318b0e8c7
Merge pull request #4369 from baude/golandautocodecorrections
goland autocorrections
2019-10-30 14:29:46 +01:00
OpenShift Merge Robot
4762b63070
Merge pull request #4377 from vrothberg/fix-seccomp
seccomp: use github.com/seccomp/containers-golang
2019-10-30 14:08:10 +01:00
Valentin Rothberg
fb5367f295 seccomp: use github.com/seccomp/containers-golang
Use the github.com/seccomp/containers-golang library instead of the
docker package.  The docker package has changed and silently broke
on F31.

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2019-10-30 11:43:29 +01:00
Giuseppe Scrivano
2046be6ae0
build: drop support for ostree
it is going to be removed from containers/image as well, so no longer
depend on it.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-10-30 11:28:10 +01:00
Valentin Rothberg
7835b863f2 stale action: add exempt-issue-label
Without the label, issues would be closed regardless of the
"do-not-close" label.

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2019-10-30 09:51:40 +01:00
Daniel J Walsh
0b9e07f7f2
Processes execed into container should match container label
Processes execed into a container were not being run with the correct label.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2019-10-29 16:05:42 -04:00
OpenShift Merge Robot
e7540d0406
Merge pull request #4310 from nalind/manifest-lists
Move to containers/image v5, support manifest lists
2019-10-29 20:58:51 +01:00
OpenShift Merge Robot
5918f3a5f1
Merge pull request #4319 from cevich/limit_releases
Cirrus: Only upload tagged releases
2019-10-29 20:48:09 +01:00
OpenShift Merge Robot
6c6e78374f
Merge pull request #4366 from AkihiroSuda/fix-embed-version
Makefile: fix embedding gitCommit
2019-10-29 20:00:41 +01:00
Daniel J Walsh
66c126d6de Set default seccomp.json file for podman play kube
Currently podman play kube is not using the system default seccomp.json file.
This PR will use the default or override location for podman play.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2019-10-29 13:43:45 -04:00
Nalin Dahyabhai
248bb61b14 images: distinguish between tags and digests
Generate an image's RepoDigests list using all applicable digests, and
refrain from outputting a digest in the tag column of the "images"
output.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2019-10-29 13:35:19 -04:00
Nalin Dahyabhai
07195ff09f API: report multiple digests for images
Be prepared to report multiple image digests for images which contain
multiple manifests but, because they continue to have the same set of
layers and the same configuration, are considered to be the same image.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2019-10-29 13:35:19 -04:00
Nalin Dahyabhai
b9313d355e pull/create: add --override-arch/--override-os flags
Add --override-arch and --override-os as hidden flags, in line with the
global flag names that skopeo uses, so that we can test behavior around
manifest lists without having to conditionalize more of it by arch.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2019-10-29 13:35:19 -04:00
Nalin Dahyabhai
803357334c image: don't get confused by lists
When an image can be opened as an ImageSource but not an Image, handle
the case where it's an image list all by itself, the case where it's an
image for a different architecture/OS combination, or the case where
it's both.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2019-10-29 13:35:19 -04:00
Nalin Dahyabhai
05c65e88e3 Add e2e tests for manifest list support
Test that when we pull using tag or digest references from locations
that are manifest lists, that we can inspect using the references that
we used for pulling, that the tags show up in the RepoTag list when we
inspect an image that was pulled using a tag, and that the list and
instance digests always both show up in the RepoDigest list.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2019-10-29 13:35:19 -04:00
Nalin Dahyabhai
a4a70b4506 bump containers/image to v5.0.0, buildah to v1.11.4
Move to containers/image v5 and containers/buildah to v1.11.4.

Replace an equality check with a type assertion when checking for a
docker.ErrUnauthorizedForCredentials in `podman login`.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2019-10-29 13:35:18 -04:00
baude
91baaee9a8 goland autocorrections
just ran the autocorrect code corrections from goland and it found a few
nits.

Signed-off-by: baude <bbaude@redhat.com>
2019-10-29 12:18:50 -05:00
OpenShift Merge Robot
59582c55b7
Merge pull request #3792 from haircommander/minimum-conmon
require conmon v2.0.1
2019-10-29 17:44:52 +01:00
Akihiro Suda
a9976049f0 Makefile: fix embedding gitCommit
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2019-10-29 23:56:34 +09:00
Chris Evich
d4c80b755e
Cirrus: Fix minor python deprecation warning
Signed-off-by: Chris Evich <cevich@redhat.com>
2019-10-29 10:45:08 -04:00
Chris Evich
8303eb3037
Cirrus: Only upload tagged releases
Prior to this commit, every push to master had it's builds packaged and
uploaded to google storage.  This is a waste, since potential users
are only ever concerned about tagged releases.

Unfortunately because the release process involves humans with
potentially multiple human and automation steps happening in parallel,
it's easy for automation to not detect a tagged release, or trigger on
development|pre-release tags.

Fix this in `upload_release_archive.sh` using a new unit-tested
function `is_release()`.  This acts as the definitive authority
on whether or not a specific commit rage or `$CIRRUS_TAG` value
constitutes something worthy of upload.

Signed-off-by: Chris Evich <cevich@redhat.com>
2019-10-29 10:34:58 -04:00
OpenShift Merge Robot
a56131fef4
Merge pull request #4110 from mheon/fix_sigproxy_tests
Fix sig-proxy=false test and use image cache
2019-10-29 15:13:29 +01:00