Code Monkey home page Code Monkey logo

veta's Introduction

Veta

Veta is a backup manager for OpenStack, supporting fine-grained backup schedules and retention policies.

Veta supports both regular nova snapshots and Gridcentric VMS live-images as snapshot backends.

Installation

Veta must be installed on API nodes, Horizon nodes (if the Horizon plugin is desired) and on a controller node designated to run the Veta manager.

To install Veta, clone the repository and run:

sudo python setup.py install

Setting up API extensions

You should add the Veta extension to your nova.conf in order to expose the API. You can do so by appending the following lines to nova.conf:

osapi_compute_extension=nova.api.openstack.compute.contrib.standard_extensions
osapi_compute_extension=veta.extension.Veta_extension

Next, you should restart the API server.

sudo restart nova-api

Setting up the manager

If you will be using Keystone authentication for Veta (e.g. if your Glance installation is using Keystone to authenticate requests), you will need to create a service account for Veta:

keystone user-create --name veta --tenant-id <SERVICE TENANT ID> --pass <VETA SERVICE PASSWORD>
keystone user-role-add --user-id <VETA USER ID> --tenant-id <SERVICE TENANT ID> --role-id <ADMIN ROLE ID>

(See the keystone tenant-list and keystone user-role-list commands for help on getting the appropriate <SERVICE TENANT ID> and <ADMIN ROLE ID> parameters.)

You will then need to add the following options to /etc/nova/veta-manager.conf, under the [DEFAULT] section:

[DEFAULT]
veta_auth_strategy=keystone
veta_auth_user=veta
veta_auth_tenant=<SERVICE TENANT NAME>
veta_auth_password=<VETA SERVICE PASSWORD>
veta_auth_url=<KEYSTONE URL> # Defaults to https://127.0.0.1:5000/v2.0

Veta comes with an upstart script for automatically starting on upstart-based systems. To start veta manually, use:

sudo start veta-manager

Setting up the dashboard

Note that the veta novaclient plugin must be installed on the Horizon node(s) in order for the Veta Horizon plugin to work.

To enable the Veta Horizon plugin, modify /etc/openstack-dashboard/local_settings.py (on Ubuntu Server 12.04) or /etc/openstack-dashboard/local_settings (on RHEL 6.4 / CentOS 6.4) and add the following lines:

import sys
mod = sys.modules['openstack_dashboard.settings']
mod.INSTALLED_APPS += ('veta.horizon',)

Then, restart the web server with service apache2 restart and navigate to Horizon. There will be a new panel labeled "Instance Backups".

Setting the Snapshot Driver

To set the backup snapshot driver, you must add the option veta_snapshot_driver to a configuration file that is read by both nova-api and veta-manager, for example the /etc/nova/nova.conf file.

The following drivers are included with Veta:

  • novadriver.NovaSnapshotDriver (default) - uses Nova "snapshots" (i.e. the output of nova image-create for instance backups.
  • cobaltdriver.CobaltSnapshotDriver - uses Cobalt live images for instance backups.

For example, to use the Cobalt driver, append the following to /etc/nova/nova.conf:

veta_snapshot_driver=cobaltdriver.CobaltSnapshotDriver

veta's People

Contributors

amscanne avatar mnaser avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.