Hi, I have architecture design. I’m using two types of system datastores: eg fs_lvm
and shared
and I’m not understand, why I can’t simple single images datastore in this case.
Eg when you creating new images datastore, you must specify parameters like:
TM_MAD = fs_lvm
DISK_TYPE = "BLOCK"
In this case, all images instantiated from this datastore will use fs_lvm
driver, and deploy image into block device.
If we change our images datastore parameters to:
TM_MAD = shared
DISK_TYPE = "FILE"
Image will be deployed as a file even if system datastore managed by fs_lvm
driver.
I can’t use same images datastore for both types of system datastores, because images inherit options from images datastore, but parameters from system datastore are ignored, that’s crazy!
Is there any specific reason for that, or any ideas how can we solve that?
I already wrote issue about that:
Today I faced with another one
One of possible solution can be to replace it like:
-if [ "${TYPE}" != "BLOCK" ]; then
+if [ "${DISK_TYPE}" != "BLOCK" ]; then
exit 0
fi
In this case it will take DISK_TYPE
parameter from the images_ds
but not from system_ds
, so we still have the same problem here.
Now I want to decide future design of these options and how to inherit them.
Thanks for attention!