Project

Profile

Help

Issue #3208

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

Added by nmoraiti@redhat.com about 2 years ago. Updated 1 day ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Severity:
2. Medium
Version:
Platform Release:
2.15.1
Blocks Release:
OS:
Backwards Incompatible:
No
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Documentation, Pulp 2
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:

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.

Associated revisions

Revision 25308e75 View on GitHub
Added by nmoraiti@redhat.com about 2 years ago

Update upload documentation for large files.

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

Revision c4003aaf View on GitHub
Added by nmoraiti@redhat.com about 2 years ago

Update upload documentation for large files.

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

(cherry picked from commit 25308e75667f48ae66798ef8242133968f5e0012)

History

#1 Updated by ttereshc about 2 years ago

  • Description updated (diff)

#2 Updated by pthomas@redhat.com about 2 years ago

  • Smash Test set to 828

#3 Updated by nmoraiti@redhat.com about 2 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"

#4 Updated by nmoraiti@redhat.com about 2 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.

#5 Updated by amacdona@redhat.com about 2 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

#7 Updated by ttereshc about 2 years ago

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

#8 Updated by amacdona@redhat.com about 2 years ago

  • Triaged changed from No to Yes

#9 Updated by nmoraiti@redhat.com about 2 years ago

  • Status changed from POST to MODIFIED

#10 Updated by pcreech about 2 years ago

  • Platform Release set to 2.15.1

#12 Updated by pcreech about 2 years ago

  • Status changed from MODIFIED to ON_QA

#13 Updated by pcreech about 2 years ago

  • Status changed from ON_QA to CLOSED - CURRENTRELEASE

#14 Updated by ammie 12 months ago

  • File screenshot_5_1552381398.png added

#15 Updated by bmbouter 11 months ago

  • Tags Pulp 2 added

#16 Updated by alpha201 8 months ago

  • File alpha r.PNG added

#17 Updated by smithdaisy443 7 months ago

  • File clipboard-201908091819-zy1bo.png added

#18 Updated by Assignmenthelp 5 months ago

  • File 300-300.jpg added

#19 Updated by bmbouter 3 months ago

  • File deleted (screenshot_5_1552381398.png)

#20 Updated by bmbouter 3 months ago

  • File deleted (alpha r.PNG)

#21 Updated by bmbouter 3 months ago

  • File deleted (clipboard-201908091819-zy1bo.png)

#22 Updated by bmbouter 3 months ago

  • File deleted (300-300.jpg)

#23 Updated by meldaresearch 2 months ago

  • File 13a.jpg added

#24 Updated by ttereshc 15 days ago

  • File deleted (13a.jpg)

#25 Updated by Mike20 11 days ago

I 'm an A student because of your assistance! Thank you for saving me during difficult times and helping me maintain my present GPA standing. More gradesfixer reviews here.

#26 Updated by MadisonCarr 11 days ago

Like science fiction, diverse worlds of the future?.. like gloomy cyberpunk, neo-modern utopia, then take a look at this blog - SCI-fi arts. There you will find many new beautiful science fiction artworks from the most famous authors.

#27 Updated by John 7 days ago

Like science fiction, diverse worlds of the future?.. like gloomy cyberpunk, neo-modern utopia, then take a look at this blog - SCI-fi arts. There you will find many new beautiful science fiction artworks from the most famous authors. https://scifiarts.tumblr.com

Please register to edit this issue

Also available in: Atom PDF