Project

Profile

Help

Issue #2847

closed

Skip download of blobs with foreign mediatype.

Added by ipanova@redhat.com almost 7 years ago. Updated about 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
High
Start date:
Due date:
Estimated time:
Severity:
3. High
Version - Docker:
Platform Release:
2.14.2
Target Release - Docker:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Sprint 23
Quarter:

Description

Some layers might have "mediaType": "application/vnd.docker.image.rootfs.foreign.diff.tar.gzip" which are not present on the registry.

In this case client will not go to the registry to fetch the layer( because it is not there) but will follow the url which is specified among other details of layer.

Pulp should not try to fetch it from registry during sync , but simply skip, it also does not want to follow the url and download the layer because it might violate the license.
Pulp would also not create any record in DB for that layer.

$ ./docker-token portainer/portainer@windows-amd64-1.13.0
{
  "schemaVersion": 2,
  "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
  "layers": [
    {
      "mediaType": "application/vnd.docker.image.rootfs.foreign.diff.tar.gzip",
      "digest": "sha256:bce2fbc256ea437a87dadac2f69aabd25bed4f56255549090056c1131fad0277",
      "size": 252691002,
      "urls": [
        "https://go.microsoft.com/fwlink/?linkid=837858"
      ]
    },
    {
      "mediaType": "application/vnd.docker.image.rootfs.foreign.diff.tar.gzip",
      "digest": "sha256:4a8c367fd46d2e2da2a8b0fa02158540e13b3a9015daf9f17d1af354a591492f",
      "size": 121971948,
      "urls": [
        "https://go.microsoft.com/fwlink/?linkid=848906"
      ]
    },
    {
      "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
      "digest": "sha256:feedefe2c110863b761bb71ba7199fefe1058afecbe68752d051c2ca0899e266",
      "size": 3684048
    },
    {
      "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
      "digest": "sha256:bb652e12abcfb1b0681c29dcff44a842f54869d6a5d6c57de1523b275af77c17",
      "size": 952
    },
    {
      "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
      "digest": "sha256:4addfdf3b551b41da10b28fb9e0e0702d568e68ce2330183220384358f0f7d9c",
      "size": 947
    },
    {
      "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
      "digest": "sha256:ad5cdcb7aa1e047a4ac348b74b5652c8a16fcb3dd013c288f8e65a095995c1d4",
      "size": 948
    },
    {
      "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
      "digest": "sha256:6bd5a5818cacdc9744192da603a8765e793ac1b5dcb1bf1efacbe81df875ea06",
      "size": 943
    }
  ],
  "config": {
    "mediaType": "application/vnd.docker.container.image.v1+json",
    "digest": "sha256:7cc9ff24526dfffdb8c188e6bae7e11d75d1ac5731d85e6fdccd5c7382d84207",
    "size": 2369
  }
}
Actions #2

Updated by mhrivnak almost 7 years ago

  • Sprint/Milestone set to 41
Actions #3

Updated by ttereshc almost 7 years ago

  • Priority changed from Normal to High
  • Severity changed from 2. Medium to 3. High
  • Triaged changed from No to Yes
Actions #4

Updated by ipanova@redhat.com almost 7 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to ipanova@redhat.com
Actions #5

Updated by ipanova@redhat.com almost 7 years ago

  • Status changed from ASSIGNED to POST
Actions #6

Updated by mhrivnak almost 7 years ago

  • Sprint/Milestone changed from 41 to 42

Added by ipanova@redhat.com over 6 years ago

Revision 7a6a3807 | View on GitHub

Skip download of blobs with foreign mediatype.

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

Added by ipanova@redhat.com over 6 years ago

Revision 7a6a3807 | View on GitHub

Skip download of blobs with foreign mediatype.

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

Added by ipanova@redhat.com over 6 years ago

Revision 7a6a3807 | View on GitHub

Skip download of blobs with foreign mediatype.

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

Added by ipanova@redhat.com over 6 years ago

Revision 7a6a3807 | View on GitHub

Skip download of blobs with foreign mediatype.

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

Actions #7

Updated by ipanova@redhat.com over 6 years ago

  • Status changed from POST to MODIFIED

Added by ipanova@redhat.com over 6 years ago

Revision d8bd6f98 | View on GitHub

Skip download of blobs with foreign mediatype.

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

(cherry picked from commit 7a6a3807a9a83ac3421b5ffe28d64909855ec6e3)

Added by ipanova@redhat.com over 6 years ago

Revision d8bd6f98 | View on GitHub

Skip download of blobs with foreign mediatype.

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

(cherry picked from commit 7a6a3807a9a83ac3421b5ffe28d64909855ec6e3)

Added by ipanova@redhat.com over 6 years ago

Revision d8bd6f98 | View on GitHub

Skip download of blobs with foreign mediatype.

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

(cherry picked from commit 7a6a3807a9a83ac3421b5ffe28d64909855ec6e3)

Added by ipanova@redhat.com over 6 years ago

Revision d8bd6f98 | View on GitHub

Skip download of blobs with foreign mediatype.

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

(cherry picked from commit 7a6a3807a9a83ac3421b5ffe28d64909855ec6e3)

Actions #8

Updated by pcreech over 6 years ago

  • Platform Release set to 2.14.2
Actions #10

Updated by pcreech over 6 years ago

  • Status changed from MODIFIED to 5
Actions #12

Updated by pcreech over 6 years ago

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

Updated by bmbouter about 6 years ago

  • Sprint set to Sprint 23
Actions #14

Updated by bmbouter about 6 years ago

  • Sprint/Milestone deleted (42)
Actions #15

Updated by bmbouter about 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF