Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compat api containers ImageId missing sha256 #12705

Merged
merged 1 commit into from
Dec 29, 2021
Merged

Compat api containers ImageId missing sha256 #12705

merged 1 commit into from
Dec 29, 2021

Conversation

olitha
Copy link
Contributor

@olitha olitha commented Dec 26, 2021

/kind bug

Description

The Docker API /containers/json return the ImageId with a sha256: prefix. Podman compat API does not. Similar to #11656

Steps to reproduce the issue:

  1. curl -X GET --unix-socket /var/run/docker.sock "v1.40/containers/json returns

      ...
       "ImageID": "sha256:26b77e58432b01665d7e876248c9056fa58bf4a7ab82576a024f5cf3dac146d6",
       ...    
    
  2. podman compat API returns

     ...
     "ImageID": "0b87dc6f7a5f36edbd7cb920b7e2de73566f96c58b88a4a8ae4865e392cb2080",
     ...
    

Describe the results you received:
see above

Describe the results you expected:
podman prefixes ImageId with sha256:

Additional information you deem important (e.g. issue happens only occasionally):

Output of podman version:
Version: 3.4.2
API Version: 3.4.2
Go Version: go1.16.6
Built: Thu Jan 1 01:00:00 1970
OS/Arch: linux/amd64

Output of podman info --debug:

Package info (e.g. output of rpm -q podman or apt list podman):

Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/master/troubleshooting.md)
Tested with main branch

Yes

Additional environment details (AWS, VirtualBox, physical, etc.):

@openshift-ci openshift-ci bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. kind/bug Categorizes issue or PR as related to a bug. labels Dec 26, 2021
@rhatdan
Copy link
Member

rhatdan commented Dec 26, 2021

Can you squash your commits and add a test.

git rebase -i origin
git push --force

@olitha olitha marked this pull request as ready for review December 28, 2021 11:34
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 28, 2021
@rhatdan
Copy link
Member

rhatdan commented Dec 28, 2021

Remove the draft status. This is looking good.
LGTM
@jwhonce @mheon @vrothberg @flouthoc PTAL

Copy link
Collaborator

@flouthoc flouthoc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM apart from blank line nits.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 28, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: flouthoc, olitha

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 28, 2021
test for compat API ImageId

Signed-off-by: Oliver Thallmair <oliver.thallmair@mailbox.org>
@rhatdan
Copy link
Member

rhatdan commented Dec 29, 2021

/lgtm
Thanks @olitha

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Dec 29, 2021
@openshift-merge-robot openshift-merge-robot merged commit 807f7cf into containers:main Dec 29, 2021
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 22, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants