diff options
Diffstat (limited to 'nova/db')
-rw-r--r-- | nova/db/api.py | 10 | ||||
-rw-r--r-- | nova/db/sqlalchemy/api.py | 12 | ||||
-rw-r--r-- | nova/db/sqlalchemy/models.py | 1 |
3 files changed, 1 insertions, 22 deletions
diff --git a/nova/db/api.py b/nova/db/api.py index d448cb0911..4f3c8e9982 100644 --- a/nova/db/api.py +++ b/nova/db/api.py @@ -1398,16 +1398,6 @@ def project_get_networks(context, project_id, associate=True): ################## -def console_pool_get_all_by_host_type(context, host, console_type): - """Fetch all pools for given proxy host and type.""" - return IMPL.console_pool_get_all_by_host_type(context, - host, - console_type) - - -################## - - def pci_device_get_by_addr(context, node_id, dev_addr): """Get PCI device by address.""" return IMPL.pci_device_get_by_addr(context, node_id, dev_addr) diff --git a/nova/db/sqlalchemy/api.py b/nova/db/sqlalchemy/api.py index fc66425ab1..9411f622f5 100644 --- a/nova/db/sqlalchemy/api.py +++ b/nova/db/sqlalchemy/api.py @@ -4461,18 +4461,6 @@ def migration_migrate_to_uuid(context, count): return done, done -################## - - -@pick_context_manager_reader -def console_pool_get_all_by_host_type(context, host, console_type): - return model_query(context, models.ConsolePool, read_deleted="no").\ - filter_by(host=host).\ - filter_by(console_type=console_type).\ - options(joinedload('consoles')).\ - all() - - ######################## # User-provided metadata diff --git a/nova/db/sqlalchemy/models.py b/nova/db/sqlalchemy/models.py index 579adce231..c6f43ef763 100644 --- a/nova/db/sqlalchemy/models.py +++ b/nova/db/sqlalchemy/models.py @@ -985,6 +985,7 @@ class DNSDomain(BASE, NovaBase, models.SoftDeleteMixin): project_id = Column(String(255)) +# TODO(stephenfin): Remove in V or later class ConsolePool(BASE, NovaBase, models.SoftDeleteMixin): """Represents pool of consoles on the same physical node.""" __tablename__ = 'console_pools' |