Issue #3208
closedClarify docs to import an uploaded v1 docker image to repository.
Description
The problem appears while POSTing to import the upload to the repository.
POST command:
curl -kvvv -X POST --user admin:admin -d '{"unit_type_id":"docker_image","upload_id":"0bdb1309-f056-417d-a3e4-7b962108cdf9","unit_key": {}}' https://httpd-pulp.127.0.0.1.nip.io/pulp/api/v2/repositories/test-v1/actions/import_upload/
Operations: import_upload
Resources: test-v1 (repository)
State: Failed
Start Time: 2017-12-15T16:14:34Z
Finish Time: 2017-12-15T16:14:35Z
Result: N/A
Task Id: 86d99743-0947-4876-9509-9a2bd183762f
Progress Report:
Traceback: Traceback (most recent call last): File
"/usr/lib/python2.7/site-packages/celery/app/trace.py", line
367, in trace_task R = retval = fun(*args, **kwargs)
File
"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py",
line 529, in __call__ return super(Task,
self).__call__(*args, **kwargs) File
"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py",
line 107, in __call__ return super(PulpTask,
self).__call__(*args, **kwargs) File
"/usr/lib/python2.7/site-packages/celery/app/trace.py", line
622, in __protected_call__ return self.run(*args,
**kwargs) File
"/usr/lib/python2.7/site-packages/pulp/server/managers/content
/upload.py", line 223, in import_uploaded_unit
unit_type=unit_type_id, summary=result['summary'],
details=result['details'] PulpCodedException: The importer
docker_importer indicated a failed response when uploading
docker_image unit to repository test-v1.
Updated by nmoraiti@redhat.com almost 7 years ago
This issue can be closed.
Some tips for better documentation while uploading the file.
Example:
Create upload request:
curl -kvvv -X POST --user admin:admin https://httpd-pulp.127.0.0.1.nip.io/pulp/api/v2/content/uploads/
Upload the file:
curl -kvvv -X PUT --user admin:admin https://httpd-pulp.127.0.0.1.nip.io/pulp/api/v2/content/uploads/ce241412-83d2-4051-a971-763d6dc2e207/0/ --data-binary '@rhel-server-docker-7.2-84.x86_64.tar.gz'
Import file into the repository:
curl -kvvv -X POST --user admin:admin https://httpd-pulp.127.0.0.1.nip.io/pulp/api/v2/repositories/test-v1/actions/import_upload/ -d '{"override_config": {"mask_id": null}, "unit_type_id": "docker_image", "upload_id": "ce241412-83d2-4051-a971-763d6dc2e207", "unit_key": {}, "unit_metadata": {}}' -H "Content-Type: application/json"
Updated by nmoraiti@redhat.com almost 7 years ago
To increase the chunk size that can be uploaded in one PUT request you should change the following:
increase SSLRenegBufferSize in /etc/httpd/conf.d/pulp.conf
Add
DATA_UPLOAD_MAX_MEMORY_SIZE = None
to settings.py located in /usr/lib/python2.7/site-packages/pulp/server/webservices/
Services should be restarted to apply the changes.
Updated by amacdona@redhat.com almost 7 years ago
- Subject changed from Upload v1 docker image to repository. to Clarify docs to import an uploaded v1 docker image to repository.
- Tags Documentation added
I
Updated by ttereshc almost 7 years ago
- Status changed from NEW to POST
- Assignee set to nmoraiti@redhat.com
Updated by amacdona@redhat.com almost 7 years ago
- Triaged changed from No to Yes
Added by nmoraiti@redhat.com almost 7 years ago
Updated by nmoraiti@redhat.com almost 7 years ago
- Status changed from POST to MODIFIED
Applied in changeset pulp|25308e75667f48ae66798ef8242133968f5e0012.
Added by nmoraiti@redhat.com almost 7 years ago
Revision c4003aaf | View on GitHub
Update upload documentation for large files.
closes #3208 https://pulp.plan.io/issues/3208
(cherry picked from commit 25308e75667f48ae66798ef8242133968f5e0012)
Updated by nmoraiti@redhat.com almost 7 years ago
Applied in changeset pulp|c4003aaf4addd7024390367c1db36857051c4deb.
Updated by pcreech almost 7 years ago
- Status changed from 5 to CLOSED - CURRENTRELEASE
Updated by smithdaisy443 over 5 years ago
- File clipboard-201908091819-zy1bo.png added
Updated by bmbouter almost 5 years ago
- File deleted (
screenshot_5_1552381398.png)
Updated by bmbouter almost 5 years ago
- File deleted (
clipboard-201908091819-zy1bo.png)
Update upload documentation for large files.
closes #3208 https://pulp.plan.io/issues/3208