Change unit test for availability_zones.reset_cache

Test_rest_availability_zone_reset_cache can not make sense
because the result of az._get_cache().get('cache') before
executing az.reset_cache() and after az.reset_cache() are
same.

This Patch will provide a reasonable test for it.

Change-Id: I7a27998bdf70f39077a5d79fc460974fc5806c3e
Closes-bug: #1258041
Remove unused code in test_attach_interfaces.py

"body = jsonutils.dumps({'port_id': FAKE_PORT_ID1})" is unused in
test_attach_interface_without_network_id(). We should remove it.

Change-Id: Id31b559752d57c9f55fd2bf0de909b8d8f9a0333
Closes-Bug: #1266617
Fix multi availability zone issue part 2

In order to keep consistency with fixing in
code review:
I788782a9f21ec2672551f75123753175bb268586

adding aggregate az checking logic to guarantee
that aggregate updating and aggregate metadata
updating shouldn't be done when aggregate's hosts
belong to other az. So, when az conflict exist,
user should remove those hosts.

sync the changes into V3 aggregate APIs.

Fixes: bug #1200479
Change-Id: I18ad1ac22c6aee298ccc75c978b85241ae1ac616
VMware: Fix incorrect comment indentation

Change-Id: I60ae70701af2506753ded5ef3d25f17cc36a0b1b
Make nova-network use FixedIP object for vif queries and bulk create

This makes nova-network use FixedIP for querying by virtual interface
and for bulk-creating IP records in the database. These two unrelated
changes were both smallish and thus combined into this patch to
reduce the queue depth for this series.

Related to blueprint nova-network-objects

Change-Id: I93d6ce32b0960173d70f6ec32d889ae91e2849bb
Hyper-V driver RDP console access support

Implements: blueprint hyper-v-rdp-console

Hyper-V uses RDP to provide graphical console access, unlike most other
hypervisors which use VNC for this purpose.

This patch implements get_rdp_console in the Hyper-V driver.

Change-Id: I92e6c4921ff42c1bac2c76dfa1570160a0d11338
VMware: update test name

A test to check login to the VC or ESX was called test_VC_Connection.
The name has been changed to a more appropriate one reflecting what
is actually tested: test_login_retries.

This test is run on the VC and the ESX drivers.

Change-Id: Ic156003a29e0863b5aae593127dd78edd78f0912
libvirt: use to_xml() in post_live_migration_at_destination

Currently post_live_migration_at_destination use the dumpped
xml to define a live-migrated instance, and write the libvirt.xml
with to_xml(), we should keep consistency of these two places.

Closes-bug: #1231215

Change-Id: Id98ee3f21fb7a908a318d0f9abec0b740ff9e410
Improve detection of imports in hacking check

The hacking check for detecting cross-virt driver imports
only looked for 'from foo.bar import wizz' and not for
'import foo.bar.wizz'. Add support for the latter too and
test it.

Change-Id: I79d804b49e4be9827c4a5c172ffb8712c15f4071
Closes-Bug: #1261842
Use raw string notation for regexes in hacking checks

Since regular expressions typically include lots of '\', raw
strings should be used for regexes, to prevent the '\' being
intepreted as a string escape character.

Change-Id: I7e131bc50bb31dde979541924b143123da39e3b8
xenapi: set viridian=false for linux servers

Currently all servers get:
viridian=true

This is the hyper-v awareness inside windows Xen uses to get better
windows peformance. However this can make linux guests think they are
running on hyper-v.

So, this change ensures all linux guests get viridian=false

implements blueprint xenapi-support-linux-hvm
Change-Id: I4e2b0b9b03d14a3d8679667395bdb7a831af48ca
Merge "Change unit test for availability_zones.reset_cache"
Merge "libvirt: use to_xml() in post_live_migration_at_destination"
Merge "VMware: update test name"
Merge "xenapi: set viridian=false for linux servers"
Merge "Improve detection of imports in hacking check"
Merge "Use raw string notation for regexes in hacking checks"
Merge "Remove unused code in test_attach_interfaces.py"
Merge "Fix multi availability zone issue part 2"
Merge "VMware: Fix incorrect comment indentation"