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

Konstantin M. Khankin khankin.konstantin at gmail.com
Wed Oct 24 06:43:09 UTC 2018


Dennis,

Which project I should use? I don't see a separate project for pulp_docker.

Thanks!

вт, 23 окт. 2018 г. в 23:58, Dennis Kliban <dkliban at redhat.com>:

> Konstantin,
>
> Could you please file an issue in pulp.plan.io?
>
> Thanks,
> Dennis
>
> On Sat, Oct 20, 2018 at 5:40 AM Konstantin M. Khankin <
> khankin.konstantin at gmail.com> wrote:
>
>> *Forgot to mention versions:*
>>
>> pulp-admin-client-2.17.1-1.el7.noarch
>> pulp-agent-2.17.1-1.el7.noarch
>> pulp-consumer-client-2.17.1-1.el7.noarch
>> pulp-deb-admin-extensions-1.8.0-1.el7.noarch
>> pulp-deb-plugins-1.8.0-1.el7.noarch
>> pulp-docker-admin-extensions-3.2.1-1.el7.noarch
>> pulp-docker-plugins-3.2.1-1.el7.noarch
>> pulp-puppet-consumer-extensions-2.17.1-1.el7.noarch
>> pulp-puppet-handlers-2.17.1-1.el7.noarch
>> pulp-python-admin-extensions-2.0.3-1.el7.noarch
>> pulp-python-plugins-2.0.3-1.el7.noarch
>> pulp-rpm-admin-extensions-2.17.1-1.el7.noarch
>> pulp-rpm-consumer-extensions-2.17.1-1.el7.noarch
>> pulp-rpm-handlers-2.17.1-1.el7.noarch
>> pulp-rpm-plugins-2.17.1-1.el7.noarch
>> pulp-rpm-yumplugins-2.17.1-1.el7.noarch
>> pulp-selinux-2.17.1-1.el7.noarch
>> pulp-server-2.17.1-1.el7.noarch
>> python-pulp-agent-lib-2.17.1-1.el7.noarch
>> python-pulp-bindings-2.17.1-1.el7.noarch
>> python-pulp-client-lib-2.17.1-1.el7.noarch
>> python-pulp-common-2.17.1-1.el7.noarch
>> python-pulp-deb-common-1.8.0-1.el7.noarch
>> python-pulp-docker-common-3.2.1-1.el7.noarch
>> python-pulp-oid_validation-2.17.1-1.el7.noarch
>> python-pulp-puppet-common-2.17.1-1.el7.noarch
>> python-pulp-python-common-2.0.3-1.el7.noarch
>> python-pulp-repoauth-2.17.1-1.el7.noarch
>> python-pulp-rpm-common-2.17.1-1.el7.noarch
>>
>> buildah-1.2-2.gitbe87762.el7.x86_64
>>
>> *Manifest v2s1 from one of the images created by buildah:*
>> {'architecture': 'amd64',
>>  'fsLayers': [{'blobSum':
>> 'sha256:4d85b6fa2344380743db8ccf4f0404603f56c8289db0824c13bfc309b2009be8'},
>>               {'blobSum':
>> 'sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4'},
>>               {'blobSum':
>> 'sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4'},
>>               {'blobSum':
>> 'sha256:f972d139738dfcd1519fd2461815651336ee25a8b54c358834c50af094bb262f'}],
>>  'history': [{'v1Compatibility':
>> '{"architecture":"amd64","config":{"Env":["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"],"Entrypoint":["/bin/bash"],"WorkingDir":"/","Labels":{"org.label-schema.build-date":"20181006","org.label-schema.license":"GPLv2","
>> org.label-schema.name":"CentOS Base
>> Image","org.label-schema.schema-version":"1.0","org.label-schema.vendor":"CentOS"}},"created":"2018-10-20T07:49:56.084883454Z","id":"4591c91f4c223fa61c800a84bcf711647786f3fe71e589606f17b4d11b9c5807","os":"linux","parent":"f871460fb057cfa08e7268df9b884eecedeed72bc6dbc3262deb19a25e66a904"}'},
>>              {'v1Compatibility':
>> '{"id":"f871460fb057cfa08e7268df9b884eecedeed72bc6dbc3262deb19a25e66a904","parent":"8a4f409d848e6f693d5a4e6c260fbd8ec6a4dc99fc9915e3210bd5ed9c22e700","created":"2018-10-09T18:19:48.447478476Z","container_config":{"Cmd":["/bin/sh
>> -c #(nop)  CMD [\\"/bin/bash\\"]"]},"throwaway":true}'},
>>              {'v1Compatibility':
>> '{"id":"8a4f409d848e6f693d5a4e6c260fbd8ec6a4dc99fc9915e3210bd5ed9c22e700","parent":"961164371d3af72a151063f656820bc835c695fa44af66c2845d0850f01ce0d9","created":"2018-10-09T18:19:48.258784779Z","container_config":{"Cmd":["/bin/sh
>> -c #(nop)  LABEL org.label-schema.schema-version=1.0
>> org.label-schema.name=CentOS Base Image org.label-schema.vendor=CentOS
>> org.label-schema.license=GPLv2
>> org.label-schema.build-date=20181006"]},"throwaway":true}'},
>>              {'v1Compatibility':
>> '{"id":"961164371d3af72a151063f656820bc835c695fa44af66c2845d0850f01ce0d9","created":"2018-10-09T18:19:47.884079751Z","container_config":{"Cmd":["/bin/sh
>> -c #(nop) ADD
>> file:fbe9badfd2790f0747a25fbe5c94a6daa78969511ca08c8d4ac654f3442570de in /
>> "]}}'}],
>>  'name': '',
>>  'schemaVersion': 1,
>>  'signatures': [{'header': {'alg': 'ES256',
>>                             'jwk': {'crv': 'P-256',
>>                                     'kid': '...',
>>                                     'kty': 'EC',
>>                                     'x': '...',
>>                                     'y': '...'}},
>>                  'protected': '...',
>>                  'signature': '...'}],
>>  'tag': ''}
>>
>> *Manifest v2s2 for the same image:*
>> {'config': {'digest':
>> 'sha256:c17d63d23edcbe46b14fbe531e2e9b4411483947669087e90bdba3372eb2684d',
>>             'mediaType': 'application/vnd.docker.container.image.v1+json',
>>             'size': 1217},
>>  'layers': [{'digest':
>> 'sha256:f972d139738dfcd1519fd2461815651336ee25a8b54c358834c50af094bb262f',
>>              'mediaType':
>> 'application/vnd.docker.image.rootfs.diff.tar.gzip',
>>              'size': 208811520},
>>             {'digest':
>> 'sha256:4d85b6fa2344380743db8ccf4f0404603f56c8289db0824c13bfc309b2009be8',
>>              'mediaType':
>> 'application/vnd.docker.image.rootfs.diff.tar.gzip',
>>              'size': 589285888}],
>>  'mediaType': 'application/vnd.docker.distribution.manifest.v2+json',
>>  'schemaVersion': 2}
>>
>> сб, 20 окт. 2018 г. в 11:56, Konstantin M. Khankin <
>> khankin.konstantin at gmail.com>:
>>
>>> 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
>>>
>>
>>
>> --
>> Ханкин Константин
>> _______________________________________________
>> Pulp-list mailing list
>> Pulp-list at redhat.com
>> https://www.redhat.com/mailman/listinfo/pulp-list
>
>

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


More information about the Pulp-list mailing list