11989 Commits

Author SHA1 Message Date
f49023031d Update release notes for v3.2.0-RC3
Signed-off-by: Matthew Heon <mheon@redhat.com>
2021-05-25 15:28:10 -04:00
ee5dd06035 Fix race on podman start --all
Make sure all containers exit after start

There is a race condition in that container could still be running when
we attempt to remove them.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-05-25 15:28:03 -04:00
6c9de93823 Fix race condition in running ls container in a pod
All of the tests has an assumption that RunLsContainer and RunLsContainerInPod completes
the container before returning.  But since the container is running
in back ground mode, the container could be still running before tools
attempt to remove it. Removing the "-d" from the command fixes the
container to match the assumption.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-05-25 15:27:57 -04:00
69bae4774b docs: --cert-dir: point to containers-certs.d(5)
Point to containers-certs.d(5) for details on the default paths, the
lookup logic and the structure of these directories.  Previously, the
man pages stated that the default path would be in `/etc/containers/...`
which is not entirely and a red herring for users (see #10116).

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2021-05-25 15:27:38 -04:00
934f36df5e Handle hard links in different directories
Fixes: https://github.com/containers/podman/issues/10444

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-05-25 15:27:22 -04:00
5eecc2761b Improve OCI Runtime error
ErrOCIRuntimeNotFound error is misleading. Try to make it more
understandable to the user that the OCI Runtime IE crun or runc is not
missing, but the command they attempted to run within the container is
missing.

[NO TESTS NEEDED] Regular tests should handle this.

Fixes: https://github.com/containers/podman/issues/10432

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-05-25 15:27:04 -04:00
ba884865c5 Handle hard links in remote builds
Fixes: https://github.com/containers/podman/issues/9893

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-05-25 15:25:02 -04:00
c53638e9f6 Podman info add support for status of cgroup controllers
Signed-off-by: flouthoc <flouthoc.git@gmail.com>
2021-05-25 15:19:03 -04:00
ac8b7ddd8d Drop container does not exist on removal to debugf
We have race conditions where a container can be removed
by two different processes when running podman --remove rm.

It can be cleaned up in the API or by the conmon executing
podman container cleanup.

When we fail to remove a container that does not exists we should
not be printing errors or warnings, we should just debug the fact.

[NO TESTS NEEDED] Since this is a race condition it is difficult to
test.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-05-25 15:17:35 -04:00
18e917cdc3 Downgrade API service routing table logging
[NO TESTS NEEDED]

* Log the routing table output at Trace vs. Debug level. Reduce noise
  in debugging output.
* Tweak SDNotify message to report Warn when it fails. Previously
  failures were silent.

Signed-off-by: Jhon Honce <jhonce@redhat.com>
2021-05-25 15:15:50 -04:00
efa15b96c5 add libimage events
libimage now supports events which `libpod.Runtime` now uses for image
events.

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>

<MH: Removed vendor bits, kept other changes>

Signed-off-by: Matthew Heon <mheon@redhat.com>
2021-05-25 15:15:41 -04:00
a9108ab258 docs: generate systemd: XDG_RUNTIME_DIR
A conversation on the customer portal suggests that to add an extra note
about the requirement of XDG_RUNTIME_DIR to be set.

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2021-05-25 15:11:16 -04:00
bb589bec24 Fix problem copying files when container is in host pid namespace
When attempting to copy files into and out of running containers
within the host pidnamespace, the code was attempting to join the
host pidns again, and getting an error. This was causing the podman
cp command to fail. Since we are already in the host pid namespace,
we should not be attempting to join.  This PR adds a check to see if
the container is in NOT host pid namespace, and only then attempts to
join.

Fixes: https://github.com/containers/podman/issues/9985

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-05-25 14:44:20 -04:00
b909bcaed6 Merge pull request #10418 from mheon/bump_320_rc2
[CI:DOCS] Bump to v3.2.0-RC2
2021-05-20 16:43:17 -04:00
67055365c2 Bump to v3.2.0-dev
Signed-off-by: Matthew Heon <mheon@redhat.com>
2021-05-20 16:15:52 -04:00
e849ba2013 Bump to v3.2.0-RC2
Signed-off-by: Matthew Heon <mheon@redhat.com>
v3.2.0-rc2
2021-05-20 16:15:40 -04:00
5d1e39b456 Merge pull request #10415 from mheon/32_vendor
[v3.2] Update vendors of container projects
2021-05-20 16:13:18 -04:00
32dd933a7e update c/common
Update containers common to the latest HEAD.  Some bug fixes in libimage
forced us to have a clearer separation between ordinary images and
manifest lists.  Hence, when looking up manifest lists without recursing
into any of their instances, we need to use `LookupManifestList()`.

Also account for some other changes in c/common (e.g., the changed order
in the security labels).

Further vendor the latest HEAD from Buildah which is required to get the
bud tests to pass.

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>

<MH: Stripped out vendor bits - just left remaining changes>

Signed-off-by: Matthew Heon <mheon@redhat.com>
2021-05-20 14:47:51 -04:00
0649552f2b Update Cirrus DEST_BRANCH to v3.2
Signed-off-by: Matthew Heon <mheon@redhat.com>
2021-05-20 13:54:18 -04:00
902507513c Updated vendors of c/image, c/storage, Buildah
Last PR before 3.2.0-RC2

Signed-off-by: Matthew Heon <mheon@redhat.com>
2021-05-20 13:30:25 -04:00
fe0595683a Merge pull request #10388 from mheon/release_notes_320rc2
[CI:DOCS] Release notes for v3.2.0-RC2
2021-05-20 06:00:21 -04:00
38ec00c24a Initial release notes for v3.2.0-RC2
Missing the updated vendor bits, but the vendor dance is not yet
done.

Signed-off-by: Matthew Heon <mheon@redhat.com>
2021-05-19 10:22:21 -04:00
f88de46b26 Add script for identifying commits in release branches
One of the worst parts of a Podman release is writing the release
notes. It requires manually going through all merged commits
since the last release, figuring out what was actually done, and
writing a small blurb about what was fixed. The worst part of
this is the difficulty in finding the commits that were actually
included in previous releases - our extensive backports to prior
releases mean that there are usually dozens of commits that were
included in a prior release, but do not have a matching SHA (as
the original author did not do the backport, and often the commit
required massaging to cherry-pick in).

This script automates the job of finding commits in one release
branch that are not in another, with filtering to remove most
cherry-picked commits. It makes my life a lot easier during
releases, so I figured I'd include it in hack/ so anyone else
stuck with the enjoyable task of writing release notes can have a
slightly easier life.

The script is written in absolutely terrible Ruby and its
performance is absolutely terrible, but you only need to run it
once per major release and a 30-second wait to generate the list
of commits to include isn't bad.

Signed-off-by: Matthew Heon <mheon@redhat.com>
2021-05-18 09:42:07 -04:00
93c3e03227 Merge pull request #10363 from vrothberg/fix-10350
image prune: remove unused images only with `--all`
2021-05-17 11:17:21 -04:00
62a7d4b61e Merge pull request #9972 from bblenard/issue-5651-hostname-for-container-gateway
Add host.containers.internal entry into container's etc/hosts
2021-05-17 10:45:23 -04:00
9d2bc4cae8 Merge pull request #10356 from Luap99/network-reload-rootless
podman network reload add rootless support
2021-05-17 10:21:20 -04:00
c8dfcce6db Add host.containers.internal entry into container's etc/hosts
This change adds the entry `host.containers.internal` to the `/etc/hosts`
file within a new containers filesystem. The ip address is determined by
the containers networking configuration and points to the gateway address
for the containers networking namespace.

Closes #5651

Signed-off-by: Baron Lenardson <lenardson.baron@gmail.com>
2021-05-17 08:21:22 -05:00
2a43fcf786 image prune: remove unused images only with --all
Fix a regression in `podman image prune` where unused images were
accidentally removed even when `--all=false`.  Extend and partially
rewrite the e2e tests to make sure we're not regressing again in the
future.

Fixing the aforementioned issue revealed another issue in the default
prune filter.  While prune should remove all "dangling" images (i.e.,
those without tag), it removed only "intermediate" ones; dangling images
without children.  Remove the mistaken comment from the libimage
migration.

Also clarify the help message and man page.

Fixes: #10350
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2021-05-17 13:52:03 +02:00
4462113c5e podman network reload add rootless support
Allow podman network reload to be run as rootless user. While it is
unlikely that the iptable rules are flushed inside the rootless cni
namespace, it could still happen. Also fix podman network reload --all
to ignore errors when a container does not have the bridge network mode,
e.g. slirp4netns.

Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
2021-05-17 10:55:02 +02:00
3bdbe3ce96 Merge pull request #10357 from srcshelton/patch-1
Update to actions/stale@v3
2021-05-17 03:30:18 -04:00
60eb4e74d1 Use more recent stale release...
… as currently with `v1`, `remove-stale-when-updated` is set but isn't causing labels to be updated when comments are added.

Signed-off-by: Stuart Shelton <stuart@shelton.me>
2021-05-16 19:02:18 +01:00
a6a3df0273 Merge pull request #10346 from Luap99/network-doc
[CI:DOCS] network tutorial: update with rootless cni changes
2021-05-16 07:02:17 -04:00
460182dc5d network tutorial: update with rootless cni changes
Starting with podman v3.2 rootless cni will work without the
rootless-cni-infra container. Update the network tutorial to reflect the
latest changes and mention that the infra container can be removed.

Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
2021-05-15 22:46:53 +02:00
90a12acb7e Merge pull request #10332 from TomSweeneyRedHat/dev/tsweeney/fixintro
[CI:DOCS] Update first line in intro page
2021-05-15 04:07:16 -04:00
757ed8fd02 [CI:DOCS] Update first line in intro page
Remove the word `consumption` and give a better description for the
first line of the introduction page.

Fixes: #10325

Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2021-05-14 17:08:35 -04:00
2b0b97150a Merge pull request #10341 from vrothberg/auto-update-prune
auto-update service: prune images
2021-05-14 15:36:38 -04:00
ed003617b2 Merge pull request #10343 from cevich/update_vm_images
Use updated VM images + updated automation tooling
2021-05-14 15:35:39 -04:00
ae72aedf40 Use updated VM images + updated automation tooling
Both the `containers/automation` and `containers/automation_images` have
been updated with a default 'main' branch, renamed from 'master`.  These
images include adjusted tooling in addition to a refresh of all
packages.

Signed-off-by: Chris Evich <cevich@redhat.com>
2021-05-14 14:05:27 -04:00
fabaa25667 Merge pull request #10254 from jmguzik/prune-filter-cli
Add support for cli network prune --filter flag
2021-05-14 13:12:40 -04:00
9738f63bac auto-update service: prune images
Extend the systemd auto-update service to prune images after an update
has run.  As reported by a user [1], auto updates can over time cause
the disk to run out of space.  With Edge being a target use case, we
need to make sure that systems can run without much supervision, so
let's make sure to run `podman image prune` to clean up dangling images.

[1] https://twitter.com/r_isc_y/status/1388981737011793921

Fixes: #10190
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2021-05-14 14:32:43 +02:00
d05cc0a04a Merge pull request #10331 from redhat-et/vendor
Update go.sum
2021-05-14 06:32:31 -04:00
b9b386075b make vendor
Signed-off-by: Ivan Font <ifont@redhat.com>
2021-05-13 10:07:23 -07:00
4dc52f61cc Merge pull request #10316 from containers/dependabot/go_modules/github.com/containers/storage-1.30.3
Bump github.com/containers/storage from 1.30.2 to 1.30.3
2021-05-12 20:53:08 -04:00
0762970096 Merge pull request #10294 from Luap99/system-upgrade-tests
fix system upgrade tests
2021-05-12 19:54:45 -04:00
a31a1f5942 Merge pull request #10300 from jwhonce/issues/10289
Add host.serviceIsRemote to podman info results
2021-05-12 18:06:46 -04:00
7b59119c47 Merge pull request #10239 from alvistack/master-linux-amd64
Update nix pin with `make nixpkgs`
2021-05-12 18:00:46 -04:00
c5e7caaec1 Merge pull request #10313 from edsantiago/bats
[CI:DOCS] hack/bats - new helper for running system tests
2021-05-12 17:09:47 -04:00
071799f259 Merge pull request #10324 from containers/uncompressing
[NO TESTS NEEDED] Print "extracting" only on compressed file
2021-05-12 16:10:48 -04:00
d6507fcfbc Merge pull request #10222 from vrothberg/image-tree
podman image tree: restore previous behavior
2021-05-12 15:59:46 -04:00
5992c76f8f fix system upgrade tests
Fix many FIXMEs in the upgrade tests. Also add a basic test for pods.

Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
2021-05-12 21:45:43 +02:00