add log exception hints in some modules

Add hints for log exception messages

Change-Id: I51b30d58bcb4b9fa8e51b29af1cfff33c0b432aa
filter: add per-aggregate filter to configure max_io_ops_per_host

Adds a filter AggregateIoOpsFilter whichprovides the ability
to read from aggregates metadata "max_io_ops_per_host".

DocImpact
Implements: blueprint per-aggregate-max-io-ops-per-host
Change-Id: I086033e7904c16995298bee7196ad3e7b5dc7aaf
VMware: Create fake VM with given datastore

FakeVim._create_vm() was creating a VM with a default datastore rather
than the given one. This prevented testing that the correct datastore
has been used.

Change-Id: I640a21f23b2d5c1186772c8c5ce3ca8927e6cbc5
VMware: Fix type of VM's config.hardware.device in fake

config.hardware.device was handled inconsistently, and could be of
various types. When created by _create_vm(), it was actually a
VirtualDeviceConfigSpec[]. It should be a VirtualDevice[].

Fix tests which depended on the wrong type.

Add _create_array_of_type function to fake to create an array type
which works correctly when passed to code. A returned array of Foo
must be an instance of class ArrayOfFoo, and contain a single
property, Foo, which is a python array of objects of type Foo.

Change-Id: Ic90e1d0d947941621606fded9e56f9a98d111cad
VMware: refactor spawn() code to build a new VM

Move the spawn() code which builds a new VM into
vmops.build_virtual_machine().

We remove the duplicate check of instance_name. Other than that this
is straight code motion.

In addition, we add a basic test of the function of
build_virtual_machine, which tests that all given configuration is
reflected in the resulting virtual machine.

This change has been split out of
https://review.openstack.org/#/c/87002/, which was written by Shawn
Hartsock.

partial blueprint vmware-spawn-refactor

Co-authored-by: Shawn Hartsock <hartsocks@acm.org>
Change-Id: Id9c95966eefb644fdaf36465e7b3d3583826314a
VMware: spawn refactor _configure_config_drive

Factor out the code to configure the virtual machine with a new
config drive iso image.

partial blueprint vmware-spawn-refactor
Change-Id: Ie387445ae83e89fc436243a4c8ee9030d5221510
Share common test settings in test_flavor_manage

In PrivateFlavorManageTest, there are duplicated test setting code in each
test. This patch moves these settings into setUp() method to reduce code.
In addition, this patch adds an internal method also for the same purpose.

Change-Id: I31883497174141ac4034922981e0a846f1fc2deb
Fix V2 unit tests to test hypervisor API as admin

Hypervisors API are Admin API and unit tests should test those accordingly.
But All the V2 hypervisors Unit tests tests those as a non Admin API

This patch fix this issue and add more non-admin unit tests

Change-Id: I5c29828d567e2044786d4bcbff4970219c6e8c5f
Closes-Bug: #1360113
Change v3 extended_status to v2.1

This patch changes v3 extended_status API to v2.1 and makes v2
unit tests share between v2 and v2.1.
Revert v3 changes back to v2.
os-extended-status:* -> OS-EXT-STS:*
The differences between v2 and v3 are descibed on the wiki page
https://wiki.openstack.org/wiki/NovaAPIv2tov3.
Partially implements blueprint v2-on-v3-api

Change-Id: Ieefca1d0e8da831830f43cc83eb50bc7e7f4a10c
Merge "Change v3 extended_status to v2.1"
Merge "VMware: Create fake VM with given datastore"
Merge "VMware: Fix type of VM's config.hardware.device in fake"
Merge "VMware: refactor spawn() code to build a new VM"
Merge "VMware: spawn refactor _configure_config_drive"
Merge "Fix V2 unit tests to test hypervisor API as admin"
Merge "filter: add per-aggregate filter to configure max_io_ops_per_host"
Merge "Share common test settings in test_flavor_manage"
Merge "add log exception hints in some modules"