This bug is reported at <a href="https://bugs.launchpad.net/horizon/+bug/1053488">https://bugs.launchpad.net/horizon/+bug/1053488</a>, one potential way to fix it is proposed at <a rel="nofollow" href="https://review.openstack.org/14801">https://review.openstack.org/14801</a><br>
<br><div class="gmail_quote">2012/11/13 Gabriel Hurley <span dir="ltr"><<a href="mailto:Gabriel.Hurley@nebula.com" target="_blank">Gabriel.Hurley@nebula.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">That is actually the manifestation of a bug in Nova that was addressed very late in Folsom. The short version is that Nova inconsistently scoped the ownership
of volumes vs. instances so it was possible for an admin user to view a mixed set of resources which could lead to the scenario you hit where things are in one list but not the other. I’m not sure if there’s any plans to backport the fixes from Nova. A patch
could probably be worked up for the stable/essex Horizon branch that would avoid the keyerror (see the state of that code in Folsom:
<a href="https://github.com/openstack/horizon/blob/stable/folsom/horizon/dashboards/nova/volumes/views.py#L68" target="_blank">
https://github.com/openstack/horizon/blob/stable/folsom/horizon/dashboards/nova/volumes/views.py#L68</a> ), but it would be papering over what is inherently a broken situation in Nova.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">My advice from back in the Essex days was that you should be wary of using an “admin” user in the “Project” dashboard since the underlying APIs didn’t handle
it correctly.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Alternatively, the Folsom Horizon release is actually backwards-compatible to an Essex stack, so you could try running Folsom Horizon which is less subject
to many issues.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hope one of these suggestions helps!<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p style="margin-left:27.0pt">
<u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><span>-<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Gabriel<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> openstack-bounces+gabriel.hurley=<a href="mailto:nebula.com@lists.launchpad.net" target="_blank">nebula.com@lists.launchpad.net</a> [mailto:<a href="mailto:openstack-bounces%2Bgabriel.hurley" target="_blank">openstack-bounces+gabriel.hurley</a>=<a href="mailto:nebula.com@lists.launchpad.net" target="_blank">nebula.com@lists.launchpad.net</a>]
<b>On Behalf Of </b>Christian Parpart<br>
<b>Sent:</b> Monday, November 12, 2012 3:37 AM<br>
<b>To:</b> <<a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a>><br>
<b>Subject:</b> [Openstack] Essex Dashboard: KeyError at /nova/instances_and_volumes/<u></u><u></u></span></p>
</div>
</div><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Hey all,<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">since quite some weeks I am getting an error page instead of the "Instances and Volumes" page in the<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Essex Horizon Dashboard with the above title and the below detailed error output:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal">Environment:</span><u></u><u></u></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><u></u> <u></u></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-size:12.0pt;font-family:"Courier New";font-weight:normal">Request Method: GET</span><u></u><u></u></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal">Request URL:
<a href="http://controller.rz.dawanda.com/nova/instances_and_volumes/" target="_blank">http://controller.rz.dawanda.com/nova/instances_and_volumes/</a></span><u></u><u></u></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><u></u> <u></u></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal">Django Version: 1.3.1</span><u></u><u></u></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal">Python Version: 2.7.3</span><u></u><u></u></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal">Installed Applications:</span><u></u><u></u></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal">['openstack_dashboard',</span><u></u><u></u></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal"> 'django.contrib.sessions',</span><u></u><u></u></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal"> 'django.contrib.messages',</span><u></u><u></u></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal"> 'django.contrib.staticfiles',</span><u></u><u></u></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal"> 'django_nose',</span><u></u><u></u></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal"> 'horizon',</span><u></u><u></u></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal"> 'horizon.dashboards.nova',</span><u></u><u></u></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal"> 'horizon.dashboards.syspanel',</span><u></u><u></u></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal"> 'horizon.dashboards.settings']</span><u></u><u></u></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal">Installed Middleware:</span><u></u><u></u></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal">('django.middleware.common.CommonMiddleware',</span><u></u><u></u></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal"> 'django.middleware.csrf.CsrfViewMiddleware',</span><u></u><u></u></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal"> 'django.contrib.sessions.middleware.SessionMiddleware',</span><u></u><u></u></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal"> 'django.contrib.messages.middleware.MessageMiddleware',</span><u></u><u></u></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal"> 'openstack_dashboard.middleware.DashboardLogUnhandledExceptionsMiddleware',</span><u></u><u></u></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal"> 'horizon.middleware.HorizonMiddleware',</span><u></u><u></u></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal"> 'django.middleware.doc.XViewMiddleware',</span><u></u><u></u></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal"> 'django.middleware.locale.LocaleMiddleware')</span><u></u><u></u></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><u></u> <u></u></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><u></u> <u></u></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal">Traceback:</span><u></u><u></u></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal">File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response</span><u></u><u></u></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal"> 111. response = callback(request, *callback_args, **callback_kwargs)</span><u></u><u></u></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal">File "/usr/lib/python2.7/dist-packages/horizon/decorators.py" in dec</span><u></u><u></u></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal"> 40. return view_func(request, *args, **kwargs)</span><u></u><u></u></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal">File "/usr/lib/python2.7/dist-packages/horizon/decorators.py" in dec</span><u></u><u></u></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal"> 55. return view_func(request, *args, **kwargs)</span><u></u><u></u></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal">File "/usr/lib/python2.7/dist-packages/horizon/decorators.py" in dec</span><u></u><u></u></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal"> 40. return view_func(request, *args, **kwargs)</span><u></u><u></u></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal">File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py" in view</span><u></u><u></u></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal"> 47. return self.dispatch(request, *args, **kwargs)</span><u></u><u></u></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal">File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py" in dispatch</span><u></u><u></u></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal"> 68. return handler(request, *args, **kwargs)</span><u></u><u></u></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal">File "/usr/lib/python2.7/dist-packages/horizon/tables/views.py" in get</span><u></u><u></u></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal"> 105. handled = self.construct_tables()</span><u></u><u></u></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal">File "/usr/lib/python2.7/dist-packages/horizon/tables/views.py" in construct_tables</span><u></u><u></u></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal"> 96. handled = self.handle_table(table)</span><u></u><u></u></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal">File "/usr/lib/python2.7/dist-packages/horizon/tables/views.py" in handle_table</span><u></u><u></u></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal"> 68. data = self._get_data_dict()</span><u></u><u></u></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal">File "/usr/lib/python2.7/dist-packages/horizon/tables/views.py" in _get_data_dict</span><u></u><u></u></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal"> 37. self._data[table._<a href="http://meta.name" target="_blank">meta.name</a>] = data_func()</span><u></u><u></u></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal">File "/usr/lib/python2.7/dist-packages/horizon/dashboards/nova/instances_and_volumes/views.py" in get_volumes_data</span><u></u><u></u></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal"> 74. att['instance'] = instances[att['server_id']]</span><u></u><u></u></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><u></u> <u></u></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal">Exception Type: KeyError at /nova/instances_and_volumes/</span><u></u><u></u></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal">Exception Value: u'8aa2989e-85ea-4975-b81b-04d06dbf8013'</span><u></u><u></u></h1>
<div>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif"">----------------------------------------------------------------------------------------------------------------------------<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif""><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal">now I wonder in how far that is a bug in the software and/or whether I have an invalid entry in my nova database that<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">I can fix by hand.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">if so, does anyone know how to actually work around this? I do really need this (now not working) page :-)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Regards,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Christian Parpart.<u></u><u></u></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif""><u></u> <u></u></span></p>
</div>
</div>
</div>
</div></div></div>
</div>
</div>
<br>_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br></blockquote></div><br>