Commit graph

2497 commits

Author SHA1 Message Date
Qi Wang
31edf47285 Support podman image trust command
Display the trust policy of the host system. The trust policy is stored in the /etc/containers/policy.json file and defines a scope of registries or repositories.

Signed-off-by: Qi Wang <qiwan@redhat.com>
2018-12-19 13:36:11 -05:00
Daniel J Walsh
68414c5ee3
Merge pull request #2010 from cevich/cirrus_editors
Cirrus: Add text editors to cache-images
2018-12-17 15:55:03 -05:00
OpenShift Merge Robot
c588c31cdb
Merge pull request #2018 from baude/rmiinfra
display proper error when rmi -fa with infra containers
2018-12-17 10:57:56 -08:00
baude
f020f3146d display proper error when rmi -fa with infra containers
when deleting infra containers, we were not checking the error of the
image deletion and therefore resulting in not reporting the error.

Fixes #1991

Signed-off-by: baude <bbaude@redhat.com>
2018-12-17 11:11:23 -06:00
OpenShift Merge Robot
510b5a81dc
Merge pull request #2000 from TomSweeneyRedHat/dev/tsweeney/fiximageq
Show image only once with images -q
2018-12-17 08:48:11 -08:00
TomSweeneyRedHat
92c7f4eb9e Show image only once with images -q
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2018-12-17 11:08:54 -05:00
OpenShift Merge Robot
a1902dc48b
Merge pull request #1986 from baude/varlinkendpoints
Clean up some existing varlink endpoints
2018-12-17 07:45:51 -08:00
OpenShift Merge Robot
b21d47434f
Merge pull request #2011 from cevich/cirrus_cli
Add script to create CI VMs for debugging
2018-12-16 08:04:23 -08:00
Chris Evich
7b53e86e4f
Add script to create CI VMs for debugging
Frequently debugging of CI-related problems requires going hands-on
within the environment.  However, reproducing the environment by hand is
very tedious and error prone.  This script permits authorized users to
produce VM's based on any available cache-image, and automatically remove
them upon logout.

Also: Bump up VM disk sizes to 200GB due to performance reasons

Signed-off-by: Chris Evich <cevich@redhat.com>
2018-12-14 14:34:43 -05:00
OpenShift Merge Robot
c086118fca
Merge pull request #1969 from cevich/two_fedoras_rhels
Cirrus: Migrate PAPR testing of F28 to Cirrus
2018-12-14 11:01:14 -08:00
Chris Evich
a1a5f3ba51
Cirrus: Migrate PAPR testing of F28 to Cirrus
Since the most recent TWO versions of Fedora are officially supported
upstream, both need to be tested.  Implement the concept of a 'prior'
Fedora release in both base-image and cache-image production.  Utilize
the produced cache-image to test libpod.  Remove F28 testing from PAPR.

Much thanks to @baude @giuseppe for help with this.

Signed-off-by: Chris Evich <cevich@redhat.com>
2018-12-14 11:19:41 -05:00
Chris Evich
cb89409a71
Skip checkpoint tests on Fedora <30
Signed-off-by: Chris Evich <cevich@redhat.com>
2018-12-14 11:16:00 -05:00
Chris Evich
401fb2bf2f
Cirrus: Add text editors to cache-images
Occasionally people need to access the VM's for
troubleshooting/debugging.  Having an editor pre-installed makes life
easier and doesn't cost any extra test-time.

***CIRRUS: REBUILD IMAGES***

Signed-off-by: Chris Evich <cevich@redhat.com>
2018-12-14 10:51:39 -05:00
OpenShift Merge Robot
93b5ccfe94
Merge pull request #1994 from giuseppe/rootless-mount-allow-only-from-vfs
mount: allow mount only when using vfs
2018-12-13 13:46:38 -08:00
Matthew Heon
1f9bc65d6d
Merge pull request #2005 from mheon/bump-0.12.1.2
Bump to v0.12.1.2
2018-12-13 13:58:39 -05:00
Matthew Heon
fbf7422bc5 Bump gitvalidation epoch
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2018-12-13 13:55:32 -05:00
Matthew Heon
ce40906c9b Bump to v0.12.2-dev
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2018-12-13 13:55:32 -05:00
Matthew Heon
9551f6bb37 Bump to v0.12.1.2
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2018-12-13 13:55:31 -05:00
Matthew Heon
e1732a5213
Merge pull request #2004 from mheon/release_notes_0.12.1.2
Add release notes for 0.12.1.2
2018-12-13 13:52:10 -05:00
Matthew Heon
44503a9f82 Add release notes for 0.12.1.2
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2018-12-13 13:53:00 -05:00
Matthew Heon
72c0503ec9
Merge pull request #2003 from baude/runlabelsubdocker
runlabel should sub podman for docker|/usr/bin/docker
2018-12-13 13:17:18 -05:00
baude
0c3501acb5 runlabel should sub podman for docker|/usr/bin/docker
Many RH images use a fully-qualified path to docker in their RUN
labels.  While initially we wanted an exact match for substituting
commands, docker is a good exception.

Bug #1623282

Signed-off-by: baude <bbaude@redhat.com>
2018-12-13 10:23:22 -06:00
OpenShift Merge Robot
bff29f5475
Merge pull request #1988 from mheon/use_dependency_resolv
Containers sharing a netns should share resolv/hosts
2018-12-13 08:05:41 -08:00
OpenShift Merge Robot
e3a1a7efca
Merge pull request #1989 from baude/deletecontainerfailstart
failed containers with --rm should remove themselves
2018-12-13 07:33:12 -08:00
OpenShift Merge Robot
d8d3950dd3
Merge pull request #1990 from kunalkushwaha/bugfix-NamedVolumeCheck
condition fixed for adding volume to boltdb.
2018-12-13 06:51:26 -08:00
OpenShift Merge Robot
db9fedde44
Merge pull request #1982 from cevich/ci_docs_link
Cirrus: Add/fix documentation links
2018-12-13 06:34:15 -08:00
OpenShift Merge Robot
508388b36b
Merge pull request #1987 from EmilienM/systemd/ci
e2e: add tests for systemd
2018-12-12 18:06:03 -08:00
Kunal Kushwaha
6b5666b659 condition fixed for adding volume to boltdb.
Signed-off-by: Kunal Kushwaha <kushwaha_kunal_v7@lab.ntt.co.jp>
2018-12-13 09:40:48 +09:00
OpenShift Merge Robot
62346b6f06
Merge pull request #2001 from mheon/fix_make_shell
Makefile tweaks to fix make shell
2018-12-12 14:13:20 -08:00
Emilien Macchi
40dd9de9a5 e2e: add tests for systemd
Add functional tests to start a container from systemd.
This patch will:

- create a systemd unit file to start redis container
- create the container with `podman create`
- enable the service
- start the container with systemd
- check that the service is actually running

Signed-off-by: Emilien Macchi <emilien@redhat.com>
2018-12-12 17:04:59 -05:00
Matthew Heon
c93ad3762c Add test for sharing resolv and hosts with netns
Signed-off-by: Matthew Heon <mheon@redhat.com>
2018-12-12 15:41:13 -05:00
Matthew Heon
4c68f3d0ab Makefile tweaks to fix make shell
Also, bump the Dockerfile to use the latest Golang image, as most
of our testing is now done on 1.11

Fixes: #1999

Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2018-12-12 14:41:49 -05:00
baude
06d763d964 Clean up some existing varlink endpoints
Going through and adding options (like tls-verify, signature option, etc)
to some varlink endpoints (like push/pull) many of which had not been
updated since their original authoring.

Signed-off-by: baude <bbaude@redhat.com>
2018-12-12 12:53:09 -06:00
baude
9786542620 failed containers with --rm should remove themselves
when starting or running a container that has --rm, if the starting
container fails (like due to an invalid command), the container should
get removed.

Resolves: #1985

Signed-off-by: baude <bbaude@redhat.com>
2018-12-12 10:55:53 -06:00
Chris Evich
d038497b09
Fix documentation links and flow
Signed-off-by: Chris Evich <cevich@redhat.com>
2018-12-12 10:56:18 -05:00
OpenShift Merge Robot
b7729cf3eb
Merge pull request #1962 from rhatdan/criu
Set Socket label for contianer
2018-12-12 06:57:44 -08:00
Daniel J Walsh
64ac546259
Set Socket label for contianer
This will allow container processes to write to the CRIU socket that gets injected
into the container.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2018-12-12 04:22:44 -08:00
Giuseppe Scrivano
a609e026a5
mount: allow mount only when using vfs
when using a driver different than vfs, the mount is probably in a
different mount namespace thus not accessible from the host.  Avoid
the confusion by not allowing mount when a different driver is used.

Closes: https://github.com/containers/libpod/issues/1964

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2018-12-12 11:57:30 +01:00
OpenShift Merge Robot
8a3361f46c
Merge pull request #1983 from baude/kubespell
fix typo in kubernetes
2018-12-11 18:18:57 -08:00
Matthew Heon
aa9507054d Containers sharing a netns should share resolv/hosts
When sharing a network namespace, containers should also share
resolv.conf and /etc/hosts in case a container process made
changes to either (for example, if I set up a VPN client in
container A and join container B to its network namespace, I
expect container B to use the DNS servers from A to ensure it can
see everything on the VPN).

Resolves: #1546

Signed-off-by: Matthew Heon <mheon@redhat.com>
2018-12-11 16:56:11 -05:00
OpenShift Merge Robot
878301f79d
Merge pull request #1978 from mheon/only_one_execuser
Prevent a second lookup of user for image volumes
2018-12-11 13:06:57 -08:00
Matthew Heon
bc57ecec42 Prevent a second lookup of user for image volumes
Instead of forcing another user lookup when mounting image
volumes, just use the information we looked up when we started
generating the spec.

This may resolve #1817

Signed-off-by: Matthew Heon <mheon@redhat.com>
2018-12-11 13:36:50 -05:00
baude
37cbfadcc9 fix typo in kubernetes
Signed-off-by: baude <bbaude@redhat.com>
2018-12-11 12:14:33 -06:00
OpenShift Merge Robot
8645df84db
Merge pull request #1975 from giuseppe/fix-rootless-restart
rootless: fix restart when using fuse-overlayfs
2018-12-11 08:04:30 -08:00
OpenShift Merge Robot
b9f93774d5
Merge pull request #1977 from vdemeester/no--i-go-build
No need to use `-i` in go build (with go 1.10 and above)
2018-12-11 07:51:57 -08:00
Vincent Demeester
0b0096382c
No need to use -i in go build (with go 1.10 and above)
> The go build command now maintains a cache of recently built
  packages, separate from the installed packages in $GOROOT/pkg or
  $GOPATH/pkg. The effect of the cache should be to speed builds that
  do not explicitly install packages or when switching between
  different copies of source code (for example, when changing back and
  forth between different branches in a version control system). The
  old advice to add the -i flag for speed, as in go build -i or go
  test -i, is no longer necessary: builds run just as fast without -i.

This should also fix podman builds for NixOS, snap-installed go, …

Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
2018-12-11 15:26:01 +01:00
OpenShift Merge Robot
132fc26929
Merge pull request #1966 from mheon/ensure_storage_opts_init
Ensure storage options are properly initialized
2018-12-11 05:55:51 -08:00
OpenShift Merge Robot
cb1a901f26
Merge pull request #1970 from baude/kubecapa
Add capabilities to generate kube
2018-12-11 05:15:08 -08:00
OpenShift Merge Robot
c058a4c060
Merge pull request #1971 from cevich/base_image_docs
Cirrus: Update base-image build docs
2018-12-11 04:49:06 -08:00
OpenShift Merge Robot
e4e4fb741f
Merge pull request #1857 from mtrmac/blob-info-caching
Vendor c/image + Buildah after merging blob-info-caching in both
2018-12-11 04:19:02 -08:00