Harbor: Unable to delete images with Openstack Swift as the storage backend

Created on 24 Jul 2017  路  2Comments  路  Source: goharbor/harbor

docker-engine: 17.06.0~ce-0~ubuntu
relevant log files: https://gist.github.com/analbeard/fca3ddfb36d3e8ba0f71dce1cd13acdf

We are running Harbor with an on-premise Openstack Swift cluster providing the storage - push/pull works fine but we are unable to delete images. The swift user has full read/write permissions on the container and I can manually delete test files. Please see above for the log files for the transaction.

Storage configuration:

storage:
  swift:
    username: registry
    password: **
    authurl: https://auth.storage.domain.com/v2.0
    tenant: **
    region: ** 
    container: dockerimages
    delete:
        enabled: true
kinbug prioritmedium

Most helpful comment

According to the docs of docker distribution, swift has no property called "delete". You should set "delete" on the same level with "swift".

storage: swift: username: registry password: ** authurl: https://auth.storage.domain.com/v2.0 tenant: ** region: ** container: dockerimages delete: enabled: true

All 2 comments

According to the docs of docker distribution, swift has no property called "delete". You should set "delete" on the same level with "swift".

storage: swift: username: registry password: ** authurl: https://auth.storage.domain.com/v2.0 tenant: ** region: ** container: dockerimages delete: enabled: true

Wonderful, that's fixed it. Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

steveal picture steveal  路  3Comments

xiaosadexiaohai picture xiaosadexiaohai  路  3Comments

cten picture cten  路  3Comments

reasonerjt picture reasonerjt  路  3Comments

cedvan picture cedvan  路  3Comments