Cleanup tools/hacking using flake8

Change-Id: Ia151f265bf62e6704de6cc2f2c01963be9e2dd69
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
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
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>
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
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
Use cfg's new global CONF object

Implements blueprint cfg-global-object

Replace nova.flags.FLAGS with openstack.common.cfg.CONF.

In future, we can do a s/FLAGS/CONF/ across the codebase.

Change-Id: Ib293873089a5399febd7a3b0410f66e9bef115f1
Sample config file tool updates

Fixes bug #1000133

Current method of extracting config options will not work
once the global config object gets removed.

1. Update tool to read a cfg.Opt subclass instance or list of cfg.Opt subclass
   instances rather than the FLAG object.
2. Word wrap help messages
3. Insert line between consecutive options
4. Print warnings for missing option help string

Change-Id: Idd17048b6e8db6e939946968e011e68da8585b8c
Move queue_get_for() from db to rpc.

Part of blueprint common-rpc.

The function queue_get_for() is a utility function used by various
consumers of the rpc API.  This function lived in the db API, but never
ended up using anything from the database.  This patch moves it into the
rpc API so that it can be used by other users of rpc once it moves into
openstack-common.

Change-Id: If92675beecff5471b416a929c161b810e3c71939
Add a note on why quota classes are unused in Nova

Quota classes can only be used if you write a custom middleware which
sets the quota_class context attribute. Nothing in OpenStack core does
this.

The only known middleware which does this is the rs_limits turnstile
preprocessor: https://github.com/klmitch/rs_limits

Add a note to the code to give others some chance of figuring this out
for themselves.

Change-Id: I52973f2f4d7f07f5121492e062dd31cadf02aa43
Merge "Revert "API users should not see deleted flavors.""
Update .gitignore

Add:
* ChangeLog
* nova/tests/coverage.xml

Change-Id: I1d0c395cf679e07e304dd878d97734307b685f4c
Merge "fixing issue with db.volume_update not returning the volume_ref"
Merge "Use cfg's new global CONF object"
Merge "Run coverage tests via xcover for jenkins."
Merge "Record instance architecture types."
Merge "Sample config file tool updates"
Merge "Add scheduler filter for trustedness of a host"
Merge "Move queue_get_for() from db to rpc."
Merge "Cleanup tools/hacking using flake8"