@@ -235,7 +235,6 @@ public class LibvirtComputingResource extends ServerResourceBase implements Serv
235235 private String _dcId ;
236236 private String _pod ;
237237 private String _clusterId ;
238- private String _premium ;
239238 private long _hvVersion ;
240239 private KVMHAMonitor _monitor ;
241240 private final String _SSHKEYSPATH = "/root/.ssh" ;
@@ -735,17 +734,12 @@ public boolean configure(String name, Map<String, Object> params)
735734
736735 }
737736
738- _premium = (String )params .get ("premium" );
739- if (_premium == null ) {
740- _premium = "false" ;
741- }
742-
743- if (_premium .equalsIgnoreCase ("true" )) {
744- String [] info = NetUtils .getNetworkParams (_privateNic );
745- _monitor = new KVMHAMonitor (null , _conn , info [0 ], _heartBeatPath );
746- Thread ha = new Thread (_monitor );
747- ha .start ();
748- }
737+
738+ String [] info = NetUtils .getNetworkParams (_privateNic );
739+ _monitor = new KVMHAMonitor (null , _conn , info [0 ], _heartBeatPath );
740+ Thread ha = new Thread (_monitor );
741+ ha .start ();
742+
749743
750744 try {
751745 Class <?> clazz = Class .forName ("com.cloud.storage.JavaStorageLayer" );
@@ -1252,14 +1246,14 @@ protected Answer execute(DeleteStoragePoolCommand cmd) {
12521246 pool .destroy ();
12531247 pool .undefine ();
12541248
1255- if ( _premium . equalsIgnoreCase ( "true" )) {
1256- KVMHABase .NfsStoragePool sp = new KVMHABase .NfsStoragePool (cmd .getPool ().getUuid (),
1257- cmd .getPool ().getHostAddress (),
1258- cmd .getPool ().getPath (),
1259- _mountPoint + File .separator + cmd .getPool ().getUuid (),
1260- PoolType .PrimaryStorage );
1261- _monitor .removeStoragePool (sp );
1262- }
1249+
1250+ KVMHABase .NfsStoragePool sp = new KVMHABase .NfsStoragePool (cmd .getPool ().getUuid (),
1251+ cmd .getPool ().getHostAddress (),
1252+ cmd .getPool ().getPath (),
1253+ _mountPoint + File .separator + cmd .getPool ().getUuid (),
1254+ PoolType .PrimaryStorage );
1255+ _monitor .removeStoragePool (sp );
1256+
12631257
12641258 return new Answer (cmd );
12651259 } catch (LibvirtException e ) {
@@ -1903,14 +1897,14 @@ protected Answer execute(ModifyStoragePoolCommand cmd) {
19031897 spi .capacity ,
19041898 spi .allocation ,
19051899 tInfo );
1906- if ( _premium . equalsIgnoreCase ( "true" )) {
1907- KVMHABase .NfsStoragePool pool = new KVMHABase .NfsStoragePool (cmd .getPool ().getUuid (),
1908- cmd .getPool ().getHostAddress (),
1909- cmd .getPool ().getPath (),
1910- _mountPoint + File .separator + cmd .getPool ().getUuid (),
1911- PoolType .PrimaryStorage );
1912- _monitor .addStoragePool (pool );
1913- }
1900+
1901+ KVMHABase .NfsStoragePool pool = new KVMHABase .NfsStoragePool (cmd .getPool ().getUuid (),
1902+ cmd .getPool ().getHostAddress (),
1903+ cmd .getPool ().getPath (),
1904+ _mountPoint + File .separator + cmd .getPool ().getUuid (),
1905+ PoolType .PrimaryStorage );
1906+ _monitor .addStoragePool (pool );
1907+
19141908 try {
19151909 storagePool .free ();
19161910 } catch (LibvirtException e ) {
0 commit comments