Interactive console support for ipminative driver

This patch adds interactive serial console support for ipminative
driver using shellinaboxd and pyghmi. A new class called
NativeIPMIShellinaboxConsole implements the ConsoleInterface.

Closes-Bug: 1359758
Change-Id: I9117c695af40044491fb7f213aa15e841e803d1c
Unbreak debugging via testr

Unconditionally capturing stdout and stderr makes debugging quite
hard, since we can't see what we're typing.

Change-Id: I89b721b74821dac150dac9df74d31a8f9bbfe8da
Nova review updates for _node_resource

In review https://review.openstack.org/#/c/111425/14 it has been
raised that if the cpu_arch is not set, we should be using Nova
helper functions instead of 'NotFound'.  Also we should be
canonicalizing the user provided config value.

Once this is approved and merged, it will be proposed back into
the Nova tree.

Change-Id: Idfe0730daa22c6550a1a15b45f481635d2eb5195
Driver merge review comments from 111425

This review contain fixes that addresses the review comments raised in
https://review.openstack.org/#/c/111425 revision 19 and 22.
Once these changes are merged here in Ironic, they will be
proposed as updates to the patch series over in Nova.

Change-Id: Idf4ea36670e5832600c5ff5f814e06aa096e156e
Updated from global requirements

Change-Id: I9fe46517c63e9135dcbd7b33efee60921f8bd2fd
Merge "Nova review updates for _node_resource"
Merge "Interactive console support for ipminative driver"
Use models.TimestampMixin from oslo.db

Since `ironic` and `oslo.db` uses `timeutils` from one place,
we can remove a temporary hack and re-use `TimestampMixin`
from common db code.

Change-Id: I48b2ce26484f1283ec65ae4f8dda57d962a8a875
Closes-Bug: #1354443
mock.assert_called_once() is not valid method

There are a few places in tests/conductor/test_manager.py where calls to
mock.assert_called_once() are made. The problem is that this isn't a valid
mock method, and 'assert_called_once' isn't a valid method of whatever is
being mocked. So it doesn't actually do anything.

This replaces the assert_called_once() calls with valid
assert_called_once_with() calls.

Change-Id: I7d46cf866bcce3b7e09bc556f2a1ddd10e4d1ca5
Partial-Bug: #1365745
Remove unnecessary mapping from Agent drivers

Both vendor methods comes from the same VendorInterface, so no need to
use the MixinVendorInterface.

Change-Id: I9d6cea289555a79f1ccb1c6698809e196e9e4255
Merge "Use models.TimestampMixin from oslo.db"
Merge "mock.assert_called_once() is not valid method"
Translator functions cleanup part 1

This part fixes ironic/common folder and tox.ini file.

Some modules use _ function for log translation, even when the
translated string is passed to e.g. LOG.warn function. This patch
fixes it, using translator functions appropriate for corresponding
log levels. Translator functions, imported from
ironic.openstack.common.gettextutils are now imported from
ironic.common.i18n. Translator functions are imported the same way
across all modules. All places that are changed conform to
http://docs.openstack.org/developer/oslo.i18n/guidelines.html

Partial-bug: #1364813

Change-Id: I195d0e256c5412d6d75d2e6c35b19b44f2a0b09f
Translator functions cleanup part 4

This part fixes ironic/api, ironic/cmd, ironic/tests folders.

Some modules use _ function for log translation, even when the
translated string is passed to e.g. LOG.warn function. This patch
fixes it, using translator functions appropriate for corresponding
log levels. Translator functions, imported from
ironic.openstack.common.gettextutils are now imported from
ironic.common.i18n. Translator functions are imported the same way
across all modules. All places that are changed conform to
http://docs.openstack.org/developer/oslo.i18n/guidelines.html

Partial-bug: #1364813

Change-Id: I92e5f0d50c3b507080fb95e81274a241558ce526
Merge "Unbreak debugging via testr"
Merge "Driver merge review comments from 111425"
Minor fixes for ipminative console support

This patch fixed a few minor problems left over from
https://review.openstack.org/#/c/97331/. It added some missing
exceptions in the doc strings. It also fixed a spelling error
in a testcase etc.

Change-Id: Ic8b1903d7ec429abb72999795631a8cbc7da05f5
Switch to "incubating" doc theme

Change the sphinx config to use the "incubating" theme from oslosphinx.

Change-Id: I51fcc9689e331dc2d233750f4489fb1a3375b39a
Merge "Updated from global requirements"
Merge "Translator functions cleanup part 1"