Chapter 6. Cloud Resources
This chapter discusses how to configure stacks and monitor cloud resources in RHEL OpenStack Platform.
6.1. Manage Stacks
The Orchestration service provides a framework through which you can define an instance's resource parameters (for example, floating IPs, volumes, or security groups) and properties (for example, key pairs, image to be used, or flavor) using Heat templates. These templates use a human-readable syntax and can be defined in text files (thereby allowing users to check them into version control). Templates allow you to easily deploy and re-configure infrastructure for applications within the OpenStack cloud.
Instances deployed using Heat templates through the Orchestration service are known as stacks. The dashboard allows you to launch, delete, and update stacks from Heat templates. You can input a Heat template directly into the dashboard, or use text files from your local file system or HTTP URL.
6.1.1. Download Sample Heat Templates
Red Hat Enterprise Linux OpenStack Platform includes sample templates you can use to test and study Heat's core functionality. To use these templates, install the openstack-heat-templates package:
#yum install openstack-heat-templates
This package installs the sample Heat templates in
/usr/share/openstack-heat-templates/software-config/example-templates.
6.1.2. Launch a Stack
- In the dashboard, select Project > Orchestration > Stacks, and click .
- Select an option from the Template Source list:
Option Description File Use a local template file on your system. Select your file by clicking Template File > .Direct Input Enter your template directly into the dashboard using the Template Data field.URL Use an external HTTP URL for the template. Specify the template's URL in the Template URL field.NoteRed Hat Enterprise Linux OpenStack Platform includes sample templates. For more details, see Section 6.1.1, “Download Sample Heat Templates”. - Select an option from the Environment Source list:
Option Description File Use a.yamlfile for the environment. Select your environment by clicking Environment File > .Direct Input Enter your environment data directly into the dashboard using the Environment Data field. - Click .
- Specify values for the following fields:
Field Description Stack Name Name to identify the stack. Creation Timeout (minutes) Number of minutes before declaring a timeout on the stack launch. Rollback On Failure If selected, rolls back any changes or updates to the template if the stack launch fails. Password for user USERNAME Temporary password for the user launching the stack. The window may also contain other fields, depending on the parameters defined in the template. Update these fields as required. - Click .
6.1.3. Update a Stack
- If stack components need to be updated, edit your original template.
- In the dashboard, select Project > Orchestration > Stacks.
- Select the stack's Change Stack Template action.
- Select an option from the Template Source list:
Option Description File Use a local template file on your system. Select your file by clicking Template File > .Direct Input Enter your template directly into the dashboard using the Template Data field.URL Use an external HTTP URL for the template. Specify the template's URL in the Template URL field. - Select an option from the Environment Source list:
Option Description File Use a.yamlfile for the environment. Select your environment by clicking Environment File > .Direct Input Enter your environment data directly into the dashboard using the Environment Data field. - Click .
- Specify values for the following fields:
Field Description Creation Timeout (minutes) Number of minutes before declaring a timeout on the stack launch. Rollback On Failure If selected, rolls back any changes or updates to the template if the stack launch fails. Password for user USERNAME Temporary password for the user launching the stack. The window may also contain other fields, depending on the parameters defined in the template. Update these fields as required. - Click . The Orchestration service re-launches the stack with the updated parameters. The Updated column on the Stacks table now reflects how long it has been since the stack was last updated.
6.1.4. Delete a Stack
You can delete a stack through the Stacks table:
- In the dashboard, select Project > Orchestration > Stacks.
- Select Delete Stack from the Actions column of a stack.NoteAlternatively, you can delete multiple stacks simultaneously by selecting their respective checkboxes and clicking .