[openstack-dev] [ironic] automatic migration from classic drivers to hardware types?
aschultz at redhat.com
Tue Nov 14 22:05:32 UTC 2017
On Tue, Nov 14, 2017 at 8:10 AM, Dmitry Tantsur <dtantsur at redhat.com> wrote:
> Hi folks!
> This was raised several times, now I want to bring it to the wider audience.
> We're planning  to deprecate classic drivers in Queens and remove them in
> Rocky. It was pointed at the Forum that we'd better provide an automatic
> I'd like to hear your opinion on the options:
> (1) Migration as part of 'ironic-dbsync upgrade'
> * nothing new to do for the operators
> * upgrade will fail completely, if for some nodes the matching hardware
> types and/or interfaces are not enabled in ironic.conf
> (2) A separate script for migration
> * can be done in advance (even while still on Pike)
> * a failure won't fail the whole upgrade
> * will rely on drivers enabled in actually running conductors, not on
> * a new upgrade action before Rocky
> * won't be available in packaging
> * unclear how to update nodes that are in some process (e.g. cleaning), will
> probably have to be run several times
> (3) Migration as part of 'ironic-dbsync online_data_migration'
> * nothing new to do for the operators, similar to (1)
> * probably a more natural place to do this than (1)
> * can rely on drivers enabled in actually running conductors, not on
> * data migration will fail, if for some nodes the matching hardware types
> and/or interfaces are not enabled in ironic.conf
Rather than fail in various ways, why not do like what nova has with a
pre-upgrade status check and then just handle it in ironic-dbsync
upgrade? This would allow operators to check prior to running the
upgrade to understand what might need to be changed. Additionally the
upgrade command itself could leverage the status check to fail nicely.
> (4) Do nothing, let operators handle the migration.
> The most reasonable option for me seems (3), then (4). What do you think?
So this was chatted about in relation to some environment tooling we
have where we currently have where older 'pxe_ipmitool' defined and
this will need to switch to be 'ipmi'. The issue with the hard
cutover on this one is any tooling which may have been written that
currently works with multiple openstack releases to generate the
required json for ironic will now have to take that into account. I
know in our case we'll be needing to support newton for longer so
making the tooling openstack aware around this is just further
tech-debt that we'll be creating. Is there a better solution that
could be done either in ironic client or in the API to gracefully
handle this transition for a longer period of time? I think this may
be one of those decisions that has a far reaching impact on
deployers/operators due changes they will have to make to support
multiple versions or as they upgrade between versions and they aren't
fully aware of yet as many may not be on Ocata. This change seems
like it has a high UX impact and IMHO should be done very carefully.
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
More information about the OpenStack-dev