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
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
Cleaning up exception handling

bug 1094035

Change-Id: I91e134a3632e6b3314fe90d25e2df780aaba54d1
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
minor improvements to nova/tests/test_metadata.py

There are 2 changes here:
 a.) previously we checked for existance of 'user-data' in
     a response, when it clearly would not have been there as
     the key name is 'user_data'.
 b.) Insist that top level keys in the openstack metadata do not have '-'.
     This is just a consistency thing.  Its very easy for someone to
     unintentionally add a key named 'my-field'.  We want to enforce
     keys to be named consistently using '_' rather than -.
     For reference, current keys are:
       files uuid availability_zone hostname meta public_keys name

Change-Id: Ia73050c5313b3524dd1d341528cc5f916e603c64
Merge "Renames the new os-networks extension"
Merge "Make sure reboot_instance uses updated instance"
Merge "Move network call from compute API to the manager"
Merge "Populate service list with availability zone and correct unit test"
Merge "More HostAPI() cleanup for cells."
Merge "Cells: Commit resize quota reservations immediately"
Merge "minor improvements to nova/tests/test_metadata.py"
Merge "Cleaning up exception handling"
Merge "Add 'devname' to nova.network.model.VIF class"