Fail delete docker registry tag when it used for buildkit cache
Summary
Can't delete docker registry tag in WEB UI. When tag created by Buildkit cachе mechanism.
Steps to reproduce
Run buildkit with options
--export-cache type=registry,ref=gitlab registry
--import-cache type=registry,ref=gitlab registry
What is the current bug behavior?
Can't delete tag from web ui.
Doesn't show correct time and size.
What is the expected correct behavior?
Delete tag.
Relevant logs and/or screenshots
| 2019-08-12_12:30:31.37795 time="2019-08-12T12:30:31.377845662Z" level=error msg="response completed with error" auth.user.name= err.code="manifest unknown" err.message="manifest unknown" go.version=go1.11.10 http.request.host="localhost:5000" http.request.id=8a2a26ec-2608-4046-ad8e-858053781756 http.request.method=HEAD http.request.remoteaddr="127.0.0.1:48458" http.request.uri="/v2/rv_dev/platform-exchanger/pexch/manifests/buildcache" http.request.useragent="Faraday v0.12.2" http.response.contenttype="application/json; charset=utf-8" http.response.duration=3.350226ms http.response.status=404 http.response.written=70 vars.name="rv_dev/platform-exchanger/pexch" vars.reference=buildcache
Output of checks
Results of GitLab environment info
Expand for output related to GitLab environment info
System information System: Current User: git Using RVM: no Ruby Version: 2.6.3p62 Gem Version: 2.7.9 Bundler Version:1.17.3 Rake Version: 12.3.2 Redis Version: 3.2.12 Git Version: 2.21.0 Sidekiq Version:5.2.7 Go Version: unknownGitLab information Version: 12.1.4 Revision: 34d086f3e14 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: PostgreSQL DB Version: 10.7 URL: https://git HTTP Clone URL: https://git/some-group/some-project.git SSH Clone URL: git@git:some-group/some-project.git Using LDAP: yes Using Omniauth: yes Omniauth Providers:
GitLab Shell Version: 9.3.0 Repository storage paths: - default: /var/opt/gitlab/git-data/repositories GitLab Shell path: /opt/gitlab/embedded/service/gitlab-shell Git: /opt/gitlab/embedded/bin/git
Results of GitLab application Check
Expand for output related to the GitLab application check
Checking GitLab subtasks ...Checking GitLab Shell ...
GitLab Shell: ... GitLab Shell version >= 9.3.0 ? ... OK (9.3.0) Running /opt/gitlab/embedded/service/gitlab-shell/bin/check Check GitLab API access: OK Redis available via internal API: OK
Access to /var/opt/gitlab/.ssh/authorized_keys: OK gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Gitaly ...
Gitaly: ... default ... OK
Checking Gitaly ... Finished
Checking Sidekiq ...
Sidekiq: ... Running? ... yes Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Checking Incoming Email ...
Incoming Email: ... Reply by email is disabled in config/gitlab.yml
Checking Incoming Email ... Finished
Checking LDAP ...
LDAP: ... Server: ldapmain LDAP authentication... Success LDAP users with access to your GitLab server (only showing the first 100 results) User output sanitized. Found 100 users of 100 limit.
Checking LDAP ... Finished
Checking GitLab App ...
Git configured correctly? ... yes Database config exists? ... yes All migrations up? ... yes Database contains orphaned GroupMembers? ... no GitLab config exists? ... yes GitLab config up to date? ... yes Log directory writable? ... yes Tmp directory writable? ... yes Uploads directory exists? ... yes Uploads directory has correct permissions? ... yes Uploads directory tmp has correct permissions? ... yes Init script exists? ... skipped (omnibus-gitlab has no init script) Init script up-to-date? ... skipped (omnibus-gitlab has no init script) Projects have namespace: ... 3/1 ... yes 9/4 ... yes 6/5 ... yes 9/6 ... yes 3/7 ... yes 6/8 ... yes 3/9 ... yes 6/10 ... yes 3/11 ... yes 3/12 ... yes 14/13 ... yes 14/15 ... yes 14/16 ... yes 14/17 ... yes 14/18 ... yes 14/19 ... yes 14/20 ... yes 14/21 ... yes 14/22 ... yes 14/23 ... yes 14/24 ... yes 14/25 ... yes 14/26 ... yes 14/27 ... yes 9/28 ... yes 14/29 ... yes 14/32 ... yes 14/33 ... yes 14/34 ... yes 25/35 ... yes 25/37 ... yes 3/38 ... yes 3/40 ... yes 14/42 ... yes 14/43 ... yes 9/46 ... yes 38/53 ... yes 14/54 ... yes 14/55 ... yes 14/56 ... yes 14/58 ... yes 47/59 ... yes 14/60 ... yes 47/61 ... yes 47/62 ... yes 47/63 ... yes 47/64 ... yes 47/65 ... yes 47/66 ... yes 47/67 ... yes 47/68 ... yes 47/69 ... yes 47/70 ... yes 47/71 ... yes 47/72 ... yes 14/73 ... yes 14/75 ... yes 14/79 ... yes 3/80 ... yes 60/81 ... yes 14/82 ... yes 14/83 ... yes 14/84 ... yes 14/85 ... yes 61/86 ... yes 61/87 ... yes 3/88 ... yes 14/89 ... yes 14/91 ... yes 61/92 ... yes 61/93 ... yes 14/95 ... yes 3/96 ... yes 3/97 ... yes 67/98 ... yes 3/99 ... yes 3/100 ... yes 3/101 ... yes 29/102 ... yes 3/103 ... yes 14/104 ... yes 6/106 ... yes 14/107 ... yes 14/108 ... yes Redis version >= 2.8.0? ... yes Ruby version >= 2.5.3 ? ... yes (2.6.3) Git version >= 2.21.0 ? ... yes (2.21.0) Git user has default SSH configuration? ... yes Active users: ... 29
Checking GitLab App ... Finished
Checking GitLab subtasks ... Finished