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

manifest: unable to create from oci path #2858

Closed
terinjokes opened this issue Dec 17, 2020 · 4 comments
Closed

manifest: unable to create from oci path #2858

terinjokes opened this issue Dec 17, 2020 · 4 comments

Comments

@terinjokes
Copy link

Description

I'm unable to create a manifest list from an OCI path created by buildah.

Steps to reproduce the issue:

$ buildah manifest create --all my-list docker-archive:./save1.tar.gz docker-archive:./save2.tar.gz
47eca6eb64ff422a846eafc11f4370a450f896674cc75c5b3209311969728839

$ buildah manifest inspect my-list
{
    "schemaVersion": 2,
    "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json",
    "manifests": [
        {
            "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
            "size": 1573,
            "digest": "sha256:da4598a9bf14f0352c4c56518d40e02be88ea0304afd4b4fe67175e842a2ee99",
            "platform": {
                "architecture": "amd64",
                "os": "linux"
            }
        },
        {
            "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
            "size": 1081,
            "digest": "sha256:2cd11cdae3be614099e7f412cc55d9df5af14163fe592ed4285ce4687871deb0",
            "platform": {
                "architecture": "arm64",
                "os": "linux"
            }
        }
    ]
}

$ buildah manifest push --all --format v2s2 --purge my-list oci:list

$ buildah manifest create --all oci:list
error encountered while expanding image name "oci:list": error parsing name "list:": invalid reference format

Describe the results you received:

Got an error message unable to import the list exported. I can see index.json points at a "application/vnd.docker.distribution.manifest.list.v2+json" like expected.

Describe the results you expected:

Buildah should be able to import manifests it creates, so I expected it to print an image hash.

Output of buildah version:

Version:         1.18.0
Go Version:      go1.15.6
Image Spec:      1.0.1-dev
Runtime Spec:    1.0.2-dev
CNI Spec:        0.4.0
libcni Version:  v0.7.2-0.20190904153231-83439463f784
image Version:   5.8.0
Git Commit:      unknown
Built:           Mon Dec 31 16:00:00 1979
OS/Arch:         linux/amd64

Output of cat /etc/*release:

PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

Output of uname -a:

Linux penguin 5.4.58-07649-ge120df5deade #1 SMP PREEMPT Wed Aug 26 04:56:33 PDT 2020 x86_64 GNU/Linux
@terinjokes
Copy link
Author

If you push while giving it a tag, it does re-import correctly.

$ buildah manifest push --all -f v2s2 --purge my-list oci:oci:latest

$ buildah manifest create --all my-list2 oci:oci
8fe16205d301946fcaa8691bdbe4fe5ea0ad52404e31d939603ae3cce3ccba29

If the tag is required, it should probably be enforced on exporting.

@rhatdan
Copy link
Member

rhatdan commented Feb 10, 2021

Since I have been playing with manifest I guess I will take this one.

@github-actions
Copy link

A friendly reminder that this issue had no activity for 30 days.

@rhatdan
Copy link
Member

rhatdan commented May 25, 2021

Could you check this against the current master branch, I believe it works now, reopen if I am mistaken.

@rhatdan rhatdan closed this as completed May 25, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants