diff options
author | Thang Pham <thang.g.pham@gmail.com> | 2014-07-04 14:53:10 -0400 |
---|---|---|
committer | Thang Pham <thang.g.pham@gmail.com> | 2014-07-04 15:23:22 -0400 |
commit | a5dbda3f429d0a1e6cb4fc28b2a620dc2b40fd59 (patch) | |
tree | 1278e2023de656cefb231cb5882978104527564f /nova/cmd | |
parent | 83041380c8ff7c1f0cbc965dcb058302daa7714d (diff) | |
download | nova-a5dbda3f429d0a1e6cb4fc28b2a620dc2b40fd59.tar.gz |
Resolve import dependency in consoleauth service
If you attempt to access an instance's noVNC console on the
horizon dashboard, an AttributeError is thrown, complaining
about 'module' object having no attribute 'InstanceInfoCache'.
This is because the objects are not registered by the consoleauth
service. This patch fixes this import dependency by registering
all objects so it could be used by the consoleauth service.
Change-Id: I4f9b922a077076b156833590762106d5cd2ad276
Closes-Bug: #1337447
Diffstat (limited to 'nova/cmd')
-rw-r--r-- | nova/cmd/consoleauth.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nova/cmd/consoleauth.py b/nova/cmd/consoleauth.py index 7cc491b7a1..238007ffc9 100644 --- a/nova/cmd/consoleauth.py +++ b/nova/cmd/consoleauth.py @@ -20,6 +20,7 @@ import sys from oslo.config import cfg from nova import config +from nova import objects from nova.openstack.common import log as logging from nova.openstack.common.report import guru_meditation_report as gmr from nova import service @@ -31,6 +32,7 @@ CONF = cfg.CONF def main(): config.parse_args(sys.argv) logging.setup("nova") + objects.register_all() gmr.TextGuruMeditation.setup_autorun(version) |