mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
Bug 8208 - bare metal provisioning
do fullsync in baremetal resource
This commit is contained in:
parent
ffb900fc86
commit
d297eea96f
@ -138,6 +138,8 @@ public interface HostDao extends GenericDao<HostVO, Long> {
|
||||
|
||||
void loadDetails(HostVO host);
|
||||
|
||||
void saveDetails(HostVO host);
|
||||
|
||||
HostVO findConsoleProxyHost(String name, Type type);
|
||||
|
||||
List<HypervisorType> getAvailHypervisorInZone(long hostId, long zoneId);
|
||||
|
||||
@ -588,7 +588,8 @@ public class HostDaoImpl extends GenericDaoBase<HostVO, Long> implements HostDao
|
||||
return listBy(sc);
|
||||
}
|
||||
|
||||
protected void saveDetails(HostVO host) {
|
||||
@Override
|
||||
public void saveDetails(HostVO host) {
|
||||
Map<String, String> details = host.getDetails();
|
||||
if (details == null) {
|
||||
return;
|
||||
|
||||
@ -255,6 +255,7 @@ public class VirtualMachineManagerImpl implements VirtualMachineManager, Listene
|
||||
if (template.getFormat() == ImageFormat.ISO) {
|
||||
_storageMgr.allocateRawVolume(VolumeType.ROOT, "ROOT-" + vm.getId(), rootDiskOffering.first(), rootDiskOffering.second(), vm, owner);
|
||||
} else if (template.getFormat() == ImageFormat.BAREMETAL) {
|
||||
// Do nothing
|
||||
}else {
|
||||
_storageMgr.allocateTemplatedVolume(VolumeType.ROOT, "ROOT-" + vm.getId(), rootDiskOffering.first(), template, vm, owner);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user