Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OS::Heat::ResourceGroup and waitconditions

I am attempting to use an OS::Heat::ResourceGroup with OS::Heat::WaitCondition and unable to get them to function at all. The stack gets created but fails on the waitcondition. If I deploy just the OS::Nova::Server and call the wait condition from only that it works as it should

  ServerGroup1:
    type: OS::Heat::ResourceGroup
    update_policy:
      rolling_update:
        min_in_service: 2
    properties:
      count: 3
      resource_def:
        type: OS::Nova::Server
        properties:
          flavor: { get_param: flavor }
          image: { get_param: image_name }
          key_name: { get_param: key }
          name: server-%index%
          networks:
          - network: { get_param: private_net }
          user_data_format: SOFTWARE_CONFIG
          user_data: { get_resource: server_config }

Above I have resources defined for the wait_condition.

wait_condition:
    type: OS::Heat::WaitCondition
    properties:
      handle: { get_resource: wait_handle }
      count: 1
      timeout: 500
  wait_handle:
    type: OS::Heat::WaitConditionHandle

Do WaitConditions work differently in a resourcegroup ? I am at a loss for what to do next.