If you are reporting a problem, please make sure the following information are provided:
Expected behavior and actual behavior:
image retention policy creation works fine through api. but when delete operation is performed via api, retention policies are not accessible either through command line or in UI.
we are getting "internal server error" in core logs and in UI. please share the image attached.
expected behavior is that we are able to create/update/delete retention policy via api
Steps to reproduce the problem:
create 1 or more retention rule using API,
try deleting a retention rule.
try accessing policy for a specific project in UI, later any policy create option either in command line or in the UI fails.
Versions:
Please specify the versions of following systems.
harbor version: 2.11.0
Kubernetes 1.27 +
Additional context:
Harbor core logs
2024-09-06T09:16:45Z [ERROR] [/lib/http/error.go:57]: {"errors":[{"code":"UNKNOWN","message":"unknown: no such Retention policy with id 1"}]}
2024-09-06T09:17:50Z [INFO] [/server/middleware/security/robot.go:71][requestID="aacc7e0eac187a71c437112134a55a0b"]: a robot security context generated for request GET /service/token
2024-09-06T09:17:51Z [INFO] [/server/middleware/security/robot.go:71][requestID="bceb8fc9f25690178b2e8de28d4a7d10"]: a robot security context generated for request GET /service/token
2024-09-06T09:21:30Z [ERROR] [/lib/http/error.go:57]: {"errors":[{"code":"UNKNOWN","message":"unknown: no such Retention policy with id 1"}]}
2024-09-06T09:22:17Z [ERROR] [/lib/http/error.go:57]: {"errors":[{"code":"UNKNOWN","message":"unknown: no such Retention policy with id 1"}]}
If you are reporting a problem, please make sure the following information are provided:
Expected behavior and actual behavior: image retention policy creation works fine through api. but when delete operation is performed via api, retention policies are not accessible either through command line or in UI.
we are getting "internal server error" in core logs and in UI. please share the image attached.
expected behavior is that we are able to create/update/delete retention policy via api
Steps to reproduce the problem:
Versions: Please specify the versions of following systems.
Additional context: Harbor core logs
2024-09-06T09:16:45Z [ERROR] [/lib/http/error.go:57]: {"errors":[{"code":"UNKNOWN","message":"unknown: no such Retention policy with id 1"}]} 2024-09-06T09:17:50Z [INFO] [/server/middleware/security/robot.go:71][requestID="aacc7e0eac187a71c437112134a55a0b"]: a robot security context generated for request GET /service/token 2024-09-06T09:17:51Z [INFO] [/server/middleware/security/robot.go:71][requestID="bceb8fc9f25690178b2e8de28d4a7d10"]: a robot security context generated for request GET /service/token 2024-09-06T09:21:30Z [ERROR] [/lib/http/error.go:57]: {"errors":[{"code":"UNKNOWN","message":"unknown: no such Retention policy with id 1"}]} 2024-09-06T09:22:17Z [ERROR] [/lib/http/error.go:57]: {"errors":[{"code":"UNKNOWN","message":"unknown: no such Retention policy with id 1"}]}