VMware: add missing translations

Commit 1c6898efecd7d78855efcb22d9c38d6127339000 added a number
of exceptions that did not have translation support.

Change-Id: I38715b8b14bdf9ccee08db44cf171f9c860b4fa8
Localized error exception message on delete host aggregate

When a Host Aggregate was trying to be deleted and it already has
assigned hosts, the error message was not being translated.

Change-Id: I6255992a40030b0a232fc43e9b38071c0a471640
Partial-Bug: #1296430
Downgrade the log level when automatic confirm_resize fails

When CONF.resize_confirm_window is not 0, the unconfirmed migration
will be confirmed automatically after CONF.resize_confirm_window
seconds; it might fail due to reason such as instance is locked etc,
so failed to automatically confirm resize is not unexpected.
Downgrade the log from error to debug and after all, user can
either confirm it later or next automatically confirm might success.
Also modify the format of log as well.

Change-Id: I525c803d5e149c49606bcd460e2abb4c9300454a
ec2: remove db.instance_system_metadata usage

Update some direct db API calls getting and updating instance system
metadata with usage of the Instance object.  This is the last of
db.instance_* usage in the ec2 API.

Change-Id: I9270ddd2c6a91e85f1c0ed684cb0e440a1587cf2
ec2: get services using ServiceList object

Remove another direct use of the db API by making use of the
ServiceList object.

Change-Id: I9594033d798892df95404209d702f6af543a7139
ec2: use SecurityGroup object

Convert one place in the ec2 API code that was using the db API
directly to get a security group.  Use the SecurityGroup object for
this instead.

Some test fixes were needed to account for fields that the
SecurityGroup object does not have set as nullable.

Change-Id: I4b15b6bcb35f95955911a48faa8d74f6167593a0
ec2: use BlockDeviceMappingList object

Convert a direct use of the db API with the nova object equivalent.
Some test fixes were needed to include fields the object expects to be
preset in the fake db objects.

Change-Id: I1d562aa2535af9e713c6486c5c50a2ffe625c198
GET details REST API next link missing 'details'

When executing a pagination query a "next" link is included in the
API reply when there are more items then the specified limit.

See pagination documentation for more information:
http://docs.openstack.org/api/openstack-compute/2/content/
Paginated_Collections-d1e664.html

The caller should be able to invoke the "next" link (without
having to re-format it) in order to get the next page of data.
The documentation states "Subsequent links will honor the
initial page size. Thus, a client may follow links to traverse
a paginated collection without having to input the marker parameter."

The problem is that the "next" link is always scoped to the
non-detailed query.

For example, if you execute "/v2/<tenant>/servers/detail?limit=1",
the "next" link does not have the URL for a detailed query and is
formatted as "/v2/<tenant>/servers?limit=1&marker=<marker>". In this
case the "next" link needs to be scoped to "/v2/<tenant>/servers/detail".
Common code is used for both the v2 and v3 APIs.

Existing test cases will be updated to verify that the next link is
correctly scoped for both the v2 and v3 APIs.

The user could work around this issue my manually inserting '/details'
into the "next" link URL.

Change-Id: Ib06a6cc6e2dd5e2c8c16986ee256a58752626eb9
Closes-bug: 1299247
Scheduler: enable scheduler hint to pass the group name

Commit ea6d8403bdc3c1d3ede87a2ed1c8740420c32080 partially
dealt with the problem. The actual scheduling would fail when
the group name was passed.

Change-Id: I668621770e59504164af9a2e861a59e900300bba
Closes-bug: #1303360
Merge "Localized error exception message on delete host aggregate"
Merge "Downgrade the log level when automatic confirm_resize fails"
Merge "Scheduler: enable scheduler hint to pass the group name"
Merge "ec2: remove db.instance_system_metadata usage"
Merge "ec2: get services using ServiceList object"
Merge "VMware: add missing translations"
Merge "ec2: use SecurityGroup object"
Merge "ec2: use BlockDeviceMappingList object"
Merge "GET details REST API next link missing 'details'"