From e9a93b57053f14e3442fd4241da26e49b73c9cd345c572470d04b698cadf5ca9 Mon Sep 17 00:00:00 2001 From: Richard Brown Date: Tue, 2 Mar 2021 11:27:51 +0000 Subject: [PATCH] Accepting request 874870 from devel:kubic Drop obsolete varlink.patch - Update to v3.0.1 * Changes - Several frequently-occurring WARN level log messages have been downgraded to INFO or DEBUG to not clutter terminal output. Bugfixes - Fixed a bug where the Created field of podman ps --format=json was formatted as a string instead of an Unix timestamp (integer) (#9315). - Fixed a bug where failing lookups of individual layers during the podman images command would cause the whole command to fail without printing output. - Fixed a bug where --cgroups=split did not function properly on cgroups v1 systems. - Fixed a bug where mounting a volume over an directory in the container that existed, but was empty, could fail (#9393). - Fixed a bug where mounting a volume over a directory in the container that existed could copy the entirety of the container's rootfs, instead of just the directory mounted over, into the volume (#9415). - Fixed a bug where Podman would treat the --entrypoint=[""] option to podman run and podman create as a literal empty string in the entrypoint, when instead it should have been ignored (#9377). - Fixed a bug where Podman would set the HOME environment variable to "" when the container ran as a user without an assigned home directory (#9378). - Fixed a bug where specifying a pod infra image that had no tags (by using its ID) would cause podman pod create to panic (#9374). - Fixed a bug where the --runtime option was not properly handled by the podman build command (#9365). - Fixed a bug where Podman would incorrectly print an error message related to the remote API when the remote API was not in use and starting Podman failed. - Fixed a bug where Podman would change ownership of a container's working directory, even if it already existed (#9387). - Fixed a bug where the podman generate systemd --new command would incorrectly escape %t when generating the path for the PID file (#9373). - Fixed a bug where Podman could, when run inside a Podman container with the host's containers/storage directory mounted into the container, erroneously detect a reboot and reset container state if the temporary directory was not also mounted in (#9191). - Fixed a bug where some options of the podman build command (including but not limited to --jobs) were nonfunctional (#9247). * API - Fixed a breaking change to the Libpod Wait API for Containers where the Conditions parameter changed type in Podman v3.0 (#9351). - Fixed a bug where the Compat Create endpoint for Containers did not properly handle forwarded ports that did not specify a host port. - Fixed a bug where the Libpod Wait endpoint for Containers could write duplicate headers after an error occurred. - Fixed a bug where the Compat Create endpoint for Images would not pull images that already had a matching tag present locally, even if a more recent version was available at the registry (#9232). - The Compat Create endpoint for Images has had its compatibility with Docker improved, allowing its use with the docker-java library. * Misc - Updated Buildah to v1.19.4 - Updated the containers/storage library to v1.24.6 - Changes from v3.0.0 OBS-URL: https://build.opensuse.org/request/show/874870 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/podman?expand=0&rev=75 --- _service | 4 +- podman-2.2.1.tar.xz | 3 - podman-3.0.1.tar.xz | 3 + podman.changes | 178 ++++++++++++++++++++++++++++++++++++++++++++ podman.spec | 16 ++-- varlink.patch | 11 --- 6 files changed, 190 insertions(+), 25 deletions(-) delete mode 100644 podman-2.2.1.tar.xz create mode 100644 podman-3.0.1.tar.xz delete mode 100644 varlink.patch diff --git a/_service b/_service index 810cbdc..ccdf1ed 100644 --- a/_service +++ b/_service @@ -4,8 +4,8 @@ https://github.com/containers/podman.git git podman -2.2.1 -v2.2.1 +3.0.1 +v3.0.1 diff --git a/podman-2.2.1.tar.xz b/podman-2.2.1.tar.xz deleted file mode 100644 index 1abb72f..0000000 --- a/podman-2.2.1.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6c2470aef742aba369f1ffb409c81f1e3f4c0cfaba02590384ed0cdedde858c4 -size 5621768 diff --git a/podman-3.0.1.tar.xz b/podman-3.0.1.tar.xz new file mode 100644 index 0000000..feb36a1 --- /dev/null +++ b/podman-3.0.1.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:77cbfc6aeea75ad5f1b4f7ba1eb2181220e7d8089ddb10fe13a03138bbb0386d +size 6065188 diff --git a/podman.changes b/podman.changes index 93cfc95..6465d14 100644 --- a/podman.changes +++ b/podman.changes @@ -1,3 +1,181 @@ +------------------------------------------------------------------- +Wed Feb 24 13:46:35 UTC 2021 - Richard Brown + +- Drop obsolete varlink.patch + +------------------------------------------------------------------- +Wed Feb 24 12:44:58 UTC 2021 - Duncan Mac-Vicar + +- Update to v3.0.1 + * Changes + - Several frequently-occurring WARN level log messages have been downgraded to INFO or DEBUG to not clutter terminal output. +Bugfixes + - Fixed a bug where the Created field of podman ps --format=json was formatted as a string instead of an Unix timestamp (integer) (#9315). + - Fixed a bug where failing lookups of individual layers during the podman images command would cause the whole command to fail without printing output. + - Fixed a bug where --cgroups=split did not function properly on cgroups v1 systems. + - Fixed a bug where mounting a volume over an directory in the container that existed, but was empty, could fail (#9393). + - Fixed a bug where mounting a volume over a directory in the container that existed could copy the entirety of the container's rootfs, instead of just the directory mounted over, into the volume (#9415). + - Fixed a bug where Podman would treat the --entrypoint=[""] option to podman run and podman create as a literal empty string in the entrypoint, when instead it should have been ignored (#9377). + - Fixed a bug where Podman would set the HOME environment variable to "" when the container ran as a user without an assigned home directory (#9378). + - Fixed a bug where specifying a pod infra image that had no tags (by using its ID) would cause podman pod create to panic (#9374). + - Fixed a bug where the --runtime option was not properly handled by the podman build command (#9365). + - Fixed a bug where Podman would incorrectly print an error message related to the remote API when the remote API was not in use and starting Podman failed. + - Fixed a bug where Podman would change ownership of a container's working directory, even if it already existed (#9387). + - Fixed a bug where the podman generate systemd --new command would incorrectly escape %t when generating the path for the PID file (#9373). + - Fixed a bug where Podman could, when run inside a Podman container with the host's containers/storage directory mounted into the container, erroneously detect a reboot and reset container state if the temporary directory was not also mounted in (#9191). + - Fixed a bug where some options of the podman build command (including but not limited to --jobs) were nonfunctional (#9247). + * API + - Fixed a breaking change to the Libpod Wait API for Containers where the Conditions parameter changed type in Podman v3.0 (#9351). + - Fixed a bug where the Compat Create endpoint for Containers did not properly handle forwarded ports that did not specify a host port. + - Fixed a bug where the Libpod Wait endpoint for Containers could write duplicate headers after an error occurred. + - Fixed a bug where the Compat Create endpoint for Images would not pull images that already had a matching tag present locally, even if a more recent version was available at the registry (#9232). + - The Compat Create endpoint for Images has had its compatibility with Docker improved, allowing its use with the docker-java library. + * Misc + - Updated Buildah to v1.19.4 + - Updated the containers/storage library to v1.24.6 +- Changes from v3.0.0 + * Features + - Podman now features initial support for Docker Compose. + - Added the podman rename command, which allows containers to be renamed after they are created (#1925). + - The Podman remote client now supports the podman copy command. + - A new command, podman network reload, has been added. This command will re-configure the network of all running containers, and can be used to recreate firewall rules lost when the system firewall was reloaded (e.g. via firewall-cmd --reload). + - Podman networks now have IDs. They can be seen in podman network ls and can be used when removing and inspecting networks. Existing networks receive IDs automatically. + - Podman networks now also support labels. They can be added via the --label option to network create, and podman network ls can filter labels based on them. + - The podman network create command now supports setting bridge MTU and VLAN through the --opt option (#8454). + - The podman container checkpoint and podman container restore commands can now checkpoint and restore containers that include volumes. + - The podman container checkpoint command now supports the --with-previous and --pre-checkpoint options, and the podman container restore command now support the --import-previous option. These add support for two-step checkpointing with lowered dump times. + - The podman push command can now push manifest lists. Podman will first attempt to push as an image, then fall back to pushing as a manifest list if that fails. + - The podman generate kube command can now be run on multiple containers at once, and will generate a single pod containing all of them. + - The podman generate kube and podman play kube commands now support Kubernetes DNS configuration, and will preserve custom DNS configuration when exporting or importing YAML (#9132). + - The podman generate kube command now properly supports generating YAML for containers and pods creating using host networking (--net=host) (#9077). + - The podman kill command now supports a --cidfile option to kill containers given a file containing the container's ID (#8443). + - The podman pod create command now supports the --net=none option (#9165). + - The podman volume create command can now specify volume UID and GID as options with the UID and GID fields passed to the the --opt option. + - Initial support has been added for Docker Volume Plugins. Podman can now define available plugins in containers.conf and use them to create volumes with podman volume create --driver. + - The podman run and podman create commands now support a new option, --platform, to specify the platform of the image to be used when creating the container. + - The --security-opt option to podman run and podman create now supports the systempaths=unconfined option to unrestrict access to all paths in the container, as well as mask and unmask options to allow more granular restriction of container paths. + - The podman stats --format command now supports a new format specified, MemUsageBytes, which prints the raw bytes of memory consumed by a container without human-readable formatting #8945. + - The podman ps command can now filter containers based on what pod they are joined to via the pod filter (#8512). + - The podman pod ps command can now filter pods based on what networks they are joined to via the network filter. + The podman pod ps command can now print information on what networks a pod is joined to via the .Networks specifier to the --format option. + - The podman system prune command now supports filtering what containers, pods, images, and volumes will be pruned. + - The podman volume prune commands now supports filtering what volumes will be pruned. + - The podman system prune command now includes information on space reclaimed (#8658). + - The podman info command will now properly print information about packages in use on Gentoo and Arch systems. + - The containers.conf file now contains an option for disabling creation of a new kernel keyring on container creation (#8384). + - The podman image sign command can now sign multi-arch images by producing a signature for each image in a given manifest list. + - The podman image sign command, when run as rootless, now supports per-user registry configuration files in $HOME/.config/containers/registries.d. + - Configuration options for slirp4netns can now be set system-wide via the NetworkCmdOptions configuration option in containers.conf. + - The MTU of slirp4netns can now be configured via the mtu= network command option (e.g. podman run --net slirp4netns:mtu=9000). + * Security + - A fix for CVE-2021-20199 is included. Podman between v1.8.0 and v2.2.1 used 127.0.0.1 as the source address for all traffic forwarded into rootless containers by a forwarded port; this has been changed to address the issue. + * Changes + - Shortname aliasing support has now been turned on by default. All Podman commands that must pull an image will, if a TTY is available, prompt the user about what image to pull. + - The podman load command no longer accepts a NAME[:TAG] argument. The presence of this argument broke CLI compatibility with Docker by making docker load commands unusable with Podman (#7387). + - The Go bindings for the HTTP API have been rewritten with a focus on limiting dependency footprint and improving extensibility. Read more here. + - The legacy Varlink API has been completely removed from Podman. + - The default log level for Podman has been changed from Error to Warn. + - The podman network create command can now create macvlan networks using the --driver macvlan option for Docker compatibility. The existing --macvlan flag has been deprecated and will be removed in Podman 4.0 some time next year. + - The podman inspect command has had the LogPath and LogTag fields moved into the LogConfig structure (from the root of the Inspect structure). The maximum size of the log file is also included. + - The podman generate systemd command no longer generates unit files using the deprecated KillMode=none option (#8615). + - The podman stop command now releases the container lock while waiting for it to stop - as such, commands like podman ps will no longer block until podman stop completes (#8501). + - Networks created with podman network create --internal no longer use the dnsname plugin. This configuration never functioned as expected. + - Error messages for the remote Podman client have been improved when it cannot connect to a Podman service. + - Error messages for podman run when an invalid SELinux is specified have been improved. + - Rootless Podman features improved support for containers with a single user mapped into the rootless user namespace. + - Pod infra containers now respect default sysctls specified in containers.conf allowing for advanced configuration of the namespaces they will share. + - SSH public key handling for remote Podman has been improved. + * Bugfixes + - Fixed a bug where the podman history --no-trunc command would truncate the Created By field (#9120). + - Fixed a bug where root containers that did not explicitly specify a CNI network to join did not generate an entry for the network in use in the Networks field of the output of podman inspect (#6618). + - Fixed a bug where, under some circumstances, container working directories specified by the image (via the WORKDIR instruction) but not present in the image, would not be created (#9040). + - Fixed a bug where the podman generate systemd command would generate invalid unit files if the container was creating using a command line that included doubled braces ({{ and }}), e.g. --log-opt-tag={{.Name}} (#9034). + - Fixed a bug where the podman generate systemd --new command could generate unit files including invalid Podman commands if the container was created using merged short options (e.g. podman run -dt) (#8847). + - Fixed a bug where the podman generate systemd --new command could generate unit files that did not handle Podman commands including some special characters (e.g. $) (#9176 + - Fixed a bug where rootless containers joining CNI networks could not set a static IP address (#7842). + - Fixed a bug where rootless containers joining CNI networks could not set network aliases (#8567). + - Fixed a bug where the remote client could, under some circumstances, not include the Containerfile when sending build context to the server (#8374). + - Fixed a bug where rootless Podman did not mount /sys as a new sysfs in some circumstances where it was acceptable. + - Fixed a bug where rootless containers that both joined a user namespace and a CNI networks would cause a segfault. These options are incompatible and now return an error. + - Fixed a bug where the podman play kube command did not properly handle CMD and ARGS from images (#8803). + - Fixed a bug where the podman play kube command did not properly handle environment variables from images (#8608). + - Fixed a bug where the podman play kube command did not properly print errors that occurred when starting containers. + - Fixed a bug where the podman play kube command errored when hostNetwork was used (#8790). + - Fixed a bug where the podman play kube command would always pull images when the :latest tag was specified, even if the image was available locally (#7838). + - Fixed a bug where the podman play kube command did not properly handle SELinux configuration, rending YAML with custom SELinux configuration unusable (#8710). + - Fixed a bug where the podman generate kube command incorrectly populated the args and command fields of generated YAML (#9211). + - Fixed a bug where containers in a pod would create a duplicate entry in the pod's shared /etc/hosts file every time the container restarted (#8921). + - Fixed a bug where the podman search --list-tags command did not support the --format option (#8740). + - Fixed a bug where the http_proxy option in containers.conf was not being respected, and instead was set unconditionally to true (#8843). + - Fixed a bug where rootless Podman could, on systems with a recent Conmon and users with a long username, fail to attach to containers (#8798). + - Fixed a bug where the podman images command would break and fail to display any images if an empty manifest list was present in storage (#8931). + - Fixed a bug where locale environment variables were not properly passed on to Conmon. + - Fixed a bug where Podman would not build on the MIPS architecture (#8782). + - Fixed a bug where rootless Podman could fail to properly configure user namespaces for rootless containers when the user specified a --uidmap option that included a mapping beginning with UID 0. + - Fixed a bug where the podman logs command using the k8s-file backend did not properly handle partial log lines with a length of 1 (#8879). + - Fixed a bug where the podman logs command with the --follow option did not properly handle log rotation (#8733). + - Fixed a bug where user-specified HOSTNAME environment variables were overwritten by Podman (#8886). + - Fixed a bug where Podman would applied default sysctls from containers.conf in too many situations (e.g. applying network sysctls when the container shared its network with a pod). + - Fixed a bug where Podman did not properly handle cases where a secondary image store was in use and an image was present in both the secondary and primary stores (#8176). + - Fixed a bug where systemd-managed rootless Podman containers where the user in the container was not root could fail as the container's PID file was not accessible to systemd on the host (#8506). + - Fixed a bug where the --privileged option to podman run and podman create would, under some circumstances, not disable Seccomp (#8849). + - Fixed a bug where the podman exec command did not properly add capabilities when the container or exec session were run with --privileged. + - Fixed a bug where rootless Podman would use the --enable-sandbox option to slirp4netns unconditionally, even when pivot_root was disabled, rendering slirp4netns unusable when pivot_root was disabled (#8846). + - Fixed a bug where podman build --logfile did not actually write the build's log to the logfile. + - Fixed a bug where the podman system service command did not close STDIN, and could display user-interactive prompts (#8700). + - Fixed a bug where the podman system reset command could, under some circumstances, remove all the contents of the XDG_RUNTIME_DIR directory (#8680). + - Fixed a bug where the podman network create command created CNI configurations that did not include a default gateway (#8748). + - Fixed a bug where the podman.service systemd unit provided by default used the wrong service type, and would cause systemd to not correctly register the service as started (#8751). + - Fixed a bug where, if the TMPDIR environment variable was set for the container engine in containers.conf, it was being ignored. + - Fixed a bug where the podman events command did not properly handle future times given to the --until option (#8694). + - Fixed a bug where the podman logs command wrote container STDERR logs to STDOUT instead of STDERR (#8683). + - Fixed a bug where containers created from an image with multiple tags would report that they were created from the wrong tag (#8547). + - Fixed a bug where container capabilities were not set properly when the --cap-add=all and --user options to podman create and podman run were combined. + - Fixed a bug where the --layers option to podman build was nonfunctional (#8643). + - Fixed a bug where the podman system prune command did not act recursively, and thus would leave images, containers, pods, and volumes present that would be removed by a subsequent call to podman system prune (#7990). + - Fixed a bug where the --publish option to podman run and podman create did not properly handle ports specified as a range of ports with no host port specified (#8650). + - Fixed a bug where --format did not support JSON output for individual fields (#8444). + - Fixed a bug where the podman stats command would fail when run on root containers using the slirp4netns network mode (#7883). + - Fixed a bug where the Podman remote client would ask for a password even if the server's SSH daemon did not support password authentication (#8498). + - Fixed a bug where the podman stats command would fail if the system did not support one or more of the cgroup controllers Podman supports (#8588). + - Fixed a bug where the --mount option to podman create and podman run did not ignore the consistency mount option. + - Fixed a bug where failures during the resizing of a container's TTY would print the wrong error. + - Fixed a bug where the podman network disconnect command could cause the podman inspect command to fail for a container until it was restarted (#9234). + - Fixed a bug where containers created from a read-only rootfs (using the --rootfs option to podman create and podman run) would fail (#9230). + - Fixed a bug where specifying Go templates to the --format option to multiple Podman commands did not support the join function (#8773). + - Fixed a bug where the podman rmi command could, when run in parallel on multiple images, return layer not known errors (#6510). + - Fixed a bug where the podman inspect command on containers displayed unlimited ulimits incorrectly (#9303). + - Fixed a bug where Podman would fail to start when a volume was mounted over a directory in a container that contained symlinks that terminated outside the directory and its subdirectories (#6003). + +API + + - Libpod API version has been bumped to v3.0.0. + - All Libpod Pod APIs have been modified to properly report errors with individual containers. Cases where the operation as a whole succeeded but individual containers failed now report an HTTP 409 error (#8865). + - The Compat API for Containers now supports the Rename and Copy APIs. + - Fixed a bug where the Compat Prune APIs (for volumes, containers, and images) did not return the amount of space reclaimed in their responses. + - Fixed a bug where the Compat and Libpod Exec APIs for Containers would drop errors that occurred prior to the exec session successfully starting (e.g. a "no such file" error if an invalid executable was passed) (#8281) + - Fixed a bug where the Volumes field in the Compat Create API for Containers was being ignored (#8649). + - Fixed a bug where the NetworkMode field in the Compat Create API for Containers was not handling some values, e.g. container:, correctly. + - Fixed a bug where the Compat Create API for Containers did not set container name properly. + - Fixed a bug where containers created using the Compat Create API unconditionally used Kubernetes file logging (the default specified in containers.conf is now used). + - Fixed a bug where the Compat Inspect API for Containers could include container states not recognized by Docker. + - Fixed a bug where Podman did not properly clean up after calls to the Events API when the journald backend was in use, resulting in a leak of file descriptors (#8864). + - Fixed a bug where the Libpod Pull endpoint for Images could fail with an index out of range error under certain circumstances (#8870). + - Fixed a bug where the Libpod Exists endpoint for Images could panic. + - Fixed a bug where the Compat List API for Containers did not support all filters (#8860). + - Fixed a bug where the Compat List API for Containers did not properly populate the Status field. + - Fixed a bug where the Compat and Libpod Resize APIs for Containers ignored the height and width parameters (#7102). + - Fixed a bug where the Compat Search API for Images returned an incorrectly-formatted JSON response (#8758). + - Fixed a bug where the Compat Load API for Images did not properly clean up temporary files. + - Fixed a bug where the Compat Create API for Networks could panic when an empty IPAM configuration was specified. + - Fixed a bug where the Compat Inspect and List APIs for Networks did not include Scope. + - Fixed a bug where the Compat Wait endpoint for Containers did not support the same wait conditions that Docker did. + * Misc + - Updated Buildah to v1.19.2 + - Updated the containers/storage library to v1.24.5 + - Updated the containers/image library to v5.10.2 + - Updated the containers/common library to v0.33.4 + ------------------------------------------------------------------- Tue Jan 5 18:14:52 UTC 2021 - Michael Ströder diff --git a/podman.spec b/podman.spec index 579fa4d..727ae8b 100644 --- a/podman.spec +++ b/podman.spec @@ -1,7 +1,7 @@ # # spec file for package podman # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -22,17 +22,16 @@ %define with_libostree 1 %endif Name: podman -Version: 2.2.1 +Version: 3.0.1 Release: 0 Summary: Daemon-less container engine for managing containers, pods and images License: Apache-2.0 Group: System/Management -Url: https://github.com/containers/libpod +URL: https://github.com/containers/libpod Source0: %{name}-%{version}.tar.xz Source1: podman.conf Source3: %{name}-rpmlintrc Source4: README.SUSE.SLES -Patch0: varlink.patch BuildRequires: bash-completion BuildRequires: cni BuildRequires: device-mapper-devel @@ -48,24 +47,24 @@ BuildRequires: libbtrfs-devel BuildRequires: libcontainers-common BuildRequires: libgpgme-devel BuildRequires: libseccomp-devel +BuildRequires: golang(API) = 1.13 BuildRequires: pkgconfig(libselinux) BuildRequires: pkgconfig(libsystemd) -BuildRequires: golang(API) = 1.13 # Build fails with PIE enabled on ppc64le due to boo#1098017 %ifarch ppc64le #!BuildIgnore: gcc-PIE %endif Recommends: apparmor-parser Recommends: apparmor-abstractions +Requires: catatonit Requires: cni Requires: cni-plugins Requires: conmon +Requires: fuse-overlayfs Requires: iptables Requires: libcontainers-common >= 20200727 Requires: runc >= 1.0.0~rc4 Requires: slirp4netns >= 0.4.0 -Requires: catatonit -Requires: fuse-overlayfs Requires: timezone Recommends: %{name}-cni-config = %{version} Suggests: katacontainers @@ -84,7 +83,6 @@ skopeo, as they all share the same datastore backend. %prep %setup -q -%patch0 %package cni-config Summary: Basic CNI configuration for podman diff --git a/varlink.patch b/varlink.patch deleted file mode 100644 index ec89801..0000000 --- a/varlink.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- ./Makefile 2020/09/30 15:55:41 1.1 -+++ ./Makefile 2020/09/30 17:59:12 -@@ -615,7 +615,7 @@ - - # $BUILD_TAGS variable is used in hack/golangci-lint.sh - .PHONY: varlink_generate --ifneq (or $(findstring varlink,$(BUILDTAGS)),$(findstring varlink,$(BUILD_TAGS))) -+ifneq (,$(or $(findstring varlink,$(BUILDTAGS)),$(findstring varlink,$(BUILD_TAGS)))) - varlink_generate: .gopathok pkg/varlink/iopodman.go ## Generate varlink - else - varlink_generate: