New! Put the Heat on Your OpenStack Cloud with Our New Plugin

EC-OpenStackMany of our enterprise customers are using OpenStack for their private or public cloud infrastructure. As part of our recent Dynamic Environments feature, we’ve also released significant improvements to our OpenStack plugin including support for the cool new Heat project.

Heat is the main project in the OpenStack Orchestration program, the rough equivalent of AWS CloudFormation. Heat allows you to describe your intended state using Yaml or Json and behind the scenes it interprets the input and calls the OpenStack APIs for you to create your stack.

As part of your automation workflow in ElectricFlow, you can now include calling Heat to launch or delete stacks, as well as update their configuration.

How to use the ElectricFlow OpenStack plugin to launch and delete a Heat stack

In the below example, I will walk you through a simple set-up in ElectricFlow, using our plugin to create and delete a Heat Stack. In my example scenario, we will create a Heat stack, then send an internal notification (such as alerting your QA team that their environment is ready to use), and then delete the stack.

  1. First, you’ll need to create a Heat Orchestration Template, which would be your input for creating the stack using the plugin. For my example, this is the template i’m using:
  2. In ElectricFlow, create a workflow with four states: Create Stack > Send Notifications > Delete Stack > Done. 
    openstack-flow-1
  3. For the Create Stack state, add an action that calls the EC-OpenStack’s CreateStack procedure. Here’s how I filled it out:
    openstack-flow-2
    Make sure to edit your tenant ID, Image ID and key_name to match your OpenStack configuration.
  4. If you want to, set up your “Send Notifications” state appropriately to configure sending alerts to your team.
    1. Note we’ve included a pause with a manual step- as if your QA team is now going to be working on the environment. Once they are done, they trigger ElectricFlow to tear down the VMs.
  5. For the DeleteStack state, add an Action that calls the EC-OpenStack’s DeleteStack procedure
    openstack-flow-3
  6. Run the workflow and watch the magic happens
    openstack-flow-4

Here is how this looks in your OpenStack console:

openstack-flow-5

openstack-flow-6

The new plugin also allows you to create, attach, delete and extend volumes, creating snapshots, and more.

Learn more about the new capabilities and download the new plugin here.

Got any questions or input- feel free to leave a comment below.

Nikhil Vaze

Nikhil Vaze is a Staff Software Engineer on the Electric Cloud engineering team. He is a full stack engineer and loves to hack on things. You can also find him on github and ask.electric-cloud.com. Nikhil holds a Bachelor of Science in Computer Engineering and Master of Science in Security Informatics from Johns Hopkins University.

Share this:

Leave a Reply

Your email address will not be published. Required fields are marked *

Subscribe

Subscribe via RSS
Click here to subscribe to the Electric Cloud Blog via RSS

Subscribe to Blog via Email
Enter your email address to subscribe to this blog and receive notifications of new posts by email.