Skip to content

Commit c1dabed

Browse files
add initial tiering params on lvol creation (storage tiering param updates still a WIP)
1 parent 3175aec commit c1dabed

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

simplyblock_core/controllers/lvol_controller.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -464,12 +464,19 @@ def add_lvol_ha(name, size, host_id_or_name, ha_type, pool_id_or_name, use_comp,
464464
"params": {
465465
"name": lvol.lvol_bdev,
466466
"size_in_mib": int(lvol.size / (1000 * 1000)),
467-
"lvs_name": lvol.lvs_name
467+
"lvs_name": lvol.lvs_name,
468468
}
469469
}
470470

471471
if lvol.lvol_priority_class:
472472
lvol_dict["params"]["lvol_priority_class"] = lvol.lvol_priority_class
473+
474+
lvol_dict['params']['is_tiered'] = is_tiered
475+
lvol_dict['params']['force_fetch'] = force_fetch
476+
lvol_dict['params']['sync_fetch'] = sync_fetch
477+
lvol_dict['params']['pure_flush_or_evict'] = pure_flush_or_evict
478+
lvol_dict['params']['not_evict_blob_md'] = not_evict_blob_md
479+
473480
lvol.bdev_stack = [lvol_dict]
474481

475482
if use_crypto:

simplyblock_core/env_var

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
SIMPLY_BLOCK_COMMAND_NAME=sbcli-storage-tiering
2-
SIMPLY_BLOCK_VERSION=12.2.4
2+
SIMPLY_BLOCK_VERSION=12.2.5
33

44
SIMPLY_BLOCK_DOCKER_IMAGE=public.ecr.aws/simply-block/simplyblock:storage-tiering
55
DOCKER_USER=hamdysimplyblock

0 commit comments

Comments
 (0)