"Unable to get quota information" in horizon when using quantum
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Critical
|
dan wendlandt | ||
OpenStack Dashboard (Horizon) |
Won't Fix
|
High
|
Gabriel Hurley |
Bug Description
Horizon is unable to retrieve quota information. Please see debug and the local_settings.py files below. However using the nova client, I can see retrieve the quota values.
DEBUG MESSAGE
Recoverable error: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-719d4c08-
Traceback (most recent call last):
File "/home/
self._quotas = api.nova.
File "/home/
value = self.func(*args)
File "/home/
floating_ips = tenant_
File "/home/
return novaclient(
File "/usr/local/
return self._list(
File "/usr/local/
_resp, body = self.api.
File "/usr/local/
return self._cs_
File "/usr/local/
**kwargs)
File "/usr/local/
resp, body = self.request(url, method, **kwargs)
File "/usr/local/
raise exceptions.
ClientException: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-719d4c08-
[24/Aug/2012 00:53:49] "GET /nova/ HTTP/1.1" 200 9791
[24/Aug/2012 00:53:49] "GET /i18n/js/horizon/ HTTP/1.1" 200 2158
unable to retrieve service catalog with token
Traceback (most recent call last):
File "/usr/local/
endpoint_
File "/usr/local/
raise exceptions.
EndpointNotFound: Endpoint not found.
HORIZON LOCAL SETTINGS FILE:
import os
from django.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
# Set SSL proxy settings:
# For Django 1.4+ pass this header from the proxy after terminating the SSL,
# and don't forget to strip it from the client's request.
# For more information see:
# https:/
# SECURE_
# Specify a regular expression to validate user passwords.
# HORIZON_CONFIG = {
# "password_
# "regex": '.*',
# "help_text": _("Your password does not meet the requirements.")
# }
# }
LOCAL_PATH = os.path.
DATABASES = {
'default': {
'ENGINE': 'django.
'NAME': 'dash',
'USER': 'root',
'PASSWORD': '$pass',
'HOST': '192.168.xxx.yyy',
},
}
QUANTUM_ENABLED = True
SWIFT_ENABLED = False
# Set custom secret key:
# You can either set it to a specific value or you can let horizion generate a
# default secret key that is unique on this machine, e.i. regardless of the
# amount of Python WSGI workers (if used behind Apache+mod_wsgi): However, there
# may be situations where you would want to set this explicitly, e.g. when
# multiple dashboard instances are distributed on different machines (usually
# behind a load-balancer). Either you have to make sure that a session gets all
# requests routed to the same dashboard instance or you set the same SECRET_KEY
# for all of them.
# from horizon.utils import secret_key
# SECRET_KEY = secret_
# We recommend you use memcached for development; otherwise after every reload
# of the django development server, you will have to login again. To use
# memcached set CACHE_BACKED to something like 'memcached:
CACHE_BACKEND = 'locmem://'
# Send email to the console by default
EMAIL_BACKEND = 'django.
# Or send them to /dev/null
#EMAIL_BACKEND = 'django.
# Configure these for your outgoing email host
# EMAIL_HOST = 'smtp.my-
# EMAIL_PORT = 25
# EMAIL_HOST_USER = 'djangomail'
# EMAIL_HOST_PASSWORD = 'top-secret!'
# For multiple regions uncomment this configuration, and add (endpoint, title).
# AVAILABLE_REGIONS = [
# ('http://
# ('http://
# ]
OPENSTACK_HOST = "192.168.xxx.yyy"
OPENSTACK_
# OPENSTACK_
OPENSTACK_
# OPENSTACK_
# The OPENSTACK_
# capabilities of the auth backend for Keystone.
# If Keystone has been configured to use LDAP as the auth backend then set
# can_edit_user to False and name to 'ldap'.
#
# TODO(tres): Remove these once Keystone has an API to identify auth backend.
OPENSTACK_
'name': 'native',
'can_
}
# OPENSTACK_
# in the Keystone service catalog. Use this setting when Horizon is running
# external to the OpenStack environment. The default is 'internalURL'.
#OPENSTACK_
# The number of Swift containers and objects to display on a single page before
# providing a paging element (a "more" link) to paginate results.
API_RESULT_LIMIT = 1000
# The timezone of the server. This should correspond with the timezone
# of your entire OpenStack installation, and hopefully be in UTC.
TIME_ZONE = "UTC"
LOGGING = {
'version': 1,
# When set to True this will disable all logging except
# for loggers specified in this configuration dictionary. Note that
# if nothing is specified here and disable_
# django.db.backends will still log unless it is disabled explicitly.
'handlers': {
'null': {
},
# Set the level to "DEBUG" for verbose output logging.
},
},
'loggers': {
# Logging from django.db.backends is VERY verbose, send to null
# by default.
},
},
},
},
},
},
}
}
}
Changed in horizon: | |
status: | New → Triaged |
milestone: | none → folsom-rc1 |
importance: | Undecided → High |
Changed in horizon: | |
milestone: | folsom-rc1 → none |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | folsom-rc1 → 2012.2 |
The traceback indicates that something went wrong with Nova (hence the 500 error code). I'd have to see the nova logs to even begin debugging this.
It would also be helpful to know how you installed the various OpenStack components and what versions you're running of Horizon, Nova and python-novaclient.
Lastly, it would be helpful to know if everything works *except* this, or if this is just the first error you saw.