Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
c7b0005
UI support for extraconfig in deploy and update instance (#11719)
abh1sar Sep 30, 2025
c822028
CKS: generate a random UUID as password of CKS user in project (#11639)
weizhouapache Oct 1, 2025
1f436b6
server: Consider Instance in Starting state as well for allocation al…
sudo87 Oct 2, 2025
23dbe3c
CKS: fix CKS creation on an existing Shared and Routed network (#11735)
weizhouapache Oct 3, 2025
6da9414
VMware: match nic mac for ip address fetch (#10641)
alexandru-bagu Oct 4, 2025
9e46ee1
server: add user.password.reset.smtp.useStartTLS and enabledSecurityP…
weizhouapache Oct 7, 2025
77247b1
server: do not enable the disabled local storage(s) on host connectio…
sureshanaparti Oct 7, 2025
1fc1a5d
linstor: use sparse/discard qemu-img convert on thin devices (#11787)
rp- Oct 6, 2025
0c61d97
Add support for providing userdata to system VMs (#11654)
vishesh92 Oct 8, 2025
6f74ebf
Storage pool response improvements (#10740)
sureshanaparti Oct 8, 2025
4a9b4a4
refactor: remove use of term entry-point from extensions code base (#…
shwstppr Oct 8, 2025
39ef8f6
Add `Hypervisor default` as cache mode for disk offerings (#10282)
hsato03 Oct 8, 2025
572c520
systemvmtemplate: Bump Debian version to 12.12.0 (#11778)
weizhouapache Oct 8, 2025
9b8d822
UI: Deal with crosssite api call after login (#10533)
DaanHoogland Oct 8, 2025
1b6436d
UI: Fix primary storage for datastore cluster and retain traffic labe…
sudo87 Oct 8, 2025
2392bc8
Sanitize the rbd file cmd parameter logs during qemu-img convert (thr…
sureshanaparti Oct 8, 2025
53370cf
storage: change storage pool to Up state when cancel storage migratio…
weizhouapache Oct 8, 2025
80a3c0b
Initial primary storage pool plugin skeleton
Sep 30, 2025
db371e2
Initial primary storage pool plugin skeleton - added license string
rajiv-jain-netapp Oct 8, 2025
9bb758a
Initial primary storage pool plugin skeleton - added license string +…
rajiv-jain-netapp Oct 8, 2025
25fb255
Initial primary storage pool plugin skeleton - added license string +…
rajiv-jain-netapp Oct 8, 2025
6d933e8
Feignconfiguration and volume feignClient along with desired POJOs
rajiv-jain-netapp Oct 13, 2025
f07a444
Feignconfiguration and volume feignClient along with desired POJOs
rajiv-jain-netapp Oct 13, 2025
43867e6
Revert "Feignconfiguration and volume feignClient along with desired …
rajiv-jain-netapp Oct 13, 2025
4f57cd2
Revert "Feignconfiguration and volume feignClient along with desired …
rajiv-jain-netapp Oct 13, 2025
bd4a23a
Feignconfiguration and volume feignClient along with desired POJOs
rajiv-jain-netapp Oct 13, 2025
1bb907f
Feignconfiguration and volume feignClient along with desired POJOs
rajiv-jain-netapp Oct 13, 2025
3327c15
CSTACKEX-28: added copyright comment in the logger configuration
rajiv-jain-netapp Oct 13, 2025
35ccaab
CSTACKEX-28: added newline in the end of the file
rajiv-jain-netapp Oct 13, 2025
b4c2f30
CSTACKEX-28 - incorporated review comments
rajiv-jain-netapp Oct 14, 2025
8e4efd1
Cluster, SVM and Aggr Feign Client
suryag1201 Oct 16, 2025
d8b98ed
NAS and Job Feign Client
suryag1201 Oct 17, 2025
a20dc4e
# This is a combination of 11 commits. This is a combination of 10 c…
Oct 10, 2025
572a1d5
CSTACKEX-25: Basic class structure
Oct 17, 2025
0be388b
CSTACKEX-25: Added code for job polling and addressed the review comm…
Oct 21, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
linstor: use sparse/discard qemu-img convert on thin devices (apache#…
  • Loading branch information
rp- authored and Locharla, Sandeep committed Oct 21, 2025
commit 1fc1a5dc52eb7c35453ef0bab19ff9f6e468f713
6 changes: 6 additions & 0 deletions plugins/storage/volume/linstor/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to Linstor CloudStack plugin will be documented in this file
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2025-10-03]

### Changed

- Revert qcow2 snapshot now use sparse/discard options to convert on thin devices.

## [2025-08-05]

### Fixed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
import java.util.Optional;
import java.util.stream.Collectors;

import com.cloud.hypervisor.kvm.storage.KVMStoragePool;
import com.cloud.utils.Pair;
import com.cloud.utils.exception.CloudRuntimeException;
import org.apache.logging.log4j.Logger;
Expand Down Expand Up @@ -431,4 +432,37 @@ public static ResourceDefinition findResourceDefinition(DevelopersApi api, Strin
public static boolean isRscDiskless(ResourceWithVolumes rsc) {
return rsc.getFlags() != null && rsc.getFlags().contains(ApiConsts.FLAG_DISKLESS);
}

/**
* Checks if all diskful resource are on a zeroed block device.
* @param pool Linstor pool to use
* @param resName Linstor resource name
* @return true if all resources are on a provider with zeroed blocks.
*/
public static boolean resourceSupportZeroBlocks(KVMStoragePool pool, String resName) {
final DevelopersApi api = getLinstorAPI(pool.getSourceHost());
try {
List<ResourceWithVolumes> resWithVols = api.viewResources(
Collections.emptyList(),
Collections.singletonList(resName),
Collections.emptyList(),
Collections.emptyList(),
null,
null);

if (resWithVols != null) {
return resWithVols.stream()
.allMatch(res -> {
Volume vol0 = res.getVolumes().get(0);
return vol0 != null && (vol0.getProviderKind() == ProviderKind.LVM_THIN ||
vol0.getProviderKind() == ProviderKind.ZFS ||
vol0.getProviderKind() == ProviderKind.ZFS_THIN ||
vol0.getProviderKind() == ProviderKind.DISKLESS);
} );
}
} catch (ApiException apiExc) {
s_logger.error(apiExc.getMessage());
}
return false;
}
}