Resource tracker: use brackets for line wrap

Use () instead of \ for a line wrap.

TrivialFix

Change-Id: Ifb684ed73ec5e7ad08eb297e3b043053d3456829
Cleanup log marker in neutronv2 api

Cleanup log according to docs.openstack.org/developer/oslo.i18n/guidelines.html
Add LI marker for LOG.info.
Correct debug log information in _get_instance_nw_info function.
and other log cleanup.

Change-Id: Ic7fba3e750196dfb3296291cd4d4d21bc06d47c6
Config bindings: remove redundant brackets

There were cases where the help text had redundant brackets. This
was removed.

TrivialFix

Change-Id: I5f9b715b2f358d5b7db1a36f7bf9922d461771be
Metadata: use instance objects instead of dictionary

Commit 8ad28f924c7ff4c932bd280032cf7c8ffe5aa20a added object
support to the metadata service. We can now use an instance
object format instead of dictionary.

Change-Id: Ibe6a1e68019ad59cb57c2e406ca38fdabb8eedec
Fix get_all API to pass search option filter to cinder api

Change-Id: Ic01956a0fc1ef641dd1b9a28caa40debdc8c114c
Closes-Bug: #1391748
network:Separate the translatable messages into different catalogs

oslo.i18n uses different marker functions to separate the
translatable messages into different catalogs, which the translation
teams can prioritize translating.  For details, please refer to:
http://docs.openstack.org/developer/oslo.i18n/guidelines.html#guidelines-for-use-in-openstack

There were not marker fuctions some places in directory network.
This commit makes changes:
* Add missing marker functions
* Use ',' instead of '%' while adding variables to log messages

Change-Id: Id19436f4226bb60baef65974a62641095e334b1f
Make update server schema 'additionalProperties' False

Nova V2.1 API has strong input validation by making validation
through JSON schema.

This patch makes update server schema 'additionalProperties' to False
as all update server extensions are implemented in V2.1.

After this, V2.1 will not allow extra arg for update server.

This patch also modify the corresponding update server tests
for extra input passed in request body-
    test_update_server_admin_password_ignored

Partially implements blueprint v2-on-v3-api

Change-Id: Ib67880d0380b539c3a5b12a14ea9ed71b7b588a3
Remove unused db.api.get_ec2_instance_id_by_uuid

The last use was removed in change
I66d60a29f0d909edd381e8492a4754bdd0eb8e52:

ec2: Convert to use EC2InstanceMapping object

Change-Id: Id50c9af365c0f812862f44288a84f8da46dd007c
Remove unused db.api.aggregate_host_get_by_metadata_key

The last use was removed in change
I2ec7373f063ed728dde2af3b7c8259f4391885bc:

object-ify availability_zones

Change-Id: Ie3dd4a3b3008af377a46ccc4dcadb6409101bc2d
Remove unused db.api.dnsdomain_list

The last use was removed in change
I4b682affbbe988638c0c834b12a121e6a871080a:

Update nova.network to use DNSDomain object

Change-Id: Ibe336eb29c8263765f79124175aac2029d0d68ce
Make resize server schema 'additionalProperties' False

Nova V2.1 API has strong input validation by making validation
through JSON schema.

This patch makes resize server schema 'additionalProperties' to False
as all resize server extensions are implemented in V2.1.
After this, V2.1 will not allow extra arg for resize server.

This patch also adds some unit tests for those cases.

Partially implements blueprint v2-on-v3-api

Change-Id: Ie150906b85f9059d4828e1b597890b6c234867a9
Expand valid resource name character set

This allows all printable unicode characters and horizontal whitespace
characters in resource names (flavors, aggregates, cells, etc.), as
opposed to the rather limited set that was previously available. This
follows the principle of not creating unnecessary restrictions.

Implements: blueprint relax-resource-name-restrictions
Closes-Bug: 1366778
Change-Id: I35104852797dcba4594af4361bf9226e16bfb114
Remove instance_uuids from request_spec

instance_uuids was previously deprecated in Scheduler RPC API 3.0, so now we
bumped the version to 4.0, there is no longer methods which need this.

So, we can just remove it from FilterScheduler._schedule() method and also
leave sched_utils.set_vm_state_and_notify() method use the uuid from
instance_properties.
scheduler_utils.setup_instance_group() is also modified to get the uuid
from instance_properties.

Change-Id: I26003dc27a2bc3f30f1b09000533b571096c8b21
Partially-Implements: blueprint request-spec-object
Make direct call to controller in test_console_auth_tokens

In API unit testing, making call through WSGI is little bit overhead,
wherever applicable, unit tests can make direct call to controller
methods.

Some unit tests needs WSGI call to tests more than one plugin together.

This patch makes above cleanup in test_console_auth_tokens.

Partially implements blueprint v2-on-v3-api

Change-Id: If70b6b63caf6a167ae8b158fd76c98ac7197a524
Call controller methods directly in test_console_output

In API unit testing, making call through WSGI is little bit overhead,
wherever applicable, unit tests can make direct call to controller
methods.

Some unit tests needs WSGI call to tests more than one plugin together.

This patch makes above cleanup in test_console_output.

Partially implements blueprint v2-on-v3-api

Change-Id: I6e915da3e8847065dab227bf8c961f690a6db98a
libvirt: pass Host object into firewall class

Instead of passing in a get_connection callback function,
give the firewall class impls direct access to the new Host
object instead. Make use of the fakelibvirt fixture to
avoid needing to mock out the libvirt APIs directly.

Blueprint: libvirt-driver-class-refactor
Change-Id: I8af9a5a2ba4f87ef221b9276df7d08395e44f021
libvirt: remove pointless _get_host_uuid method

The _get_host_uuid method only had one caller these days, so it
is a pretty pointless helper API.

Blueprint: libvirt-driver-class-refactor
Change-Id: Ibe0e5836a94295378f2208b220e452b61545c1c9
libvirt: introduce new helper for getting libvirt domain

Introduce a get_domain() method to obtain a libvirt domain
from a Nova instance object. This slightly simplifies the
callers, avoiding the need for them to know that the lookup
is done based on the name (as opposed to ID or UUID).

Blueprint: libvirt-driver-class-refactor
Change-Id: Iea29950f3991a8051f48263f43c7b9b861d9e640
Merge "Remove instance_uuids from request_spec"
Merge "Make update server schema 'additionalProperties' False"