Petrosian

Introduction

AWS CloudFormation enables users to orchestrate the instantiation of multi-instance services via templates. You can use CloudFormation’s sample templates or create your own templates to describe the AWS resources, and any associated dependencies or runtime parameters, required to run your applications. Similarly, you can configure and monitor cloud resources in Red Hat Enterprise Linux OpenStack Platform using the Orchestration service. 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 OpenStack Heat templates.

Instances deployed using templates through the orchestration service are known as stacks. A user can author the stack templates, or can upload them from other sources. ManageIQ has enabled CloudFormation and Heat integration, and now allows you to launch, delete, and update stacks using the dashboard.

Integration with AWS CloudFormation and OpenStack Heat

ManageIQ integration with AWS CloudFormation and OpenStack Heat provides an ability to:

  • Inventory all AWS CloudFormation and OpenStack Heat stacks and elements into CFME’s VMDB.

  • Model the relationships of instances to their stacks, inclusive of the UI. Example, selecting an instance within a region that is within a stack, the UI shows this on the standard instance view.

  • Model the stack and its elements in the UI.

Note:

When importing a template into ManageIQ, the selected elements are converted according to their type. For example, lists convert to list boxes, and single items convert to text boxes.

Cloud Orchestration

Cloud Orchestration is a service that allows you to create, update and manage cloud resources and their software components as a single unit and then deploy them in an automated, repeatable way through a template. 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 your cloud. A user can author the stack templates, or can upload them from other sources.

Adding a New Orchestration Template

Use this procedure to add new orchestration templates using the dashboard UI.

  1. Browse to menu: Services > Catalogs and select Orchestration Templates in the accordion menu.

  2. Click Configuration, then click Green_Plus_Sign Create a new Orchestration Template. The Adding a new Orchestration Template window is displayed. Adding_a_new_Orchestration_Template

  3. In Name, enter a name for the new template.

  4. In Description, enter a description for the template. Select Amazon CloudFormation or OpenStack Heat from the Template Type list. The default is Amazon CloudFormation.

  5. You can select the Draft box to create a draft template.

  6. Define your new template following the specification structure of the selected Template Type.

  7. Click Add.

Editing Orchestration Templates

Use this procedure to edit orchestration templates using the dashboard UI.

  1. Browse to menu: Services > Catalogs and select Orchestration Templates in the accordion menu.

  2. Select the orchestration template you want to edit from the All Orchestration Templates list.

  3. Click Configuration, then click Edit_Sign Edit selected Orchestration Template. The Edit selected Orchestration Template window is displayed.

  4. You can only edit the Name and Description of a read-only template as there can be stacks associated with the selected template. For templates that are not read-only, you can edit all content in the template as required.

  5. Click Save.

Copying Orchestration Templates

Use this procedure to copy an orchestration template to create a new template.

  1. Browse to menu: Services > Catalogs and select Orchestration Templates in the accordion menu.

  2. Click Configuration, then click Copy Copy selected Orchestration Template. The Copy selected Orchestration Template window is displayed.

  3. You can copy the selected template to create a new template, and include the changes as required.

    Note:

    In order to create the new template its content must be unique.

  4. Click Save.

Deleting Orchestration Templates

Use this procedure to delete orchestration templates using the dashboard UI.

  1. Browse to menu: Services > Catalogs and select Orchestration Templates in the accordion menu.

  2. Select the orchestration template you want to delete from the All Orchestration Templates list.

  3. Click Configuration, then click Delete Remove selected Orchestration Template from Inventory.

  4. A warning window to confirm the permanent removal of the selected item from the VMDB appears.

  5. Click OK.

This instantly deletes the selected orchestration template. Note that only non read-only templates can be removed.

CloudFormation Provisioning via Services

After creating your template, you can add it as a catalog item to the Service Catalog. Stacks can then be created from templates and launched from the Service Catalog.

Adding a New Catalog

Use this procedure to add a new catalog using the dashboard UI.

Adding_a_New_Catalog

  1. Browse to menu: Services > Catalogs and select Catalogs in the accordion menu.

  2. Click Configuration, then click Green_Plus_Sign Add a New Catalog. The Adding a new Catalog window is displayed.

  3. In Basic Info, add Name and Description for the new catalog.

  4. You can assign catalog items in Assign Catalog Item.

  5. Click Add.

Adding a New Service Dialog

Use this procedure to add a new service dialog based on the input parameters defined in the orchestration template.

  1. Browse to menu: Services > Catalogs and click Orchestration Templates in the accordion menu.

  2. From All Orchestration Templates, select the orchestration template you want to create a service dialog from.

  3. Click Configuration, then click Green_Plus_Sign Create Service Dialog from Orchestration Template. The Adding a new Service Dialog from Orchestration Template window is displayed. Adding_a_new_Service_Dialog_from_Orchestration_Template

  4. In Service Dialog Information, add a Service Dialog Name.

  5. Click Save.

Adding a New Catalog Item

Use this procedure to add a new service catalog item using the dashboard UI.

  1. Browse to menu: Services > Catalogs and select Catalog Items in the accordion menu.

  2. Click Configuration, then click Green_Plus_Sign Add a New Catalog Item. The Adding a new Service Catalog Item window is displayed. Adding_a_new_Service_Catalog_Item

  3. Choose Orchestration from Catalog Item Type.

  4. In Basic Info, add Name and Description. Select the Display in Catalog box. Basic_Info

  5. Select the Catalog, Dialog, and Orchestration Template from their respective list.

  6. Select Provisioning Entry Point. The default is

    /Cloud/Orchestration/Provisioning/StateMachines/Provision/default.
    
  7. Click Add.

Ordering Service

Use this procedure to order a service catalog item using the dashboard UI.

  1. Browse to menu: Services > Catalogs and select Service Catalogs in the accordion menu. From All Services catalogs, select the catalog item that you want to order. The Service window with the name and description of the service to be ordered is displayed. Service_Catalog

  2. Click Order. The Order Service window with Options and Parameter is displayed. Order_Service

  3. Enter stack name in Stack Name.

  4. The On Failure value is Rollback by default.

  5. Timeout is optional. You can type the number of seconds to timeout the provision at the provider side.

    Note:

    The number of seconds get converted (rounded) to minutes when ordering the provision through Red Hat Enterprise Linus OpenStack Platform. For example, 100 seconds rounds to two minutes.

  6. You can use the default parameter values from the template, or enter new values as appropriate.

    Note:

    The Parameters vary per dialog; therefore, the parameters shown in the Order Service window may or may not exist depending on the dialog.

  7. Click Submit.

The order request is submitted. After a request has been approved, the various stages of fulfillment are executed. You can see the progress status of the provisioning process in menu:Services[Requests].

Orchestration Stacks

After ordering a service, you can see the progress state of the provisioning process in menu:Services[Requests].

  1. Initially, the Request State shows Pending with its Approval State as Pending Approval. Requests

  2. After the request is Approved, the various stages of fulfillment are executed, and reflect accordingly under Request State. Request_State Request_State

  3. After the Request State is Finished, you can see the stack entry created in menu:Compute[Clouds > Stacks]. In the screen capture below, you can see the heat-stack we created from the catalog item ordered from the Service Catalog as shown in the previous section. Catalog_Item_State

  4. You can click on the stack to see a summary of its properties and relationships, and the instance(s) included in the stack. You can click on the instance(s) to see all instance details. Stack_Summary

You have now deployed instances and its associated collection of resources (called a stack) using an orchestration template.