summaryrefslogtreecommitdiff
path: root/ironic/cmd
diff options
context:
space:
mode:
authorDmitry Tantsur <divius.inside@gmail.com>2018-01-16 17:27:17 +0100
committerDmitry Tantsur <divius.inside@gmail.com>2018-01-26 21:17:26 +0000
commitcc6f7bc73e2b1c9dad9624f3bc9c4c6ac3d103de (patch)
tree016aa468cdbc15a9f31b5c73b5450f16e736aba6 /ironic/cmd
parent98570dc6addb4dbdac8cf394fcf29e6c640f1fff (diff)
downloadironic-cc6f7bc73e2b1c9dad9624f3bc9c4c6ac3d103de.tar.gz
Automatically migrate nodes to hardware types
This change adds a new data migration: migrate_to_hardware_types. It works by walking through known classic drivers, detecting matching hardware types and interfaces and updates nodes accordingly. Nodes that cannot be updated (e.g. matching hardware type is not enabled) are skipped. A new migration option reset_unsupported_interfaces can be set to True to allow resetting optional interfaces to their no-op versions. The example implementation are provided for the community supported IPMI and SNMP drivers, as well as for fake drivers based on them. Change-Id: I732b44f2ab1ef73f56b352415ffd9cdd8a0e232b Partial-Bug: #1690185
Diffstat (limited to 'ironic/cmd')
-rw-r--r--ironic/cmd/dbsync.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ironic/cmd/dbsync.py b/ironic/cmd/dbsync.py
index 30b484df3..5de5828f1 100644
--- a/ironic/cmd/dbsync.py
+++ b/ironic/cmd/dbsync.py
@@ -65,6 +65,8 @@ ONLINE_MIGRATIONS = (
# Added in Pike, modified in Queens
# TODO(rloo): remove in Rocky
(dbapi, 'backfill_version_column'),
+ # TODO(dtantsur): remove when classic drivers are removed (Rocky?)
+ (dbapi, 'migrate_to_hardware_types'),
)