yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #05811
[Bug 1239896] Re: Launching Instance Boot from image (creates a new volume)
Reviewed: https://review.openstack.org/52212
Committed: http://github.com/openstack/horizon/commit/d3e8e29f1e252e7bffc836056b52c8e4e5a0307c
Submitter: Jenkins
Branch: milestone-proposed
commit d3e8e29f1e252e7bffc836056b52c8e4e5a0307c
Author: Lin Hua Cheng <lin-hua.cheng@xxxxxx>
Date: Wed Oct 16 13:08:01 2013 -0700
Improve display of instance image information
When instance is booted from volume image it returns a string,
while for instance from image returns a dict. Fix is made to
handle both cases.
Change-Id: I23aeccd21f88a353222d3fc7dc4b5c337c2bfecb
Closes-Bug: #1239896
** Changed in: horizon
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1239896
Title:
Launching Instance Boot from image (creates a new volume)
Status in OpenStack Dashboard (Horizon):
Fix Released
Bug description:
When Launching Instance "Boot from image (creates a new volume)"
Instance launches however is only visible via the "Admin" Instances
view when trying to view via the "Users" Instances view I get an error
as per below.
I think it seems to be some how related to the instance not having a
image-id when booting from volume. If I boot from image (not using a
volume) all views are ok.
(enabled debuging /etc/openstack-dashboard/local_settings.py)
TypeError at /project/instances/
string indices must be integers
Request Method: GET
Request URL: https://dashboard.domain.com/project/instances/
Django Version: 1.5.4
Exception Type: TypeError
Exception Value:
string indices must be integers
Exception Location: /usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/instances/views.py in get_data, line 92
Python Executable: /usr/bin/python
Python Version: 2.7.3
Python Path:
['/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../..',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-linux2',
'/usr/lib/python2.7/lib-tk',
'/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages',
'/usr/share/openstack-dashboard/',
'/usr/share/openstack-dashboard/openstack_dashboard']
Environment:
Request Method: GET
Request URL: https://dashboard.domain.com/project/instances/
Django Version: 1.5.4
Python Version: 2.7.3
Installed Applications:
('openstack_dashboard',
'django.contrib.contenttypes',
'django.contrib.auth',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.humanize',
'compressor',
'horizon',
'openstack_dashboard.dashboards.project',
'openstack_dashboard.dashboards.admin',
'openstack_dashboard.dashboards.settings',
'openstack_auth',
'openstack_dashboard.dashboards.router')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'horizon.middleware.HorizonMiddleware',
'django.middleware.doc.XViewMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware')
Traceback:
File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
115. response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.7/dist-packages/horizon/decorators.py" in dec
38. return view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/horizon/decorators.py" in dec
54. return view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/horizon/decorators.py" in dec
38. return view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py" in view
68. return self.dispatch(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py" in dispatch
86. return handler(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/horizon/tables/views.py" in get
155. handled = self.construct_tables()
File "/usr/lib/python2.7/dist-packages/horizon/tables/views.py" in construct_tables
146. handled = self.handle_table(table)
File "/usr/lib/python2.7/dist-packages/horizon/tables/views.py" in handle_table
118. data = self._get_data_dict()
File "/usr/lib/python2.7/dist-packages/horizon/tables/views.py" in _get_data_dict
182. self._data = {self.table_class._meta.name: self.get_data()}
File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/instances/views.py" in get_data
92. and instance.image['id'] in image_map):
Exception Type: TypeError at /project/instances/
Exception Value: string indices must be integers
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1239896/+subscriptions