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

podman can not recognize the image prepared by copyimg in RHEL7 #254

Closed
ypu opened this issue Jan 23, 2018 · 5 comments
Closed

podman can not recognize the image prepared by copyimg in RHEL7 #254

ypu opened this issue Jan 23, 2018 · 5 comments
Labels
locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Comments

@ypu
Copy link
Contributor

ypu commented Jan 23, 2018

Currently we use copyimg to prepare image for podman related tests. But seems this is not working in RHEL7 host.

There are two typical error messages caused by this problem:

  1. image not found. Example(podman_inspect.bats):
✗ podman inspect image
(in test file test/podman_inspect.bats, line 16)
`[ "$status" -eq 0 ]' failed
error getting image "docker.io/library/alpine:latest": unable to locate image "docker.io/library/alpine:latest": image not known
No JSON object could be decoded
  1. extra output in podman run command output which caused the ctr_id include more info than only the container id. Example(podman_import.bats):
not ok 1 podman import with source and reference
# (in test file test/podman_import.bats, line 21)
#   `[ "$status" -eq 0 ]' failed
# Trying to pull docker.io/library/alpine:latest...
# Getting image source signatures
# Copying blob sha256:ff3a5c916c92643ff77519ffa742d3ec61b7f591b6b7504599d95a4a41134e28
 1.97 MB / 1.97 MB [========================================================] 0s
# Copying config sha256:3fd9065eaf02feaf94d68376da52541925650b81698c53c6824d92ff63f98353
 1.48 KB / 1.48 KB [========================================================] 0s
# Writing manifest to image destination
# Storing signatures
# cb3359dfe108c3570f41dc2b099b7337040150a4189fe4bf7092e528f74b6f43
# too many arguments given, need 1 at most.
# bash: line 1: Getting: command not found
# bash: line 2: Copying: command not found
# bash: line 3: $'\r': command not found
# bash: line 4: Copying: command not found
# bash: line 5: $'\r': command not found
# bash: line 6: Writing: command not found
# bash: line 7: Storing: command not found
# bash: line 8: cb3359dfe108c3570f41dc2b099b7337040150a4189fe4bf7092e528f74b6f43: command not found
# cb3359dfe108c3570f41dc2b099b7337040150a4189fe4bf7092e528f74b6f43

The same test cases are working well in Fedora.

@rhatdan
Copy link
Member

rhatdan commented Jan 24, 2018

Since this patch was merged can we close this issue?

@ypu
Copy link
Contributor Author

ypu commented Jan 24, 2018

Hi @rhatdan this is the separated issue for copyimg as we talked. It is not fixed by the pullreq.

@baude
Copy link
Member

baude commented Jan 30, 2018

@ypu I have begun to move away from the copyimg binary itself and now use function calls into the same code. This is being implemented as we migrate to the ginkgo test suite. If I get some time, I'll make sure it works on RHEL.

@baude
Copy link
Member

baude commented Jan 30, 2018

confirmed this works on RHEL.

@rhatdan
Copy link
Member

rhatdan commented Jan 30, 2018

Ok I am going to close this issue.

@rhatdan rhatdan closed this as completed Jan 30, 2018
baude pushed a commit to baude/podman that referenced this issue Aug 31, 2019
Added CONTRIBUTORS.md for Windows and CNI plugins OWNERS.md
@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 24, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

No branches or pull requests

3 participants