Logging detail when attach interface failed

When attach interface failed, there isn't any detail for
error info. Change the log level to exception to get more detail.

Change-Id: If531c32357dbb002a3e92e4ca559eeb7f6ab6d2d
Closes-Bug: #1373761
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
Remove admin context which is not needed.

_get_guest_config use admin context to read deleted flavor, it's
not needed because flavor function in db layer didn't require that.

Change-Id: Idbf6a7d712d432da5a5919c28e988870ead0d4b2
Make scheduler code use object with good practice

commit 6c32576b move objects definition into object folder directly,
all other modules do not need to import other objects modules.
So current code didn't use good practice of objects usage and this
patch adjusts the code to use objects better.

Change-Id: I256dc9e3a2802a5c54d4d5e38f0b11039c031e96
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
Fixed typos in nova.objects.base docstrings

Change-Id: I1d485a2ca2fca58262bc023e5c9f273c6632e4a6
Fix the uris in documentation

Broken image links when viewed from github:
https://github.com/openstack/nova/tree/master/doc/source/devref

Change-Id: Icad6ed2aa742310fbea399ddecd8480123eaac64
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
VMware: remove unused method _get_vmfolder_ref

This method was only used in the ESX driver. That was deprecated
in Juno.

Change-Id: Ied0fdf835c18c4a2c9ca080379e13bfd72d825c2
XENAPI add duration measure to log message

The xenapi snapshot command states when the command completes
but does not put any really useful information in the message itself.
This commit adds the duration the snapshot upload took and
which image was created to the log message.

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

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

Change-Id: I377f0cf7b8a66026491b75e89b470a328670f17a
Remove deprecated spicehtml5 options

Now that we are in Kilo, remove options deprecated in Juno.

Options deprecated in I36c014c8b8a0796cda494f9450a1fc30104504a1

Change-Id: I2c634197229977a1d54444e5be56ad910c664231
Switch default cinder API to V2

Cinder v1 is deprecated and using v1 emits a warning (introduced in
Id8abbbb4d9b0c8c49ab51fc3d958ef0d487467f8). So update the default value
to Cinder v2.

DocImpact

Closes-Bug: #1390131

Change-Id: Ica650962c9354d741b464ec152e9e1c6d0d5fa10
libvirt: add in missing translation for LVM migration

Commit e24f333cd5d3667a15c36ac502304bfb5a0e21df added an exception
that contained a missing translation.

TrivialFix

Change-Id: I21419655605a47ef0f5b792a7db5512267d114c1
xenapi plugins must target only Python 2.4 features

Add a comment documenting the restriction that our xenapi plugins must
target Python 2.4 features because of restrictions with the XenServer
dom0 userspace.

Change-Id: Ide130923b16c0555c3190cbd63ce97e18d18aae0
Updated from global requirements

Change-Id: I0f3cb3023952f889650c3ebbd0fb6aee5861898d
Make unit test floating ips bulk faster

The unit test is only used to test whether the code branch is
executed with pre-defined logic, so it does make sense to create
as less as dataset if we can achieve that goal.

Currently the unit test for floating ip bulk operation in nova
create a rather a big data set to run the test. This patch adjust
it with smaller one.

the results shows (ignore the first one because env setup)
                                                   [former] [current]
test_create_bad_cidr_fail                       OK  4.27     8.30
test_create_duplicate_fail                      OK  8.01     1.20
test_create_invalid_cidr_fail                   OK  0.10     0.14
test_create_ips                                 OK  0.77     0.18
test_create_ips_pool                            OK  7.65     0.17
test_delete_ips                                 OK  10.01    0.35
test_list_ip_by_host                            OK  0.14     0.27
test_list_ips                                   OK  0.15     0.25

Change-Id: I2ee5b5186f0c88b80ed20a0dbc16af9360e28332
Remove useless host parameter in virt

For host api, there are useless host params for
host_power_action and set_host_enable virt API,
this patch removes the useless host params.

Change-Id: I556278fc426a800f108da9129e42175da32dac49
Merge "Switch default cinder API to V2"