Skip to content

[Bug] decompile environment fails on calm standalone vm in command calm decompile environment --name <env_name> #323

@nx-sbourdeaud

Description

@nx-sbourdeaud

Describe the bug
When trying to decompile an environment in a standalone Calm VM, the command fails with:
ERROR] [calm.dsl.builtins.models.calm_ref:688] Entity with type ahv_cluster and uuid <some_uuid> not found in cache. Please update cache.
running calm update cache does not help since no ahv clusters are found since the standalone calm vm does not manage any prism element clusters.

Branch/Container
master

To Reproduce
Steps to reproduce the behavior:

  1. Deploy standalone calm vm and configure a provider account, a default project and a default environment
  2. Run the calm decompile environment --name <env_name>command
  3. See error

Expected behavior
Environment should decompile and the resulting py file should be created.

Findings/Troubleshooting Done
n/a

Available Logs/Data
n/a

Screenshots
n/a

** System Configuration:**

  • OS: Linux RHEL 8
  • Python: 3.9.21

Additional context
n/a

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions