Translator functions cleanup part 3

This part fixes ironic/conductor, ironic/dhcp and ironic/objects
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: Ib4b93cc49f16836a95c7cfb4c5f1705f5cbbb31f
Log ERROR power state in node_power_action()

Power driver can returns ERROR state. Log this error and do not
break requested action (this can be unknown valid state).

Partial-Bug: #1358816
Change-Id: I9b26440671cb44b58016dfd796adbd8fedd483ae
Deprecate Ironic compute driver and sched manager

Updates the Ironic compute driver and scheduler manager so that they
subclass the now in-Nova-tree driver classes. This should de-duplicate
code maintenance across Nova and Ironic and also provide end users
an easier upgrade path (with Deprecation log messages).

This patch also removes the old Ironic compute driver tests and classes
since those now live in Nova.

This patch also removes a line from tox.ini which was copying the second
set of unit test outputs; those no longer exist, since we are no longer
running unit tests on nova code in this tree.

Co-Authored-By: Dan Prince <dprince@redhat.com>
Co-Authored-By: Devananda van der Veen <devananda.vdv@gmail.com>

Change-Id: Ic194f779eca470e4a4dd8a3fbd31ca5a6f6b4f7e
Updated from global requirements

Change-Id: Ifa1e0a45cc0d34a42fc8c7218ccf97dee22e0b31
Sync the document with the current implementation

Our pxe_ipminative driver also supports sending notifications to Ceilometer.
So the documentation needs to be synced with current code.

Change-Id: I5eb72bd26d8ca50ffc5696e378b1c3beaa117fd3
Merge "Updated from global requirements"
Merge "Deprecate Ironic compute driver and sched manager"
Merge "Sync the document with the current implementation"
Merge "Translator functions cleanup part 3"
Merge "Log ERROR power state in node_power_action()"
Add list_by_node_id() to Port object

What it says. Also make the code and tests use them vs direct calls
to dbapi.

Change-Id: I5bfa6ec93be0d6f7460d5b1c45a057cc7ab3bc9b
Partial-Bug: #1314732
Search line with awk itself and avoid grep

In ssh driver, some command sets are needlessly long.
"awk" command can search line itself. This fixes it.

Change-Id: Ie900aebe2f9ff7745c0456c5650204df84d0e799
Closes-Bug: #1365268
Revert "Search line with awk itself and avoid grep"

This commit causes all tripleo ironic CI jobs to fail CI.
The tripleo test env's need to be adjusted and redeployed first
in order to accept a new command over ssh.

Change-Id: Id057603717777777536f7ca947792862724b28f5
Merge "Add list_by_node_id() to Port object"
Merge "Revert "Search line with awk itself and avoid grep""
Remove bypassing of H302 for gettextutils markers

When we used the i18n markers (_, _LE, _LW, etc) from
ironic.openstack.common.gettextutils, we bypassed H302
hacking rule for them (via tox.ini file). Now that we've
converted to using the markers from oslo.i18n and are no
longer using the markers from gettextutils, we can remove
the bypass stuff.

Change-Id: I26147b69884cd9c075e1cfe38a92e38e861083e7
Closes-Bug: #1368425
Support for setting boot mode in pxe_ilo driver

This commit adds support for setting boot mode in pxe_ilo
driver with the help of iloclient.
It modifies the PXEAndIloDriver so that it uses
IloPower for power management,
IloPXEDeploy for image deployment,
IloPXEVendorPassthru for vendorpassthru,
IPMITool console and management interfaces.

Change-Id: Ifb29c6b4c60ce17a7e5c15af7fb62e1c1e1c9ad7
Implements: blueprint uefi-boot-for-ironic
Add uefi boot mode support in IloVirtualMediaIscsiDeploy

The following functionality need to be added in iLO driver:
  - Add set_boot_mode function to iLO driver to switch between
    bios and uefi boot modes.
  - Validate boot_mode for IloVirtualMediaIscsiDeploy driver.

Change-Id: Ic8496a2d97aab6634b573c85d379b446c49e04b9
Implements: blueprint uefi-boot-for-ironic
Add reserve() and release() to Node object

What it says. Also make the code and tests use them vs direct calls
to dbapi.

Change-Id: I0158be53ff683ec3569007bc6f0cee6395241062
Partial-Bug: #1314732
Remove the objectify decorator

The objectify decorator was used to convert DB objects into RPC objects,
but it's not being used anymore since out objects API already has
correspondent methods to match the dbapi ones.

Also, since dbapi methods didn't get a context the decorator was forming
bad RPC objects without a context stored within it.

Change-Id: I892ab6ee2236af040c7f8effcfdfecb293e13ab6
Partial-Bug: #1314732