[Pulp-list] How can I convert importer type from nodes_http_importer to yum_importer?

Mcnabb, Dustin dustin.mcnabb at verizon.com
Thu Dec 29 20:44:49 UTC 2016


I have a child node pulp server that I am trying to convert into a fully fledged pulp server without any dependencies on the parent. I am getting an invalid unit type when trying to upload RPMs to some custom repos. I want to be able to convert the importer type to yum_importer so I can run commands like the one below without getting the "Invalid unit type" error during import.

[root at host:/data]# pulp-admin rpm repo uploads rpm --repo-id=redhat-6-x86_64-salt --file=some-package-4.0-4.el6.x86_64.rpm
+----------------------------------------------------------------------+
                              Unit Upload
+----------------------------------------------------------------------+

Extracting necessary metadata for each request...
[==================================================] 100%
Analyzing: some-package-4.0-4.el6.x86_64.rpm
... completed

Creating upload requests on the server...
[==================================================] 100%
Initializing: some-package-4.0-4.el6.x86_64.rpm
... completed

Starting upload of selected units. If this process is stopped through ctrl+c,
the uploads will be paused and may be resumed later using the resume command or
canceled entirely using the cancel command.

Uploading: some-package-4.0-4.el6.x86_64.rpm
[==================================================] 100%
16547248/16547248 bytes
... completed

Importing into the repository...
This command may be exited via ctrl+c without affecting the request.


[\]
Running...

Task Failed

Invalid unit type for repository

Deleting the upload request...
... completed

[root at host:/data]# tail /var/log/daemon.log
Dec 29 20:39:00 host pulp: celery.worker.job:ERROR: (2168-38400)   File "/usr/lib/python2.6/site-packages/pulp/server/async/tasks.py", line 103, in __call__
Dec 29 20:39:00 host pulp: celery.worker.job:ERROR: (2168-38400)     return super(PulpTask, self).__call__(*args, **kwargs)
Dec 29 20:39:00 host pulp: celery.worker.job:ERROR: (2168-38400)   File "/usr/lib/python2.6/site-packages/celery/app/trace.py", line 437, in __protected_call__
Dec 29 20:39:00 host pulp: celery.worker.job:ERROR: (2168-38400)     return self.run(*args, **kwargs)
Dec 29 20:39:00 host pulp: celery.worker.job:ERROR: (2168-38400)   File "/usr/lib/python2.6/site-packages/pulp/server/managers/content/upload.py", line 196, in import_uploaded_unit
Dec 29 20:39:00 host pulp: celery.worker.job:ERROR: (2168-38400)     ContentUploadManager.is_valid_upload(repo_id, unit_type_id)
Dec 29 20:39:00 host pulp: celery.worker.job:ERROR: (2168-38400)   File "/usr/lib/python2.6/site-packages/pulp/server/managers/content/upload.py", line 156, in is_valid_upload
Dec 29 20:39:00 host pulp: celery.worker.job:ERROR: (2168-38400)     raise PulpDataException('Invalid unit type for repository')
Dec 29 20:39:00 host pulp: celery.worker.job:ERROR: (2168-38400) PulpDataException: Invalid unit type for repository

Thanks

Dustin McNabb
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pulp-list/attachments/20161229/ddd4071e/attachment.htm>


More information about the Pulp-list mailing list