Make sure periodic instance reclaims continues on error

If an instance reclaim operation fails with an exception, no more
instances will be reclaimed. If the failure is permanent, this will
block other instances from being reclaimed for as long as it remains.

Resolves bug 1195029.

Change-Id: I0379d16a1f74344ef44c843ce19a505e31e79bfa
Remove notify_on_any_change option

This option isn't really needed, since the case it defends is already
covered by notify_on_state_change. Let's simplify the configuration a
bit by removing it.

DocImpact

Change-Id: I35071abdea2d2380d79c07e9134e095bda65a13d
Signed-off-by: Julien Danjou <julien@danjou.info>
Clear out service disabled reason on enable

When a service gets re-enabled, clear out the 'disabled_reason' column.

Fix bug 1197423.

Change-Id: I78c9e40c65e96fbc6eff0e3426cfd87b0810cd69
Remove doc references to distribute.

Change-Id: I9ea56b6d765fa7214e4bcc0dbca877b411171eea
Fix formatting errors in documentation

Fix a few rst formatting errors in the docs so
sphinx does not generate warnings.

Change-Id: I000d2ca3961678b47ead7a7885f3bc88ed7babc7
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
Remove references to deprecated DnsMasqFilter

In https://review.openstack.org/#/c/16803/ compatibility
for FLAGFILE has been added. It is time to remove this
again for Havana.

Change-Id: I1304132320f7d7d381b9e6548337afed52f1e96a
Sync harmless changes from oslo-incubator

Includes these commits:

  3948aee Highlighting the deprecated nature of 'log-format'.
  b21fc56 Fix bad default for show_deleted
  d28fa69 python3: Add python3 compatibility.
  0bf03b7 Add network_utils.urlsplit
  e456727 Remove useless logging in networks_utils
  7119e29 Enable hacking H404 test.
  b41862d Use param keyword for docstrings
  2f01388 Use Python 3.x compatible except construct
  e3545f8 Enable hacking H402 test
  484a1df Enable hacking H403 test
  35660da Enable hacking H401 test
  874249e Add support for requirements.txt.
  b135234 Remove the notifier and its dependencies from log.py
  926b3e9 Fixes import order nits

Changes which may look not look so harmless:

 - the common get_admin_context() method is not used by Nova
 - network_utils.urlsplit() is added but not used yet
 - suppport for requirements.txt is added to patch_tox_venv but
   actually it doesn't use those files

Change-Id: I03e67f4648dcaf57620f11e63cfd8e7dbe3665cb
Change db.api.instance_type_ to db.api.flavor_

Rename nova.db.api and nova.db.sqlalchemy.api functions from
instance_type_ to flavor_.  Since this is a fairly large change, leave
backwards compatibility in until all dependant changes (moving code from
db.instance_type_*).

Partially implements bp flavor-instance-type-dedup

Change-Id: Ie81c66e13056537ca26ff04defdb6eb86d5c462a
Enable core API-v3 to be optional when unit testing

Long ago init_only was added to avoid load all extension during unit tests and
speed it up.
So this patch enables to *not* load all core API-v3.

Related to bp nova-v3-api

Change-Id: I6acd264ace4440724b944009dff8575df8ad3512
Add unique constraint to ConsolePool.

Added unique constraint to ConsolePool model
`uniq_console_pools0host0console_type0compute_host0deleted` ('host',
'console_type', 'compute_host', 'deleted').
Added new exception `ConsolePoolExists`. Function `console_pool_create`
updated. Tests updated respectively.

blueprint db-enforce-unique-keys
Fixes bug 1185450

Change-Id: I095a52f2d21ec48b079e61034d80bcb9e7fcab79
Port images metadata functionality to v3 API Part 2

The images metadata functionality is moved for the V3 API from
core to an extension and is now accessed via
/os-images/{image_id}/os-image-metadata instead of
/images/{image_id}/metadata.

Consensus appears to be that we continue to need this
functionality for v3 because some deployers disable the public
image endpoint due security concerns and whether this will be
fixed in glance for Havana. Deployers can disable this extension
if they do not want it.

Partially implements blueprint nova-v3-api

Change-Id: I13a6d049a29a452ad269dba7b59b03718ada2eab
Add support for live_snapshot in compute

This adds live_snapshot support to the compute api, the compute
manager, and the driver interface. The api extension and an
implementation for libvirt will come in follow-on-patches.

Part of blueprint live-snapshot-vms

Change-Id: I0be54d1bbe6057dbaf497b0b71cf68658c0b1832
Properly pin pbr and d2to1 in setup.py

We did nova first in the pbr transition, so it didn't get the pin
we added to everyone else later on.

Fixes bug 1199923

Change-Id: I04c3e810f49a1e4388496ff5226cf094c787d1a9
Document rate limiting is per process

Since rate limiting is is done in memory, it is per process.  Document
this to warn users.

DocImpact

Change-Id: I580a4081550019914f074c8b1abdf435f3f24ca1
Port admin-actions API into v3 part2

This patch contains the changes required to adapt the admin-actions
extension and the corresponding unittest to the v3 framework.

Partially implements bp v3-api-extension-versioning

Change-Id: Ib109f52999de8e986c258d8d9d35d8193e8b0851
port Host API into v3 part2

this port host api into v3, and fix the xml/json inconsistance issue
in it.

Partially implements: bp v3-api-extension-versioning
Partially implements: bp v3-api-inconsistencies

Change-Id: I8a9ca6765f448f787fd69ff1cb0f8f9e6e315522
Make compute_api.get() use objects natively

This finishes what a previous patch started, which makes get()
query instance objects directly.

Most of the change in this patch is just accounting for minor
differences in the unit tests.

Related to blueprint compute-api-objects

Change-Id: Ib8346bcd5a57279a8f6d57adc621910f67ef1b53
Revert "Sync latest rpc changes from oslo-incubator"

Fixes bug #1200069

Looks like there's a serious issue with the kombu heartbeat implementation.

This reverts commit 386a8c21ec6acbaa059eabd166dbf7feea2fad7d

Change-Id: I354f5e3c5af110542a3c25d117b14e7be02f169b
Merge "Enable core API-v3 to be optional when unit testing"
Merge "Make compute_api.get() use objects natively"