Drop `bm_pxe_ips` table from baremetal database.

- added migration and tests
- removed model `BareMetalPxeIp`
- from nova/virt/baremetal/db/sqlalchemy/api.py removed functions
 `bm_pxe_ip_get_all`, `bm_pxe_ip_create`, `bm_pxe_ip_create_direct`,
 `bm_pxe_ip_destroy`, `bm_pxe_ip_destroy_by_address`, 'bm_pxe_ip_get`,
 `bm_pxe_ip_get_by_bm_node_id`, `bm_pxe_ip_associate`, 'bm_pxe_ip_disassociate`
- from nova/virt/baremetal/db/api.py removed functions
 `bm_node_associate_and_update`, `bm_pxe_ip_create`, `bm_pxe_ip_create_direct`,
 `bm_pxe_ip_destroy`, `bm_pxe_ip_destroy_by_address`, `bm_pxe_ip_get_all`,
 `bm_pxe_ip_get`, `bm_pxe_ip_get_by_bm_node_id, `bm_pxe_ip_associate`,
 `bm_pxe_ip_disassociate`
- from nova/tests/virt/baremetal/db/utils.py removed function `new_bm_pxe_ip`
- removed nova/tests/virt/baremetal/db/test_bm_pxe_ip.py
- modified `baremetal/volume_driver.py` - now we get `address` using
  nova db api

Fixes bug 1156745

Change-Id: I61f78d692da276694d79a7c1a8d45a466d124c70
Add old display name to update notification

Add old display name to payload of update notification when it is
changed, so the notification consumer could know the display name is
changed which is the same as task_state.
Fixes bug 1191612

Change-Id: I47b8ad8ffc2988212b59fb141e83b8110994b8da
Add err_msg param to baremetal_deploy_helper.

Updates the baremetal-deploy-helper so that we look for an
option 'e' POST parameter which contains an optional error
message string from the agent.

This works with the associated DIB branch here:
  http://review.openstack.org/#/c/33341/

And is also fully backwards compatible with existing agent scripts
which do not send the 'e' parameter.

Change-Id: I9a5914e719c2db6d2ae6d002cd386a0e48fda18d
Fill context on objects in lists

This fixes object lists to not contain orphaned objects after
making an RPC trip.

Fixes bug 1191113

Change-Id: Ia90321da2f480835e1c7213a52eb5731840dbd6a
Retry the sfdisk command up to 3 times.

Updates the nova baremetal-deploy-helper so that we retry
the fdisk command up to 3 times.

Previously the command would sometimes intermittently fail with
'Device or resource busy' errors. There doesn't seem to be a good way
to check/verify this other than to retry.

Fixes LP Bug #1191084.

Change-Id: I9c0733432dee5d556d6d2460db42f844e277c8de
Converts scheduler.utils.build_request_spec return to json primitive

Other than 'instance', 'image' can also be a complex structure and
then it needs to be converted. See: nova.compute.rpcapi.prep_resize
as an example.

Change-Id: I54570dad3eae6ecc91a433af68263794c22e268d
Sync oslo-incubator gettextutils

This change brings in new functionality from gettextutils
needed for supporting API message localization in Nova.

bp user-locale-api

Change-Id: Ia81f46bb980a237f345f6b8600dfe2a75e4b8c77
Added unit tests for vmware cluster driver

Change-Id: Ie41b573f9a16a71306b6e2aca34f1d78f4b801c5
xenapi: script to rotate the guest logs

Xen will produce the guest logs in a specified directory.

This scripts configures the above logging as expected
by the xapi plugin nova uses to read the logs.
In addition it ensures that any log that grows bigger
than 1MB will be truncated down to 5KB.

Ensuring the log directory is inside a loop back device
of a restricted size, and running this script every
minute using cron, will stop guests from using up
too much Dom0 disk space, and taking out the hypervisor

Part of blueprint xenapi-server-log
Change-Id: I4caa82f4d0620d924e37e3b605cf62b4d5b73570
Libvirt driver: normalize variable names (part1)

Variable names referring to the same objects/data are different
throughout the libvirt driver. This can lead to confusion, which
leads to avoidable bugs.

Part1:
    ctxt -> context
    instance_ref -> instance

Change-Id: I9d170b6025935544f07ecdebe5a68b2e2eaba5dd
Remove usage of locals() for formatting from nova.scheduler.*

Using of locals() for formatting string is a nasty thing because:
1) It is not so clear as using explicit dicts
2) It could produce hidden errors during refactoring
3) Changing name of variable causes change in message
4) Creating a lot of unused variables

fixes bug #1171936

Change-Id: I7639631846a9145c3a18f2a704b71184ec781f45
Add oslo-config-1.2.0a2 and pbr>=0.5.16 to requirements.

See bug #1189889.

Change-Id: Id0dae9cea96ee779bc94a095d1ec5d046f2b39b4
Fixes: bug #1189889
Imported Translations from Transifex

Change-Id: I451c6702924f36b91aa1177fc22c2815367669de
Merge "Added unit tests for vmware cluster driver"
Merge "xenapi: script to rotate the guest logs"
Merge "Fill context on objects in lists"
Merge "Libvirt driver: normalize variable names (part1)"
Merge "Retry the sfdisk command up to 3 times."
Merge "Add oslo-config-1.2.0a2 and pbr>=0.5.16 to requirements."
Merge "Converts scheduler.utils.build_request_spec return to json primitive"