Ask Your Question
0

Heat autoSacalingGroup attributes current_size, outputs, and outputs_list are always blank

asked 2015-02-02 12:57:46 -0500

Jet gravatar image

updated 2015-02-17 07:53:09 -0500

I'm looking at the example autoscaling template and I was looking at OS::Heat::AutoScalingGroup so I added the below to the outputs section but I never get any values back.

heat_template_version: 2014-10-16
...
    outputs:
      asg_current_size:
        description: current size of the ASG
        value: {get_attr: [ asg, current_size ] }
      asg_outputs:
        description: ASG outputs
        value: {get_attr: [ asg, outputs ] }
      asg_outputs_list:
        description: >
            This is the server and IP for it of the nested stack.
        value: {get_attr: [ asg, outputs_list ] }

Please advise. Thanks

edit retag flag offensive close merge delete

Comments

what is the template version and Heat version you are using?

Qiming gravatar imageQiming ( 2015-02-15 08:07:29 -0500 )edit

heat_template_version: 2014-10-16 I also edited my post to have it in it.

Jet gravatar imageJet ( 2015-02-17 07:52:26 -0500 )edit

try change your outputs into this way?

asg_outputs: value: {get_attr: [asg, outputs, name]}

Qiming gravatar imageQiming ( 2015-02-17 21:17:54 -0500 )edit

that didn't work either. Sill nothing in the outputs. Any other thoughts or ideas?

Jet gravatar imageJet ( 2015-03-27 15:06:26 -0500 )edit

i am facing a similar issue, did you ever got the fix?

alp317 gravatar imagealp317 ( 2018-01-19 08:21:06 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-05-02 12:10:23 -0500

job gravatar image

I think you are missing the attribute names for outputs and outputs_list. Doc says:

outputs: A map of resource names to the specified attribute of each individual resource.

outputs_list: A list of the specified attribute of each individual resource. Requires heat_template_version: 2014-10-16 or higher.

Check out this template

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-02-02 12:57:46 -0500

Seen: 473 times

Last updated: May 02 '15