calm-dsl icon indicating copy to clipboard operation
calm-dsl copied to clipboard

Decompile does not include image_name for AhvVmResources

Open pipoe2h opened this issue 4 years ago • 3 comments

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.

image image image

pipoe2h avatar Oct 20 '20 10:10 pipoe2h

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

pipoe2h avatar Oct 20 '20 10:10 pipoe2h

This issue will be addressed under the changes for https://github.com/nutanix/calm-dsl/issues/115

abhijeetkaurav1st avatar Oct 22 '20 10:10 abhijeetkaurav1st

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>

abhijeetkaurav1st avatar Dec 24 '20 07:12 abhijeetkaurav1st