Skip to content

Commit 6089c16

Browse files
committed
Merge remote-tracking branch 'apache/4.20'
2 parents cc31705 + 89d2b17 commit 6089c16

File tree

13 files changed

+61
-22
lines changed

13 files changed

+61
-22
lines changed

engine/components-api/src/main/java/com/cloud/storage/StorageManager.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,8 @@ static Boolean getFullCloneConfiguration(Long storeId) {
302302

303303
Answer sendToPool(StoragePool pool, long[] hostIdsToTryFirst, Command cmd) throws StorageUnavailableException;
304304

305+
void updateStoragePoolHostVOAndBytes(StoragePool pool, long hostId, ModifyStoragePoolAnswer mspAnswer);
306+
305307
CapacityVO getSecondaryStorageUsedStats(Long hostId, Long zoneId);
306308

307309
CapacityVO getStoragePoolUsedStats(Long poolId, Long clusterId, Long podId, Long zoneId);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,8 +476,8 @@ public boolean maintain(DataStore dataStore) {
476476

477477
@Override
478478
public boolean cancelMaintain(DataStore store) {
479-
storagePoolAutmation.cancelMaintain(store);
480479
dataStoreHelper.cancelMaintain(store);
480+
storagePoolAutmation.cancelMaintain(store);
481481
return true;
482482
}
483483

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3072,7 +3072,8 @@ private void handleRemoveChildStoragePoolFromDatastoreCluster(Set<String> childD
30723072

30733073
}
30743074

3075-
private void updateStoragePoolHostVOAndBytes(StoragePool pool, long hostId, ModifyStoragePoolAnswer mspAnswer) {
3075+
@Override
3076+
public void updateStoragePoolHostVOAndBytes(StoragePool pool, long hostId, ModifyStoragePoolAnswer mspAnswer) {
30763077
StoragePoolHostVO poolHost = _storagePoolHostDao.findByPoolHost(pool.getId(), hostId);
30773078
if (poolHost == null) {
30783079
poolHost = new StoragePoolHostVO(pool.getId(), hostId, mspAnswer.getPoolInfo().getLocalPath().replaceAll("//", "/"));
@@ -3082,8 +3083,10 @@ private void updateStoragePoolHostVOAndBytes(StoragePool pool, long hostId, Modi
30823083
}
30833084

30843085
StoragePoolVO poolVO = _storagePoolDao.findById(pool.getId());
3085-
poolVO.setUsedBytes(mspAnswer.getPoolInfo().getCapacityBytes() - mspAnswer.getPoolInfo().getAvailableBytes());
3086-
poolVO.setCapacityBytes(mspAnswer.getPoolInfo().getCapacityBytes());
3086+
if (!Storage.StoragePoolType.StorPool.equals(poolVO.getPoolType())) {
3087+
poolVO.setUsedBytes(mspAnswer.getPoolInfo().getCapacityBytes() - mspAnswer.getPoolInfo().getAvailableBytes());
3088+
poolVO.setCapacityBytes(mspAnswer.getPoolInfo().getCapacityBytes());
3089+
}
30873090

30883091
_storagePoolDao.update(pool.getId(), poolVO);
30893092
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@ public boolean cancelMaintain(DataStore store, Map<String,String> details) {
363363
if (logger.isDebugEnabled()) {
364364
logger.debug("ModifyStoragePool add succeeded");
365365
}
366+
storageManager.updateStoragePoolHostVOAndBytes(pool, host.getId(), (ModifyStoragePoolAnswer) answer);
366367
if (pool.getPoolType() == Storage.StoragePoolType.DatastoreCluster) {
367368
logger.debug("Started synchronising datastore cluster storage pool {} with vCenter", pool);
368369
storageManager.syncDatastoreClusterStoragePool(pool.getId(), ((ModifyStoragePoolAnswer) answer).getDatastoreClusterChildren(), host.getId());

tools/appliance/systemvmtemplate/template-base_aarch64-target_aarch64.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
"format": "qcow2",
3333
"headless": true,
3434
"http_directory": "http",
35-
"iso_checksum": "sha512:892cf1185a214d16ff62a18c6b89cdcd58719647c99916f6214bfca6f9915275d727b666c0b8fbf022c425ef18647e9759974abf7fc440431c39b50c296a98d3",
36-
"iso_url": "https://cdimage.debian.org/mirror/cdimage/archive/12.11.0/arm64/iso-cd/debian-12.11.0-arm64-netinst.iso",
35+
"iso_checksum": "sha512:55ab206cd8b0da2898767c3eb6ab5ebef101e3925ec91b3b5f0a286136195b7072588f6ac2d059c545c6938978704ae78cd18d7d9d2a86a7380e46ce27ee4e7b",
36+
"iso_url": "https://cdimage.debian.org/mirror/cdimage/archive/12.12.0/arm64/iso-cd/debian-12.12.0-arm64-netinst.iso",
3737
"net_device": "virtio-net",
3838
"output_directory": "../dist",
3939
"qemu_binary": "qemu-system-aarch64",

tools/appliance/systemvmtemplate/template-base_x86_64-target_aarch64.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
"format": "qcow2",
3232
"headless": true,
3333
"http_directory": "http",
34-
"iso_checksum": "sha512:892cf1185a214d16ff62a18c6b89cdcd58719647c99916f6214bfca6f9915275d727b666c0b8fbf022c425ef18647e9759974abf7fc440431c39b50c296a98d3",
35-
"iso_url": "https://cdimage.debian.org/mirror/cdimage/archive/12.11.0/arm64/iso-cd/debian-12.11.0-arm64-netinst.iso",
34+
"iso_checksum": "sha512:55ab206cd8b0da2898767c3eb6ab5ebef101e3925ec91b3b5f0a286136195b7072588f6ac2d059c545c6938978704ae78cd18d7d9d2a86a7380e46ce27ee4e7b",
35+
"iso_url": "https://cdimage.debian.org/mirror/cdimage/archive/12.12.0/arm64/iso-cd/debian-12.12.0-arm64-netinst.iso",
3636
"net_device": "virtio-net",
3737
"output_directory": "../dist",
3838
"qemu_binary": "qemu-system-aarch64",

tools/appliance/systemvmtemplate/template-base_x86_64-target_x86_64.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
"format": "qcow2",
2828
"headless": true,
2929
"http_directory": "http",
30-
"iso_checksum": "sha512:0921d8b297c63ac458d8a06f87cd4c353f751eb5fe30fd0d839ca09c0833d1d9934b02ee14bbd0c0ec4f8917dde793957801ae1af3c8122cdf28dde8f3c3e0da",
31-
"iso_url": "https://cdimage.debian.org/mirror/cdimage/archive/12.11.0/amd64/iso-cd/debian-12.11.0-amd64-netinst.iso",
30+
"iso_checksum": "sha512:c93055182057dd19a334260671c7e10880541b7721ad9c8df87be47e0a11d5bbf85018350ff224ff6a5f6a68320b07e95d539cef9dc020c93966bfaa86d4b2ce",
31+
"iso_url": "https://cdimage.debian.org/mirror/cdimage/archive/12.12.0/amd64/iso-cd/debian-12.12.0-amd64-netinst.iso",
3232
"net_device": "virtio-net",
3333
"output_directory": "../dist",
3434
"qemuargs": [

ui/public/config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@
104104
"showUserCategoryForModernImageSelection": true,
105105
"showAllCategoryForModernImageSelection": false,
106106
"docHelpMappings": {},
107+
"notifyLatestCSVersion": true,
107108
"announcementBanner": {
108109
"enabled": false,
109110
"showIcon": false,

ui/src/store/modules/user.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,6 @@ const user = {
338338
const result = response.listusersresponse.user[0]
339339
commit('SET_INFO', result)
340340
commit('SET_NAME', result.firstname + ' ' + result.lastname)
341-
store.dispatch('SetCsLatestVersion', result.rolename)
342341
resolve(cachedApis)
343342
}).catch(error => {
344343
reject(error)
@@ -588,6 +587,9 @@ const user = {
588587
commit('SET_DOMAIN_STORE', domainStore)
589588
},
590589
SetCsLatestVersion ({ commit }, rolename) {
590+
if (!vueProps.$config.notifyLatestCSVersion) {
591+
return
592+
}
591593
const lastFetchTs = store.getters.latestVersion?.fetchedTs ? store.getters.latestVersion.fetchedTs : 0
592594
if (rolename === 'Root Admin' && (+new Date() - lastFetchTs) > 24 * 60 * 60 * 1000) {
593595
axios.get(

ui/src/views/infra/zone/ZoneWizardAddResources.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ export default {
396396
placeHolder: 'message.error.server',
397397
required: true,
398398
display: {
399-
primaryStorageProtocol: ['nfs', 'iscsi', 'gluster', 'SMB', 'Linstor']
399+
primaryStorageProtocol: ['nfs', 'iscsi', 'gluster', 'SMB', 'Linstor', 'datastorecluster', 'vmfs']
400400
}
401401
},
402402
{

0 commit comments

Comments
 (0)