Add tftp_server pattern in ironic.conf

This is the fix for bug 1236623. Currently we used $my_ip as the
tftp_server, but we do need a dedicated config option especially
when the provisioning network and public network for nova are
different.

Change-Id: I4b619319cee55c974027a2c4667230a6a499628f
Partial-Bug: #1236623
Sync common.context changes from olso

Sync changes to common.context, to remove the dependency on the uuidutils
module that's going to be removed from oslo.

Change-Id: Ibae8af811d7f5b7d6a1499f35288073e5d383e64
Remove openstack.common.uuidutils

Remove the oslo uuidutils module requirement.

Change-Id: Ic17282c87d6a95b64f3874e189f89c9f9f8be196
Use oslo's execute() and ssh_execute() methods

Based on nova's Ice9cdbdc5f3e5a9f8365f5d99acf1863a9fe3e7a

This patch also PEP8-fy the imports from common/utils

Change-Id: I71f08e892e438ce998c1c80d15c0c6a287112d66
Import uuidutils unit tests from oslo

uuidutils is going to be removed from oslo, so we need to remove the
calls from our Ironic code. For reference, see
http://lists.openstack.org/pipermail/openstack-dev/2013-November/018980.html

This change imports the unit tests from Oslo for both
generate_uuid and is_uuid_like, which have been ported to ironic.common.

Closes-Bug: #1253497
Change-Id: I14ed5864615d798f5658d53be28af6bd5e86fc43
Merge "Add tftp_server pattern in ironic.conf"
Update ironic.conf.sample

Several patches slipped through without updating the sample
configuration. This patch merely brings it up to date.

Change-Id: I028722462293a59195a0a271218dd69a008699e2
Bump required version of sqlalchemy-migrate

Bump required version of sqlalchemy-migrate

Change-Id: I4b5dc08c416f1a8055b1510d59fce4711d50e5b5
Sync some db changes from Oslo

Import two new db exception classes, and
sync many changes to openstack.common.db.sqlalchemy:
- models.py has better py3 support
- updated / deprecated option names in session.py
- many new functions available in utils.py

Change-Id: Ia7bac4ea61dbb8cb5baf6cf2064a94895cba3f2c
Merge "Sync common.context changes from olso"
Merge "Remove openstack.common.uuidutils"
Merge "Bump required version of sqlalchemy-migrate"
Merge "Import uuidutils unit tests from oslo"
Implement consistent hashing common methods

Implement consistent hashing functions and add unit tests.

These will be used by each conductor service to determine
which nodes it is responsible for, and by each API service
to determine where to route RPC requests for specific nodes.

Change-Id: I6d6ae987e76e2d11f8f3f8843800a17d8ff1aaa0
bp: instance-mapping-by-consistent-hash
Merge "Implement consistent hashing common methods"
Add port address unique constraint for sqlite

SQLite backend used in unit tests, but unique constraint for 'address'
column in 'ports' table not working for this backend. Patch fix this
and also unit tests which violates 'address' UC.

Closes-Bug: #1252343
Change-Id: I761e480c99f1687531cf4c64a64c02faa7e4fb73
Do not allow API to expose error stacktrace

Due to specific implementation of RPC error deserialization we have
remote exception traceback built into the error message, therefore
web server puts it to the response and sends to the client. This
patch adds Pecan hook that cuts off traceback from the error message
before it sent to the client.

Closes-Bug: #1244747
Change-Id: Ic12f151123f4ccce36d64608873eeb99eccc525a
Allow Pecan to use 'debuginfo' response field

Currently we have Pecan app improperly integrated with WSME, api
config does not include 'wsme' section. Therefore 'debuginfo'
response field intended to carry exception traceback when server
in debug mode is never used. This patch adds wsme section to api
config with debug field picked from ironic.conf.
This patch also adds documentation references for existing configs.

Change-Id: Iabc042a533c0e3357853a01267ea2252bd61e6e1
Closes-Bug: #1254002
Merge "Sync some db changes from Oslo"
Merge "Use oslo's execute() and ssh_execute() methods"