apache / apache/cloudstack

Unable to delete Secondary Storage

Open
#9,737 8 comments 0 reactions 0 assignees View on GitHub
affects:4.19.1 component:secondary-storage type:improvement
Dominant language
Java
Stars
3.1k
Forks
1.4k
Avg merge
6d 19h
Merged PRs (30d)
32

Description

##### ISSUE TYPE

* Bug Report

##### CLOUDSTACK VERSION

~~~
4.19.1.0
~~~

##### OS / ENVIRONMENT

Oracle Linux 8

##### SUMMARY

I added second secstore to one zone, and some images and templates were copied to it automatically. Now I want to delete it and an error occurs. There is no any mechanism in Cloudstack for removing templates from specific secstore or forcibly deleting a secstore.
Of course I can modify some records in DB like in https://github.com/apache/cloudstack/issues/8540 https://github.com/apache/cloudstack/issues/7347 but it's not a solution

![image](https://github.com/user-attachments/assets/2d65d821-05dd-45ff-b5ba-c410d0913dff)
Templates on this secstore
![image](https://github.com/user-attachments/assets/d8bc2cf3-c987-4a52-8322-c82547312362)
Some of them are downloaded, some are not.
![image](https://github.com/user-attachments/assets/e4a92c10-11fa-4bc3-9800-a7d7a6b3b438)
![image](https://github.com/user-attachments/assets/7911b9a2-7eae-471b-ad40-8808f4938f4a)

Contributor guide

Open the contributing guide

Research direction

Reproduce the secondary-storage deletion failure on CloudStack 4.19.1.0 with Oracle Linux 8, using a zone containing copied templates and images. Trace the deletion behavior and the reported storage/template state; done means the secondary store can be removed without manually changing database records.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
cloud, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.