2673 Commits

Author SHA1 Message Date
d8d3950dd3 Merge pull request #1990 from kunalkushwaha/bugfix-NamedVolumeCheck
condition fixed for adding volume to boltdb.
2018-12-13 06:51:26 -08:00
db9fedde44 Merge pull request #1982 from cevich/ci_docs_link
Cirrus: Add/fix documentation links
2018-12-13 06:34:15 -08:00
508388b36b Merge pull request #1987 from EmilienM/systemd/ci
e2e: add tests for systemd
2018-12-12 18:06:03 -08:00
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
62346b6f06 Merge pull request #2001 from mheon/fix_make_shell
Makefile tweaks to fix make shell
2018-12-12 14:13:20 -08:00
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
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
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
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
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
d038497b09 Fix documentation links and flow
Signed-off-by: Chris Evich <cevich@redhat.com>
2018-12-12 10:56:18 -05:00
b7729cf3eb Merge pull request #1962 from rhatdan/criu
Set Socket label for contianer
2018-12-12 06:57:44 -08:00
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
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
8a3361f46c Merge pull request #1983 from baude/kubespell
fix typo in kubernetes
2018-12-11 18:18:57 -08:00
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
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
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
37cbfadcc9 fix typo in kubernetes
Signed-off-by: baude <bbaude@redhat.com>
2018-12-11 12:14:33 -06:00
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
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
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
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
cb1a901f26 Merge pull request #1970 from baude/kubecapa
Add capabilities to generate kube
2018-12-11 05:15:08 -08:00
c058a4c060 Merge pull request #1971 from cevich/base_image_docs
Cirrus: Update base-image build docs
2018-12-11 04:49:06 -08:00
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
9a7416c342 rootless: fix restart when using fuse-overlayfs
With rootless containers we cannot really restart an existing container
as we would need to join the mount namespace as well to be able to reuse
the storage, so ensure the container is stopped first.

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

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2018-12-11 10:24:06 +01:00
235a630074 Merge pull request #1968 from baude/disablepaprf29
disable F29 tests on PAPR
2018-12-10 13:06:39 -08:00
ac7ddc189e Cirrus: Update base-image build docs
Mostly minor tweaks and clarifications.  Though there was
one missing (required) make value I fixed.

Signed-off-by: Chris Evich <cevich@redhat.com>
2018-12-10 16:03:37 -05:00
48d1d846f0 Add capabilities to generate kube
Using the default capabilities, we can determine which caps were
added and dropped.  Now added them to the security context structure.

Signed-off-by: baude <bbaude@redhat.com>
2018-12-10 14:20:49 -06:00
583066ea40 disable F29 tests on PAPR
We now test F29 Cloud in cirrus

Signed-off-by: baude <bbaude@redhat.com>
2018-12-10 13:47:53 -06:00
a044e3aa23 Ensure storage options are properly initialized
If one of storage GraphRoot or RunRoot are specified, but the
other is not, c/storage will not use the default, and will throw
an error instead. Ensure that in cases where this would happen,
we populate the fields with the c/storage defaults ourselves.

Signed-off-by: Matthew Heon <mheon@redhat.com>
2018-12-10 14:12:10 -05:00
b6763143be Merge pull request #1958 from baude/morevarlinkdocs
add more example usage to varlink endpoints
2018-12-10 07:00:39 -08:00
078fd071c1 add more example usage to varlink endpoints
Signed-off-by: baude <bbaude@redhat.com>
2018-12-09 11:16:33 -06:00
22b1f7f8cb Update for API change
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2018-12-08 15:36:07 +01:00
d9b5c29b3f Vendor buildah after merging mtrmac/blob-info-caching-on-top-of-contents-caching
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2018-12-08 15:35:44 +01:00
79583c82ee Vendor c/image after merging c/image#536
... which adds blob info caching

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2018-12-08 15:31:41 +01:00
1f547b2936 Merge pull request #1957 from mheon/bump-0.12.1.1
Bump to v0.12.1.1
2018-12-07 14:17:48 -05:00
d16f791851 Bump gitvalidation epoch
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2018-12-07 14:14:51 -05:00
13580725cf Bump to v0.12.2-dev
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2018-12-07 14:14:51 -05:00
66d3499831 Bump to v0.12.1.1
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
v0.12.1.1
2018-12-07 14:14:47 -05:00
1a50241930 Merge pull request #1956 from mheon/release_notes_0.12.1.1
Update release notes for v0.12.1.1
2018-12-07 14:14:02 -05:00
3a358950e5 Update release notes for v0.12.1.1
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2018-12-07 14:14:40 -05:00
d6ce797edb Merge pull request #1955 from mheon/fix_hooks_not_exist
Fix errors where OCI hooks directory does not exist
2018-12-07 10:32:58 -08:00
5073638d83 Merge pull request #1953 from baude/podstoptimeout
add timeout to pod stop
2018-12-07 09:06:03 -08:00
176f76d794 Fix errors where OCI hooks directory does not exist
Signed-off-by: Matthew Heon <mheon@redhat.com>
2018-12-07 11:35:43 -05:00
d266460f7b Merge pull request #1893 from jwhonce/bug/1869
Refactor CLI booleans to be consistent and defined behavior
2018-12-07 08:31:55 -08:00
5209894100 add timeout to pod stop
like podman stop of containers, we should allow the user to specify
a timeout override when stopping pods; otherwise they have to wait
the full timeout time specified during the pod/container creation.

Signed-off-by: baude <bbaude@redhat.com>
2018-12-07 10:27:41 -06:00
49d9a8f951 Merge pull request #1928 from baude/podtokube
generate kube
2018-12-07 07:46:52 -08:00
d4af59d57c Merge pull request #1788 from cevich/cirrus_base_images
Codify and document base-image production + Enable testing with Fedora
2018-12-07 07:46:46 -08:00