[
https://issues.apache.org/jira/browse/CLOUDSTACK-9280?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15150305#comment-15150305
]
ASF GitHub Bot commented on CLOUDSTACK-9280:
--------------------------------------------
Github user GabrielBrascher commented on a diff in the pull request:
https://github.com/apache/cloudstack/pull/1406#discussion_r53149620
--- Diff:
engine/storage/volume/src/org/apache/cloudstack/storage/volume/VolumeObject.java
---
@@ -92,7 +92,7 @@ public static VolumeObject getVolumeObject(DataStore
dataStore, VolumeVO volumeV
public String getAttachedVmName() {
Long vmId = volumeVO.getInstanceId();
if (vmId != null) {
- VMInstanceVO vm = vmInstanceDao.findById(vmId);
+ VMInstanceVO vm = vmInstanceDao.findByIdIncludingRemoved(vmId);
--- End diff --
@ProjectMoon I couldn't find the "findByIdIncludingRemoved" method
(https://github.com/apache/cloudstack/blob/master/engine/schema/src/com/cloud/vm/dao/VMInstanceDao.java).
Am I missing something?
> System VM volumes cannot be deleted when there are no system VMs
> ----------------------------------------------------------------
>
> Key: CLOUDSTACK-9280
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9280
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: Management Server
> Affects Versions: 4.6.0, 4.7.0
> Reporter: Jeff Hair
>
> Scenario: When deleting a zone, everything under it must be removed. This
> results in the system VMs being destroyed as there are no more hosts running.
> The storage cleanup thread properly detects that there are volumes to be
> deleted, but it cannot delete them because the endpoint selection fails with
> "No remote endpoint to send DeleteCommand, check if host or ssvm is down?"
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)