Commit Graph

6355 Commits

Author SHA1 Message Date
baude 4994fecd46 Podman pod stats -- fix GO template output
Go templates were not being processed or printed correctly for podman
pod stats.  Added the ability to do templates as well as honor the
table identifier.

Fixes #2258

Signed-off-by: baude <bbaude@redhat.com>
2019-02-10 11:27:09 -06:00
Daniel J Walsh 62c8ba527e
Add troubleshooting information about running a rootless containers.
Add a problem statement about shadow-utils and missing entries from
/etc/subuid and /etc/subgid.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2019-02-10 08:08:22 -07:00
TomSweeneyRedHat 1543a01be8 Add --all-tags to pull command
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>

Add --all-tags for the `podman pull` command so all tags
of an image will be pulled, not just ':latest'.  Emulates
the change in Buildah https://github.com/containers/buildah/pull/1263

Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2019-02-09 20:00:19 -05:00
TomSweeneyRedHat 931af00bb0 Add common_test.go to single test instructions
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>

Add e2e/test/common_test.go to the single integration test
instructions.  Without it the documented process fails.
2019-02-09 11:28:13 -05:00
OpenShift Merge Robot c86e8f180c
Merge pull request #2280 from TomSweeneyRedHat/dev/tsweeney/trusty2
Update image-trust man with further comments
2019-02-09 14:02:10 +01:00
OpenShift Merge Robot e1ce36384a
Merge pull request #2296 from baude/psShowMount
Add volume mounts to PS output
2019-02-09 13:49:29 +01:00
Daniel J Walsh 233ba5bd89
Remove container from storage on --force
Currently we can get into a state where a container exists in
storage but does not exist in libpod.  If the user forces a
removal of this container, then we should remove it from storage
even if the container is owned by another tool.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2019-02-09 05:33:14 -07:00
OpenShift Merge Robot 1fd9be022f
Merge pull request #2297 from baude/issue2246
do not crash when displaying dangling images
2019-02-09 13:14:50 +01:00
baude e071ac20f8 do not crash when displaying dangling images
the previous method required a populated image template to create
the headers and always selected the first image in the slice. when
dealing with dangling images, they are not populated and therefore
would panic.

Resolves: #2246

Signed-off-by: baude <bbaude@redhat.com>
2019-02-08 17:09:00 -06:00
baude 4b40640c81 Add volume mounts to PS output
When listing containers, you should be able to list the mounts
with something like --format "table{{".Mounts}}".

Resolves: #2238

Signed-off-by: baude <bbaude@redhat.com>
2019-02-08 16:43:32 -06:00
OpenShift Merge Robot afd4d5f4a4
Merge pull request #2274 from baude/cobraprep
Migrate to cobra CLI
2019-02-08 20:12:38 +01:00
TomSweeneyRedHat 38422a38e7 Update image-trust man with further comments
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>

After the last update, @mtrmac had some great suggestions which I've incorporated.
I've updated the G:oogle doc and have added this PR in case it's easier to see the diffs.

Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2019-02-08 13:47:30 -05:00
baude 25a3923b61 Migrate to cobra CLI
We intend to migrate to the cobra cli from urfave/cli because the
project is more well maintained.  There are also some technical reasons
as well which extend into our remote client work.

Signed-off-by: baude <bbaude@redhat.com>
2019-02-08 10:26:43 -06:00
OpenShift Merge Robot 962850c6e0
Merge pull request #2292 from nalind/remove-dead-types
Remove some dead type declarations
2019-02-07 22:12:19 +01:00
Nalin Dahyabhai ab78be1834 Remove some dead type declarations
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2019-02-07 15:06:15 -05:00
OpenShift Merge Robot e39a7dc6ac
Merge pull request #2290 from giuseppe/cleanup-use-correct-runtime
cleanup: use the correct runtime
2019-02-07 19:21:46 +01:00
OpenShift Merge Robot a6196acdfe
Merge pull request #2271 from cevich/search_gate
Fix down/missing registry.access.redhat.com
2019-02-07 18:41:56 +01:00
Chris Evich 038364c6e3
Fix down/missing registry.access.redhat.com
This registry responds differently depending on the the platform
accessing it.  It also occasionally goes down or returns 404s.  Improve
the reliability of the e2e tests by using the registry/image used
for gating pull-requests.

This way, if there's a registry/networking problem, the gating test
will fail and prevent anything else from running.  This is a better
failure to have early, rather than wait and need to re-run all the
e2e tests again later.

Signed-off-by: Chris Evich <cevich@redhat.com>
2019-02-07 09:50:45 -05:00
OpenShift Merge Robot 01f436ca47
Merge pull request #2288 from vrothberg/vendor-docs
Vendor docs
2019-02-07 15:46:49 +01:00
Giuseppe Scrivano 1a8391b914
cleanup: use the correct runtime
make sure "containers cleanup" uses the correct runtime if it was
overriden.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-02-07 14:59:59 +01:00
Valentin Rothberg 0f0ba53030 make vendor: always check for latest vndr
@baude and I have recently debugged a `make vendor` issue, where
different versions of `vndr` leave slightly different states behind.
This ultimately leads to inconsistencies with the CI, which always
fetches the latest version.

To avoid such issues in the future, always use the latest version of
`vndr` by checking for new versions of it prior to execution.

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2019-02-07 14:25:54 +01:00
OpenShift Merge Robot b91c87509e
Merge pull request #2287 from 4383/add-make-doc
Add varlink generate to the make documentation
2019-02-07 14:24:23 +01:00
Valentin Rothberg 6d8d1e7eb5 install.md: add section about vendoring
Add a section about how `make vendor` works and how to troubleshoot it.

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2019-02-07 13:47:42 +01:00
Hervé Beraud 7c5641cddf Add varlink generate to the make documentation
Minor improvement who add helping comment to the
varlink generate target.

Signed-off-by: Hervé Beraud <hberaud@redhat.com>
2019-02-07 09:35:11 +01:00
OpenShift Merge Robot f250745fe0
Merge pull request #2269 from rhatdan/selinux
Add documentation on running systemd on SELinux systems
2019-02-07 03:35:57 +01:00
OpenShift Merge Robot dab590d13e
Merge pull request #2278 from rhatdan/varlink
Fix handling of memory limits via varlink
2019-02-07 00:34:59 +01:00
OpenShift Merge Robot 0cf9747cf4
Merge pull request #2237 from fulldecent/patch-1
Mention officially supported OSes, fixes #2208
2019-02-06 23:44:17 +01:00
OpenShift Merge Robot 74e71c41d2
Merge pull request #2268 from mheon/force_storage_refresh
Unconditionally refresh storage options from config
2019-02-06 23:15:24 +01:00
OpenShift Merge Robot c7350721bf
Merge pull request #2252 from rhatdan/system
Add podman system prune and info commands
2019-02-06 23:03:21 +01:00
OpenShift Merge Robot 72fcfb7e86
Merge pull request #2283 from 4383/improve-makefile
Generate make helping message dynamicaly.
2019-02-06 22:45:51 +01:00
William Entriken a216c87150 Mention OSes that pass the build
Signed-off-by: William Entriken <github.com@phor.net>
2019-02-06 15:29:23 -05:00
OpenShift Merge Robot 55dc783298
Merge pull request #2284 from edsantiago/gomega_cleanup
Makefile: minor fix to reenable system tests
2019-02-06 21:03:20 +01:00
OpenShift Merge Robot 9644802cd7
Merge pull request #2279 from giuseppe/pts-no-override-if-not-needed
rootless: do not override /dev/pts if not needed
2019-02-06 20:28:15 +01:00
Hervé Beraud e0c3af6523 Generate make helping message dynamicaly.
Generate make helping message dynamicaly by using
python code snippet inside Makefile.

All commented make targets will be added to the
help message. To be added to the helping message
comment need to start with '## '.

These specials comments are detected by the python code.
Python code generate the helping output from these results.

Notice that this commit introduce a dependency with python (compatible python 2 and 3).

Signed-off-by: Hervé Beraud <hberaud@redhat.com>
2019-02-06 20:15:53 +01:00
Ed Santiago aa881a0c71 Makefile: minor fix to reenable system tests
PR #2259 removed the .install.gomega Makefile target but
didn't clean up two references to it. Do so now.

Also, when setting up GOPKGBASEDIR symlink, use -f (force)
flag; otherwise subsequent makes will fail.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2019-02-06 12:04:21 -07:00
OpenShift Merge Robot aa62843670
Merge pull request #2282 from nalind/healthconfig-startperiod
Add StartPeriod to cmd/podman/docker.HealthConfig
2019-02-06 19:41:17 +01:00
Nalin Dahyabhai 23a83af9d1 Add StartPeriod to cmd/podman/docker.HealthConfig
Backport the addition of the StartPeriod field to our copy of the
HealthConfig type, added in docker v17.05.0-ce.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2019-02-06 11:14:34 -05:00
Matthew Heon 33845f8a0f Unconditionally refresh storage options from config
Due to our unconditionally setting some storage options, we
are not always reading storage options from storage.conf. This
can lead to some fields in the storage config (most notably extra
storage options) being ignored, despite being set in
storage.conf.

Resolve this by unconditionally refreshing our storage config
from storage.conf (this was previously only done for rootless
Podman)

Fixes #2217

Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2019-02-06 10:01:43 -05:00
Giuseppe Scrivano e2970ea62d
rootless: do not override /dev/pts if not needed
when running in rootless mode we were unconditionally overriding
/dev/pts to take ride of gid=5.  This is not needed when multiple gids
are present in the namespace, which is always the case except when
running the tests suite with only one mapping.  So change it to check
how many gids are present before overriding the default mount.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-02-06 15:31:20 +01:00
Daniel J Walsh 3416bb20f2
Fix handling of memory limits via varlink
Currently handlin memory via varlink is hard coded to 0
Changing to
			Memory:            create.Resources.Memory,
			MemoryReservation: create.Resources.Memory_reservation,
			MemorySwap:        create.Resources.Memory_swap,
			MemorySwappiness:  int(create.Resources.Memory_swappiness),
			KernelMemory:      create.Resources.Kernel_memory,
Allows callers to modify these memory settings.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2019-02-06 06:22:13 -08:00
Daniel J Walsh 1dd7bd0d0f
Add documentation on running systemd on SELinux systems
Lots of users are attempting to run systemd within a container.  They are
being blocked from running SELinux systems since they need the
container_manage_cgroup which is not enabled by default.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2019-02-06 05:52:39 -08:00
OpenShift Merge Robot ca6ab2029c
Merge pull request #2275 from edsantiago/fix_blocking_fifo
e2e tests: sigproxy: fix rare hang condition
2019-02-06 14:00:49 +01:00
OpenShift Merge Robot a9f75bf87b
Merge pull request #2273 from mheon/preserve_exited_state
Preserve exited state across reboot
2019-02-06 14:00:43 +01:00
OpenShift Merge Robot e249966e72
Merge pull request #2270 from cevich/fail_faster
Apply 45min timeout to integration tests
2019-02-06 14:00:38 +01:00
OpenShift Merge Robot d321c5d942
Merge pull request #2259 from vrothberg/vendor-check
Vendor check
2019-02-06 13:42:47 +01:00
Valentin Rothberg 9ac0ebb079 Cirrus: add vendor_check_task
* Make sure that all vendored dependencies are in sync with the code and
  the vendor.conf by running `make vendor` with a follow-up status check
  of the git tree.

* Vendor ginkgo and gomega to include the test dependencies.

Signed-off-by: Chris Evic <cevich@redhat.com>
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2019-02-06 11:14:06 +01:00
Valentin Rothberg 51714d5da7 cleanup vendor directory
Remove some unused files in ./vendor via `make vendor`.

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2019-02-06 11:14:06 +01:00
Valentin Rothberg ffbded5dde Revert "Vendor containers/buildah"
This reverts commit edf16be28d as it's
not adding all changes from the used buildah commit.  Adding all
breaks the build as libpod is not yet using cobra.

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2019-02-06 11:14:06 +01:00
OpenShift Merge Robot 314e1a9c5a
Merge pull request #2267 from giuseppe/allow-override-oci-runtime
tests: allow to override the OCI runtime
2019-02-06 07:49:07 +01:00
Ed Santiago 7ee8fe86c1 e2e tests: sigproxy: fix rare hang condition
The sig-proxy test creates a FIFO, runs podman with actions
that write to it, then tries reading from the FIFO.

Opening a FIFO for read or write blocks until the other end is
opened for the corresponding write/read. If our podman process
fails for any reason, the test's FIFO open will hang forever.

Solution: open with O_NONBLOCK.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2019-02-05 14:10:49 -07:00