This is a follow up to the driver composition reform. Change-Id: I1111742cee554e8f3b26e85dddfe81a1b563ca22 Partial-Bug: #1690185 Related-Bug: #1524745
7.4 KiB
Future of classic drivers
https://bugs.launchpad.net/ironic/+bug/1690185
This specification discusses the future of the classic drivers after
the ../7.0/driver-composition-reform
was implemented in
the Ocata cycle. Terminology here follows one of that specification.
Problem description
We do not want to maintain two approaches to building drivers long-term. It increases complexity of the source code (see e.g. driver_factory.py) and the amount of testing for 3rdparty CI.
Proposed change
The change covers several cycles:
Pike
In the Pike cycle hardware types and classic drivers will co-exist as equally supported ways of writing drivers.
Dynamic drivers and all related API are considered stable and ready for production use.
Note
In the Ocata release notes we called the related API additions experimental.
No more classic drivers are accepted in tree.
No new interfaces are added to the existing classic drivers.
No interface implementations are changed in the existing classic drivers.
We recommend the vendors to provide hardware types analogous to their existing classic drivers. 3rd party CI should provide the complete coverage of all supported boot, deploy, management and power interface combinations. It's up to the vendors to decide whether to use classic drivers or hardware types to achieve that.
Queens
In the Queens cycle we will deprecate classic drivers.
We will require the vendors to provide hardware types analogous to their existing classic drivers. It is up to the vendors to choose the combination of interfaces to support. It will be recommended, however, to keep support for standard deploy and inspect interface implementations, if possible.
3rd party CI will have to cover all hardware types and all supported combinations of the boot, deploy, management and power interfaces. 3rd party CI will be able to stop covering supported classic drivers, when their functionality is covered through hardware types.
The classic drivers mechanism will be deprecated, and loading any classic driver (in-tree or out-of-tree) will result in a deprecation warning. The
enable_drivers
configuration option will be also deprecated.Note
In the Queens release we will continue running regular CI against classic drivers still.
Existing (in-tree) classic drivers will only receive critical bug fixes as related to the classic interface (i.e. they will still be affected by fixes in the interface implementations they share with hardware types).
Most of the upstream CI will run on the dynamic drivers (
ipmi
,snmp
andredfish
). The standalone job will provide coverage for classic drivers. Grenade will be testing switch from classic drivers (e.g.pxe_ipmitool
) to hardware types (e.g.ipmi
).Deprecate
-t
/--type
argument to driver listing commands inpython-ironicclient
.Note
Deprecating or removing the
type
argument to the driver listing API is outside of the scope of this proposal.Extend the upgrade documentation to contain a full mapping between supported classic drivers and associated combination of a hardware type and hardware interfaces. Explicitly mention classic drivers that will not receive a new counterpart per vendor decision, and which replacement is recommended for such drivers.
Update the whole documentation to only mention hardware types, except for the driver-specific documentation and the upgrade documentation bit explained above.
Rocky
In the Rocky release the support for classic drivers is removed.
- Remove all in-tree classic drivers.
- Remove support for loading classic drivers from driver_factory.py.
- Remove the
enable_drivers
configuration option. - Remove CI coverage for classic drivers.
- Remove
-t
/--type
argument to driver listing commands inpython-ironicclient
. - Update the driver listing API to always return an empty result when
classic
type is requested.
Alternatives
- Keep classic drivers forever. Complicates maintenance for unclear reasons.
- Start deprecation in the Pike cycle. We wanted to have at least one cycle where hardware types are fully supported before we jump into deprecation. Also, in this case we will have to rush the vendors into creating and supporting their hardware types before end of Pike.
Data model impact
None
State Machine Impact
None
REST API impact
Due to the way we designed ../approved/driver-composition-reform
, dynamic drivers
look very similar to the classic drivers for API point of view.
We could deprecate the type
argument to the driver
listing API. However,
- API deprecations are hard to communicate,
- due to API versioning, we will still have to support it forever.
Thus, this specification does not propose deprecating anything in the API.
Client (CLI) impact
"ironic" CLI
Deprecate -t
argument to the driver-list
command in the Queens cycle and remove it in Rocky.
"openstack baremetal" CLI
Deprecate --type
argument to the
baremetal driver list
command in the Queens cycle and
remove it in Rocky.
RPC API impact
None
Driver API impact
- In the Queens release, all classic drivers will behave as if they
had
supported = False
. - In the Rocky release, support for loading classic drivers will be
removed.
BaseDriver
will be merged withBareDriver
, code in driver_factory.py will be substantially simplified.
Nova driver impact
None
Ramdisk impact
None
Security impact
None
Other end user impact
Users of Ironic will have to switch their deployment to hardware types before upgrading to Rocky.
Scalability impact
None
Performance Impact
None
Other deployer impact
See Upgrades and Backwards Compatibility.
Developer impact
Out-of-tree classic drivers will not work with the Rocky release of Ironic.
Implementation
Assignee(s)
- Primary assignee:
-
Dmitry Tantsur (IRC: dtantsur, LP: divius)
Work Items
See Proposed Change for the quite detailed breakdown.
Dependencies
None
Testing
Starting with the Queens release, our CI will mainly test hardware types.
We will modify the Grenade job testing Pike -> Queens upgrade to
switch from *_ipmitool
to ipmi
during the
upgrade.
Upgrades and Backwards Compatibility
Removing the drivers and the classic driver mechanism is going to be a breaking change and has to be communicated accordingly.
Operators will have to enable appropriate hardware types and hardware interfaces in the Queens release.
Documentation Impact
The upgrade guide will be updated to explain moving from classic drivers to hardware types with a examples and a mapping between old and new drivers.