<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
h1
        {mso-style-priority:9;
        mso-style-link:"Heading 1 Char";
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:24.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.Heading1Char
        {mso-style-name:"Heading 1 Char";
        mso-style-priority:9;
        mso-style-link:"Heading 1";
        font-family:"Cambria","serif";
        color:#365F91;
        font-weight:bold;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:1486167251;
        mso-list-type:hybrid;
        mso-list-template-ids:-1509264462 -1784008812 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
        {mso-level-number-format:bullet;
        mso-level-text:-;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:27.0pt;
        text-indent:-.25in;
        font-family:"Calibri","sans-serif";
        mso-fareast-font-family:Calibri;}
@list l0:level2
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:63.0pt;
        text-indent:-.25in;
        font-family:"Courier New";}
@list l0:level3
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:99.0pt;
        text-indent:-.25in;
        font-family:Wingdings;}
@list l0:level4
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:135.0pt;
        text-indent:-.25in;
        font-family:Symbol;}
@list l0:level5
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:171.0pt;
        text-indent:-.25in;
        font-family:"Courier New";}
@list l0:level6
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:207.0pt;
        text-indent:-.25in;
        font-family:Wingdings;}
@list l0:level7
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:243.0pt;
        text-indent:-.25in;
        font-family:Symbol;}
@list l0:level8
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:279.0pt;
        text-indent:-.25in;
        font-family:"Courier New";}
@list l0:level9
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:315.0pt;
        text-indent:-.25in;
        font-family:Wingdings;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<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">
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.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></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.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></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.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hope one of these suggestions helps!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoListParagraph" style="margin-left:27.0pt;text-indent:-.25in;mso-list:l0 level1 lfo1">
<![if !supportLists]><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><span style="mso-list:Ignore">-<span style="font:7.0pt "Times New Roman"">         
</span></span></span><![endif]><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Gabriel<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></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=nebula.com@lists.launchpad.net [mailto:openstack-bounces+gabriel.hurley=nebula.com@lists.launchpad.net]
<b>On Behalf Of </b>Christian Parpart<br>
<b>Sent:</b> Monday, November 12, 2012 3:37 AM<br>
<b>To:</b> <openstack@lists.launchpad.net><br>
<b>Subject:</b> [Openstack] Essex Dashboard: KeyError at /nova/instances_and_volumes/<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hey all,<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></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<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Essex Horizon Dashboard with the above title and the below detailed error output:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal">Environment:</span><o:p></o:p></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><o:p> </o:p></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><o:p></o:p></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/">http://controller.rz.dawanda.com/nova/instances_and_volumes/</a></span><o:p></o:p></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><o:p> </o:p></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal">Django Version: 1.3.1</span><o:p></o:p></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal">Python Version: 2.7.3</span><o:p></o:p></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal">Installed Applications:</span><o:p></o:p></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal">['openstack_dashboard',</span><o:p></o:p></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal"> 'django.contrib.sessions',</span><o:p></o:p></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal"> 'django.contrib.messages',</span><o:p></o:p></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal"> 'django.contrib.staticfiles',</span><o:p></o:p></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal"> 'django_nose',</span><o:p></o:p></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal"> 'horizon',</span><o:p></o:p></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal"> 'horizon.dashboards.nova',</span><o:p></o:p></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal"> 'horizon.dashboards.syspanel',</span><o:p></o:p></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal"> 'horizon.dashboards.settings']</span><o:p></o:p></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal">Installed Middleware:</span><o:p></o:p></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal">('django.middleware.common.CommonMiddleware',</span><o:p></o:p></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal"> 'django.middleware.csrf.CsrfViewMiddleware',</span><o:p></o:p></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal"> 'django.contrib.sessions.middleware.SessionMiddleware',</span><o:p></o:p></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal"> 'django.contrib.messages.middleware.MessageMiddleware',</span><o:p></o:p></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal"> 'openstack_dashboard.middleware.DashboardLogUnhandledExceptionsMiddleware',</span><o:p></o:p></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal"> 'horizon.middleware.HorizonMiddleware',</span><o:p></o:p></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal"> 'django.middleware.doc.XViewMiddleware',</span><o:p></o:p></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal"> 'django.middleware.locale.LocaleMiddleware')</span><o:p></o:p></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><o:p> </o:p></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><o:p> </o:p></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal">Traceback:</span><o:p></o:p></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><o:p></o:p></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><o:p></o:p></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><o:p></o:p></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><o:p></o:p></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><o:p></o:p></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><o:p></o:p></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><o:p></o:p></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><o:p></o:p></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><o:p></o:p></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><o:p></o:p></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><o:p></o:p></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal">  68.         return handler(request, *args, **kwargs)</span><o:p></o:p></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><o:p></o:p></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal">  105.         handled = self.construct_tables()</span><o:p></o:p></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><o:p></o:p></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal">  96.             handled = self.handle_table(table)</span><o:p></o:p></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><o:p></o:p></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New";font-weight:normal">  68.         data = self._get_data_dict()</span><o:p></o:p></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><o:p></o:p></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">meta.name</a>] = data_func()</span><o:p></o:p></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><o:p></o:p></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><o:p></o:p></h1>
<h1 style="margin:0in;margin-bottom:.0001pt"><o:p> </o:p></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><o:p></o:p></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><o:p></o:p></h1>
<div>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif"">----------------------------------------------------------------------------------------------------------------------------<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif""><o:p> </o:p></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<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">I can fix by hand.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></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 :-)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Regards,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Christian Parpart.<o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif""><o:p> </o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>