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
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
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
Align ApiEc2TestCase to closer match api-paste.ini

Change-Id: I02f5d6bc66fd372132d4d01e2027c1d3d8467b91
Make xenapi fake match real xenapi a bit closer

xenstore_data is a dictionary in the real xenapi and keys get deleted
from xenstore_data and other_config when removing them instead of being
set to None.

Change-Id: I462b04b6e1dc5ad4abf05cc50538121811c2334e
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
Merge "Align ApiEc2TestCase to closer match api-paste.ini"
Merge "Make xenapi fake match real xenapi a bit closer"
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
Merge "Fix the conf argument to get_connection_pool()."
Merge "Revert "API users should not see deleted flavors.""
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"