Commit graph

10739 commits

Author SHA1 Message Date
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
Qi Wang
abb60fbba2 container prune remove state created, configured
podman container prune should remove containers with state Created, Configured to be compatible with docker

Signed-off-by: Qi Wang <qiwan@redhat.com>
2020-03-10 10:57:51 -04: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
Valentin Rothberg
7359075a78 use storage/pkg/ioutils
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2020-03-09 09:03:51 +01:00
Valentin Rothberg
6f1ba67300 use storage/pkg/homedir
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2020-03-09 08:57:23 +01:00
OpenShift Merge Robot
f378e82e2d
Merge pull request #5412 from rhatdan/tmpdir
Allow users to set TMPDIR environment
2020-03-08 17:03:59 +01:00
OpenShift Merge Robot
9e12f6354c
Merge pull request #5395 from cevich/fix_fedora_minimal
Cirrus: Fix fedora-minimal mirroring
2020-03-08 15:55:03 +01:00
OpenShift Merge Robot
3818146335
Merge pull request #5407 from rhatdan/codespell
Fix spelling mistakes in code found by codespell
2020-03-07 22:12:27 +01:00
Daniel J Walsh
ac354ac94a
Fix spelling mistakes in code found by codespell
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-03-07 10:30:44 -05:00
OpenShift Merge Robot
c8de26fb08
Merge pull request #5374 from baude/create
add default network for apiv2 create
2020-03-07 14:16:43 +01:00
OpenShift Merge Robot
43bf4f6626
Merge pull request #5359 from TomSweeneyRedHat/dev/tsweeney/fixquay
Fix upstream dockerfile and add 'by hand' ctrfile
2020-03-07 14:14:13 +01:00
OpenShift Merge Robot
b92a9090ed
Merge pull request #5417 from mheon/bump-1.8.1-rc3
[CI:DOCS] Bump to v1.8.1-RC3
2020-03-06 23:28:11 +01:00
Brent Baude
8b5e2a6297 add default network for apiv2 create
during container creation, if no network is provided, we need to add a default value so the container can be later started.

use apiv2 container creation for RunTopContainer instead of an exec to the system podman. RunTopContainer now also returns the container id and an error.

added a libpod commit endpoint.

also, changed the use of the connections and bindings slightly to make it more convenient to write tests.

Fixes: 5366
Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-03-06 14:31:45 -06:00
Matthew Heon
e9a58ccfae Bump to v1.8.1-dev
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2020-03-06 15:26:32 -05:00
Matthew Heon
e5f7cb3978 Bump to v1.8.1-rc3
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2020-03-06 15:26:31 -05:00
OpenShift Merge Robot
c3177b781b
Merge pull request #5410 from st1971/api-fixes
APIv2: compatible api fixes
2020-03-06 21:19:55 +01:00
OpenShift Merge Robot
6365fab22b
Merge pull request #5415 from mheon/release_notes_181_rc3
[CI:DOCS] Update release notes for v1.8.1-RC3
2020-03-06 21:17:18 +01:00
Matthew Heon
fbbe6099f5 Update release notes for v1.8.1-RC3
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2020-03-06 14:50:09 -05:00
OpenShift Merge Robot
a61d05f667
Merge pull request #5387 from edsantiago/try_renaming_long_cirrus_jobs
Rename long cirrus job names
2020-03-06 20:10:51 +01:00
OpenShift Merge Robot
b0d350a1bd
Merge pull request #5414 from dcbw/cni-0.7.2-snapshot
vendor: update github.com/containernetworking/cni to v0.7.2-0.20200304161608-4fae32b84921
2020-03-06 18:48:02 +01:00
Ed Santiago
a61ff4972d Part 2: try to clean up the long image instance names
Let's try to shorten up fedora-31-libpod-123456789etc to
just fedora-31.

While we're at it, shorten the window/darwin names too

Many many thanks to @fkorotkov for the suggestion to use 'alias'

Signed-off-by: Ed Santiago <santiago@redhat.com>
2020-03-06 09:17:05 -07:00
Ed Santiago
68b0b20607 WIP: Try renaming long cirrus job names
Basically, add a 'name' tag (remote, local) to each incantation
of TEST_REMOTE_CLIENT: true/false

I have no idea if this will work or what results it'll produce.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2020-03-06 09:17:05 -07:00
Dan Williams
74ddc0b696 vendor: update github.com/containernetworking/cni to v0.7.2-0.20200304161608-4fae32b84921
Specifically to get:

https://github.com/containernetworking/cni/pull/735
6f29b0165883b2b52ccd4dcb937162ea4c86927b intercept netplugin std err

But also pulls in some interface name validation and a compatibility
fix for configurations that don't set a CNI version.

Signed-off-by: Dan Williams <dcbw@redhat.com>
2020-03-06 10:03:27 -06:00