Cleanup tools/hacking using flake8

Change-Id: Ia151f265bf62e6704de6cc2f2c01963be9e2dd69
fixes bug 1004153

fixes save_and_reraise_exception call to the right module and removes unused import.

Change-Id: I3e6472fe5ade0cc0c155b73b97c8aabbf9b21398
Localize rpc options to rpc code.

Part of blueprint common-rpc.

Move rpc options from nova.flags into nova.rpc code.  This is necessary
before the rpc code can be moved to openstack-common.

Change-Id: I474c3660e1cbd3ab663571b1e088c84deb905e0b
Run coverage tests via xcover for jenkins.

In the jenkins jobs, we need to run coverage with xunit output so that
jenkins can parse it.

Change-Id: Ie4cfec6f89d6b37554b5345cde92f982397915e2
Remove nova.context dependency from nova.rpc

Part of blueprint common-rpc.

This patch removes the usage of nova.context from nova.rpc.  Everything
needed to implement RpcContext now exists within nova.rpc.

Change-Id: I9e6ec0d22e55d3d4f38e12e0fdd2df745da496f5
Remove nova.log usage from nova.rpc.

Part of blueprint common-rpc.

This patch removes the usage of nova.log from nova.rpc.  This is
necessary before nova.rpc can be moved to openstack-common.  The rpc
logging was not using any of the extra features provided in nova.log as
far as I can tell, so the changes are very simple.

This is the final dependency.  After this change, the rpc code
can be moved to openstack-common without any changes.

Change-Id: I17ca4b691bb8d4f18e618632a2381dd12d31852a
Add scheduler filter for trustedness of a host

Implements blueprint trusted-computing-pools

Add a scheduling filter that filters based upon the trustedness of
a node.  A request is sent to the attestation service to disover the
trustedness of the target node and, only if it matches the `trust_host'
key/value pair in the `extra_specs' for the instance type, then the
instance can be started on that node.  More details can be found in the
docspec for the filter in:

	nova/scheduler/filters/trusted_filter.py

To setup an attestation server go to the Open Attestation Project at:

        https://github.com/OpenAttestation/OpenAttestation

Also add 5 tests for the new filter that verifies:

1)  Schedule works with no trust in the extra specs
2)  Schedule works with trusted instance and trusted host
3)  Schedule works with untrusted instance and untrusted host
4)  Schedule fails with trusted instance and untrusted host
5)  Scheduel fails with untrusted instance and trusted host

Signed-off-by: Don Dugger <donald.d.dugger@intel.com>
Signed-off-by: Fred Yang <fred.yang@intel.com>

Change-Id: Iafa6aed8061f6cd4630367553aee14bd4b0263e2
[PATCH] Allow [:print:] chars for security group names

Fixes bug #1000673

Change-Id: Id1b23d6a0f8d328f65b66f947e8937fa1914a5db
cleanup power state (partially implements bp task-management)

Removed duplicate and invalid state in power_state:
FAILED, SHUTOFF, BLOCKED
This is the first step in cleaning up nova state machine
and do better task management (bp/task-management)

http://wiki.openstack.org/VMState

Change-Id: I586b9058fada5efd468870fb187590fc0e37aa8f
Record instance architecture types.

In order to support image architectures other than x86,
we need to record the instance architecture when it is running.

Glance has the information that we need so we take the
information that glance provides us.

This is the first step for support other arches like armhf.

Change-Id: Ia9ca1353a7cf56955d00d17f7bc1bfb3712a89ab
Signed-off-by: Chuck Short <chuck.short@canonical.com>
Grammar fixes.

Change-Id: Iff3f5765193e0bc98dfc377ee5a9b6f47ae11859
Revert "API users should not see deleted flavors."

This reverts commit f6e62c6120453fa90e2e690753fe6eaf157f2dde. We
need to be able to query deleted flavors for instances that may
be running on deleted flavors.

Change-Id: I9ae80c525c9bc1e3172bd4e7ffe50fe74f2d3a51
Remove Deprecated auth from EC2

Partially implements bp remove-deprecated-auth

Change-Id: Ic500f8b2eb68d6b56fa8c6a7313c550e7b293d5d
Fix the conf argument to get_connection_pool().

The first argument to amqp.get_connection_pool() should be a global
config object, not the Connection.

Change-Id: Ic0b8f32ea42bdebdd883175a1351b3a52f26942d
remove dead file nova/tests/db/nova.austin.sqlite

This file no longer appears to be used.

Change-Id: I6cee63f3e35ed1de68249aa12e828e23cbe65a40
Fix reservation_commit so it works w/ PostgreSQL.

Update the Reservation model so that the 'usage' relationship is
explicitly forced to use an inner join. This fixes an issue on
PostgreSQL which doesn't support 'SELECT FOR UPDATE' on outer
joined queries.

Fixes LP Bug #1003756.

Change-Id: I3c40bd8481855a18391e12d7411762e91b1ef8b0
New RPC tests, docstring fixes.

Also fixes versioning problem in impl_fake
Makes topics configurable by RPC test suites.

Change-Id: I2c7b2413b8e642e7ac1e82d54c052b97d6149659
fixing issue with db.volume_update not returning the volume_ref

fixes bug #1003664

- changed the sqlalchemy db api code to return the volume_ref from the
volume_update method. This was causing the volume  notifications to
have the incorrect information in the payload.
- Fixed up the unit tests because they started failing badly.
- fixed the volume-usage-audit reading the default config values
- fix hacking issue with volume-usage-audit

Change-Id: Iba5634b0c351a6cc0c48b697217a6f85533de93e
Merge "Remove Deprecated auth from EC2"
Add attach_time for EC2 Volumes

According to the EC2 API spec, attach_time has a
timestamp that is returned when running euca-describe-volumes.
Openstack EC2 API currently does not do this.

This fixes bug 1001828

Change-Id: I571b937481f22e8d0f4eb38d4cabcafc5fbb920b
Signed-off-by: Chuck Short <chuck.short@canonical.com>