Files
openstack-manuals/doc/install-guide/source/heat-verify.rst
Matthew Kassawara b46b1a5689 [install] Liberty updates for glance
Update glance configuration for Liberty and address some
consistency issues.

Changes and testing specific to distribution packages
primarily involve Ubuntu. Other distributions may require
additional patches.

Change-Id: I6c9696b28fe42f00b8a3f9d7344a9807b74accfb
Implements: blueprint installguide-liberty
2015-10-02 08:53:41 -05:00

2.7 KiB

Verify operation

This section describes how to verify operation of the Orchestration module (heat).

  1. Source the admin tenant credentials:

    $ source admin-openrc.sh
  2. The Orchestration module uses templates to describe stacks. To learn about the template language, see the Template Guide in the Heat developer documentation.

    Create a test template in the test-stack.yml file with the following content:

    heat_template_version: 2014-10-16
    description: A simple server.
    
    parameters:
      ImageID:
        type: string
        description: Image use to boot a server
      NetID:
        type: string
        description: Network ID for the server
    
    resources:
      server:
        type: OS::Nova::Server
        properties:
          image: { get_param: ImageID }
          flavor: m1.tiny
          networks:
          - network: { get_param: NetID }
    
    outputs:
      private_ip:
        description: IP address of the server in the private network
        value: { get_attr: [ server, first_address ] }</programlisting>
  3. Use the heat stack-create command to create a stack from the template:

    $ NET_ID=$(nova net-list | awk '/ demo-net / { print $2 }')
    $ heat stack-create -f test-stack.yml \
      -P "ImageID=cirros;NetID=$NET_ID" testStack
    +--------------------------------------+------------+--------------------+----------------------+
    | id                                   | stack_name | stack_status       | creation_time        |
    +--------------------------------------+------------+--------------------+----------------------+
    | 477d96b4-d547-4069-938d-32ee990834af | testStack  | CREATE_IN_PROGRESS | 2014-04-06T15:11:01Z |
    +--------------------------------------+------------+--------------------+----------------------+
  4. Use the heat stack-list command to verify successful creation of the stack:

    $ heat stack-list
    +--------------------------------------+------------+-----------------+----------------------+
    | id                                   | stack_name | stack_status    | creation_time        |
    +--------------------------------------+------------+-----------------+----------------------+
    | 477d96b4-d547-4069-938d-32ee990834af | testStack  | CREATE_COMPLETE | 2014-04-06T15:11:01Z |
    +--------------------------------------+------------+-----------------+----------------------+