Standardize logging for v3 api extensions

- add log translation hints
- remove unneeded logging imports

Change-Id: I4845ee70c23336b61e5aac70b9b5021e114f8ac5
Make API name validation failure deterministic

Makes the testing of a valid name in the API deterministic
with respect to failing when an empty name is supplied
by the user. Formerly it could fail either of two constraints
- must be at least one character long
- does not match the valid regexp which requires one character

The lack of deterministic behaviour was causing issues with
some unittests when PYTHONHASHSEED is not set to 0 because
of the two failure modes. The second constraint for validation
of names is now modified so it allows empty strings but overall the
behaviour remains the same because of the first constraint.

Change-Id: Iea89bb329a8939af5168926717b5c13bdf2a7f62
Partial-Bug: 1350287
Track object version relationships

This adds another developer "helper trap" for inter-object version
dependencies. If an object that another object depends on is bumped
in version, this test will note the change and remind the developer
(or reviewer) that the parent needs a version bump and backport
rule added.

Change-Id: Ia81d034f850173401cd84a79b15ae0f7c80b9653
Check compulsory flavor create parameters exist

Check that the name, ram, vcpu and disk parameters exist
in the request for flavor creation in order to be able to
return a more informative error message to a user when they
are not supplied.

Change-Id: I7fd235f8b57e5ecba37e50d6f0ce0a3866c1cd55
Closes-Bug: 1253525
Imported Translations from Transifex

Change-Id: I2749dc18aac367faf827caf8f1f2699fbf8ce954
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
libvirt: reduce indentation in is_vif_model_valid_for_virt

For some reason the is_vif_model_valid_for_virt method is using
8 space indentation instead of the normal 4 spaces.

Change-Id: Ibbc86af5fbea3a115d344907a1d95fb184b61ebc
Update migration defaults

In TripleO we wanted to enable live block migration. Pleasantly
surprising was finding that all it required was better options to
libvirt.

I'm told this works with the libvirt we gate on, though as we don't
gate migration yet, its hard to tell.

Change-Id: I7b997666474ec324c5034e3660a7271b8423bca8
DocImpact:
UpgradeImpact:
Objectify last uses of direct db access in network/floating_ips

These were previously skipped since they're not used when all services are
on master. However, they're trivial to convert and help clean up our
reports of "what's left". Since we technically need to keep them in the
tree until we bump the network RPC version, this converts them and adds
tests.

Related to blueprint compute-manager-objects-juno

Change-Id: I17296a807524a76caa10e41ea2b05c7514169fa2
Merge "Fixes Hyper-V vm state issue"
Objectify association in neutronapi

This makes the neutronapi use the Instance object for the associate
path and updates the test to match.

Related to blueprint compute-manager-objects-juno

Change-Id: I045bfbd16e3b45107bd11e3874ce47280574930a
Merge "Check compulsory flavor create parameters exist"
Merge "Standardize logging for v3 api extensions"
Merge "Objectify last uses of direct db access in network/floating_ips"
Merge "Imported Translations from Transifex"
Merge "Make API name validation failure deterministic"
Merge "libvirt: reduce indentation in is_vif_model_valid_for_virt"
Merge "Objectify association in neutronapi"
Merge "Update migration defaults"
Adds get_instance_disk_info to compute drivers

Solves a live migration regression issue by adding the
get_instance_disk_info to the compute drivers that do not
have it already implemented.

The method is called by the compute manager.

Change-Id: If5cd9a6f5948c08ef5f1cba2eda31f1175709137
Closes-Bug: #1358719
Co-Authored-By: Ionut Balutoiu <ibalutoiu@cloudbasesolutions.com>