podman does not support {{ index .Id }} format so containers are restarted needlessly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
High
|
Unassigned |
Bug Description
Via https:/
if container_image:
if str(image_
This code works fine in docker:
[root@controller-0 ~]# docker inspect --type image --format '{{index .Id}}' f6ec0f326154
sha256:
But is problematic in podman (both on 1.6.4 and 2.1.1 versions):
[root@controller-0 ~]# podman inspect --type image --format '{{index .Id}}' undercloud-
ERRO[0000] Error printing inspect output: Template parsing error: template: image:1:8: executing "image" at <.Id>: can't evaluate field Id in type *entities.
This has the side-effect of restarting all containers at each identical redeploy.
We can just drop the 'index' in the query since it works in both docker and podman:
[root@controller-0 ~]# docker inspect --type image --format '{{.Id}}' f6ec0f326154
sha256:
[root@controller-0 ~]# podman inspect --type image --format '{{.Id}}' 5093412f3a08
Changed in tripleo: | |
importance: | Undecided → High |
status: | New → Triaged |
milestone: | none → wallaby-rc1 |
Changed in tripleo: | |
milestone: | wallaby-rc1 → xena-1 |
Changed in tripleo: | |
status: | Triaged → Fix Released |
Fix proposed to branch: stable/ussuri /review. opendev. org/762563
Review: https:/