RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1915383 - Podman "--format" does not support "join"
Summary: Podman "--format" does not support "join"
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: podman
Version: 8.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: Jindrich Novy
QA Contact: Joy Pu
URL:
Whiteboard:
Depends On:
Blocks: 1922077 1957299
TreeView+ depends on / blocked
 
Reported: 2021-01-12 14:51 UTC by Milan Lysonek
Modified: 2021-05-18 15:35 UTC (History)
11 users (show)

Fixed In Version: podman-3.0.0-0.41rc2.el8 or newer
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1922077 1957299 (view as bug list)
Environment:
Last Closed: 2021-05-18 15:34:30 UTC
Type: Bug
Target Upstream Version:
Embargoed:
tsweeney: needinfo-


Attachments (Terms of Use)

Description Milan Lysonek 2021-01-12 14:51:43 UTC
Description of problem:
Podman no longer supports "join" in output formatting "--format".

Version-Release number of selected component (if applicable):
Version: 2.2.1
Release: 2.module+el8.3.1+9107+df0d2892

How reproducible:
100%

Steps to Reproduce:
1. podman pull registry.access.redhat.com/ubi8/ubi-minimal
2. podman inspect registry.access.redhat.com/ubi8/ubi-minimal --format '{{join .Config.Env "\n"}}'

Actual results:
ERRO[0000] Error printing inspect output: template: all inspect:1: function "join" not defined

Expected results:
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
container=oci

Additional info:
https://github.com/containers/podman/issues/8773

Comment 1 Matus Marhefka 2021-01-12 14:58:06 UTC
Will you be able to fix this in 8.4? Our oscap-podman depends on the join Go template so if you are not able to fix it on your side we will need to workaround. Please let us know.

Comment 2 Daniel Walsh 2021-01-12 15:38:27 UTC
Jon this looks like something you need to handle.

Comment 5 Jhon Honce 2021-01-29 21:12:18 UTC
c/common updated with https://github.com/containers/common/pull/426
podman will need to vendor in this update.

Comment 7 Jhon Honce 2021-02-02 16:28:34 UTC
https://github.com/containers/common/pull/426 provided changes to code
https://github.com/containers/podman/pull/9196 should have included fix in podman

Comment 8 Jindrich Novy 2021-02-05 15:29:06 UTC
Jhon, do you plan to fix it for 8.4.0 (podman-3.0)?

Comment 10 Jhon Honce 2021-02-10 16:11:31 UTC
https://github.com/containers/podman/pull/9285 fixes this issue for podman 3.0.0

Comment 16 Joy Pu 2021-02-22 07:18:01 UTC
Test with podman-3.0.1-1.module+el8.4.0+10073+30e5ea69.x86_64 and it works as expected. So set this to verified.
# podman pull registry.access.redhat.com/ubi8/ubi-minimal
Trying to pull registry.access.redhat.com/ubi8/ubi-minimal:latest...
Getting image source signatures
Checking if image destination supports signatures
Copying blob 76b9354adec6 skipped: already exists  
Copying blob a591faa84ab0 [--------------------------------------] 0.0b / 0.0b
Copying config dc080723f5 done  
Writing manifest to image destination
Storing signatures
dc080723f596f2407300cca2c19a17accad89edcf39f7b8b33e6472dd41e30f1
# podman inspect registry.access.redhat.com/ubi8/ubi-minimal --format '{{join .Config.Env "\n"}}'
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
container=oci

Comment 18 errata-xmlrpc 2021-05-18 15:34:30 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: container-tools:rhel8 security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:1796


Note You need to log in before you can comment on or make changes to this bug.