RETIRED, Fuel plugin for ScaleIO with Cinder storage backend integration
Go to file
msalem2 5a8c0713e1 fix format
Change-Id: Idbd4cee88ff2e487c43cf34a2e40de252df055cc
2015-10-27 14:32:13 +09:00
deployment_scripts Updating documentation 2015-10-22 08:28:11 -07:00
doc fix format 2015-10-27 14:32:13 +09:00
repositories Uploading code from temporary repo 2015-10-21 16:26:15 +02:00
spec Uploading code from temporary repo 2015-10-21 16:26:15 +02:00
.gitignore Uploading code from temporary repo 2015-10-21 16:26:15 +02:00
.gitreview Added .gitreview 2015-10-03 07:50:06 +00:00
LICENSE Uploading code from temporary repo 2015-10-21 16:26:15 +02:00
README.md Updating documentation 2015-10-22 08:28:11 -07:00
checksums.sha1 Uploading code from temporary repo 2015-10-21 16:26:15 +02:00
environment_config.yaml Updating documentation 2015-10-22 08:28:11 -07:00
metadata.yaml Uploading code from temporary repo 2015-10-21 16:26:15 +02:00
pre_build_hook Uploading code from temporary repo 2015-10-21 16:26:15 +02:00
tasks.yaml Updating documentation 2015-10-22 08:28:11 -07:00

README.md

Fuel Plugin ScaleIO on Cinder for OpenStack

Build:

Contents

Introduction

Fuel plugin for ScaleIO for enabling OpenStack to work with an External ScaleIO deployment. This ScaleIO plugin for Fuel extends Mirantis OpenStack functionality by adding support for ScaleIO block storage.

ScaleIO is a software-only solution that uses existing servers' local disks and LAN to create a virtual SAN that has all the benefits of external storage—but at a fraction of cost and complexity. ScaleIO utilizes the existing local internal storage and turns it into internal shared block storage.

The following diagram shows the plugin's high level architecture:

ScaleIO Fuel plugin high level architecture

From the figure we can see that we need the following OpenStack roles and services:

Service/Role Name Description Installed in
Controller Node + Cinder Host A node that runs network, volume, API, scheduler, and image services. Each service may be broken out into separate nodes for scalability or availability. In addition this node is a Cinder Host, that contains the Cinder Volume Manager OpenStack Cluster
Compute Node A node that runs the nova-compute daemon that manages Virtual Machine (VM) instances that provide a wide range of services, such as web applications and analytics. OpenStack Cluster

In the external ScaleIO cluster we have installed the following roles and services:

Service Name Description Installed in
SclaeIO Gateway (REST API) The ScaleIO Gateway Service, includes the REST API to communicate storage commands to the SclaeIO Cluster, in addtion this service is used for authentication and certificate management. ScaleIO Cluster
Meta-data Manager (MDM) Configures and monitors the ScaleIO system. The MDM can be configured in redundant Cluster Mode, with three members on three servers, or in Single Mode on a single server. ScaleIO Cluster
Tie Breaker (TB) Tie Breaker service helps determining what service runs as a master vs. a slave ScaleIO Cluster
Storage Data Server (SDS) Manages the capacity of a single server and acts as a back-end for data access.The SDS is installed on all servers contributing storage devices to the ScaleIO system. These devices are accessed through the SDS. ScaleIO Cluster
Storage Data Client (SDC) A lightweight device driver that exposes ScaleIO volumes as block devices to the application that resides on the same server on which the SDC is installed. Openstack Cluster

Note: for more information in how to deploy a ScaleIO Cluster, please refer to the ScaleIO manuals located in the download packages for your platform: http://www.emc.com/products-solutions/trial-software-download/scaleio.htm and/or watch the demo

Requirements

These are the plugin requirements:

Requirement Version/Comment
Mirantis OpenStack compatibility >= 6.1
ScaleIO Version >= 1.32
Controller and Compute Nodes' Operative System CentOS/RHEL 6.5
OpenStack Cluster (Controller/cinder-volume node) can access ScaleIO Cluster via a TCP/IP Network
OpenStack Cluster (Compute nodes) can access ScaleIO Cluster via a TCP/IP Network
Install ScaleIO Storage Data Client (SDC) in Controller and Compute Nodes Plugin takes care of install

Limitations

Currently Fuel doesn't support multi-backend storage.

Configuration

Plugin files and directories:

File/Directory Description
Deployment_scripts Folder that includes the bash/puppet manifests for deploying the services and roles required by the plugin
Deployment_scripts/puppet
environment_config.yaml Contains the ScaleIO plugin parameters/fields for the Fuel web UI
metadata.yaml Contains the name, version and compatibility information for the ScaleIO plugin
pre_build_hook Mandatory file - blank for the ScaleIO plugin
repositories/centos Empty Directory, the plugin scripts will download the required CentOS packages
repositories/Ubuntu Empty Directory, not used
taks.yaml Contains the information about what scripts to run and how to run them

This Fuel plugin will install the ScaleIO Storage Data Client (SDC) service on each Controller node and Compute node in the cluster. This is necessary in order for the VMs in each compute node to utilize ScaleIO Storage:

Plugin Architecture

Before starting a deployment there are some things that you should verify:

  1. Your ScaleIO Cluster can route 10G Storage Network to all Compute nodes as well as the Cinder Control/Manager node.
  2. Create an account on the ScaleIO cluster to use as the OpenStack Administrator account (use the login/password for this account as san_login/password settings).
  3. Obtain the IP address from the ScaleIO cluster

ScaleIO Cinder plugin installation

The first step is to install the ScaleIO Cinder plugin in the Fuel Master:

  1. Download the plugin from the releases section or from the Fuel plugins catalog.

  2. Copy the plugin to an already installed Fuel Master node. If you do not have the Fuel Master node yet, follow the instructions from the official Mirantis OpenStack documentation:

    scp fuel-plugin-scaleio-cinder-1.0.noarch.rpm root@:<the_Fuel_Master_node_IP>:/tmp

  3. Log into the Fuel Master node and install the plugin, if downloaded in the /tmp directory:

    cd /tmp fuel plugins --install /tmp/fuel-plugin-scaleio-cinder-1.0.noarch.rpm

  4. Verify that the plugin has been installed successfully:

Plugin Installation

ScaleIO Cinder plugin configuration

Once the plugin has been installed in the Master, we configure the nodes and set the parameters for the plugin:

  1. Start by creating a new OpenStack environment following the Mirantis instructions

  2. Configure your environment following the Mirantis OpenStack configuration documentation

    OpenStack Node configuration

  3. Open the Settings tab of the Fuel web UI and scroll down the page. Select the Fuel plugin check-box to enable ScaleIO Cinder plugin for Fuel:

    ScaleIO Cluster Parameters

    Plugin's parameters explanation:

    Parameter Name Parameter Description
    caleIO Repo URL| The URL of the ScaleIO sources repository. This is the URL for the required scaleIO zip file that contains the ScaleIO product. The URL can point to an external repository (requires external network access to that repository) or to an internal server in the local network (a local webserver). For our example we are using the URI for the ScaleIO Linux download located in the ScaleIO trial download at EMC.com. |
    serName| he ScaleIO User Name|
    assword| he SclaeIO password for the selected user name|
    caleIO GW IP| he IP address of the the ScaleIO Gateway service|
    caleIO Primary IP| he ScaleIO cluster's primary IP address|
    caleIO Secondary IP| he ScaleIO cluster's secondary IP address|
    caleIO protection domain| ame of the ScaleIO's protection domain|
    caleIO storage pool 1| ame of the first storage pool|
    ault sets list| ist of the fault sets (comma separated)|

    Note: Please refer to the ScaleIO documentation for more information on these parameters

    This is an example of the ScaleIO configuration paremets populated:

    ScaleIO Cluster Parameters

  4. After the configuration is done, you can Add the nodes to the Openstack Deployment. There is a minimum of two nodes for this configuration:

    Service/Role Name Description
    ontroller Node + Cinder Host | node that runs network, volume, API, scheduler, and image services. Each service may be broken out into separate nodes for scalability or availability. In addition this node is a Cinder Host, that contains the Cinder Volume Manager|
    ompute Node | node that runs the nova-compute daemon that manages Virtual Machines (VMs) instances that provide a wide range of services, such as web applications and analytics.|

    OpenStack Node Deployment

    Note: you can run the network verification check and deploy the environment.

    After this is complete you should see a success message:

    OpenStack Deployment Successful

    Note: It make take an hour or more for the OpenStack deployment to complete, depending on your hardware configuration.

ScaleIO Cinder plugin OpenStack operations

Once the OpenStack Cluster is setup, we can setup ScaleIO Volumes. This is an example in how to attach a Volume to a running VM:

  1. Login into the OpenStack Cluster:

    OpenStack Login

  2. Review the Block storage services by navigating: Admin -> System -> System Information secction. You should see the ScaleIO Cinder Volume.

    Block Storage Services Verification

  3. Review the System Volumes by navigating to: Admin -> System -> Volumes. You should see the ScaleIO Volume Type:

    Volume Type Verification

  4. Create a new OpenStack Volume:

    Volume Creation

  5. View the newly created Volume:

    Volume Listing

  6. In the ScaleIO Control Panel, you will see that no Volumes have been mapped yet:

    ScaleIO UI No mapped Volumes

  7. Once the Volume is attached to a VM, the ScaleIO UI will reflect the mapping:

    ScaleIO UI Mapped Volume

Contributions

The Fuel plugin for ScaleIO project has been licensed under the Apache 2.0 License. In order to contribute to the project you will to do two things:

  1. License your contribution under the DCO + Apache 2.0
  2. Identify the type of contribution in the commit message

1. Licensing your Contribution:

As part of the contribution, in the code comments (or license file) associated with the contribution must include the following:

Copyright [yyyy] [name of copyright owner]

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

This code is provided under the Developer Certificate of Origin- [Insert Name], [Date (e.g., 1/1/15]”

For example:

A contribution from Joe Developer, an independent developer, submitted in May 15th of 2015 should have an associated license (as file or/and code comments) like this:

Copyright (c) 2015, Joe Developer

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

This code is provided under the Developer Certificate of Origin- Joe Developer, May 15th 2015”

2. Identifying the Type of Contribution

In addition to identifying an open source license in the documentation, all Git Commit messages associated with a contribution must identify the type of contribution (i.e., Bug Fix, Patch, Script, Enhancement, Tool Creation, or Other).

Licensing

The fuel plugin for ScaleIO is licensed under the Apache 2.0 license

Copyright (c) 2015, EMC Corporation

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Support

Please file bugs and issues at the Github issues page. For more general discussions you can contact the EMC Code team at Google Groups or tagged with EMC on Stackoverflow.com. The code and documentation are released with no warranties or SLAs and are intended to be supported through a community driven process.