@@ -137,7 +137,7 @@ protected List<StoragePool> reorderPoolsByCapacity(DeploymentPlan plan, List<Sto
137
137
storageType = "shared" ;
138
138
}
139
139
140
- logger .debug (
140
+ logger .info (
141
141
"Filtering storage pools by capacity type [{}] as the first storage pool of the list, with name [{}] and ID [{}], is a [{}] storage." ,
142
142
capacityType , storagePool .getName (), storagePool .getUuid (), storageType
143
143
);
@@ -195,10 +195,10 @@ protected List<StoragePool> reorderPoolsByNumberOfVolumes(DeploymentPlan plan, L
195
195
@ Override
196
196
public List <StoragePool > reorderPools (List <StoragePool > pools , VirtualMachineProfile vmProfile , DeploymentPlan plan , DiskProfile dskCh ) {
197
197
if (pools == null ) {
198
- logger .debug ("There are no pools to reorder; returning null." );
198
+ logger .info ("There are no pools to reorder; returning null." );
199
199
return null ;
200
200
}
201
- logger .debug ("Reordering [{}] pools" , pools .size ());
201
+ logger .info ("Reordering [{}] pools" , pools .size ());
202
202
Account account = null ;
203
203
if (vmProfile .getVirtualMachine () != null ) {
204
204
account = vmProfile .getOwner ();
@@ -207,7 +207,7 @@ public List<StoragePool> reorderPools(List<StoragePool> pools, VirtualMachinePro
207
207
pools = reorderStoragePoolsBasedOnAlgorithm (pools , plan , account );
208
208
209
209
if (vmProfile .getVirtualMachine () == null ) {
210
- logger .debug ("The VM is null, skipping pool reordering by disk provisioning type." );
210
+ logger .info ("The VM is null, skipping pool reordering by disk provisioning type." );
211
211
return pools ;
212
212
}
213
213
@@ -220,7 +220,7 @@ public List<StoragePool> reorderPools(List<StoragePool> pools, VirtualMachinePro
220
220
}
221
221
222
222
List <StoragePool > reorderStoragePoolsBasedOnAlgorithm (List <StoragePool > pools , DeploymentPlan plan , Account account ) {
223
- logger .debug ("Using allocation algorithm [{}] to reorder pools." , allocationAlgorithm );
223
+ logger .info ("Using allocation algorithm [{}] to reorder pools." , allocationAlgorithm );
224
224
225
225
if (allocationAlgorithm .equals ("random" ) || allocationAlgorithm .equals ("userconcentratedpod_random" ) || (account == null )) {
226
226
reorderRandomPools (pools );
@@ -246,7 +246,7 @@ void reorderRandomPools(List<StoragePool> pools) {
246
246
247
247
private List <StoragePool > reorderPoolsByDiskProvisioningType (List <StoragePool > pools , DiskProfile diskProfile ) {
248
248
if (diskProfile != null && diskProfile .getProvisioningType () != null && !diskProfile .getProvisioningType ().equals (Storage .ProvisioningType .THIN )) {
249
- logger .debug ("Reordering [{}] pools by disk provisioning type [{}]." , pools .size (), diskProfile .getProvisioningType ());
249
+ logger .info ("Reordering [{}] pools by disk provisioning type [{}]." , pools .size (), diskProfile .getProvisioningType ());
250
250
List <StoragePool > reorderedPools = new ArrayList <>();
251
251
int preferredIndex = 0 ;
252
252
for (StoragePool pool : pools ) {
@@ -263,7 +263,11 @@ private List<StoragePool> reorderPoolsByDiskProvisioningType(List<StoragePool> p
263
263
logger .debug ("Reordered list of pools by disk provisioning type [{}]: [{}]" , diskProfile .getProvisioningType (), pools );
264
264
return reorderedPools ;
265
265
} else {
266
- logger .debug ("Reordering pools by disk provisioning type wasn't necessary." );
266
+ if (diskProfile == null ) {
267
+ logger .info ("Reordering pools by disk provisioning type wasn't necessary, since no disk profile was found." );
268
+ } else {
269
+ logger .debug ("Reordering pools by disk provisioning type wasn't necessary, since the provisioning type is [{}]." , diskProfile .getProvisioningType ());
270
+ }
267
271
return pools ;
268
272
}
269
273
}
0 commit comments