harbor: Tag pull time not being set

Expected behavior and actual behavior:

When pulling an image from the registry like e.g. docker pull your-reg.io/dw/testimage:foo the pull time of the tag foo is never being set, instead only the pull time of the artifacts is being set. The project log also shows a pull only on the digest: dw/testimage:sha256:74e5ad84a67e9b8ed7609b32dc2460b76175020923d7f494a73a851446222d18.

Instead I would expect both the artifact pull time AND the tag pull time to be set. Currently none of tags in our registry every show a pull time for any tag.

Could this be a setup problem? I don’t see any option that would suggest enabling/disabling this behavior.

Steps to reproduce the problem:

For me it is the following steps:

  • push any image to any project and tag it (or use an existing one)
  • pull it via a tag and check if the pull time of the tag is being set

Versions:

  • harbor version: 2.4.1
  • docker engine version: 20.10.12
  • docker-compose version: 2.2.2

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 16 (3 by maintainers)

Most upvoted comments

Any updates on this?

I just tried with an image that I never pulled from that registry:

docker pull harbor-url-prefix/dw/redis:build-nr-20220111.1
build-nr-20220111.1: Pulling from dw/redis
a2abf6c4d29d: Pull complete 
c7a4e4382001: Pull complete 
4044b9ba67c9: Pull complete 
c8388a79482f: Pull complete 
413c8bb60be2: Pull complete 
1abfd3011519: Pull complete 
5b3aa525800d: Pull complete 
a2d802d18593: Pull complete 
5658245142cf: Pull complete 
2b57b672d325: Pull complete 
7ea5e64e7d80: Pull complete 
b7b0d25c2d99: Pull complete 
0138ca56c254: Pull complete 
31764a755c5a: Pull complete 
0ee268ff3c56: Pull complete 
7bea4a3dd341: Pull complete 
23e2c7efabed: Pull complete 
52bd92ee93a1: Pull complete 
73b0aa53f60d: Pull complete 
ed34bd4a4e3e: Pull complete 
a78ccaa1710c: Pull complete 
e15b95fa1e08: Pull complete 
Digest: sha256:288aae6d8de600250a39721ac3169b478626527ba4e5f9c24e8c1fce0b10fd78
Status: Downloaded newer image for harbor-url-prefix/dw/redis:build-nr-20220111.1
harbor-url-prefix/dw/redis:build-nr-20220111.1

The pull time is still empty:

image

The log also shows an update of the pull time on the digest instead of the tag:

image

The API response for the corresponsing tag:

{
    "artifact_id": 1125,
    "id": 1260,
    "immutable": false,
    "name": "build-nr-20220111.1",
    "pull_time": "0001-01-01T00:00:00.000Z",
    "push_time": "2022-01-11T06:20:03.217Z",
    "repository_id": 51,
    "signed": false
  }