Jump to: navigation, search

Rally/ServerProviders

< Rally
Revision as of 20:30, 9 December 2013 by Mikhail Dubov (talk | contribs) (Introduction)

Server providers: Introduction

Server providers in Rally are typically used by [DeployEngines|deploy engines] to manage virtual machines necessary for OpenStack deployment and its following benchmarking. The key feature of server providers is that they provide a unified interface for interacting with different virtualization technologies (LSX, virsh etc.) and cloud suppliers (like Amazon).

Every server provider should implement the following basic interface:

  • create_vms(image_uuid, type_id, amount), which should create the requested number of virtual machines of the given type using a specific image. The method should also return the list of created servers wrapped in special Server entities.
  • destroy_vms(), which should destroy all virtual machines previously created by the same server provider.

Below you will find a short but informative description of server providers implemented in Rally.


Available Server providers

DummyProvider

Description

This provider does nothing, but returns endpoints from configuration. This may be useful if you have specific software/hardware configuration ready to deploy OpenStack.

Configuration Example

   {
       "name": "ExampleEngine",
       "provider": {
           "name": "DummyProvider",
           "credentials": ["root@host1.net", "root@host2.net"]
       }
   }


VirshProvider

Description

This provider creates virtual machines on host provided by configuration.

Configuration Examples

Clone VM from pre-built template using virsh

   {
       "name": "VirshProvider",
       "connection": "user@host.net",
       "vm_name": "virsh-test",
       "clone_from_template": "devstack-template"
   }

LxcProvider

Description

This provider creates lxc containers on host provided by another provider. Container is attached to the same network as host.

Works well with ubuntu-13.10 hosts.

Configuration Example

   {
           "name": "LxcProvider",
           "containers_per_host": 1,
           "distribution": "ubuntu",
           "ipv4_start_address": "192.168.1.43",
           "ipv4_prefixlen": 16,
           "host_provider": {
               "name": "DummyProvider",
               "credentials": ["root@192.168.1.42"]
           }
   }