Skip to content

Commit c8159dc

Browse files
committed
fix
Signed-off-by: Abhishek Kumar <[email protected]>
1 parent d426047 commit c8159dc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

engine/schema/src/main/java/com/cloud/upgrade/SystemVmTemplateRegistration.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
import com.cloud.dc.dao.DataCenterDao;
6262
import com.cloud.dc.dao.DataCenterDaoImpl;
6363
import com.cloud.host.dao.HostDao;
64+
import com.cloud.host.dao.HostDaoImpl;
6465
import com.cloud.hypervisor.Hypervisor;
6566
import com.cloud.storage.DataStoreRole;
6667
import com.cloud.storage.GuestOSVO;
@@ -156,6 +157,7 @@ public SystemVmTemplateRegistration() {
156157
imageStoreDetailsDao = new ImageStoreDetailsDaoImpl();
157158
configurationDao = new ConfigurationDaoImpl();
158159
guestOSDao = new GuestOSDaoImpl();
160+
hostDao = new HostDaoImpl();
159161
tempDownloadDir = new File(System.getProperty("java.io.tmpdir"));
160162
}
161163

@@ -1079,7 +1081,7 @@ public void doInTransactionWithoutResult(final TransactionStatus status) {
10791081
try {
10801082
hypervisorsInUse = hostDao.listDistinctHypervisorArchTypes(null);
10811083
} catch (final Exception e) {
1082-
throw new CloudRuntimeException("Exception while getting hypervisor types from clusters", e);
1084+
throw new CloudRuntimeException("Exception while getting hypervisor types from hosts", e);
10831085
}
10841086
Collection<MetadataTemplateDetails> templateEntries = NewTemplateMap.values();
10851087
for (MetadataTemplateDetails templateDetails : templateEntries) {

server/src/main/java/com/cloud/storage/StorageManagerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3669,7 +3669,7 @@ public void doInTransactionWithoutResult(final TransactionStatus status) {
36693669
}
36703670
}
36713671
} catch (Exception e) {
3672-
logger.error("Failed to register systemVM template(s)");
3672+
logger.error("Failed to register systemVM template(s)", e);
36733673
} finally {
36743674
SystemVmTemplateRegistration.unmountStore(filePath);
36753675
txn.close();

0 commit comments

Comments
 (0)