devopshq / devopshq/artifactory-cleanup

Removal of 'release-bundles' don't work

Open
#155 0 comments 0 reactions 0 assignees View on GitHub
enhancement good first issue
Dominant language
Python
Stars
160
Forks
87
PR merge metrics
No merged PRs in 30d

Description

Hello,

It seems that we cannot use your tool to remove release bundles, as when I tried with this configuration :
```
- name: Repository release-bundles-v2
rules:
- rule: Repo
name: release-bundles-v2
- rule: DeleteOlderThan
days: 90
```

I got error like this in the artifactory logs and nothing is removed :
```
2024-12-10T16:39:01.344Z [jfrt ] [INFO ] [58574caf0dd8217bf9bb5805104ccb3a] [o.a.s.d.f.m.DbMutableFile:246 ] [jsse-nio-8443-exec-4] - Deletion of release-bundles-v2:app/1.150.0-12260253455/artifacts/docker/app/latest/sha256__94f42c54df3ff13333050b83b696d6d81c360bc33d0e5bbe2360443aeee97e6e was canceled by plugin
2024-12-10T16:39:01.344Z [jfrt ] [ERROR] [58574caf0dd8217bf9bb5805104ccb3a] [r.s.RepositoryServiceImpl:2048] [jsse-nio-8443-exec-4] - Undeploy was canceled: Forbidden to delete artifacts from Release Bundles repository release-bundles-v2/app/1.150.0-12260253455/artifacts/docker/app/latest/sha256__94f42c54df3ff13333050b83b696d6d81c360bc33d0e5bbe2360443aeee97e6e
2024-12-10T16:39:01.362Z [jfrt ] [WARN ] [58574caf0dd8217bf9bb5805104ccb3a] [.r.ArtifactoryResponseBase:158] [jsse-nio-8443-exec-4] - Sending HTTP error code 400: Undeploy was canceled
2024-12-10T16:39:01.450Z [jfrt ] [ERROR] [49d414f14344db9a10018e3ac863d9fd] [i.BundleStorageInterceptor:168] [jsse-nio-8443-exec-3] - Storage operation failed for RBv2
2024-12-10T16:39:01.450Z [jfrt ] [ERROR] [49d414f14344db9a10018e3ac863d9fd] [i.BundleStorageInterceptor:170] [jsse-nio-8443-exec-3] - Forbidden to delete artifacts from Release Bundles repository release-bundles-v2/app/1.150.0-12260253455/artifacts/docker/app/latest/sha256__a803e7c4b030119420574a882a52b6431e160fceb7620f61b525d49bc2d58886: Forbidden to delete artifacts from Release Bundles repository release-bundles-v2/app/1.150.0-12260253455/artifacts/docker/app/latest/sha256__a803e7c4b030119420574a882a52b6431e160fceb7620f61b525d49bc2d58886
```

It should be great if the tool can handle the "release-bundles" removal in the dedicated repository "release-bundles-v2".

My account have this permission on the repository : "Read/Delete", and it is working for every other repository type that I tested (docker/npm/maven/build info).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.