script for configuring a vif in Xen in non-bridged mode

Creates a new vif device without attaching it to a
bridge. Quantum Linux Bridge Agent will attach the
created device to the belonging bridge.

Change-Id: I1818a92a47882d98e384b57e0fa84a0fa09d40ea
Adds a flag to allow configuring a region

If multiple regions contain an endpoint, extract
the correct endpoint URL from the os_region_name parameter
in nova.conf

Fixes LP Bug #1087735

Change-Id: Id4e4f56f336cd2b092a173b3c8e695b173c76f2a
Expand quota logging

Change-Id: Ied8bdbe2b15aebb313868b65f7660ba7ad0cb3c8
Implements getPasswordData for ec2

This allows commands like euca-get-password to work.

Related to blueprint get-password

Change-Id: Ifad7f699849694b395e018231f9d94985625eae9
Make sure reboot_instance uses updated instance

compute manager's reboot_instance() was doing a check on a stale version
of instance['power_state'] as well as passing stale instance data to the
driver and notification calls.

Fixes bug 1098727

Change-Id: I59f12f09d6e8a364e65f53912c09132a249c88c0
Move network call from compute API to the manager

reboot gets network info from the network manager in the API only to pass
it to the manager.  This causes an un-needed delay on the API call.  It
also causes issues with cells, as with cells you should query the network
service close to that cell.

Fixes bug 1098741

Change-Id: If6badc007ad812e5539a3738911011685cf9df35
Cells: Commit resize quota reservations immediately

There's not an immediate good solution for quotas on resize with cells
due to how it's implemented.  Will have to revisit this with a better
patch later.  This can lead to some out-of-sync issues when deleting
things in certain resize states... or if there are resize errors.

Store migration information on API cell to correctly handle quotas

Revert and confirm of migrations require access to migration information
so they can calculate the reservation correctly. For new resizes, store
a migration record locally so it can be used later on. For old resizes,
keep the previous behavior (for now).

Implements blueprint nova-compute-cells

Change-Id: I356600d1d0d9408b019a9422f795b4244c252052
use postgresql INET datatype for storing IPs

Change-Id: I9a61ffbececc6534b1a9c52e1fa29370db0e12ca
Correct docstring on sizelimit middleware.

Change-Id: I6b20080c4f0b144264dfbaf9e73a779b5c9baed9
enable hacking.py self tests

pep8 and hacking.py (by inheritance) have the ability to run self
tests via docstrings, if we format the comments correctly, and change
the docstring test regex. Include self testing in our normal pep8
tests.

fix the comments to actually be test case compliant

fix nova_import_alphabetical to pass on short import lists (only 2
lines, starting at the beginning of a file)

comment where it doesn't appear that hacking.py tests are working
(though there could be deeper black magic in some of them).

fix a doc string in pep8 self tests that breaks N301

fix the fact that pep8 error strings are supposed to start with
\w\d\d\d, we were just lucking out on some formatting because the
string NOVA happened to be only 4 chars long.

Add a couple of escapes so that we don't recursively fail on our
own fail self tests for comments. (boy that's fun)

Change-Id: I14d5e04cfc092b37ec4967cd7485e9975a5eb820
Fix problem with ipv6 link-local address(es)

Pick up the snippet from glance per markmclain's comment on another review

Change-Id: I6105990fb843a6aadca29b243428bf28510957c7
enables admin to view instance fault "details"

Change-Id: Ia29d265f9f73c2a6dcf36decc635383cc94bec35
Fixes: bug #1096278
Renames the new os-networks extension

Merging the new os-networks extension upstream broke what was considered
a 'released' extension. This patch returns everything to normal and
renames the os-networks extension to os-tenant-networks

DocImpact

Implements: blueprint tenant-networks

Change-Id: I04b17d08c5760fd73736124b36cab0d383767020
More HostAPI() cleanup for cells.

This patch contains further changes needed to support HostAPI() with
cells.  This moves the formatting of hosts API extension responses back
to the extension itself.  Methods for getting service entries have been
added to HostAPI() that can be overriden in a subclass for cells.

Also contains a performance improvement for 'show' in hosts extension.

Change-Id: Ifd8b68ff8d7495f537dff5e01bd3df75c6c5930a
Cells: Add cells API extension

Enables cells-related functionality such as adding neighbor cells,
listing neighbor cells, and showing the capabilities of the local cell.

Implements blueprint nova-compute-cells

DocImpact

Change-Id: Iacc1e68721a7867aeaf233903cbe6d18f09ad96e
Cleaning up exception handling

bug 1094035

Change-Id: I91e134a3632e6b3314fe90d25e2df780aaba54d1
Use testrepository setuptools support.

The previous false-positive bug was fixed upstream in 0.0.13.

Change-Id: Iceb07a511992249c104bbc7c34b7c35e01bd9fbd
Add 'devname' to nova.network.model.VIF class

Add a 'devname' field to nova.network.model.VIF to allow network
drivers to specify a desired TAP device name. Update the Quantum
driver to set a device name, and update the libvirt VIF drivers
to honour it.

Blueprint: libvirt-vif-driver
Change-Id: Ia8dd546af36e7f6c22efd7c696fb58b37aac0061
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Correct misspelling of fake_service_get_all

Correct the misspelling of fake_service_get_all from
fake_servcie_get_all

Change-Id: If8a7917fd5d63808375788858bd2100c3fab34b7
Populate service list with availability zone and correct unit test

Availability zone was removed from the service object and is now added
via a separate call to availabilty_zones.set_availability_zones. Fix
the fake_services_list structure in test_services to reflect that
availability zone is no longer returned but added separately based
on the topic.

NOTE: original fix was reverted, combining unit test fix and original
change here.

bug 1099399
Change-Id: Ic9675a88c2c229d6feb20f5b934458e10c17684f