Guard against oversize flavor rxtx_factor float

We now check that rxtx_factor provided is not greater than
the Float type to be stored in the db. While the check is not
100% accurate due to float approximation it will be very
close to the max allowable. A 400 error is returned if the
provided value is too big.

Closes-Bug: 1259213
Change-Id: I72c52fa46d75275c45e72b6f5a36106d5abf8220
Co-authored-by: Takashi Natsume <natsume.takashi@lab.ntt.co.jp>
Cleanup v3 test_versions

This commit removes duplicate codes for clarifying what this test
verifies.

Change-Id: I5f6e06dbb0e612981528d89b61b2a8a025e984f1
update deallocate_for_instance to take instance obj

Update the deallocate_for_instance() method of the nova.network rpc API
to take a full instance object instead of just an instance UUID and some
other instance data.  This patch is just the mechanics of getting the
API changed.  The next patch will make use of getting the full instance
object to eliminate a db query in nova-network.

Part of blueprint nova-network-objects

Change-Id: I9be88206ecc64a92d2826a9ac43e4d2d384f29ff
Remove unused method inject_file()

Remove the unused method, inject_file(), from the compute.api and
compute.rpcapi.  mark it deprecated on the manager side to be removed on the
next major iteration of the compute rpc interface.

Related to blueprint virt-objects

Change-Id: I53339e39604f90cf7ecf159da78c4e8e9283bf87
Update pre_live_migration to take instance object

Update the pre_live_migration method in the compute api, compute manager,
and virt driver to take an instance object.  The update to the compute manager
call also happens to finish the conversion of
ensure_filtering_rules_for_instance in the virt driver API, as well.

Part of blueprint virt-objects

Change-Id: I2ddb1d72dbbd11e153f75171b3a4dc4f87ca3972
Imported Translations from Transifex

Change-Id: I98a3a6ce4ac9d481381d692b36440deebc6d8ac0
Enable flake8 H404 checking

This check indicates on comments in which multi line docstring should
start without a leading new line. This change fixed all violators of
said check.

Change-Id: Ic7357b8c7420767dba611f6fcee07b7700f3aea8
Merge "Imported Translations from Transifex"
Merge "update deallocate_for_instance to take instance obj"
Merge "Remove unused method inject_file()"
Merge "Update pre_live_migration to take instance object"
Merge "Enable flake8 H404 checking"
Merge "Guard against oversize flavor rxtx_factor float"
Merge "Cleanup v3 test_versions"