Imported Translations from Transifex

Change-Id: I1d55e980a6fd10dedd832616850d12423776c7a6
Merge "Handle UnexpectedTaskState and InstanceNotFound exceptions"
Merge "Skip security group code when there is no network."
port Host API into v3 part1

This changeset only copies the v2 files into the appropriate v3
directories unchanged. The copy as-is will not be loaded by either
the v2 or v3 extension loaders. The second changeset will then
make the changes required for it to work as a v3 extension.

This is being tried in order to make reviewing of extension
porting easier as gerrit will display only what is actually
changed for v3 rather than entirely new files.

Partially implements: bp v3-api-extension-versioning

Change-Id: I7dd63b9952c10778427e7e0b0dd74f57cb4282ee
Break out compute API unit tests

As we convert things to objects, it'll be easier to convert our compute
API tests to be true unit tests if they are in their own class.  This
also allows us to move away from the hacks needed to simulate 2 DBs in
order to test ComputeCellsAPI().

There are currently a handful of tests that are true unit tests and
require no DB access.  These are now moved, subclassing from
test.NoDBTestCase.

Related to blueprint unified-object-model

Change-Id: I72f4f6ada8d0586e813e551a1b361bcebb16ee66
Break out Compute Manager unit tests

As we convert things to objects, it'll be easier to convert our compute
Manager tests to be true unit tests if they are in their own class.

There are currently a handful of tests that are true unit tests and
require no DB access.  These are now moved, subclassing from
test.NoDBTestCase.

Related to blueprint unified-object-model

Change-Id: I5e7ca3a94c32fff268e8b329f165198c873756e1
Merge "Session cleanup for db.security_group_* methods"
Xenapi shutdown should return True if vm is shutdown

clean and hard shutdown vm methods return a False if the vm
is currently shutdown. It should return a True, so that its
return value can be used to determine if the vm is shutdown
or not.

Fixes: bug #1195587
Change-Id: I758c43d45b15c3ef231e9eee3ecac620a44db824
Fix grizzly compat issue in conducor rpc api

When a new parameter was added in revision
0d5fb06b39e8244429be72f05e2066d24572dc2e, it did not properly account
for rpc client side version control added for compatibility during a
rolling upgrade.  This patch adds the ability to send the older message
version if configured to do so.

Change-Id: Iaadd4890099c12883b4a29a6b049cc672a669f93
Port coverage API into v3 part1

This changeset only copies the v2 files into the appropriate v3
directories unchanged. The copy as-is will not be loaded by either
the v2 or v3 extension loaders. The second changeset will then
make the changes required for it to work as a v3 extension.

This is being tried in order to make reviewing of extension
porting easier as gerrit will display only what is actually
changed for v3 rather than entirely new files.

Partially implements bp v3-api-extension-versioning

Change-Id: I50ba45357378311d7bccb71f851e9e2915fc763b
Port coverage API into v3 part2

This patch contains the changes required to adapt the hypervisor
extension and the corresponding unittest to the v3 framework.

And adding '_import_coverage' for ensure loading coverage module from
python-coverage.

Partially implements bp v3-api-extension-versioning

Change-Id: I6a2dbf00d09132b767cd7972f68cb752b5961796
Select disk driver for libvirt+Xen according to the Xen version

There are two versions of the blktap [1] driver available under Xen.
blktap1 has been replaced by blktap2 that does not support "tap"
devices but "tap2", therefore we should use "tap2" devices by default.

Fixes bug 1188517
Fixes bug 1084618
DocImpact

Change-Id: I8b46885b0909de7cb51fd2d0f6ba2e9bcbf33cc6
Merge "Clean up and make HACKING.rst DRYer"
Add HACKING check for db session param

Add a HACKING check to enforce that public db/api and db/sqlalchemy/api
methods to not accept a 'session' parameter.

This check is initially disabled, since it is failing ~24 times right
now, but will be enabled once bp/db-session-cleanup is complete.

Change-Id: Ib89eea58555032dd142d4e21e62d66e2726f0d06
Remove locals() from virt/vmwareapi package

fixes bug 1171936

Change-Id: I8f5210a46a086f009efaad3733a302aaeb038e5f
powervm: make get_host_uptime output consistent with other virt drivers

The powervm driver was filtering out part of the uptime information so
that only system uptime was returned, not the number of users, load,
etc. The hypervisor API sample and the libvirt driver provide the full
uptime output, so this patch makes the powervm driver follow that
convention.

Fixes bug 1196630

Change-Id: I24134270cab9df97ff59c06e057406b4aa09992a
Add unique constraint for security groups

- Add unique constraint (project_id, name, deleted)
  for security_groups
- Define new SecurityGroupExists exception
- Drop security_group_exists() in favor of catching
  SecurityGroupExists exception for security_group_create()

Fixes bug #1093458

Blueprint: db-enforce-unique-keys

Change-Id: Id9a1427587cc9250942d0abd9eafc69861352d9b
libvirt: Fix spurious backing file existence check.

Bug 1195877

The problem lies with the truncation of backing file names at the
first underscore character. On a reboot, nova-compute checks the
backing images exist. Typically, they will do; however, instead
of looking for an "ephemeral_XXX" file, it hunts for "ephemeral".
This won't exist, triggering code that attempts to pull the whole
image again from glance(!)

Lacking credentials, the attempt to fetch the image will fail,
ultimately resulting in the instance going to an ERROR state.

Change-Id: Iabcc7a1ffd248c22a747a1ddc7863d2b386d409a
Pass instance host-id to Quantum using port bindings extension.

This is a nova change to pass the hostname on which the instance was started to
Quantum. The associated quantum plugins will pass this hostname to
hardware device vendors management stations to allow them to segment the network
in a more precise manner (for example automatically trunk the vlan on the
physical switch port connected to the compute host on which the VM instance was
started).

Implements: blueprint vm-host-quantum

Change-Id: I05012ac7abf67a94b515361a7ef7ac1063cb0ac3
Merge "xenapi: Remove vestigial `compile_metrics` code"