Project

Profile

Help

Issue #3208

closed

Clarify docs to import an uploaded v1 docker image to repository.

Added by nmoraiti@redhat.com almost 7 years ago. Updated over 3 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
2.15.1
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Documentation, Pulp 2
Sprint:
Quarter:

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.
Actions #1

Updated by ttereshc almost 7 years ago

  • Description updated (diff)
Actions #3

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"

Actions #4

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.

Actions #5

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

Actions #7

Updated by ttereshc almost 7 years ago

  • Status changed from NEW to POST
  • Assignee set to nmoraiti@redhat.com
Actions #8

Updated by amacdona@redhat.com almost 7 years ago

  • Triaged changed from No to Yes

Added by nmoraiti@redhat.com almost 7 years ago

Revision 25308e75 | View on GitHub

Update upload documentation for large files.

closes #3208 https://pulp.plan.io/issues/3208

Actions #9

Updated by nmoraiti@redhat.com almost 7 years ago

  • Status changed from POST to MODIFIED
Actions #10

Updated by pcreech almost 7 years ago

  • Platform Release set to 2.15.1

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)

Actions #12

Updated by pcreech almost 7 years ago

  • Status changed from MODIFIED to 5
Actions #13

Updated by pcreech almost 7 years ago

  • Status changed from 5 to CLOSED - CURRENTRELEASE
Actions #14

Updated by ammie over 5 years ago

  • File screenshot_5_1552381398.png added
Actions #15

Updated by bmbouter over 5 years ago

  • Tags Pulp 2 added
Actions #16

Updated by alpha201 over 5 years ago

  • File alpha r.PNG added
Actions #17

Updated by smithdaisy443 over 5 years ago

  • File clipboard-201908091819-zy1bo.png added
Actions #18

Updated by Assignmenthelp about 5 years ago

  • File 300-300.jpg added
Actions #19

Updated by bmbouter almost 5 years ago

  • File deleted (screenshot_5_1552381398.png)
Actions #20

Updated by bmbouter almost 5 years ago

  • File deleted (alpha r.PNG)
Actions #21

Updated by bmbouter almost 5 years ago

  • File deleted (clipboard-201908091819-zy1bo.png)
Actions #22

Updated by bmbouter almost 5 years ago

  • File deleted (300-300.jpg)
Actions #23

Updated by meldaresearch almost 5 years ago

  • File 13a.jpg added
Actions #24

Updated by ttereshc almost 5 years ago

  • File deleted (13a.jpg)

Also available in: Atom PDF