def clear_node_owner(self, context): """Remove Node Driver ownership set for a Node Given a NodeContext, this method removes the Node owner mapping in DB. This method is used when we want to perform a disruptive chain update by deleting and recreating the Node instances """ model.unset_node_owner(context)
def schedule_destroy(self, context): """Schedule Node Driver for Node disruption. Given a NodeContext, this method returns the driver capable of destroying the specific node. """ driver = self.get_owning_driver(context) if driver: model.unset_node_owner(context) return driver