Commit graph

6806 commits

Author SHA1 Message Date
Chris Evich
9215eb0331
Cirrus: Disable non-docs release processing
Detecting when it's time to upload a release inside Cirrus-CI is really
difficult for many automation and human reasons.  Disabling it for now
until a more robust solution can be implemented

Signed-off-by: Chris Evich <cevich@redhat.com>
2020-03-12 15:41:03 -04:00
OpenShift Merge Robot
9c7481dbd1
Merge pull request #5474 from giuseppe/detect-containers-rootlessport-child-exit
rootlessport: detect rootless-child exit
2020-03-12 10:22:34 -04:00
OpenShift Merge Robot
235f367861
Merge pull request #5469 from giuseppe/no-size-create-container
create: do not calculate image size
2020-03-12 10:20:02 -04:00
OpenShift Merge Robot
19f5d557bc
Merge pull request #5468 from Akasurde/5244_follow_up
Follow up change from #5244
2020-03-12 09:04:12 -04:00
Giuseppe Scrivano
647dc33e1a
rootlessport: detect rootless-child exit
otherwise the rootless parent process might wait indefinitely when the
rootless-child process exits early.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-03-12 11:39:13 +01:00
Giuseppe Scrivano
8741eb8a92
create: do not calculate image size
calculating the image size can be an expensive operation.  Avoid doing
it when creating a new container since the size is not needed.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-03-12 09:51:17 +01:00
Abhijeet Kasurde
eb2d0a2289 Follow up changes from #5244
Code review change suggested by jwhonce in

https://github.com/containers/libpod/pull/5244#pullrequestreview-366574431

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2020-03-12 10:06:51 +05:30
OpenShift Merge Robot
78e090092b
Merge pull request #5458 from baude/apiv2eventslibpod
[CI:DOCS]Add libpod event endpoint
2020-03-11 16:34:03 -04:00
OpenShift Merge Robot
9cfcf5692b
Merge pull request #5460 from edsantiago/man_page_xref
man page cross-reference fixes: part 2
2020-03-11 16:18:13 -04:00
OpenShift Merge Robot
9bc27118b5
Merge pull request #5372 from sujil02/podstatus
Update start stop api to use pod status function.
2020-03-11 14:36:50 -04:00
OpenShift Merge Robot
dbb3de990b
Merge pull request #5459 from mheon/bump_readme_181
[CI:DOCS] Update version in README to v1.8.1
2020-03-11 13:25:52 -04:00
Ed Santiago
3d1bff6db9 man page cross-reference fixes: part 2
The other direction: fix or clean up elements documented in
man pages but which did/do not exist in actual podman:

  * runlabel: add missing "-n" alias for --name

And, remove man page entries for nonexistent options:

  * podman commit: --iidfile
  * podman container runlabel: --rootfs, --storage
  * podman create: --cpu-count

There are two problems I don't know how to deal with. Both
are related to main_local.go:rootCmd.PersistentFlags() :

  1) podman-build.1.md documents --cni-config-dir and
     --runtime options, but these are not actually options
     under podman build; they are global options. The
     documentation in this man page differs from that
     under podman-build.

  2) podman ps implements a binary --namespace option,
     but this option does not (cannot?) appear in --help
     because there's a global --namespace string option
     and Cobra somehow gets confused about this.

Do we really intend for global options to be parsed on
the right-hand side of subcommands? This strikes me as
unintuitive and potentially confusing, although the
fact that it has taken me this long to discover it
suggests that it's not _that_ confusing.

Suggestions welcome. I can file issues for 1/2 above,
or simply teach my script to special-case ignore them.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2020-03-11 11:05:37 -06:00
Matthew Heon
29c071d4f7 Update version in README to v1.8.1
Signed-off-by: Matthew Heon <mheon@redhat.com>
2020-03-11 12:47:31 -04:00
OpenShift Merge Robot
da9d216350
Merge pull request #5457 from mheon/bump-1.8.1
[CI:DOCS]Bump to v1.8.1
2020-03-11 12:04:12 -04:00
Brent Baude
216a6091d0 [CI:DOCS]Add libpod event endpoint
add an endpoint for events on the libpod side of the house.

Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-03-11 09:25:57 -05:00
Matthew Heon
8877fed86e Bump to v1.8.2-dev
Signed-off-by: Matthew Heon <mheon@redhat.com>
2020-03-11 10:16:16 -04:00
Matthew Heon
444a19cdd2 Bump to v1.8.1
Signed-off-by: Matthew Heon <mheon@redhat.com>
2020-03-11 10:16:13 -04:00
OpenShift Merge Robot
087fc79233
Merge pull request #5453 from edsantiago/man_page_xref
man pages: fix inconsistencies
2020-03-10 18:50:31 -04:00
Ed Santiago
281def2647 man pages: fix inconsistencies
I wrote a script to cross-reference podman --help against
man pages. It found a bunch of inconsistencies fix them:

 * options missing from man pages
 * options misspelled or misformatted in man pages (usually
   misplaced asterisks or missing dashes, but see --dns-opt)
 * one spurious comma in the actual source file --help

This is a fix in which I iterate over 'podman CMD --help'
and check for presence in man pages. The other way around
(look for flags in man pages, check podman CMD --help)
is probably impossible: there are too many special cases

Signed-off-by: Ed Santiago <santiago@redhat.com>
2020-03-10 15:03:59 -06:00
OpenShift Merge Robot
fe49daa3c2
Merge pull request #5402 from vrothberg/syslog
docs: clarify bools in `podman --help`
2020-03-10 21:57:04 +01:00
OpenShift Merge Robot
d083d6a8fc
Merge pull request #5450 from baude/arm
build for amd64|arm|ppc64le
2020-03-10 21:54:50 +01:00
OpenShift Merge Robot
273394d566
Merge pull request #5452 from mheon/release_notes_181
[CI:DOCS] Update release notes for v1.8.1 final release
2020-03-10 21:21:39 +01:00
Matthew Heon
916632f7e8 Update release notes for v1.8.1 final release
Signed-off-by: Matthew Heon <mheon@redhat.com>
2020-03-10 15:55:55 -04:00
Brent Baude
2c85674773 build for amd64|arm|ppc64le
to protect against architecture specific build regressions, we cross compile for multiple architectures

Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-03-10 13:57:53 -05:00
Sujil02
846ed00684 Update start stop api to use pod status function.
Update the strat and stop api to validate pod status based on status functions
rather than iterating over all the containers in the pod. (Addressing the TO-DO)

Signed-off-by: Sujil02 <sushah@redhat.com>
2020-03-10 14:37:47 -04:00
OpenShift Merge Robot
a83a94b095
Merge pull request #5448 from vrothberg/update-systemd
update systemd & dbus dependencies
2020-03-10 19:31:14 +01:00
Valentin Rothberg
450361fc64 update systemd & dbus dependencies
Update the outdated systemd and dbus dependencies which are now provided
as go modules.  This will further tighten our dependencies and releases
and pave the way for the upcoming auto-update feature.

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2020-03-10 18:34:55 +01:00
OpenShift Merge Robot
173f430852
Merge pull request #5432 from jwhonce/wip/compat_refactor
Refactor handler packages
2020-03-10 17:43:23 +01:00
Jhon Honce
31112e4b08 Refactor handler packages
To help with packaging, the handlers in pkg/api/handlers are now found
in pkg/api/handler/compat.

Signed-off-by: Jhon Honce <jhonce@redhat.com>
2020-03-10 08:03:41 -07:00
OpenShift Merge Robot
684813fb3e
Merge pull request #5437 from coandco/runlabel_set_doc_update
Remove nonexistent --set arg from runlabel documentation
2020-03-10 14:02:18 +01:00
OpenShift Merge Robot
b293c0b6fa
Merge pull request #5353 from cpanato/GH-4414
commands: rename file and add likns to readthedocs
2020-03-10 13:59:58 +01:00
OpenShift Merge Robot
f98ffcd2bf
Merge pull request #5435 from mheon/bump-1.8.1-rc4
[CI:DOCS] Bump to v1.8.1-RC4
2020-03-10 13:17:55 +01:00
Clint Olson
539fbacba7 Remove nonexistent --set arg from runlabel documentation
Signed-off-by: Clint Olson <clint@populi.co>
2020-03-10 01:07:02 -07:00
Valentin Rothberg
7534f9dd1a hide --trace flag
The tracing flag is not really something users should worry about.

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2020-03-10 08:33:39 +01:00
Valentin Rothberg
7b10b71445 podman --help: mention defaults of bools
While string variables are shown to expect a string argument, boolean
variables are not.  This easily tricks users into believing they are
simple switches without arguments.  Hence, explicitly mention the
default to clarify it a bit more.

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2020-03-10 08:33:39 +01:00
Valentin Rothberg
49b70946bc docs: clarify that --syslog expects an argument
Clarify in the man page that --syslog expexts an argument to prevent
users from believing it's a switch.

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2020-03-10 08:33:39 +01:00
Matthew Heon
40f79f5ef7 Bump to v1.8.1-dev
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2020-03-09 18:26:35 -04:00
Matthew Heon
d5b027f412 Bump to v1.8.1-rc4
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2020-03-09 18:26:32 -04:00
OpenShift Merge Robot
3d48940927
Merge pull request #5307 from QiWang19/security-opt-genkube
fix security-opt generate kube
2020-03-09 22:22:29 +01:00
OpenShift Merge Robot
b54a5e1f2f
Merge pull request #5426 from containers/dependabot/go_modules/github.com/containers/storage-1.16.2
Bump github.com/containers/storage from 1.16.1 to 1.16.2
2020-03-09 19:12:21 +01:00
Carlos Panato
1b4c58e196
commands: rename file and add likns to readthedocs
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2020-03-09 19:11:52 +01:00
Matthew Heon
d2764e93df
Merge pull request #5429 from mheon/revert_exec_changes
Revert exec changes
2020-03-09 13:07:20 -04:00
Matthew Heon
342d99fbc2
Merge pull request #5427 from containers/systemd-default
generate systemd: add `default.target` to INSTALL
2020-03-09 13:06:53 -04:00
Matthew Heon
521ff14d83 Revert "exec: get the exit code from sync pipe instead of file"
This reverts commit 4b72f9e401.

Continues what began with revert of
d3d97a25e8 in previous commit.

Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2020-03-09 09:50:55 -04:00
Matthew Heon
ffce869daa Revert "Exec: use ErrorConmonRead"
This reverts commit d3d97a25e8.

This does not resolve the issues we expected it would, and has
some unexpected side effects with the upcoming exec rework.

Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2020-03-09 09:50:40 -04:00
Matthew Heon
6be87b2186 Revert "exec: fix error code when conmon fails"
This reverts commit 4632b81c81.

We are reverting #5373 as well, which lays the foundation for
this commit, so it has to go as well.

Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2020-03-09 09:25:56 -04:00
OpenShift Merge Robot
6b3f447c8e
Merge pull request #5424 from vrothberg/home
use c/storage instead of docker/docker
2020-03-09 14:18:44 +01:00
Valentin Rothberg
3c473681e3 rootles tutorial: remove systemd unit example
The example was not entirely correct.  Users should use `podman generate
systemd` and use the output either directly or as a template for further
adjustments to their needs.  Keeping an example in the rootless tutorial
is a maintenance burdon and can easily suggest incorrect usage patterns
to users.

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2020-03-09 13:39:56 +01:00
Valentin Rothberg
220f9a71e4 generate systemd: add default.target to INSTALL
When enabling a systemd service we can specify which target will start
it by specifying it in the `[INSTALL]` section.  In case of root, this
is commonly set to `multi-user.target` which is used to start other
essential system services such as the network manager, D-BUS and more.

However, the `multi-user.target` is not enough on all systems,
especially when running rootless and enabling user services.  Multiple
users have reported issues that there isn't even an attempt to start the
service.

Setting the INSTALL target to `default.target` will fix the rootless
case.  However, `default.target` may vary among systems.  Fedora
Workstation, for instance, sets the `default.target` to the graphical
target (i.e., runlevel 5) while Fedora Server sets it to
`multi-user.target` which is on runlevel 2 and hence way earlier in the
startup sequence.

As INSTALL allows for specifying multiple INSTALL targets, we can set it
to `multi-user.target` to continue supporting existing workloads AND to
`default.target` which MAY redundantly attempt to start it at a later point;
effectively a NOP for the root case and essential for rootless.

Fixes: #5423
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2020-03-09 13:33:09 +01:00
dependabot-preview[bot]
5640520579 Bump github.com/containers/storage from 1.16.1 to 1.16.2
Bumps [github.com/containers/storage](https://github.com/containers/storage) from 1.16.1 to 1.16.2.
- [Release notes](https://github.com/containers/storage/releases)
- [Changelog](https://github.com/containers/storage/blob/master/docs/containers-storage-changes.md)
- [Commits](https://github.com/containers/storage/compare/v1.16.1...v1.16.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2020-03-09 11:26:33 +01:00