supernova

Use novaclient with multiple OpenStack nova environments the easy way
Download

supernova Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Other/Proprietary Li...
  • Price:
  • FREE
  • Publisher Name:
  • Major Hayden
  • Publisher web site:
  • https://github.com/rackerhacker/

supernova Tags


supernova Description

supernova is a Python module to use novaclient with multiple nova environments the easy way.You may like supernova if you regularly have the following problems:- You hate trying to source multiple novarc files when using novaclient- You get your terminals confused and do the wrong things in the wrong nova environment- You don't like remembering thingsIf any of these complaints ring true, supernova is for you. supernova manages multiple nova environments without sourcing novarc's or mucking with environment variables.Installationgit clone git://github.com/rackerhacker/supernova.gitcd supernovapython setup.py installConfigurationFor supernova to work properly, each environment must be defined in ~/.supernova (in your user's home directory). The data in the file is exactly the same as the environment variables which you would normally use when running novaclient. You can copy/paste from your novarc files directly into configuration sections within ~/.supernova.Here's an example of two environments, production and development:NOVA_URL=http://production.nova.example.com:8774/v1.1/NOVA_VERSION=1.1NOVA_USERNAME = jsmithNOVA_API_KEY = fd62afe2-4686-469f-9849-ceaa792c55a6NOVA_PROJECT_ID = nova-productionNOVA_URL=http://dev.nova.example.com:8774/v1.1/NOVA_VERSION=1.1NOVA_USERNAME = jsmithNOVA_API_KEY = 40318069-6069-4d9f-836d-a46df17fc8d1NOVA_PROJECT_ID = nova-productionWhen you use supernova, you'll refer to these environments as production and development. Every environment is specified by its configuration header name.Usagesupernova For example, if you wanted to run a list in the production environment:supernova production listShow a particular instance's data in the preprod environment:supernova preprod show 3edb6dac-5a75-486a-be1b-3b15fd5b4ab0aThe first argument is generally the environment argument and it is expected to be a single word without spaces. Any text after the environment argument is passed directly to novaclient.You may optionally pass in the literal string "debug" as the first argument (before the environment argument) to inject the NOVACLIENT_DEBUG=1 option into the process environment to see additional debug information about the requests being made to the API. As before, any text after the environment argument is passed directly to novaclient.A brief note about environment variablessupernova will only replace and/or append environment variables to the already present variables for the duration of the novaclient executation. If you have NOVA_USERNAME set outside the script, it won't be used in the script since the script will pull data from ~/.supernova and use it to run novaclient. In addition, any variables which are set prior to running supernova will be left unaltered when the script exits.Product's homepage


supernova Related Software