READONLY, CLONE and SAVE attributes need to be revisited
|Category:||Core & System|
|Target version:||Release 4.0|
READONLY, CLONE and SAVE are automatically set depending on the image type and persistency. This need to be changed in order to overrride the default image parameters, i.e.:
DISK = [ IMAGE_ID = <ID>, SAVE = NO, CLONE = NO, READONLY = YES ]
The above configuration can't be achieved currently.
#5 Updated by Ruben S. Montero almost 8 years ago
- Status changed from New to Closed
- Resolution set to fixed
This is now implemented in master. I think it can be applied to the 3.8 branch as is (let me know if there is any problem). The new feature will let you:
- Specify the PERSISTENT_TYPE in an image template. If an image has PERSISTENT_TYPE="IMMUTABLE" in its template it will be treated as a persistent image but as it will be immutable it has READONLY="YES" (exposed as ro by the hypervisor) and SAVE="NO" (no move back operations will be performed)
- READONLY flag can be set per DISK or IMAGE.
To try the suggested scenario, just set the image persistent and set it to immutable.