Skip to content

buhman/python-lunrclient

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LunrClient

An HTTP Client for use with the Lunr Storage Backend for Cinder

Installation

$ pip install python-lunrclient

Usage

This package provides 2 command line tools lunr an inteface to the lunr API and storage an interface to the storage API.

Lunr API commandline usage

$ lunr -h
Usage: lunr <command> [-h]

Command line interface to the lunr api

Available Commands:
   node
   account
   volume
   export
   env
   backup

Storage API commandline usage

$ storage -h
-- Warning: Failed to load tools module, Missing dependency?
Usage: storage <command> [-h]

Command line interface to the lunr storage api

Available Commands:
   volume
   status
   export
   backup
   env

both lunr and storage take advantage of some environment variables you can get both commands to spit out what environment vars it will use by executing lunr env or storage env. Currently the following are supported

export OS_TENANT_NAME='thrawn'
export LUNR_ADMIN='admin'
export LUNR_TENANT_ID='admin'
export LUNR_STORAGE_URL='http://localhost:8081'
export LUNR_API_URL='http://localhost:8080'

Lunr API Examples

Create a 1 gig volume with a uuid for a name and use the default volume type

$ lunr volume create 1

List the available volumes for OS_TENANT_NAME

$ lunr volume list

Delete a volume

$ lunr volume delete my-volume

Storage API Examples

Create a 1 gig volume with a uuid for a name

$ storage volume create 1

List the available volumes on the storage node

$ storage volume list

Delete a volume

storage volume delete my-volume

Storage Tools

There are some additional storage server tools that are only available when run on the storage node

$ storage tools -h
Usage: storage tools <command> [-h]

A collection of misc Storage Node tools

Available Commands:
   read
   randomize
   clone
   write
   backup

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%