Fix scheduler_available_filters help

The help speaks about nova.scheduler.filters.standard_filters which does
not exist anymore. The default has been changed to all_filters with
commit 0d9ce831 but the help text was not updated so far.

Change-Id: I38dfadabe02489d8d40986e7f4d06c0c68097516
make get_by_host use slave in periodic task

In periodic task functions nova prefer to use slave db
instead of primary db. This patch makes function
_get_host_volume_bdms to use slave db

Change-Id: Ia297524fc1acf06ab708509c805d14e215b10b86
Indicate whether service is down for mc driver

memcache driver for service didn't log any clue
whether the service is down or not. This patch add a
log to indicate it at DEBUG level.

Closes-Bug: #1382564

Change-Id: I05e12b56411f4475d1ef50e90e09abf75d7355b0
Only filter once for trusted filters

In spawn process the filters will be used only once if the
run_filter_once_per_request is set to True. This apply to the hosts
that will not be affected by previous instance resource consumption.
Trusted filter should be in this kind of filters.

Change-Id: Ia223797798679fecfcf90983ca81a9f395e67c3b
Network object: add missing translations

An exception was raised and not translated in commit
e134f81d85f42b87238f7786b0b50066129c968d.

Change-Id: I1c65041bd3a7152088f1660800d3a58f6fe12eea
Remove old Baremetal Host Manager

Baremetal was deprecated in Juno and its driver was removed in
46ed619b9ab1d61582f36155eea0d4a88f31fd50

This cleans out the parts that's still left in the scheduler.

Change-Id: I86f583f7d0747a164dae4530e25f8b01c2144673
Remove the volume api related useless policy rules

There are some old policy rules used by old nova volume, those are
useless anymore, this patch clean them up.

Change-Id: Ibcdba00652808158019600f8ad75e80c85f9423e
Closes-Bug: #1398686
Fix disconnecting necessary iSCSI sessions issue

In Icehouse with "iscsi_use_multipath=true", detaching a multipath
iSCSI volume kills all iSCSI volumes visible from the nova compute node.
When we use different targets(IQNs) associated with same portal for
each different multipath device, all of the targets will be deleted
via disconnect_volume().

This patch fixes the behavior of detaching volume:

  1. Extract the targets for the detached multipath device.
  2. Delete/disconnect the targets for the detached multipath device.

Closes-Bug: #1382440

Change-Id: I38eafdaee03d136282cfde1fd013e322a4256cc4
VMware: ephemeral disk support

This patch ensures that the driver honors the following for
ephemeral disks:
 1. the flavor definition
 2. the block device mappings

The driver will now create an ephemeral disk(s) if necessary.

The ephemeral disks will be of a 'thin' disk type.

Closes-bug: #1369254

This is part of blueprint vmware-ephemeral-disk-support

DocImpact
  - Indicate that ephemeral disks are now supported by the driver

Change-Id: Icb1796e58126a1e03613946b0f5a917d6eb4708e
Convert v3/v2.1 extension info to present v2 API format

Changes from the v3 API /extensions interface format to the
v2 API format. Note that this does not yet list the same
extensions as the v2 api because in v2.1 some have been split
or renamed. This will be addressed in a future patch

Partially implements blueprint v2-on-v3-api

Change-Id: Icaf945b356fcbbe2126343ad01ee58cecd15100f
Replacement `_` on `_LW` in all LOG.warning part 3

oslo.i18n uses different marker functions to separate the
translatable messages into different catalogs, which the translation
teams can prioritize translating. For details, please refer to:
http://docs.openstack.org/developer/oslo.i18n/guidelines.html#guidelines-for-use-in-openstack

There were not marker fuctions some places in directory network.
This commit makes changes:
* Add missing marker functions
* Use ',' instead of '%' while adding variables to log messages

Change-Id: I14bb1fbf7044769697024b03c965ed9d70ab69c1
Replacement `_` on `_LW` in all LOG.warning part 4

oslo.i18n uses different marker functions to separate the
translatable messages into different catalogs, which the translation
teams can prioritize translating. For details, please refer to:
http://docs.openstack.org/developer/oslo.i18n/guidelines.html#guidelines-for-use-in-openstack

There were not marker fuctions some places in directory network.
This commit makes changes:
* Add missing marker functions
* Use ',' instead of '%' while adding variables to log messages

Change-Id: I913077d3b0fdee78e423c35b3a48137a17946a7b
Enforce unique instance uuid in data model

This adds the database migration that checks for records
where instance_uuid is NULL and fails if found until the
'nova-manage db null_instance_uuid_scan' command is run
and the records are manually deleted.

Unit tests are added for the migration to make sure the
fixed_ips table is left alone and the UniqueConstraint is
created on the instances table.

DocImpact: New 'nova-manage db null_instance_uuid_scan'
           command.

UpgradeImpact: The new database migration script.

Implements blueprint enforce-unique-instance-uuid-in-db

Change-Id: I768c36b140c7e9f437907d4dfe175e1410ca44b0
object-ify flavors manager side of the RPC

This change completes the conversion of flavors to use objects instead
of direct database access. The rpcapi sends objects for the new version
and primitivized data is sent for older versions.

Related to blueprint kilo-objects

Change-Id: Ib876f276cff99a21c5bca1c9f062a6c221a783e8
Updated from global requirements

Change-Id: I468a4c946036b37d49a0fceeb99758b7592ce454
Assert order of DB index members

Order of columns can matter. Most SQL databases can use the leading
columns for optimizing queries that don't include all of the columns.
Ignoring the order can result in an index being added that may not
be able to be used to optimize the same queries.

Change-Id: Ie827aaacbcfbc01e32591d29aab79ef75aa0c5d9
Fix long hostname in dnsmasq

dnsmasq only supports 63 character hostnames. Longer names cause
dnsmasq to ignore the entry and not hand out a DHCP address.

Trunacte hostnames longer then 63 characters in order to make
DHCP work.

Closes-Bug: #1238910
Change-Id: Ie1697577bc14038faccd50caf2fea20cac342388
Workflow documentation is now in infra-manual

Replace URLs for workflow documentation to appropriate parts of the
OpenStack Project Infrastructure Manual.

Change-Id: Ice00abcbb431b29e28beb0cd8810b8653ef66139
Fixed typo in testcase and comment

Change-Id: Ie78acbe3b597d87a996a88dcee056517f63a696c
libvirt: check value of need_legacy_block_device_info

Commit f9f247ef42c690bf1bd1ae65135c6e7fbd0d3c8c added support for this
value but did not actually check the value of the property set by
the driver.

Change-Id: Ifd9a8981b5c94d764166d782c79e0ae5a0ab045a