The role role: ImageCache entry is not marked as removed, which is causing issues during later when a new secondary storage is added and a migration activity is performed
Expected Behaviour
The role role: ImageCache entry should also be marked as removed when s3 based secondary storage is removed
ISSUE TYPE
Bug
COMPONENT NAME
Component: Bug
CLOUDSTACK VERSION
Cloudstack version 4.19.1
SUMMARY
s3 based secondary storage is not removed cleanly
Steps to reproduce the behaviour
Create a s3 based secondary storage
Enable the NFS secondary staging storage
Cross check the database
Only the role image entry is marked removed , the role: ImageCache entry is not marked as removed
Actual Behaviour
The role role: ImageCache entry is not marked as removed, which is causing issues during later when a new secondary storage is added and a migration activity is performed
Expected Behaviour
The role role: ImageCache entry should also be marked as removed when s3 based secondary storage is removed