bug #996880 change HostNotFound in hosts to HTTPNotFound

Change-Id: Ib8b7f1f26c2370e2a82b491d8774797985c0ae98
xensm: Fix xensm volume driver after uuid changes

Fixes Bug 1013436
Minor fixes after uuid in volumes were changed from
integers.
The parameters passed to create_vdi have changed, so
modify the call from SM code accordingly

Change-Id: I3d61f0221b23bba9a9e218209d5293be8960e2e2
Add CPU arch filter scheduler support

In a mixed environment of running different CPU architecutres,
one would not want to run an ARM instance on a X86_64 host and
vice versa.

This scheduler filter option will prevent instances running
on a host that it is not intended for.

The libvirt driver queries the guest capabilities of the
host and stores the guest arches in the permitted_instances_types
list in the cpu_info dict of the host.

The Xen equivalent will be done later in another commit.

The arch filter will compare the instance arch against
the permitted_instances_types of a host
and filter out invalid hosts.

Also adds ARM as a valid arch to the filter.

The ArchFilter is not turned on by default.

Change-Id: I17bd103f00c25d6006a421252c9c8dcfd2d2c49b
Signed-off-by: Chuck Short <chuck.short@canonical.com>
Replaces functions in utils.py with openstack/common/timeutils.py

Fixes bug #1008628

1. Edit openstack-common.conf and import nova/openstack/common/timeutils.py
2. Move time related functions from utils.py to timeutils.py
3. Replace following functions in utils.py with timeutils.py
- isotime
- parse_isotime
- strtime
- parse_strtime
- normalize_time
- is_older_than
- utcnow_ts
- utcnow
- set_time_override
- advance_time_delta
- advance_time_seconds
- clear_time_override
4. Remove datetime related functions and datetime related unittests

Change-Id: I9a92be286fb071b6237dd39495d88dae106e2ce0
Enforce an instance uuid for instance_test_and_set.

This method only has one caller (compute/api.py) and it turns out
was already always getting a uuid, so this is a relatively minor
change.

Change-Id: I5beae5a707be053903f40cc98ed43b66eaf945a9
added deprecated.warn helper method

provide a convenience method for indicating in code that a config
option the operateor will have to deal with exists in their environment.

Change-Id: I17b0c120d54b1db75c6bb29d107e4a15a5202e76
Merge "Add CPU arch filter scheduler support"
Merge "Replaces functions in utils.py with openstack/common/timeutils.py"
Merge "added deprecated.warn helper method"
Imports cleanup

Fixes bug #1013770

1. Reorder imports by full module path
2. Insert two blank lines after the last import

Change-Id: I294ac3ab528f17a72811392d1732158e9487f3bf
Handle missing server when getting security groups

Fix bug 1010486.

Treat InstanceNotFound as a 404 when querying the security groups of server
that does not exist. Also removes old exception translation, ApiError no
longer exists and NotAuthorized shouldn't need handling at this level.
Includes tweak suggested by Mark McLoughlin in review.

Change-Id: Iaeada84dbadc232968f792c6f4855bf61cc5a5ae
Merge "Enforce an instance uuid for instance_test_and_set."
moved update cache functionality to the network api

previously the network manager get_instance_nw_info
was responsible for updating the cache. This is to
prevent calling that function in a confusing way.

part 2 of this patch was fixing bug997763
floating_ip_associate was removed from the compute
api. network api associate is now called directly.
network api floating_ip functions now require
instance as an argument in order to update cache.

Change-Id: Ie8daa017b99e48769afbac4862696ef0a8eb1067
Merge "xensm: Fix xensm volume driver after uuid changes"
SM volume driver: DB changes and tests

Fixes the storage manager db api code in minor ways
like checking for duplicates during creation.
Adds tests for the storage manager db api.

Change-Id: I00f431ed9137b140f46b4e30cb953792d7307d22
Xen Storage Manager: tests for xensm volume driver

Change-Id: Ifebbdbf70152c5d6587dc26a8789150a7674a768
Add instance details to notifications

bug 1006120

Ceilometer needs to collect more data for determining the billing rate
for an instance. The most efficient way to get that data is to have it
included in the notifications sent by nova, rather than looking it up
after the notification is received.  This change adds details about the
location, size, and "type" of the instance to the existing notification
data. It also organizes the set of values into groups and adds comments
to clarify those groupings.

Change-Id: I01b7b550b0c4a5da1cc0dc764c9a6cb0161bf7e5
Fix missing import in compute/utils.py

Fixes bug 1014829

Change-Id: Id4c9225b4b2cec81519155ab660370be4448e366
Merge "bug #996880 change HostNotFound in hosts to HTTPNotFound"
Merge changes Ifebbdbf7,I00f431ed

* changes:
  Xen Storage Manager: tests for xensm volume driver
  SM volume driver: DB changes and tests