Switch nova-baremetal-deploy-helper to use sfdisk.

This patch changes make_partitions function to use sfdisk instead
of fdisk. Also added logging of cmd, stdout, and stderr should
command fail.

Fixes Bug 1088652

Change-Id: Ia2711a5450900c95598253f2a7b02e7c3e83a3d8
Authored-by: Chris Krelle <nobodycam@gmail.com>
Show quota 'in_use' and 'reserved' info

We need show all the quotas related info, including 'in_use' and
'reserved'--not just the limit--when executing 'nova-manage project
quota'.

Fix bug 1160752

Change-Id: I25e10e58c6af705e2189550ad762e6f39bca342e
Fix migrating instance to the same host.

In current code logic, Migration to the same host is allowed which is
meaningless.

In the patch, a Conf flag 'allow_migrate_to_same_host' is added and set to
false as default. When 'allow_migrate_to_same_host' is false, the current
instance host will be added into filter property 'ignore_hosts' to avoid
migrating instance to the same host.

Fixes: bug #1160268

Change-Id: I5ac0391cf468310a89fb6d8a8f5120c5654cb4ff
Query quantum once for instance's security groups

This patch adds the method get_instance_security_group_bindings()
which returns all the instance_id's and security groups for a given
tenant. This method is then used to avoid querying quantum for it's
security groups when using GET /v2/<project_id>/servers/detail.

Fixes bug 1161518

Change-Id: Ia28d5573c264f0316ab9fb257ca8e7ae35679883
Delete tests.baremetal.util.new_bm_deployment()

The function is not used anymore. It creates an instance of
BareMetalDeployment, which was removed in c20110d1.

Change-Id: I40b634f8cf0d4369f09cb61aca6f95a059e85d6d
Sync latest gettextutils from oslo-incubator

Fixes bug #1076285

Ensure translations for strings under nova.openstack.common are
translated using the 'nova' translation domain rather than the
non-existent 'openstack-common' translation domain.

Change-Id: I6aee3061cbffd3bf940f1881e8540cd996d0b12a
Merge "Delete tests.baremetal.util.new_bm_deployment()"
Merge "Query quantum once for instance's security groups"
Merge "Show quota 'in_use' and 'reserved' info"
Merge "Sync latest gettextutils from oslo-incubator"
Merge "Switch nova-baremetal-deploy-helper to use sfdisk."
Merge "Fix migrating instance to the same host."