[Pulp-list] Can't import containers created with Buildah

Konstantin M. Khankin khankin.konstantin at gmail.com
Sat Oct 20 08:56:43 UTC 2018


Hi!

I tried the tool Buildah (
https://www.projectatomic.io/blog/2017/06/introducing-buildah/) to build
containers without having docker binary. Containers are built (not sure if
they work), but I can't upload them to the pulp repo:

1) I copy container from "container-storage:" to "dir:", then create tar
archive per
https://docs.pulpproject.org/plugins/pulp_docker/user-guide/recipes.html#upload-v2-schema-2-and-schema-1-images-to-pulp
2) pulp-admin -vvv docker repo uploads upload --repo-id docker_centos7 -f
centos7.tar

[2] results in:
  "traceback": "Traceback (most recent call last):\n  File
\"/usr/lib/python2.7/site-packages/celery/app/trace.py\", line 367, in
trace_task\n    R = retval = fun(*args, **kwargs)\n  File
\"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\", line 529,
in __call__\n    return super(Task, self).__call__(*args, **kwargs)\n  File
\"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\", line 107,
in __call__\n    return super(PulpTask, self).__call__(*args, **kwargs)\n
File \"/usr/lib/python2.7/site-packages/celery/app/trace.py\", line 622, in
__protected_call__\n    return self.run(*args, **kwargs)\n  File
\"/usr/lib/python2.7/site-packages/pulp/server/managers/content/upload.py\",
line 223, in import_uploaded_unit\n    unit_type=unit_type_id,
summary=result['summary'], details=result['details']\nPulpCodedException:
The importer docker_importer indicated a failed response when uploading
docker_manifest unit to repository docker_centos7.\n",

  "error": {
    "code": "PLP0047",
    "data": {
      "unit_type": "docker_manifest",
      "importer_id": "docker_importer",
      "repo_id": "docker_centos7",
      "details": {},
      "summary": [
        "Cannot resolve field \"digest\""
      ]
    },
    "description": "The importer docker_importer indicated a failed
response when uploading docker_manifest unit to repository
docker_centos7.",

I tried both v2s2 and v2s1, both don't work. I tried 2 different
Dockerfiles and both produce the same error.

Is it an issue in Buildah or in Pulp? Or am I doing something wrong?

Thanks!

-- 
Konstantin Khankin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pulp-list/attachments/20181020/e9832d34/attachment.htm>


More information about the Pulp-list mailing list