File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
engine/schema/src/main/java/com/cloud/upgrade
server/src/main/java/com/cloud/storage Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 6161import com .cloud .dc .dao .DataCenterDao ;
6262import com .cloud .dc .dao .DataCenterDaoImpl ;
6363import com .cloud .host .dao .HostDao ;
64+ import com .cloud .host .dao .HostDaoImpl ;
6465import com .cloud .hypervisor .Hypervisor ;
6566import com .cloud .storage .DataStoreRole ;
6667import 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 ) {
Original file line number Diff line number Diff 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 ();
You can’t perform that action at this time.
0 commit comments