Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

404 not json serialised While creating a stack using python heat-client

Hi, I'm trying to create a stack using python heatclient. But I blocked while passing the environment file (successful in passing string params,but stucked in number params). I have a environment file like:

parameters.yaml: parameters: cores: 1 fixed_ips: 10....and so on,defined its type as 'number' in heat template. While creating the stack,I passed these content using 'environment' tag as shown below. hc.stacks.create(stack_name=stack_name, template=template, files=files,environment=yaml_content)

Atlast, it throws error as 'not json serialised' (Create Failed: TypeError: resources.quota: <heat.engine.hot.functions.getparam {get_param:="" u'metadata_items'}="" -=""> 64> is not JSON serializable). How could I overcome this issue.

Thanks,Vikee.

404 not json serialised While creating a stack using python heat-client

Hi, I'm trying to create a stack using python heatclient. But I blocked while passing the environment file (successful in passing string params,but stucked in number params). I have a environment file like:

parameters.yaml:

parameters:
  cores: 1
  fixed_ips: 10....and 10

....and so on,defined its type as 'number' in heat template. While creating the stack,I passed these content using 'environment' tag as shown below. below.

hc.stacks.create(stack_name=stack_name, template=template, files=files,environment=yaml_content)

files=files,environment=yaml_content)

Atlast, it throws error as 'not json serialised' (Create Failed: TypeError: resources.quota: <heat.engine.hot.functions.getparam {get_param:="" u'metadata_items'}="" -=""> 64> is not JSON serializable). How could I overcome this issue.

Thanks,Vikee.