summaryrefslogtreecommitdiff
path: root/ironic/db/api.py
diff options
context:
space:
mode:
authorDmitry Tantsur <divius.inside@gmail.com>2018-06-27 17:59:30 +0200
committerDmitry Tantsur <divius.inside@gmail.com>2018-07-02 17:37:28 +0200
commit53e7baef4205767af8e6c15e6e0e5369e04aea5e (patch)
tree5f3d49084484d1bbd3564315e05eb0b6d48aa097 /ironic/db/api.py
parent1171226dba72583ef518580482ae8ed2781fc997 (diff)
downloadironic-53e7baef4205767af8e6c15e6e0e5369e04aea5e.tar.gz
Remove support for creating and loading classic drivers
* removes any bits related to loading classic drivers from the drivers factory code * removes exceptions that only happen when classic drivers can be loaded * removes the BaseDriver, moves the useful functionality to the BareDriver class * /v1/drivers/?type=classic now always returns an empty list * removes the migration updating classic drivers to hardware types The documentation will be updated separately. Change-Id: I8ee58dfade87ae2a2544c5dcc27702c069f5089d
Diffstat (limited to 'ironic/db/api.py')
-rw-r--r--ironic/db/api.py33
1 files changed, 0 insertions, 33 deletions
diff --git a/ironic/db/api.py b/ironic/db/api.py
index bac5b9ec3..c7be8258d 100644
--- a/ironic/db/api.py
+++ b/ironic/db/api.py
@@ -518,20 +518,6 @@ class Connection(object):
"""
@abc.abstractmethod
- def get_active_driver_dict(self, interval):
- """Retrieve drivers for the registered and active conductors.
-
- :param interval: Seconds since last check-in of a conductor.
- :returns: A dict which maps driver names to the set of hosts
- which support them. For example:
-
- ::
-
- {driverA: set([host1, host2]),
- driverB: set([host2, host3])}
- """
-
- @abc.abstractmethod
def get_active_hardware_type_dict(self):
"""Retrieve hardware types for the registered and active conductors.
@@ -910,25 +896,6 @@ class Connection(object):
"""
@abc.abstractmethod
- def migrate_to_hardware_types(self, context, max_count,
- reset_unsupported_interfaces=False):
- """Migrate nodes from classic drivers to hardware types.
-
- Go through all nodes with a classic driver and try to migrate them to a
- corresponding hardware type and a correct set of hardware interfaces.
-
- :param context: the admin context
- :param max_count: The maximum number of objects to migrate. Must be
- >= 0. If zero, all the objects will be migrated.
- :param reset_unsupported_interfaces: whether to reset unsupported
- optional interfaces to their no-XXX versions.
- :returns: A 2-tuple, 1. the total number of objects that need to be
- migrated (at the beginning of this call) and 2. the number
- of migrated objects.
- """
- # TODO(dtantsur) Delete this in Rocky cycle.
-
- @abc.abstractmethod
def set_node_traits(self, node_id, traits, version):
"""Replace all of the node traits with specified list of traits.