Ignore InstanceNotFound while getting console output

During we cold-migrating or resizing an instance to another host,
or during deleting it, the get_console_output method may raise an
InstanceNotFound excetpion if the instance is not on the hypervisor,
this is an expected error, so we should add it to expected
exceptions list in compute manager.

Closes-bug: #1292339
Change-Id: I23a99438d73826f01ff5662130dcbfa72dc39a6e
Rename instance_actions v3 to server_actions

* Renames the os-instance_actions v3 plugin to os-server-actions
* Also modifies api specific tests and expected user input JSON
* DocImpact only for v3 Nova api documentation for this plugin.

Closes-Bug: #1206032

DocImpact

Change-Id: Id5049e10f5ef540d0d8e3871d800e9d9cb33da73
remove unneeded call to network_api on rebuild_instance

When rebuilding an instance we call the network_api and which results in
calling neutron and updating the info cache. We do not actually need to
do this as we can get the nw_info directly from the instance's info cache.

Change-Id: I2bcc2f15b1e5bb52d972098c7bc3e12f160b6feb
Closes-bug: 1294914
VMWare - Check for compute node before triggering destroy

While booting an instance, if Claim on that compute node is not successful
compute manager triggers a call to destroy instance. Destroy fails since the
compute node (Cluster/ESX host) is set only after claim is successful.
Hence the check for node is made before destroy, to ensure that exception
does not get thrown. This ensures that the instance gets rescheduled
Closes-Bug: #1307408

Change-Id: Iaaf931e9c1e6cf046497e2c64952f92e802ad4be
Make instance_exists() take an instance, not instance_name

Some virt drivers may not support/need to use instance.name and have
a different way to find out if an instance exists. NOTE: this still
uses dict access on instance, as the _run_instance() path is not
converted to Instance objects yet.

NOTE: This also removes a duplicate call to self._lookup_by_name()
in libvirt's resume_state_on_host_boot(). It was calling
self.instance_exists() and then self._lookup_by_name(), but instance_exists()
calls _lookup_by_name() itself.

Change-Id: I701cb5416ec47262268d1a088018b6be2774d1c5
Correct the log in conductor unshelve_instance

The log in conductor unshelve_instance is not correct, this patch
adjust it.

Change-Id: I9706862fa39d3c9cb5af0d412368546b504bc4a5
VMware: spawn refactor - phase 1 - get_vif_info

get_vif_info converts OpenStacks nova network_info
into a data structure that is used to prepare the
configuration spec for the instance that is being deployed.

partial blueprint vmware-spawn-refactor

Change-Id: I5d1535e84de44a995e1605d0d5b850c9756612de
Imported Translations from Transifex

Change-Id: I3fc3ca67a6d8c927b61999a134eb8a9a1e133e6e
Fix exception message being changed by nested exception

Minor change to avoid having the error message changed in the
_build_instance exception handler if an exception occurs during
network cleanup.

Change-Id: Ica7afc76f1fd261541ff9cf03b6c5e079e9404f8
libvirt: fix comment for get_num_instances

The comment had an invalid function name.

Change-Id: Iea10186a6cd649a42dadc631bef5f0e32fe2f479
xenapi: make auto_config_disk persist boot flag

Currently auto_config_disk creates a new partition that ignores many
settings on the original partition.

The key flag that should be respected is the "boot" flag. When present
on the old partition, it should be present on the new partition.

Change-Id: I0408112cd60046422d6863651323fc9a7313d488
Closes-bug: #1265465
Merge "VMware: spawn refactor - phase 1 - get_vif_info"
Merge "remove unneeded call to network_api on rebuild_instance"
Merge "xenapi: make auto_config_disk persist boot flag"
Merge "Fix exception message being changed by nested exception"
Nova should pass device_id='' instead of None to neutron.update_port()

In the case that neutron raises an error and nova needs to undo the api
calls it's done against neutron it should pass device_id='' instead of
None otherwise neutron raises an exception.

Note: This should have a unit test but it's near impossible
to add one right without duplicating all of _stub_allocate_for_instance
due to the fact that it's using some crazy logic in the tests to make
decisions based on an index that's passed it. X.x

Change-Id: I91334c07401ff379f71fdef1d5bd080cc68a72ab
Closes-bug: #1285886
Merge "Imported Translations from Transifex"
Merge "Ignore InstanceNotFound while getting console output"
Merge "Rename instance_actions v3 to server_actions"
Merge "Correct the log in conductor unshelve_instance"