Sync fixture module from oslo

Changes pulled:

  [f4a4855] Consolidate the use of stubs
  [6111131] Make openstack.common.fixture.config Py3 compliant

Due to the changes to the stub use, a couple of tests (the ones in
test_shelve) needed to have some cleanups removed that depended on some
stubs still being in place and not others. The normal DB cleanup
procedure handles this correctly, so the cleanups were superfluous
anyway.

The test in test_manager was split in two to avoid it resetting its
stubs halfway through. It was testing two separate scenarios anyway, so
it's the correct thing to do regardless.

I'll submit a patch later to get rid of all the superfluous VerifyAll
and UnsetStubs calls across the entire test suite, but for now, let's
just get the gate working again, shall we?

Fixes bug #1239898

Change-Id: I3aa4dfc0261a861e5eaa570849329292d64236ed
remove unused network module from certificates api extension

Closes-Bug: 1240823

Change-Id: I5d37a7bc9ac0ede079feebc4121d3585de44d8bd
Merge "Sync fixture module from oslo"
Merge "fix missing host when unshelving"
graceful-shutdown: add graceful shutdown into compute

The following commit brings in oslo-incubator service.py which
includes calls to support graceful shutdown.  The common service
class has changed to handle signals and manage Services.  When
a signal is received the Services are stopped which in turn
waits on all child threads (Proxy callbacks) to complete.

The oslo-incubator commit hash that was used to update
nova was b5fba9e40d609d63b4dab9ca351f7e22e9d8b35b.

This allows long running commands to complete prior to killing
the process.  This change only works for SIGTERM and SIGINT
signals.

Unit test was added to verify parent stop method is called in
a shutdown condition.

Change-Id: I21a45862f491530523037632fd70c60cc0153c0a
Implements: blueprint graceful-shutdown
Merge "Use `versionutils.is_compatible` for Dom0 plugin"
Merge "Fixes Hyper-V snapshot spawning issue"
VMware: Fix ValueError unsupported format character in log message

Fixes a typo with format string in a log message.

Closes-bug: #1240292
Change-Id: Ia86859089351255cb974ed77b0c5f55a5e953b0e
Add missing ' to extra_specs debug message

Change-Id: Ia4c54111c0221adadd5a9e049a1f048e46cbc608
Fixes unicode issue in the Hyper-V driver

The XML string returned by the WMI API calls requires unicode
conversion before further processing, e.g. with ElementTree.

This affects the vhdutilsv2._get_vhd_info_xml method due to
the textual description. The issue came to light using the
host with Chinese locale, while not present on a en_US host.

Fixes bug: #1229671

Change-Id: I09435a205abfc8ae9470c53c5446cbb28dee0115
Merge "VMware: Fix ValueError unsupported format character in log message"
Make cells 'flavorid' for resizes

Cells should use 'flavorid' (not 'id') for resizes.

bug 1241222

Change-Id: I57b997425f183f25d3ca032c7d8c35c1f49e3afc
Updated from global requirements

Change-Id: I98c312279426c2f95cefea67260afd1677a11184
Add obj_make_compatible()

This adds a method to NovaObject that allows it to convert itself to
and older version, within a compatibility window. So, if an object
had a revision that added or changed the formatting of an attribute,
the obj_make_compatible() method can fix up a primitive representation
before it is sent to a client expecting the older version.

This is primarily intended to be done by conductor when object(s)
are returned from classmethods by potentially-older compute nodes
with older object representations.

Related to blueprint icehouse-objects

Change-Id: I95772e8d3290443c43e57955384ea4fc20b9dcce
Fail quickly if file injection for boot volume

Previously if the user attempted file injection on a booted volume it
would fail and retry several times, which slowed down the instance
spawning.  Instead of attempting file injection, fail quickly, and
log a warning

Fix bug 1188543

Change-Id: I264540de736c2bcb92567826fe5ba672e1244ba2
Merge "Make cells 'flavorid' for resizes"
Merge "Updated from global requirements"
Merge "Update version aliases for rpc version control"
xenapi: migrate multiple ephemeral disks

Current migrate does not move ephemeral disks. This change allows those
disks to be moved. Note there could be several ephemeral disks in the
case where there are ephemeral disks that would be too big for a single
VHD file, or split up to improve performance.

This change disables the ability to resize ephemeral disks. A later
patch will look at enabling resize-up for ephemeral disks. Currently,
during resize, the ephemeral disks are just dropped and re-recreated.

Implements blueprint xenapi-migrate-ephemeral-disks
Change-Id: I8d7d84b54d2a876a510c442bb11a1c64c35feb00
Remove .pyc files before generating sample conf.

Updates the generate_samples.sh script so that we remove
.pyc files in the nova source tree before generating the sample file.

If you don't run unit tests the .pyc files won't get regenerated.
This can cause cryptic errors if you run tests, switch branches,
and then try to regenerate your config files if there are module
differences, etc.

Change-Id: I784a22c1cd7fb2c69ea1d9e02f87bd7da19d76aa