Hyper-V: Skip logging out in-use targets

As most of the Cinder volume drivers that use iSCSI export one LUN
per iSCSI target, the Hyper-V driver was logging out the according
target each time a volume was disconnected.

This causes issues with some volume drivers that use multiple LUNs
per iSCSI target and may disconnect in-use targets.

This patch fixes the issue by checking if there are other LUNs
being used, disconnecting the iSCSI targets otherwise.

Change-Id: Ida08e7129a7b7940ddea488488cccc7571a43b76
Closes-Bug: #1372815
Make console show and delete exception msg better

Console API show and delete didn't give info about
the detailed fail information, this patch adds it.

Change-Id: Icc4ed506590b4f3d2f85160a19ae3b70d8cdf1ab
maint:Don't translate debug level logs

Our translation policy
(https://wiki.openstack.org/wiki/LoggingStandards#Log_Translation) calls
for not translating debug level logs. This helps to prioritize log
translation.
There were some commits that fixed it but ignored the the style like
msg = _('this is debug info'); LOG.debug(msg)
This commit fixes this style of LOG.debug.

Change-Id: I2cc3fe563456ba0906f74262ab1ba6967301d6d1
VMware: trivial fix for comment

The patch makes a few minor changes to a comment that was added in
commit I7598afbf0dc3c527471af34224003d28e64daaff

TrivialFix

Change-Id: Ic12b0b17aac6f745e62bade37204af516e50df0d
Use six.text_type instead of unicode

According to 6683905b532b6030989064636aa5506d4cbe5b22 ,
we shouldn't use unicode in an exception message.

Change-Id: I377f0cf7b8a66026491b75e89b470a328670f17a
Updated from global requirements

Change-Id: I0f3cb3023952f889650c3ebbd0fb6aee5861898d
Merge "VMware: trivial fix for comment"
Merge "Use six.text_type instead of unicode"
Merge "Hyper-V: Skip logging out in-use targets"
Merge "Updated from global requirements"
Add tox -e functional

Provide a tox -e functional stub, as a place for functional tests to
migrate to. This will allow us to write a zuul test configuration for this
environment.

Part of bp:functional-tests-for-nova

Change-Id: I8a1107beab151f9bf574cfbae1d4dc18400fd74e
move all tests to nova/tests/unit

As part of the split of functional and unit tests we need to isolate
the unit tests into a separate directory for having multiple test
targets in a sane way.

Part of bp:functional-tests-for-nova

Change-Id: Id42ba373c1bda6a312b673ab2b489ca56da8c628
Merge "Make console show and delete exception msg better"
Raise HTTPNotFound in V2 console extension

In case requested instance is not found, console extension does not catch
InstanceNotFound, which results to internal server error (500).

This patch handle InstanceNotFound exception and raise HTTPNotFound
like V3 console plugin.

Change-Id: Ia982049451f2c529f123da714e994476d4610491
Merge "Raise HTTPNotFound in V2 console extension"
Remove unused db.api.flavor_extra_specs_get_item

Change-Id: I5fc89d35820ffc5a77e2152ba1bfa3b82474be89
Merge "maint:Don't translate debug level logs"
Merge "Remove unused db.api.flavor_extra_specs_get_item"