mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK:6915 search including removed
This commit is contained in:
parent
21f39577e4
commit
efc9632c1b
@ -27,7 +27,6 @@ import java.util.UUID;
|
|||||||
import javax.ejb.Local;
|
import javax.ejb.Local;
|
||||||
import javax.inject.Inject;
|
import javax.inject.Inject;
|
||||||
|
|
||||||
import org.apache.cloudstack.storage.command.StorageSubSystemCommand;
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.log4j.Logger;
|
||||||
|
|
||||||
import org.apache.cloudstack.engine.subsystem.api.storage.PrimaryDataStore;
|
import org.apache.cloudstack.engine.subsystem.api.storage.PrimaryDataStore;
|
||||||
@ -38,6 +37,7 @@ import org.apache.cloudstack.framework.config.Configurable;
|
|||||||
import org.apache.cloudstack.framework.config.dao.ConfigurationDao;
|
import org.apache.cloudstack.framework.config.dao.ConfigurationDao;
|
||||||
import org.apache.cloudstack.storage.command.CopyCommand;
|
import org.apache.cloudstack.storage.command.CopyCommand;
|
||||||
import org.apache.cloudstack.storage.command.DeleteCommand;
|
import org.apache.cloudstack.storage.command.DeleteCommand;
|
||||||
|
import org.apache.cloudstack.storage.command.StorageSubSystemCommand;
|
||||||
import org.apache.cloudstack.storage.datastore.db.PrimaryDataStoreDao;
|
import org.apache.cloudstack.storage.datastore.db.PrimaryDataStoreDao;
|
||||||
import org.apache.cloudstack.storage.datastore.db.StoragePoolVO;
|
import org.apache.cloudstack.storage.datastore.db.StoragePoolVO;
|
||||||
import org.apache.cloudstack.storage.to.VolumeObjectTO;
|
import org.apache.cloudstack.storage.to.VolumeObjectTO;
|
||||||
@ -311,7 +311,7 @@ public class VMwareGuru extends HypervisorGuruBase implements HypervisorGuru, Co
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Determine the VM's OS description
|
// Determine the VM's OS description
|
||||||
GuestOSVO guestOS = _guestOsDao.findById(vm.getVirtualMachine().getGuestOSId());
|
GuestOSVO guestOS = _guestOsDao.findByIdIncludingRemoved(vm.getVirtualMachine().getGuestOSId());
|
||||||
to.setOs(guestOS.getDisplayName());
|
to.setOs(guestOS.getDisplayName());
|
||||||
to.setHostName(vm.getHostName());
|
to.setHostName(vm.getHostName());
|
||||||
HostVO host = _hostDao.findById(vm.getVirtualMachine().getHostId());
|
HostVO host = _hostDao.findById(vm.getVirtualMachine().getHostId());
|
||||||
|
|||||||
@ -90,7 +90,7 @@ public class XenServerGuru extends HypervisorGuruBase implements HypervisorGuru
|
|||||||
to.setBootloader(bt);
|
to.setBootloader(bt);
|
||||||
|
|
||||||
// Determine the VM's OS description
|
// Determine the VM's OS description
|
||||||
GuestOSVO guestOS = _guestOsDao.findById(vm.getVirtualMachine().getGuestOSId());
|
GuestOSVO guestOS = _guestOsDao.findByIdIncludingRemoved(vm.getVirtualMachine().getGuestOSId());
|
||||||
to.setOs(guestOS.getDisplayName());
|
to.setOs(guestOS.getDisplayName());
|
||||||
HostVO host = hostDao.findById(vm.getVirtualMachine().getHostId());
|
HostVO host = hostDao.findById(vm.getVirtualMachine().getHostId());
|
||||||
GuestOSHypervisorVO guestOsMapping = null;
|
GuestOSHypervisorVO guestOsMapping = null;
|
||||||
|
|||||||
@ -57,7 +57,7 @@ public class KVMGuru extends HypervisorGuruBase implements HypervisorGuru {
|
|||||||
VirtualMachineTO to = toVirtualMachineTO(vm);
|
VirtualMachineTO to = toVirtualMachineTO(vm);
|
||||||
|
|
||||||
// Determine the VM's OS description
|
// Determine the VM's OS description
|
||||||
GuestOSVO guestOS = _guestOsDao.findById(vm.getVirtualMachine().getGuestOSId());
|
GuestOSVO guestOS = _guestOsDao.findByIdIncludingRemoved(vm.getVirtualMachine().getGuestOSId());
|
||||||
to.setOs(guestOS.getDisplayName());
|
to.setOs(guestOS.getDisplayName());
|
||||||
HostVO host = _hostDao.findById(vm.getVirtualMachine().getHostId());
|
HostVO host = _hostDao.findById(vm.getVirtualMachine().getHostId());
|
||||||
GuestOSHypervisorVO guestOsMapping = null;
|
GuestOSHypervisorVO guestOsMapping = null;
|
||||||
|
|||||||
@ -52,7 +52,7 @@ public class LXCGuru extends HypervisorGuruBase implements HypervisorGuru {
|
|||||||
VirtualMachineTO to = toVirtualMachineTO(vm);
|
VirtualMachineTO to = toVirtualMachineTO(vm);
|
||||||
|
|
||||||
// Determine the VM's OS description
|
// Determine the VM's OS description
|
||||||
GuestOSVO guestOS = _guestOsDao.findById(vm.getVirtualMachine().getGuestOSId());
|
GuestOSVO guestOS = _guestOsDao.findByIdIncludingRemoved(vm.getVirtualMachine().getGuestOSId());
|
||||||
to.setOs(guestOS.getDisplayName());
|
to.setOs(guestOS.getDisplayName());
|
||||||
|
|
||||||
HostVO host = _hostDao.findById(vm.getVirtualMachine().getHostId());
|
HostVO host = _hostDao.findById(vm.getVirtualMachine().getHostId());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user