Horizon on RHEL Launch errors

Asked by coolshiva123 on 2014-02-26

Can somebody help me to fix this?

[Wed Feb 26 20:04:59 2014] [error] [client 127.0.0.1] mod_wsgi (pid=6583): Exception occurred processing WSGI script '/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi'.
[Wed Feb 26 20:04:59 2014] [error] [client 127.0.0.1] Traceback (most recent call last):
[Wed Feb 26 20:04:59 2014] [error] [client 127.0.0.1] File "/usr/lib/python2.6/site-packages/django/core/handlers/wsgi.py", line 219, in __call__
[Wed Feb 26 20:04:59 2014] [error] [client 127.0.0.1] self.load_middleware()
[Wed Feb 26 20:04:59 2014] [error] [client 127.0.0.1] File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 39, in load_middleware
[Wed Feb 26 20:04:59 2014] [error] [client 127.0.0.1] for middleware_path in settings.MIDDLEWARE_CLASSES:
[Wed Feb 26 20:04:59 2014] [error] [client 127.0.0.1] File "/usr/lib/python2.6/site-packages/django/utils/functional.py", line 184, in inner
[Wed Feb 26 20:04:59 2014] [error] [client 127.0.0.1] self._setup()
[Wed Feb 26 20:04:59 2014] [error] [client 127.0.0.1] File "/usr/lib/python2.6/site-packages/django/conf/__init__.py", line 42, in _setup
[Wed Feb 26 20:04:59 2014] [error] [client 127.0.0.1] self._wrapped = Settings(settings_module)
[Wed Feb 26 20:04:59 2014] [error] [client 127.0.0.1] File "/usr/lib/python2.6/site-packages/django/conf/__init__.py", line 93, in __init__
[Wed Feb 26 20:04:59 2014] [error] [client 127.0.0.1] mod = importlib.import_module(self.SETTINGS_MODULE)
[Wed Feb 26 20:04:59 2014] [error] [client 127.0.0.1] File "/usr/lib/python2.6/site-packages/django/utils/importlib.py", line 35, in import_module
[Wed Feb 26 20:04:59 2014] [error] [client 127.0.0.1] __import__(name)
[Wed Feb 26 20:04:59 2014] [error] [client 127.0.0.1] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/settings.py", line 221, in <module>
[Wed Feb 26 20:04:59 2014] [error] [client 127.0.0.1] from local.local_settings import * # noqa
[Wed Feb 26 20:04:59 2014] [error] [client 127.0.0.1] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/local/local_settings.py", line 106
[Wed Feb 26 20:04:59 2014] [error] [client 127.0.0.1] 'LOCATION' : '127.0.0.1:11211'
[Wed Feb 26 20:04:59 2014] [error] [client 127.0.0.1] ^
[Wed Feb 26 20:04:59 2014] [error] [client 127.0.0.1] SyntaxError: invalid syntax
[Wed Feb 26 20:11:14 2014] [notice] caught SIGTERM, shutting down
[Wed Feb 26 20:11:15 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Feb 26 20:11:15 2014] [notice] Digest: generating secret for digest authentication ...
[Wed Feb 26 20:11:15 2014] [notice] Digest: done
[Wed Feb 26 20:11:15 2014] [notice] Apache/2.2.15 (Unix) DAV/2 mod_auth_kerb/5.4 mod_auth_pgsql/2.0.3 mod_nss/2.2.15 NSS/3.15.1 Basic ECC PHP/5.3.3 mod_ssl/2.2.15 OpenSSL/1.0.0-fips SVN/1.6.11 mod_wsgi/3.2 Python/2.6.6 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations

Question information

Language:
English Edit question
Status:
Answered
For:
OpenStack Dashboard (Horizon) Edit question
Assignee:
No assignee Edit question
Last query:
2014-02-26
Last reply:
2014-03-10

This question was originally filed as bug #1285199.

coolshiva123 (coolshiva123) said : #1

Can somebody help me to fix this?

[Wed Feb 26 20:04:59 2014] [error] [client 127.0.0.1] mod_wsgi (pid=6583): Exception occurred processing WSGI script '/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi'.
[Wed Feb 26 20:04:59 2014] [error] [client 127.0.0.1] Traceback (most recent call last):
[Wed Feb 26 20:04:59 2014] [error] [client 127.0.0.1] File "/usr/lib/python2.6/site-packages/django/core/handlers/wsgi.py", line 219, in __call__
[Wed Feb 26 20:04:59 2014] [error] [client 127.0.0.1] self.load_middleware()
[Wed Feb 26 20:04:59 2014] [error] [client 127.0.0.1] File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 39, in load_middleware
[Wed Feb 26 20:04:59 2014] [error] [client 127.0.0.1] for middleware_path in settings.MIDDLEWARE_CLASSES:
[Wed Feb 26 20:04:59 2014] [error] [client 127.0.0.1] File "/usr/lib/python2.6/site-packages/django/utils/functional.py", line 184, in inner
[Wed Feb 26 20:04:59 2014] [error] [client 127.0.0.1] self._setup()
[Wed Feb 26 20:04:59 2014] [error] [client 127.0.0.1] File "/usr/lib/python2.6/site-packages/django/conf/__init__.py", line 42, in _setup
[Wed Feb 26 20:04:59 2014] [error] [client 127.0.0.1] self._wrapped = Settings(settings_module)
[Wed Feb 26 20:04:59 2014] [error] [client 127.0.0.1] File "/usr/lib/python2.6/site-packages/django/conf/__init__.py", line 93, in __init__
[Wed Feb 26 20:04:59 2014] [error] [client 127.0.0.1] mod = importlib.import_module(self.SETTINGS_MODULE)
[Wed Feb 26 20:04:59 2014] [error] [client 127.0.0.1] File "/usr/lib/python2.6/site-packages/django/utils/importlib.py", line 35, in import_module
[Wed Feb 26 20:04:59 2014] [error] [client 127.0.0.1] __import__(name)
[Wed Feb 26 20:04:59 2014] [error] [client 127.0.0.1] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/settings.py", line 221, in <module>
[Wed Feb 26 20:04:59 2014] [error] [client 127.0.0.1] from local.local_settings import * # noqa
[Wed Feb 26 20:04:59 2014] [error] [client 127.0.0.1] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/local/local_settings.py", line 106
[Wed Feb 26 20:04:59 2014] [error] [client 127.0.0.1] 'LOCATION' : '127.0.0.1:11211'
[Wed Feb 26 20:04:59 2014] [error] [client 127.0.0.1] ^
[Wed Feb 26 20:04:59 2014] [error] [client 127.0.0.1] SyntaxError: invalid syntax
[Wed Feb 26 20:11:14 2014] [notice] caught SIGTERM, shutting down
[Wed Feb 26 20:11:15 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Feb 26 20:11:15 2014] [notice] Digest: generating secret for digest authentication ...
[Wed Feb 26 20:11:15 2014] [notice] Digest: done
[Wed Feb 26 20:11:15 2014] [notice] Apache/2.2.15 (Unix) DAV/2 mod_auth_kerb/5.4 mod_auth_pgsql/2.0.3 mod_nss/2.2.15 NSS/3.15.1 Basic ECC PHP/5.3.3 mod_ssl/2.2.15 OpenSSL/1.0.0-fips SVN/1.6.11 mod_wsgi/3.2 Python/2.6.6 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations

Julie Pichon (jpichon) said : #2

Could you paste a dozen lines from your /etc/openstack-dashboard/local_settings file before and after line 106? Looks like there's an issue with how the settings were modified.

coolshiva123 (coolshiva123) said : #3

Hi Julie Pichon,

CACHES = {
    'default': {
        'BACKEND' : 'django.core.cache.backends.locmem.LocMemCache'
    }
I removed the 'LOCATION' : '127.0.0.1:11211' settings from the stanza (as recommeded by the open source doc.

Then I changed the following ALLOWED_HOSTS = ['*']

The dashboard started working !

Here is my /etc/openstack-dashboard/local_settings

    98 # CACHES = {
    99 # 'default': {
   100 # 'BACKEND' : 'django.core.cache.backends.memcached.MemcachedCache',
   101 # 'LOCATION' : '127.0.0.1:11211',
   102 # }
   103 #}
   104 CACHES = {
   105 'default': {
   106 'BACKEND' : 'django.core.cache.backends.locmem.LocMemCache'
   107 }
   108 }
   109 # Send email to the console by default
   110 EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
   111 # Or send them to /dev/null
   112 #EMAIL_BACKEND = 'django.core.mail.backends.dummy.EmailBackend'
   113
   114 # Configure these for your outgoing email host
   115 # EMAIL_HOST = 'smtp.my-company.com'
   116 # EMAIL_PORT = 25
   117 # EMAIL_HOST_USER = 'djangomail'
   118 # EMAIL_HOST_PASSWORD = 'top-secret!'
   119
   120 # For multiple regions uncomment this configuration, and add (endpoint, title).
   121 # AVAILABLE_REGIONS = [
   122 # ('http://cluster1.example.com:5000/v2.0', 'cluster1'),
   123 # ('http://cluster2.example.com:5000/v2.0', 'cluster2'),
   124 # ]
   125
   126 #OPENSTACK_HOST = "127.0.0.1"
   127 OPENSTACK_HOST = "controller"
   128 OPENSTACK_KEYSTONE_URL = "http://%s:5000/v2.0" % OPENSTACK_HOST
   129 OPENSTACK_KEYSTONE_DEFAULT_ROLE = "Member"
   130
   131 # Disable SSL certificate checks (useful for self-signed certificates):
   132 # OPENSTACK_SSL_NO_VERIFY = True
   133
   134 # The CA certificate to use to verify SSL connections
   135 # OPENSTACK_SSL_CACERT = '/path/to/cacert.pem'
   136
   137 # The OPENSTACK_KEYSTONE_BACKEND settings can be used to identify the
   138 # capabilities of the auth backend for Keystone.
   139 # If Keystone has been configured to use LDAP as the auth backend then set
   140 # can_edit_user to False and name to 'ldap'.
   141 #
   142 # TODO(tres): Remove these once Keystone has an API to identify auth backend.
   143 OPENSTACK_KEYSTONE_BACKEND = {
   144 'name': 'native',
   145 'can_edit_user': True,
   146 'can_edit_group': True,
   147 'can_edit_project': True,
   148 'can_edit_domain': True,
   149 'can_edit_role': True
   150 }
   151
   152 OPENSTACK_HYPERVISOR_FEATURES = {
   153 'can_set_mount_point': False,
   154
   155 # NOTE: as of Grizzly this is not yet supported in Nova so enabling this
   156 # setting will not do anything useful
   157 'can_encrypt_volumes': False
   158 }
   159
   160 # The OPENSTACK_NEUTRON_NETWORK settings can be used to enable optional
   161 # services provided by neutron. Options currenly available are load
   162 # balancer service, security groups, quotas, VPN service.
   163 OPENSTACK_NEUTRON_NETWORK = {
   164 'enable_lb': False,
   165 'enable_firewall': False,
   166 'enable_quotas': True,
   167 'enable_vpn': False,
   168 # The profile_support option is used to detect if an external router can be
   169 # configured via the dashboard. When using specific plugins the
   170 # profile_support can be turned on if needed.
   171 'profile_support': None,
   172 #'profile_support': 'cisco',
   173 }
   174
   175 # The OPENSTACK_IMAGE_BACKEND settings can be used to customize features
   176 # in the OpenStack Dashboard related to the Image service, such as the list
   177 # of supported image formats.
   178 # OPENSTACK_IMAGE_BACKEND = {
   179 # 'image_formats': [
   180 # ('', ''),
   181 # ('aki', _('AKI - Amazon Kernel Image')),
   182 # ('ami', _('AMI - Amazon Machine Image')),
   183 # ('ari', _('ARI - Amazon Ramdisk Image')),
   184 # ('iso', _('ISO - Optical Disk Image')),
   185 # ('qcow2', _('QCOW2 - QEMU Emulator')),
   186 # ('raw', _('Raw')),
   187 # ('vdi', _('VDI')),
   188 # ('vhd', _('VHD')),
   189 # ('vmdk', _('VMDK'))
   190 # ]
   191 # }
   192
   193 # OPENSTACK_ENDPOINT_TYPE specifies the endpoint type to use for the endpoints
   194 # in the Keystone service catalog. Use this setting when Horizon is running
   195 # external to the OpenStack environment. The default is 'publicURL'.
   196 #OPENSTACK_ENDPOINT_TYPE = "publicURL"
   197
   198 # SECONDARY_ENDPOINT_TYPE specifies the fallback endpoint type to use in the
   199 # case that OPENSTACK_ENDPOINT_TYPE is not present in the endpoints
   200 # in the Keystone service catalog. Use this setting when Horizon is running
   201 # external to the OpenStack environment. The default is None. This
   202 # value should differ from OPENSTACK_ENDPOINT_TYPE if used.
   203 #SECONDARY_ENDPOINT_TYPE = "publicURL"
   204
   205 # The number of objects (Swift containers/objects or images) to display
   206 # on a single page before providing a paging element (a "more" link)
   207 # to paginate results.
   208 API_RESULT_LIMIT = 1000
 209 API_RESULT_PAGE_SIZE = 20
   210
   211 # The timezone of the server. This should correspond with the timezone
   212 # of your entire OpenStack installation, and hopefully be in UTC.
   213 TIME_ZONE = "UTC"
   214
   215 # When launching an instance, the menu of available flavors is
   216 # sorted by RAM usage, ascending. Provide a callback method here
   217 # (and/or a flag for reverse sort) for the sorted() method if you'd
   218 # like a different behaviour. For more info, see
   219 # http://docs.python.org/2/library/functions.html#sorted
   220 # CREATE_INSTANCE_FLAVOR_SORT = {
   221 # 'key': my_awesome_callback_method,
   222 # 'reverse': False,
   223 # }
   224
   225 # The Horizon Policy Enforcement engine uses these values to load per service
   226 # policy rule files. The content of these files should match the files the
   227 # OpenStack services are using to determine role based access control in the
   228 # target installation.
   229
   230 # Path to directory containing policy.json files
   231 # POLICY_FILES_PATH = os.path.join(ROOT_PATH, "conf")
   232 POLICY_FILES_PATH = '/etc/openstack-dashboard'
   233 # Map of local copy of service policy files
   234 POLICY_FILES = {
   235 'identity': 'keystone_policy.json',
   236 'compute': 'nova_policy.json'
   237 }
   238
   239 # Trove user and database extension support. By default support for
   240 # creating users and databases on database instances is turned on.
   241 # To disable these extensions set the permission here to something
   242 # unusable such as ["!"].
   243 # TROVE_ADD_USER_PERMS = []
   244 # TROVE_ADD_DATABASE_PERMS = []
   245
   246 LOGGING = {
   247 'version': 1,
   248 # When set to True this will disable all logging except
   249 # for loggers specified in this configuration dictionary. Note that
   250 # if nothing is specified here and disable_existing_loggers is True,
   251 # django.db.backends will still log unless it is disabled explicitly.
   252 'disable_existing_loggers': False,
   253 'handlers': {
   254 'null': {
   255 'level': 'DEBUG',
   256 'class': 'django.utils.log.NullHandler',
   257 },
   258 'console': {
   259 # Set the level to "DEBUG" for verbose output logging.
   260 'level': 'INFO',
262 },
   263 },
   264 'loggers': {
   265 # Logging from django.db.backends is VERY verbose, send to null
   266 # by default.
   267 'django.db.backends': {
   268 'handlers': ['null'],
   269 'propagate': False,
   270 },
   271 'requests': {
   272 'handlers': ['null'],
   273 'propagate': False,
   274 },
   275 'horizon': {
   276 'handlers': ['console'],
   277 'level': 'DEBUG',
   278 'propagate': False,
   279 },
   280 'openstack_dashboard': {
   281 'handlers': ['console'],
   282 'level': 'DEBUG',
   283 'propagate': False,
   284 },
   285 'novaclient': {
   286 'handlers': ['console'],
   287 'level': 'DEBUG',
   288 'propagate': False,
   289 },
   290 'cinderclient': {
   291 'handlers': ['console'],
   292 'level': 'DEBUG',
   293 'propagate': False,
   294 },
   295 'keystoneclient': {
   296 'handlers': ['console'],
   297 'level': 'DEBUG',
   298 'propagate': False,
   299 },
   300 'glanceclient': {
   301 'handlers': ['console'],
   302 'level': 'DEBUG',
   303 'propagate': False,
   304 },
   305 'neutronclient': {
   306 'handlers': ['console'],
   307 'level': 'DEBUG',
   308 'propagate': False,
   309 },
   310 'heatclient': {
   311 'handlers': ['console'],
   312 'level': 'DEBUG',
....

coolshiva123 (coolshiva123) said : #4

When i try to use the system info on the dashboard after loggin in ,

I am getting a message ....

Something went wrong!

An unexpected error has occurred. Try refreshing the page. If that doesn't help, contact your local administrator.
-----------------------------------

Here is the httpd error_log

[Wed Feb 26 16:37:05 2014] [error] Logging out user "admin".
[Wed Feb 26 16:37:10 2014] [error] Login successful for user "admin".
[Wed Feb 26 16:37:18 2014] [error] Error while rendering table rows.
[Wed Feb 26 16:37:18 2014] [error] Traceback (most recent call last):
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/horizon/tables/base.py", line 1358, in get_rows
[Wed Feb 26 16:37:18 2014] [error] row = self._meta.row_class(self, datum)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/horizon/tables/base.py", line 438, in __init__
[Wed Feb 26 16:37:18 2014] [error] self.load_cells()
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/horizon/tables/base.py", line 475, in load_cells
[Wed Feb 26 16:37:18 2014] [error] data = column.get_data(datum)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/horizon/tables/base.py", line 319, in get_data
[Wed Feb 26 16:37:18 2014] [error] data = filter_func(data)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/horizon/utils/filters.py", line 36, in parse_isotime
[Wed Feb 26 16:37:18 2014] [error] raise ValueError(e.message)
[Wed Feb 26 16:37:18 2014] [error] ValueError: Expecting a string None
[Wed Feb 26 16:37:18 2014] [error] Internal Server Error: /dashboard/admin/info/
[Wed Feb 26 16:37:18 2014] [error] Traceback (most recent call last):
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 111, in get_response
[Wed Feb 26 16:37:18 2014] [error] response = callback(request, *callback_args, **callback_kwargs)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/horizon/decorators.py", line 38, in dec
[Wed Feb 26 16:37:18 2014] [error] return view_func(request, *args, **kwargs)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/horizon/decorators.py", line 86, in dec
[Wed Feb 26 16:37:18 2014] [error] return view_func(request, *args, **kwargs)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/horizon/decorators.py", line 54, in dec
[Wed Feb 26 16:37:18 2014] [error] return view_func(request, *args, **kwargs)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/horizon/decorators.py", line 38, in dec
[Wed Feb 26 16:37:18 2014] [error] return view_func(request, *args, **kwargs)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/views/generic/base.py", line 48, in view
[Wed Feb 26 16:37:18 2014] [error] return self.dispatch(request, *args, **kwargs)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/views/generic/base.py", line 69, in dispatch
[Wed Feb 26 16:37:18 2014] [error] return handler(request, *args, **kwargs)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/horizon/tabs/views.py", line 137, in get
[Wed Feb 26 16:37:18 2014] [error] return self.handle_tabbed_response(context["tab_group"], context)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/horizon/tabs/views.py", line 57, in handle_tabbed_response
[Wed Feb 26 16:37:18 2014] [error] return self.render_to_response(context)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/horizon/tabs/views.py", line 70, in render_to_response
[Wed Feb 26 16:37:18 2014] [error] response.render()
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/response.py", line 104, in render
[Wed Feb 26 16:37:18 2014] [error] self._set_content(self.rendered_content)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/response.py", line 81, in rendered_content
[Wed Feb 26 16:37:18 2014] [error] content = template.render(context)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 140, in render
[Wed Feb 26 16:37:18 2014] [error] return self._render(context)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 134, in _render
[Wed Feb 26 16:37:18 2014] [error] return self.nodelist.render(context)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 823, in render
[Wed Feb 26 16:37:18 2014] [error] bit = self.render_node(node, context)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 837, in render_node
[Wed Feb 26 16:37:18 2014] [error] return node.render(context)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/loader_tags.py", line 123, in render
[Wed Feb 26 16:37:18 2014] [error] return compiled_parent._render(context)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 134, in _render
[Wed Feb 26 16:37:18 2014] [error] return self.nodelist.render(context)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 823, in render
[Wed Feb 26 16:37:18 2014] [error] bit = self.render_node(node, context)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 837, in render_node
[Wed Feb 26 16:37:18 2014] [error] return node.render(context)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/loader_tags.py", line 62, in render
[Wed Feb 26 16:37:18 2014] [error] result = block.nodelist.render(context)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 823, in render
[Wed Feb 26 16:37:18 2014] [error] bit = self.render_node(node, context)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 837, in render_node
[Wed Feb 26 16:37:18 2014] [error] return node.render(context)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/loader_tags.py", line 62, in render
[Wed Feb 26 16:37:18 2014] [error] result = block.nodelist.render(context)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 823, in render
[Wed Feb 26 16:37:18 2014] [error] bit = self.render_node(node, context)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 837, in render_node
[Wed Feb 26 16:37:18 2014] [error] return node.render(context)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 874, in render
[Wed Feb 26 16:37:18 2014] [error] output = self.filter_expression.resolve(context)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 571, in resolve
[Wed Feb 26 16:37:18 2014] [error] obj = self.var.resolve(context)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 721, in resolve
[Wed Feb 26 16:37:18 2014] [error] value = self._resolve_lookup(context)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 772, in _resolve_lookup
[Wed Feb 26 16:37:18 2014] [error] current = current()
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/horizon/tabs/base.py", line 173, in render
[Wed Feb 26 16:37:18 2014] [error] return render_to_string(self.template_name, {"tab_group": self})
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/loader.py", line 171, in render_to_string
[Wed Feb 26 16:37:18 2014] [error] return t.render(Context(dictionary))
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 140, in render
[Wed Feb 26 16:37:18 2014] [error] return self._render(context)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 134, in _render
[Wed Feb 26 16:37:18 2014] [error] return self.nodelist.render(context)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 823, in render
[Wed Feb 26 16:37:18 2014] [error] bit = self.render_node(node, context)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 837, in render_node
[Wed Feb 26 16:37:18 2014] [error] return node.render(context)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/defaulttags.py", line 478, in render
[Wed Feb 26 16:37:18 2014] [error] output = self.nodelist.render(context)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 823, in render
[Wed Feb 26 16:37:18 2014] [error] bit = self.render_node(node, context)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 837, in render_node
[Wed Feb 26 16:37:18 2014] [error] return node.render(context)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/defaulttags.py", line 282, in render
[Wed Feb 26 16:37:18 2014] [error] return nodelist.render(context)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 823, in render
[Wed Feb 26 16:37:18 2014] [error] bit = self.render_node(node, context)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 837, in render_node
[Wed Feb 26 16:37:18 2014] [error] return node.render(context)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/defaulttags.py", line 193, in render
[Wed Feb 26 16:37:18 2014] [error] nodelist.append(node.render(context))
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 874, in render
[Wed Feb 26 16:37:18 2014] [error] output = self.filter_expression.resolve(context)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 571, in resolve
[Wed Feb 26 16:37:18 2014] [error] obj = self.var.resolve(context)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 721, in resolve
[Wed Feb 26 16:37:18 2014] [error] value = self._resolve_lookup(context)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 772, in _resolve_lookup
[Wed Feb 26 16:37:18 2014] [error] current = current()
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/horizon/tabs/base.py", line 309, in render
[Wed Feb 26 16:37:18 2014] [error] return render_to_string(self.get_template_name(self.request), context)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/loader.py", line 171, in render_to_string
[Wed Feb 26 16:37:18 2014] [error] return t.render(Context(dictionary))
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 140, in render
[Wed Feb 26 16:37:18 2014] [error] return self._render(context)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 134, in _render
[Wed Feb 26 16:37:18 2014] [error] return self.nodelist.render(context)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 823, in render
[Wed Feb 26 16:37:18 2014] [error] bit = self.render_node(node, context)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 837, in render_node
[Wed Feb 26 16:37:18 2014] [error] return node.render(context)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 874, in render
[Wed Feb 26 16:37:18 2014] [error] output = self.filter_expression.resolve(context)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 571, in resolve
[Wed Feb 26 16:37:18 2014] [error] obj = self.var.resolve(context)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 721, in resolve
[Wed Feb 26 16:37:18 2014] [error] value = self._resolve_lookup(context)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 772, in _resolve_lookup
[Wed Feb 26 16:37:18 2014] [error] current = current()
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/horizon/tables/base.py", line 1019, in render
[Wed Feb 26 16:37:18 2014] [error] return table_template.render(context)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 140, in render
[Wed Feb 26 16:37:18 2014] [error] return self._render(context)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 134, in _render
[Wed Feb 26 16:37:18 2014] [error] return self.nodelist.render(context)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 823, in render
[Wed Feb 26 16:37:18 2014] [error] bit = self.render_node(node, context)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 837, in render_node
[Wed Feb 26 16:37:18 2014] [error] return node.render(context)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/defaulttags.py", line 478, in render
[Wed Feb 26 16:37:18 2014] [error] output = self.nodelist.render(context)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 823, in render
[Wed Feb 26 16:37:18 2014] [error] bit = self.render_node(node, context)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 837, in render_node
[Wed Feb 26 16:37:18 2014] [error] return node.render(context)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/defaulttags.py", line 476, in render
[Wed Feb 26 16:37:18 2014] [error] self.extra_context.iteritems()])
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 571, in resolve
[Wed Feb 26 16:37:18 2014] [error] obj = self.var.resolve(context)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 721, in resolve
[Wed Feb 26 16:37:18 2014] [error] value = self._resolve_lookup(context)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 772, in _resolve_lookup
[Wed Feb 26 16:37:18 2014] [error] current = current()
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/horizon/tables/base.py", line 1358, in get_rows
[Wed Feb 26 16:37:18 2014] [error] row = self._meta.row_class(self, datum)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/horizon/tables/base.py", line 438, in __init__
[Wed Feb 26 16:37:18 2014] [error] self.load_cells()
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/horizon/tables/base.py", line 475, in load_cells
[Wed Feb 26 16:37:18 2014] [error] data = column.get_data(datum)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/horizon/tables/base.py", line 319, in get_data
[Wed Feb 26 16:37:18 2014] [error] data = filter_func(data)
[Wed Feb 26 16:37:18 2014] [error] File "/usr/lib/python2.6/site-packages/horizon/utils/filters.py", line 36, in parse_isotime
[Wed Feb 26 16:37:18 2014] [error] raise ValueError(e.message)
[Wed Feb 26 16:37:18 2014] [error] TemplateSyntaxError: Expecting a string None

Julie Pichon (jpichon) said : #5

Glad you resolved the initial issue (though from what you commented out I don't really see what was the problem before :/).

That other error message doesn't look familiar to me. Could you share what version of OpenStack this is, how you installed it, and also what's the Django version?

coolshiva123 (coolshiva123) said : #6

Openstack - Havana ! How do I find the Django version

[root@controller ~]# python -c "import django; print(django.get_version())"
1.4.8
[root@controller ~]# python -V
Python 2.6.6
[root@controller ~]#

Matthias Runge (mrunge) said : #7

coolshiva, please provide:

rpm -q openstack-dashboard
and
openstack-status

Usually, when those kinds of messages come, a service like neutron or nova aren't answering.

The LOCATION setting belongs to the session cache setting, WHEN USING THE MEMCACHE; simply shuffling lines around in the
settings file will get you in a mess.

Thanks.

coolshiva123 (coolshiva123) said : #8

[root@controller httpd]# rpm -q openstack-dashboard
openstack-dashboard-2013.2.2-1.el6.noarch

[root@controller httpd]# openstack-status
== Nova services ==
openstack-nova-api: active
openstack-nova-cert: active
openstack-nova-compute: inactive (disabled on boot)
openstack-nova-network: inactive (disabled on boot)
openstack-nova-scheduler: active
openstack-nova-conductor: active
== Glance services ==
openstack-glance-api: active
openstack-glance-registry: active
== Keystone service ==
openstack-keystone: active
== Horizon service ==
openstack-dashboard: active
== Swift services ==
openstack-swift-proxy: dead (disabled on boot)
openstack-swift-account: active (disabled on boot)
openstack-swift-container: dead (disabled on boot)
openstack-swift-object: dead (disabled on boot)
== Cinder services ==
openstack-cinder-api: active
openstack-cinder-scheduler: active
openstack-cinder-volume: active
== Support services ==
mysqld: active
libvirtd: active
messagebus: active
tgtd: inactive (disabled on boot)
qpidd: active
memcached: active
== Keystone users ==
+----------------------------------+--------+---------+---------------------+
| id | name | enabled | email |
+----------------------------------+--------+---------+---------------------+
| 190bfb79185d496fb3a390483ea84e7d | admin | True | <email address hidden> |
| d3646df735214d7ea1e782bc56aeb7bb | cinder | True | <email address hidden> |
| 65fb9123e36b436a9835350d2961d825 | farook | True | |
| f18eabc1d73d41c88773cf29e9ef5379 | glance | True | <email address hidden> |
| 77bd6577ed944955b3ac9247cf19aaab | nova | True | <email address hidden> |
| 1e545a24dcfe470d9905378204e839aa | shiva | True | |
| 2e98f082896f44429188991850ca3e71 | swift | True | <email address hidden> |
+----------------------------------+--------+---------+---------------------+
== Glance images ==
+--------------------------------------+--------------------------------------+-------------+------------------+-------------+--------+
| ID | Name | Disk Format | Container Format | Size | Status |
+--------------------------------------+--------------------------------------+-------------+------------------+-------------+--------+
| 57860bd0-1751-41f0-9a74-c7217a9f32ca | Cirros-0.3.1-64Bit | qcow2 | bare | 13147648 | active |
| 52e95ae0-bfd5-4fb3-87f2-bc5bef3fae0f | rhel_image_1 | qcow2 | bare | 10737418240 | active |
| 9a055a0f-70bc-4bf2-9924-15663e76dfa5 | Ubuntu-precise-server-cloudimg-AMD64 | qcow2 | bare | 255393792 | active |
| cd44e4b2-0ae2-4f8f-8e74-9d42d1624f91 | Ubuntu64 | iso | bare | 711983104 | active |
| a772e82d-caca-4cf5-b4bd-a1a15adfc90d | ubuntu_myimage_1 | qcow2 | bare | 10737418240 | active |
+--------------------------------------+--------------------------------------+-------------+------------------+-------------+--------+
== Nova managed services ==
+------------------+-----------------------+----------+---------+-------+----------------------------+-----------------+
| Binary | Host | Zone | Status | State | Updated_at | Disabled Reason |
+------------------+-----------------------+----------+---------+-------+----------------------------+-----------------+
| nova-cert | controller.in.ibm.com | internal | enabled | up | 2014-03-09T22:15:02.000000 | None |
| nova-consoleauth | controller.in.ibm.com | internal | enabled | up | 2014-03-09T22:14:56.000000 | None |
| nova-scheduler | controller.in.ibm.com | internal | enabled | up | 2014-03-09T22:14:58.000000 | None |
| nova-conductor | controller.in.ibm.com | internal | enabled | up | 2014-03-09T22:14:57.000000 | None |
| nova-compute | compute1.in.ibm.com | nova | enabled | up | 2014-03-09T22:15:04.000000 | None |
| nova-network | compute1.in.ibm.com | internal | enabled | up | 2014-03-09T22:14:59.000000 | None |
| nova-network | controller.in.ibm.com | internal | enabled | down | 2014-02-25T19:19:17.000000 | None |
| nova-console | controller.in.ibm.com | internal | enabled | down | None | None |
+------------------+-----------------------+----------+---------+-------+----------------------------+-----------------+
== Nova networks ==
+--------------------------------------+-------+------------+
| ID | Label | Cidr |
+--------------------------------------+-------+------------+
| bc399023-859e-49cf-a28b-a18b6c3384b5 | vmnet | 9.0.0.0/24 |
+--------------------------------------+-------+------------+
== Nova instance flavors ==
+----+-------------------+-----------+------+-----------+------+-------+-------------+-----------+
| ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
+----+-------------------+-----------+------+-----------+------+-------+-------------+-----------+
| 1 | m1.tiny | 512 | 1 | 0 | | 1 | 1.0 | True |
| 2 | m1.small | 2048 | 20 | 0 | | 1 | 1.0 | True |
| 3 | m1.medium | 4096 | 40 | 0 | | 2 | 1.0 | True |
| 4 | m1.large | 8192 | 80 | 0 | | 4 | 1.0 | True |
| 5 | m1.xlarge | 16384 | 160 | 0 | | 8 | 1.0 | True |
| 6 | New.FlavorByShiva | 2048 | 10 | 0 | | 1 | 1.0 | True |
+----+-------------------+-----------+------+-----------+------+-------+-------------+-----------+
== Nova instances ==
+--------------------------------------+---------------+---------+------------+-------------+---------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+---------------+---------+------------+-------------+---------------+
| 11668c09-b070-4dfc-b3bd-246e20049bd6 | cirrOS_1 | SHUTOFF | None | Shutdown | vmnet=9.0.0.4 |
| 96ae780a-0fc3-4ef1-9b9d-a8c7399e1c6a | rhel_test_1 | ACTIVE | None | Running | vmnet=9.0.0.3 |
| 709a29cf-54da-4945-a77c-802bb5be2ac2 | test_1_cirros | ACTIVE | None | Running | vmnet=9.0.0.5 |
| 97ab4287-9705-4a41-8e57-5ba202706a2b | testbuntu | ACTIVE | None | Running | vmnet=9.0.0.2 |
+--------------------------------------+---------------+---------+------------+-------------+---------------+
[root@controller httpd]#

Matthias Runge (mrunge) said : #9

coolshiva123, this second question has nothing to do with your first one.

Please note, this section here in launchpad is deprecated. Please go to ask.openstack.org.

Thanks.

Can you help with this problem?

Provide an answer of your own, or ask coolshiva123 for more information if necessary.

To post a message you must log in.