Bug 1472366

Summary: [RFE] Classic Ironic drivers deprecation
Product: Red Hat OpenStack Reporter: Dmitry Tantsur <dtantsur>
Component: openstack-ironicAssignee: Dmitry Tantsur <dtantsur>
Status: CLOSED ERRATA QA Contact: mlammon
Severity: high Docs Contact:
Priority: high    
Version: 13.0 (Queens)CC: bfournie, dtantsur, jschluet, mburns, racedoro, rhel-osp-director-maint, srevivo
Target Milestone: Upstream M3Keywords: FutureFeature, Triaged
Target Release: 13.0 (Queens)   
Hardware: Unspecified   
OS: Unspecified   
URL: http://specs.openstack.org/openstack/ironic-specs/specs/not-implemented/classic-drivers-future.html
Whiteboard:
Fixed In Version: openstack-ironic-10.1.2-0.20180326121311.ef08927.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-27 13:32:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1373472    
Bug Blocks:    

Description Dmitry Tantsur 2017-07-18 14:54:00 UTC
Upstream has decided to deprecate the classic drivers (e.g. pxe_ipmitool) in favour of the new-style dynamic ones (e.g. ipmi). The deprecation is planned for Queens, and the removal is planned for Rocky.

We need to make sure we provide and support all necessary new-style drivers. We may also provide an upgrade procedure, moving e.g. from pxe_ilo to ilo, etc.

Comment 2 Ramon Acedo 2017-11-02 14:12:19 UTC
Dmitry, is this a TestOnly type of RFE? It looks like this will be replacing the classic drivers by the dynamic ones for QA and update the documentation but there isn't any new code.

Comment 3 Dmitry Tantsur 2017-11-02 17:04:34 UTC
Well, there is some code to write for the actual deprecation warnings, some upstream and downstream docs to update, CI work, etc.

Comment 4 Dmitry Tantsur 2017-12-07 10:23:41 UTC
Unfortunately, due to overwhelming amount of documentation to update prior to deprecation, I have to move it to M3.

Comment 8 Dmitry Tantsur 2018-02-02 11:53:09 UTC
Moving to POST. Even though https://review.openstack.org/#/c/534842/ is still pending, the core of the feature is there.

Comment 10 Dmitry Tantsur 2018-03-29 13:03:23 UTC
Testing PASSED on RHEL 7.5, puddle 2018-03-29.1, using "ipmi" and "idrac" hardware types. Notes:

Testing - driver availability
-----------------------------

$ openstack baremetal driver list --type dynamic -c 'Supported driver(s)'
+---------------------+
| Supported driver(s) |
+---------------------+
| idrac               |
| ilo                 |
| ipmi                |
| redfish             |
+---------------------+

Testing - enrolling
-------------------

$ cat instackenv.json
{
  "nodes": [
    {
      "name": "host08",
      "pm_password": <hidden>,
      "pm_type": "ipmi",
      "pm_user": "root",
      "pm_addr": "host08-tripleo-drac.mgmt.lab.eng.rdu2.redhat.com"
    },
    {
      "name": "host09",
      "pm_password": <hidden>,
      "pm_type": "idrac",
      "pm_user": "root",
      "pm_addr": "host09-tripleo-drac.mgmt.lab.eng.rdu2.redhat.com"
    }
  ]
}
$ openstack overcloud node import --provide instackenv.json
$ openstack baremetal node list --fields name driver power_interface provision_state power_state
+--------+--------+-----------------+--------------------+-------------+
| Name   | Driver | Power Interface | Provisioning State | Power State |
+--------+--------+-----------------+--------------------+-------------+
| host08 | ipmi   | ipmitool        | available          | power off   |
| host09 | idrac  | idrac           | available          | power off   |
+--------+--------+-----------------+--------------------+-------------+

Testing - upgrade
-----------------

$ openstack baremetal node set host08 --driver pxe_ipmitool
$ openstack baremetal node set host09 --driver pxe_drac
# Simulate upgrade by re-running installation
$ openstack undercloud install
$ openstack baremetal node list --fields name driver power_interface provision_state power_state
+--------+--------+-----------------+--------------------+-------------+
| Name   | Driver | Power Interface | Provisioning State | Power State |
+--------+--------+-----------------+--------------------+-------------+
| host08 | ipmi   | ipmitool        | available          | power off   |
| host09 | idrac  | idrac           | available          | power off   |
+--------+--------+-----------------+--------------------+-------------+

Comment 12 errata-xmlrpc 2018-06-27 13:32:14 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2018:2086