calm-dsl
calm-dsl copied to clipboard
Decompile does not include image_name for AhvVmResources
Blueprint: 2 Services, 1x AHV and 1x Existing Machine AHV Service: Disk 1 is empty 60GB disk; Disk 2 is CD-ROM ISO Image with bootable True
When decompiling, the AhvVmDisk.CdRom.Ide.cloneFromImageService has not reference to the image to clone leading to an error when trying to create the blueprint.
RCA: This happens if the cache is not up to date.
Decompile process should include update cache
enabled by default with a flag to disable it if the user have done an update cache recently
This issue will be addressed under the changes for https://github.com/nutanix/calm-dsl/issues/115
Updating cache may take a lot of time. That's why it is disabled by default.
User can use sync option to update cache before decompile.
Ex: calm --sync decompile bp <bp_name>