Fixes Hyper-V vm state issue

The method which gets VM related information can fail if the
vm is in an intermediary state such as "Shutting down".
The reason is that some of the Hyper-V specific vm states
are not defined as possible states.

This patch assures that a valid state is always returned by
this method.

Change-Id: I64e95f6b537e83a30dd64474f63f140e0e8e7373
Closes-Bug: #1352428
(cherry picked from commit 86a4bd7d9b34057f04ebbe2d2131f033d33d082b)
Do not fail cell's instance deletion, if it's missing info_cache

Currently the methods in cell messaging are trying to refresh the
instance. However, in some corner cases info_cache is not being
created for instances in ERROR state. This makes the delete
operation, of such instances, to fail, while it should not.

Handling the InstanceInfoCacheNotFound exception and not
re-raising it, for delete operations.

(cherry picked from commit 47898ba8f9526c88a03209dbc35a59d90b79e809)

Conflicts:
        nova/tests/cells/test_cells_messaging.py

Closes-Bug: #1316373
Change-Id: I33c33e3ac1180e8293d950d60fb126e325a2c0cf
Fix attaching config drive issue on Hyper-V when migrate instances

After instance resized or migrated on Hyper-V hypervisor.
The configdrive iso or vhd is copied to resized or migrated
instance, but is not attached to instance.

Because there are configurations for config drive like
config_drive_cdrom, config_drive_format, and the configurations
on different Hyper-V compute node may be different. it will need
to convert configdrive format after resized or migrated.
It is easy to convert from iso9660 or vfat to vhd, but it seems
impossible to convert from vhd to iso9660 or vfat.
So this commit just ignore the target Hyper-V compute node's
config drive configurations, leave the original config drive format.

Closes-Bug: #1321640
(cherry picked from commit 513c6bbd36563e57a85d33f9c94f4a20ab7c00f4)

Conflicts:
	nova/virt/hyperv/pathutils.py

Change-Id: I349e3b2221fff0ae217a71a91895afd21ff7d18d
Merge "Fixes Hyper-V vm state issue" into stable/icehouse
Merge "Do not fail cell's instance deletion, if it's missing info_cache" into stable/icehouse
Merge "Fix attaching config drive issue on Hyper-V when migrate instances" into stable/icehouse
Merge remote-tracking branch 'upstream/stable/icehouse' into stable/icehouse