Check libvirt version earlier

Running libvirt 0.8 causes an exception to be thrown before
has_min_version() is run, resulting in no error message about version
being logged.  This change moves the version check before the libvirt
calls are made.

Change-Id: Ifaae18c6686d72fb79fc32081c4087084ae8bbb9
Fixes: bug #1190232
Update to the latest stevedore

Use a version of stevedore that does not try to
install distribute.

The requirements change is in
https://review.openstack.org/#/c/32738/

Change-Id: I277a282ed86743a25138c431045af1f0ccb11b39
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
Don't advertise mute cells capabilities upwards

Fixes bug 1190473

Change-Id: Ic61b549869b1434df81407e499ec8b00ba8f328f
Remove unused arg from make_class_properties.getter method

This patch simply cleans up an unused argument (typefn) from the
nova.objects.base#make_class_properties.getter method.

Change-Id: I6a1bd927bb799d00cc6f0b250609e90e3838fa29
Updates nova.conf.sample

Change-Id: Iabd856748258b224308588f5c54052df2e247a62
Replace utils.to_bytes() with strutils.to_bytes()

The to_bytes() function have moved to oslo.
Replaced/removed the to_bytes() function with the one in strutils

Change-Id: I14c33c6fb86db3088c11e02ce6e38ec022fad042
Fix flavor extra_specs filter doesn't work for number

In extra_specs_ops.match(value, req) function, req are
always string,but value of host capabilities may be number.
When filter host by comparing number with string,even right
os-extra_specs can't pass filter.
We should convert value to string to make the filter work
correctly.

Fixes: bug #1186881

Change-Id: I3e1ab60109673450caae3a7f0bc4a3610ae619ef
Improved tests for instance_actions_*

Improved test assertions
Added tests to cover exceptions in db.api

blueprint db-api-tests

Change-Id: Iae1033ae6e67f62f9353b4660468ea766af38035
Remove unused cert db method.

nova.db.sqlalchemy.api contained a certificate_get() method that was
unused.  It was not in the main db.api.  This method was also the only
reference to CertificateNotFound, so remove that as well.

Change-Id: Iba9aece2302e2f175e5d60e48b23959885a81c8d
Add missing tests for certificate_* methods

There was no tests in test_db_api for certificate_*
methods.

Add tests to ensure that all works.

blueprint db-api-tests

Change-Id: I1ef8908d723676e6109a5711e2f8cb439e5f2985
Raise max header size to accommodate large tokens.

The max header is exceeded in the following scenario
- Auth tokens built with a keystone v3 API catalog
- A catalog with approximately 8 or more endpoints defined

Specifically, when heat is enabled in tempest gating, the following
tests are failing:
- tempest.api.compute.test_auth_token.AuthTokenTestJSON.test_v3_token
- tempest.api.compute.test_auth_token.AuthTokenTestXML.test_v3_token

An equivalent fix will be required for all projects which use
eventlet.wsgi.

Fixes bug: #1190149

Change-Id: Ia0a2a48461593fdc0f5be57bcc9f364c3e3f8b66
Merge "Raise max header size to accommodate large tokens."
Merge "Remove unused cert db method."
Revert "Delegate authentication to quantumclient"

This reverts commit dd9c27f999221001bae9faa03571645824d2a681.

When this patch was merged, we were suspicious about whether it was safe
to cache the client object and have it used by multiple greenthreads.
We decided it was safe and merged it.  After thinking about it and
discussing it further, it is really a bad idea.  Sharing httplib2
connections is not considered thread-safe.

quantumclient.client.HTTPClient inherits from httplib2.Http.  The
following page says sharing instances of this object between threads is
not safe:

  https://developers.google.com/api-client-library/python/guide/thread_safety

  "The google-api-python-client library is built on top of the httplib2
  library, which is not thread-safe. Therefore, if you are running as a
  multi-threaded application, each thread that you are making requests
  from must have its own instance of httplib2.Http()."

Potentially fix bug 1192131.  Even if it doesn't fix that bug, this
needs to be reverted anyway.

Change-Id: I2e4bf5e7b6458cd7b76e30847fe07f06b25c34f7
Merge "Remove unused arg from make_class_properties.getter method"
Merge "Fix flavor extra_specs filter doesn't work for number"
Merge "Revert "Delegate authentication to quantumclient""
Merge "Updates nova.conf.sample"
Merge "Improved tests for instance_actions_*"
Merge "Update to the latest stevedore"