Fix import/export; only download when needed

If image is a filepath, then we're not using image service so
no need to download from glance

Change-Id: Id6f2b9269bee4471f0accf068e9ce6051691aa1c
Policy distribution through nova.

Implementing functionality in cobalt to allow distribution of
vmspolicyd policies to all known vms hosts. The client takes a path to
a locally accessible policy file, and the contents of this file is
copied into all the policy definition files on all hosts. The compute
service does so basic validation on the provided definitions before
installing them.

Change-Id: I3506a00b9b65d7df6d0a9f878a2b99d0b5c1bbbf
Update setup.py to allow easier packaging in different environments.

* deduplicate common setup keywords

* setup packages as namespace packages

It is actually valid to have a python package that lacks __init__.py
(like the gridcentric module does) it's just a different type of package
called a namespace package. More information on those here:

http://cdent.tumblr.com/post/216241761/python-namespace-packages-for-tiddlyweb
http://www.siafoo.net/article/77#multiple-distributions-one-virtual-package

* set PACKAGE and VERSION correctly on pip install

sdists do not preserve environment variables they were generated with,
so later attempts to pip install them will fail.

this implements a system for making package metadata sticky when an
sdist is created, by parsing the PKG-INFO and preferring those values.

* Retrieve the version from git tags

This is only one of the many ways to do it.

Change-Id: I288f55ae565d71fbeaa955ff46485c16a7c24b22
Adding standard ubuntu .conf path to Cobalt.

Change-Id: I86e73e02c00969bf0bf021a941fd4709cbe82a38
Merge "Update setup.py to allow easier packaging in different environments." into stable/folsom
(OS-133 Fix) More informative image names

Glance live image names now reflect display names instead of "instance-xxxxx"
The extension for *.gc image was removed, and type changed to "Live-Image"
Disk files still have .#.disk extension, but with updated display name.

Note: locally "instance-xxx" and ".gc" are still used because vms requires it.
Name is converted on upload/download to glance.

Change-Id: I4375d8895b09f5544434bdd1a6099daef0dfd23e
Fixing type error for target.

Change-Id: I447dce9ebced4f23bf144e33dd15082b43bf9fed
Make support for instances with attached volumes an explicit capability.

This is not universally supported across the board (essex...). In immediate
practical terms, it will help grinder.

Change-Id: Ic41a7c43bf502164299e18f6a0ef5ed1d1721b67
Merge "(OS-133 Fix) More informative image names" into stable/folsom
Merge "Make support for instances with attached volumes an explicit capability." into stable/folsom
Fix OS-142: Lock source instance during bless

Source instance will no longer be able to be deleted, rebooted, etc. while being blessed.

Upon deletion "Cannot delete while blessing. Please try again later." is displayed.
Upon reboot, pause, etc. "ERROR: Cannot 'pause' while instance is in task_state blessing (HTTP 409)"
is displayed. This fix applies for both admin and regular users.

Change-Id: I8a849fbdacd56eee1b97925b65d99440a337c2ed
Allow raw image types to be created for launched instances

fixes OS-158

If an instance specifies a ramdisk or kernel then these images are
raw copied into the instances directory instead of having a qcow2
overlay. For some reason, when having the qcow2 over the qemu
process fails and the instance is toast. We need to ensure that we
can have the ramdisk and kernel copied as raw into the instances
directory.

Change-Id: Ic9342181be8f4015322264a692f676958ea1435c
Pre export name fix

Updated to reflect usage of file_name instead of name when downloading from
glance.
don't download _base image on launch

Change-Id: I6bed4511f0bd035bfa87f562e728a3be8049ebd9
Update setup.py to contain the list of dependencies.

Change-Id: I54b5d3246f6fdcdc2320b3819f963af461ea33e3
Update setup.py to contain the list of dependencies.

Change-Id: I54b5d3246f6fdcdc2320b3819f963af461ea33e3

Conflicts:

	setup.py
Update setup.py to contain the list of dependencies.

Change-Id: I4b034455f4f38028a4c47d9a70793265dc207c10
Updating hypervisor_hostname on launched instances.

In Grizzly instances now have a 'node' field that maps to the
'hypervisor_hostname' attribute instances returned by the API.
On cobalt-compute startup we query the hypervisor through the
vms_conn to determine this value and apply it to instances whenever
we set their host field.

Change-Id: I0be721b351c4d6429c77ed3134e642cd902509fd
Create symlink from LVM path to qcow2 file when launching

Regardless if nova is configured to use LVM cobalt will always use
qcow2 files when launching an instance. However, we still need
something at the LVM path location because nova will reconfigure
things on reboots. To handle this cobalt will create a symlink at
the LVM path location that targets the qcow2 root disk.

Change-Id: I41411d27d4dea2de5d79be4a66b8ca9286ce5335
Merge branch 'stable/essex' into stable/folsom-essex-merge