Fixes Hyper-V dynamic memory issue with vNUMA

vNUMA and dynamic memory are mutually exclusive, so the former
needs to be disabled for instances where dynamic memory is enabled.

Change-Id: Ic730c294ffc89925076688a44adf2594c7f6712b
Closes-Bug: #1305897
fixed typo in test name

Change-Id: I751c288122215c7a9ffafd3f9f4c61a321b23dab
Remove useless join in nova.virt.vmwareapi.vm_util

This change replaces in nova.virt.vmwareapi.vm_util the pattern
''.join(['fo...o'], ['b...ar']) by the pattern 'fo...ob...ar' which
avoids runtime string concatenation.

Change-Id: If23d8377acde2c3419b67ca11b03a1c898561c77
Port fixed_ip extention to v2.1

This patch ports fixed_ip extention from v2 to v2.1,
and have v2 unit test cases shared between v2.1 and v2.

Partially implements blueprint v2-on-v3-api
Change-Id: Ifa7e0dd5a91cfe881077b92aeb7019d0435d780a
VMware: rename vmware_images to images

There is no need for the prefix vmware. vmware_images.py has been
renamed to images.py and test_vmware_images.py has been renamed
to test_images.py.

Change-Id: Icbc64da072f60713c1a79aca2ed503dcd7586063
VMware: delete the driver VMwareESXDriver

In Juno we had a deprcation warning about the VMwareESXDriver no
longer being supported. This class is now deleted.

Change-Id: Id5b50fa944f57cd8fd61611d93caac8066cfd93d
Console: delete code for VMRCConsole and VMRCSessionConsole

In Juno there was warning that this code will be removed in Kilo.
This patch deletes the VMRC console classes for the ESX and VC drivers.
This code has not worked since the Icehouse release.

Change-Id: If2d1e237f92eb080dadc2eee1f2f2771a06ce2f6
Cleanup of tenant network tests

Moves tenant network tests out of test_network.py
into test_tenant_networks.py which already has
tenant network tests and merges the test classes

Change-Id: I59cc3ec93432b26386943ac8922a7e2fc240ce30
Make pci_requests a proper field on Instance object

When we added the pci_requests object, we didn't plumb it all the way into the
Instance object because of time constraints. This finishes that work so that it
behaves properly and doesn't require an additional DB lookup every time we need to
pull it based on an instance.

Partial-Bug: #1368260
Change-Id: I134441c8288d5dbdc0bac6163cb2affc9f0af762
Fix error in comments

The comments for the whitelist is missing last part
of the line, updated the comment while making the change.
Only comments are changed.

Change-Id: Ia2d43d269542d7fb5012173c84af77c0d6b1e203
Remove use of unicode on exceptions

Casting exceptions to unicode using unicode() can interfere
with the proper translation of the exception message.  This
is especially true when lazy translation is enabled, since it
causes the exception message to be translated immediately using
the default locale.

This is the same problem caused by using str on exceptions,
which was fixed by https://review.openstack.org/#/c/116054/

In addition to fixing these cases, this patch updates
hacking check N325, which checks for the use of str() on
exceptions, to also check for the use of unicode().

In order to make it clear which cases that cannot be caught
by the hacking check have been inspected, they have been
converted to using six.text_type() instead of unicode().

Closes-bug: #1380806
Change-Id: I87bb94fa76458e028beba28d092320057b53f70a
Merge "VMware: rename vmware_images to images"
Merge "VMware: delete the driver VMwareESXDriver"
Merge "Console: delete code for VMRCConsole and VMRCSessionConsole"
Merge "Remove useless join in nova.virt.vmwareapi.vm_util"
Merge "Cleanup of tenant network tests"
Merge "fixed typo in test name"
Merge "Fix error in comments"
Merge "Remove use of unicode on exceptions"
Merge "Port fixed_ip extention to v2.1"