Bug 1855983
Summary: | {{range $e = split .Repository "/"}}{{end}} in podman go template fails | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | tomi ollila <tomi.ollila> |
Component: | podman | Assignee: | Lokesh Mandvekar <lsm5> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | low | Docs Contact: | |
Priority: | unspecified | ||
Version: | 34 | CC: | bbaude, debarshir, dwalsh, jhonce, jnovy, lsm5, mheon, rh.container.bot, santiago, tsweeney |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | podman-3.3.0-1.fc34 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-08-26 21:08:03 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
tomi ollila
2020-07-11 14:22:11 UTC
This no longer crashes, that was fixed in some podman 2.0.x version. Now podman just outputs message: Error: template: list:1: function "split" not defined (and returns -1 to the parent process as I get error message "zsh: exit 125 podman images --format") I am fine to close this ticket, if I get some understanding why function 'split' used to work in previous podman versions (up to 1.9...) and it is no longer... I am also interested what functions are supported now (in addition to printf), if any (tried to find docs, tried to understand code, with no luck) Does this command work on Docker? I'll test shortly on systems I find docker (still) available, some mine, some friends/colleaques... It works...: macOS Catalina 10.15.4% docker --version Docker version 19.03.12, build 48a66213fe macOS Catalina 10.15.4% docker images --format='{{$e:=""}}{{range $e = split .Repository "/"}}{{end}}{{$e}}:{{.Tag}}' container-image:latest macOS Catalina 10.15.4% docker images REPOSITORY TAG IMAGE ID CREATED SIZE hqxsr-cmmaven2:5000/container-image latest 18d4b56854a2 2 weeks ago 1.46GB Jon could you take a look at this bug? This message is a reminder that Fedora 32 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora 32 on 2021-05-25. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '32'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 32 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. Updated (Fedora) version from '32' to '34' in this bug report The problem still persists, and (IIRC) this is "upstream bugzilla" for this software fedora34$ podman --version podman version 3.1.2 fedora34$ podman images --format '{{.ID}} {{printf "%12.12s %8s" .CreatedSince .Size}} {{$e:=""}}{{range $e = split .Repository "/"}}{{end}}{{$e}}:{{.Tag}}' Error: template: list:1: function "split" not defined zsh: exit 125 podman images --format Fixed in: * https://github.com/containers/common/pull/624 * https://github.com/containers/podman/pull/10688 As noted by Jhon, fixed in the PRs noted in https://bugzilla.redhat.com/show_bug.cgi?id=1855983#c8. This will be delivered in Podman 3.3 which is slated for RHEL 8.5 Assigning to Jindrich for any Packaging/BZ needs. FEDORA-2021-d70c53ec97 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-d70c53ec97 FEDORA-2021-d70c53ec97 has been pushed to the Fedora 34 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-d70c53ec97` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-d70c53ec97 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. podman images --format='{{$e:=""}}{{range $e = split .Repository "/"}}{{end}}{{$e}}:{{.Tag}}' worked for me as expected, with podman-3.3.0-0.2.rc1.fc34.x86_64 The change is interesting -- does that mean there was real bug which this attempt revealed, instead of a feature which happened to be there as a side effect? @jhonce Do you have an answer to Tomi's question in https://bugzilla.redhat.com/show_bug.cgi?id=1855983#c13 As issues and bugs are reported we work on our docker compatibility. There were changes in some podman sub-commands where they were not using our containers/common report package. That could explain this change. FEDORA-2021-94cbb4fa81 has been pushed to the Fedora 34 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-94cbb4fa81` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-94cbb4fa81 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2021-140dfde78f has been pushed to the Fedora 34 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-140dfde78f` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-140dfde78f See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2021-7ce1dbeb75 has been pushed to the Fedora 34 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-7ce1dbeb75` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-7ce1dbeb75 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2021-7ce1dbeb75 has been pushed to the Fedora 34 stable repository. If problem still persists, please make note of it in this bug report. |