openstack-manuals/doc/install-guide-rst/source/heat-verify.rst
KATO Tomoyuki be821a93ff [install-guide] convert heat chapter to RST
just a conversion to rst files.
* ch_heat.xml
* section_heat-install.xml
* section_heat-verify.xml

Change-Id: Iedb8d0485fcae30268853d76e66f9bcf9977c8ae
Implements: blueprint installguide-liberty
2015-07-08 17:58:41 +09:00

2.8 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-0.3.4-x86_64;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 |
    +--------------------------------------+------------+-----------------+----------------------+