summaryrefslogtreecommitdiff
path: root/nova/db
diff options
context:
space:
mode:
authorStephen Finucane <sfinucan@redhat.com>2019-08-16 01:19:59 +0100
committerStephen Finucane <sfinucan@redhat.com>2019-12-23 14:20:28 +0000
commit02eb9cffe6dd72b58bbcd660588e79a504e4d738 (patch)
treed49a2197e300090dbc6c7030c2e99cd35f23739c /nova/db
parent4cb8136e95f38f4fbbe8eec9395400fd5076e3fa (diff)
downloadnova-02eb9cffe6dd72b58bbcd660588e79a504e4d738.tar.gz
Remove 'nova-xvpvncproxy'
This legacy service is no longer used and was deprecated during the Stein cycle [1]. It's time to say adios and remove them in their entirety. This is pretty straightforward, with the sole exception of schema for the 'remote-consoles' API, which has to continue supporting requests for type 'xvpvnc' even if we can't fulfil those requests now. [1] https://review.opendev.org/#/c/610076/ Part of blueprint remove-xvpvncproxy Depends-On: https://review.opendev.org/695853 Change-Id: I2f7f2379d0cd54e4d0a91008ddb44858cfc5a4cf Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
Diffstat (limited to 'nova/db')
-rw-r--r--nova/db/api.py10
-rw-r--r--nova/db/sqlalchemy/api.py12
-rw-r--r--nova/db/sqlalchemy/models.py1
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'