Skip to content

Commit 0eeb75b

Browse files
rebase with main fixes
1 parent bd0a9d7 commit 0eeb75b

File tree

7 files changed

+12
-113
lines changed

7 files changed

+12
-113
lines changed

api/src/main/java/org/apache/cloudstack/api/response/StoragePoolResponse.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ public class StoragePoolResponse extends BaseResponseWithAnnotations {
7878
private String clusterName;
7979

8080
@SerializedName(ApiConstants.CAPACITY_BYTES)
81-
@Param(description = "bytes CloudStack can provision from this storage pool", since = "4.19.3")
81+
@Param(description = "bytes CloudStack can provision from this storage pool", since = "4.22.0")
8282
private Long capacityBytes;
8383

84-
@Deprecated(since = "4.19.3")
84+
@Deprecated(since = "4.22.0")
8585
@SerializedName("disksizetotal")
8686
@Param(description = "the total disk size of the storage pool")
8787
private Long diskSizeTotal;

engine/schema/src/main/java/com/cloud/upgrade/dao/Upgrade41920to41930.java

Lines changed: 0 additions & 66 deletions
This file was deleted.

engine/schema/src/main/java/org/apache/cloudstack/storage/datastore/db/PrimaryDataStoreDaoImpl.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,9 @@ public StoragePoolVO persist(StoragePoolVO pool, Map<String, String> details, Li
320320
pool = super.persist(pool);
321321
if (details != null) {
322322
for (Map.Entry<String, String> detail : details.entrySet()) {
323+
if (detail.getKey().toLowerCase().contains("password") || detail.getKey().toLowerCase().contains("token")) {
324+
displayDetails = false;
325+
}
323326
StoragePoolDetailVO vo = new StoragePoolDetailVO(pool.getId(), detail.getKey(), detail.getValue(), displayDetails);
324327
_detailsDao.persist(vo);
325328
}

engine/schema/src/main/resources/META-INF/db/schema-41920to41930-cleanup.sql

Lines changed: 0 additions & 20 deletions
This file was deleted.

engine/schema/src/main/resources/META-INF/db/schema-41920to41930.sql

Lines changed: 0 additions & 24 deletions
This file was deleted.

engine/schema/src/main/resources/META-INF/db/schema-42100to42200.sql

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,7 @@ CALL `cloud`.`IDEMPOTENT_CHANGE_COLUMN`('cloud.domain_router', 'scripts_version'
2828

2929
-- Add the column cross_zone_instance_creation to cloud.backup_repository. if enabled it means that new Instance can be created on all Zones from Backups on this Repository.
3030
CALL `cloud`.`IDEMPOTENT_ADD_COLUMN`('cloud.backup_repository', 'cross_zone_instance_creation', 'TINYINT(1) DEFAULT NULL COMMENT ''Backup Repository can be used for disaster recovery on another zone''');
31+
32+
-- Updated display to false for password/token detail of the storage pool details
33+
UPDATE `cloud`.`storage_pool_details` SET display = 0 WHERE name LIKE '%password%';
34+
UPDATE `cloud`.`storage_pool_details` SET display = 0 WHERE name LIKE '%token%';

plugins/storage/volume/default/src/main/java/org/apache/cloudstack/storage/datastore/lifecycle/CloudStackPrimaryDataStoreLifeCycleImpl.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
*/
1919
package org.apache.cloudstack.storage.datastore.lifecycle;
2020

21+
import java.util.HashMap;
2122
import java.util.List;
2223
import java.util.Map;
2324
import java.util.UUID;
@@ -176,9 +177,10 @@ public DataStore initialize(Map<String, Object> dsInfos) {
176177

177178
String tags = (String)dsInfos.get("tags");
178179
parameters.setTags(tags);
180+
parameters.setIsTagARule((Boolean)dsInfos.get("isTagARule"));
181+
179182
String storageAccessGroups = (String)dsInfos.get(ApiConstants.STORAGE_ACCESS_GROUPS);
180183
parameters.setStorageAccessGroups(storageAccessGroups);
181-
parameters.setIsTagARule((Boolean)dsInfos.get("isTagARule"));
182184

183185
String scheme = dsInfos.get("scheme").toString();
184186
String storageHost = dsInfos.get("host").toString();

0 commit comments

Comments
 (0)