Stop augmenting oslo-incubators default log levels

Thanks to I255a68fc60963386e8fefe65c3ffd269795adbf4, the two modules we
explicitly set log levels for are now in oslo-incubator, so we don't
need the extra code introduced  in
Ib5164a22c5cbfa4f9d881b97bb1f623cd4d2f3f3

Change-Id: Iec7bd35da36135fcaf63a384fa35f849a1319738
Convert deferred_delete v3 plugin to v2.1 API

Changes required to have v3 plugin natively support the V2.1
API

The force_delete action is reverted back to forceDelete

Partially implements blueprint v2-on-v3-api

Change-Id: I0b050d3328338923cf05521b9ef5cc3b1c50a586
Change v3 agents API to v2.1

This patch changes v3 agents API to v2.1 and makes v2 unit tests
share between v2 and v2.1.

The differences between v2 and v3 are described on the wiki page
https://wiki.openstack.org/wiki/NovaAPIv2tov3 .

Partially implements blueprint v2-on-v3-api

Change-Id: I96dd9cd3672c6d584bd0019c385544c08f687e7f
Change V3 access_ips extension into v2.1

This patch changes v3 access_ips API to v2.1 and makes v2
unit tests share between v2 and v2.1.
The differences between v2 and v3 are described on the wiki page
https://wiki.openstack.org/wiki/NovaAPIv2tov3 .

Partially implements blueprint v2-on-v3-api

Change-Id: Id464cbe4a8b7a7749c4f14e4531e4494dd315857
libvirt: add validation of migration hostname

The migration hostname is substituted into the libvirt migration
URI string. If the hostname contains special characters it might
be possible to construct a malicious migration URI causing libvirt
to execute arbitrary commands as root. Protect against such a risk
by validating the hostname characters.

Change-Id: Ia3c53df1a842b5ef88f1f7ed5a3f4121df698161
Closes-bug: #1276862
Remove use of str on exceptions

An exception's message can be a translatable message.  If it is, the message
can contain unicode characters which will cause str to fail.

In cases where the message is explicity needed, the use of str is replaced
with the use of six.text_type.  When an exception is used as a replacement
string in a format string, the logger correctly handles it without the
need for str, so it is removed.

In addition to the case where a translatable message contains unicode,
enabling lazy translation in the oslo.i18n library causes translatable
messages to be replaced with an object that does not support str, this
causes all calls to str on a translatable message to fail.  Thus this patch
is also needed to support blueprint: i18n-enablement.

This patch includes a hacking check for use of str() on exceptions identified
in except statements.

Change-Id: Idb426d7f710ea69b835f70d0e883e93e9b9111d2
Partially-Implements: blueprint i18n-enablement
Add NetworkRequest object and associated list

This adds a new object to replace the network API's "megatuple"
(aka "tuple-o-doom").

Change-Id: I0e83809ae23ffac1cde9113b61846053da48b0a0
Refactor admin_action plugin and test cases

use common.get_instance()instead of self.compute_api.get()
add expected_attrs=None when setup mock in test case.

this patches is aimed to share v2.1 patches and v2 test cases.
a test cases porting patch will be followed.

Partially implements blueprint v2-on-v3-api
Change-Id: Iea7b0c0c2c920108ef055681319d8a2d996e14b3
VMware: add resource limits for CPU

The flavor extra specs for quotas has been extended to support
 quota:cpu_limit - upper bound of CPU allocation (MHz)
 quota:cpu_reservation -  guaranteed minimum CPU allocation (MHz)

This enables the VMware driver to provide enable CPU allocations
for the running instance.

DocImpact

Change-Id: I1bec4f009285f7991eaaa8155329366a4eba5e1f
VMware: Add in support for CPU shares in event of resource contention

The flavor extra specs for quotas has been extended to support
 quota:cpu_shares_level - the allocation level. This can be 'custom', 'high'
                          'normal' or 'low'.
 quota:cpu_shares_share - in the event that 'custom' is used, this is the
                          number of shares.

This enables the VMware driver to provide CPU shares.

DocImpact

Change-Id: Iba55f91a5374ec6a1412e726a7ae2fbf2641155b
Merge "VMware: add resource limits for CPU"
Merge "VMware: Add in support for CPU shares in event of resource contention"
Merge "Change v3 agents API to v2.1"
Merge "Refactor admin_action plugin and test cases"
Merge "Change V3 access_ips extension into v2.1"
Merge "libvirt: add validation of migration hostname"
Merge "Convert deferred_delete v3 plugin to v2.1 API"
Merge "Stop augmenting oslo-incubators default log levels"
Merge "Add NetworkRequest object and associated list"
Merge "Remove use of str on exceptions"