<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)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@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:0cm;
        margin-bottom:.0001pt;
        font-size:12.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;}
tt
        {mso-style-priority:99;
        font-family:"Courier New";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></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-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I’m happy with that approach – again I’ve not seen any discussions about how this should be done.<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">I’ve added [tempest] and [ceilometer] tags so we can hopefully get input from the guys involved.<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">Bob<o:p></o:p></span></p>
<p class="MsoNormal"><a name="_MailEndCompose"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></a></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Gary Kotton [mailto:gkotton@vmware.com]
<br>
<b>Sent:</b> 13 October 2013 05:21<br>
<b>To:</b> OpenStack Development Mailing List<br>
<b>Subject:</b> Re: [openstack-dev] [nova] Looking for clarification on the diagnostics API<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:black">Hi,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:black">I agree with Matt here. This is not broad enough. One option is to have a tempest class that overrides for various backend plugins. Then the test can be haredednd
 for each driver. I am not sure if that is something that has been talked about.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:black">Thanks<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:black">Gary<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:black"><o:p> </o:p></span></p>
</div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">From:
</span></b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">Matt Riedemann <<a href="mailto:mriedem@us.ibm.com">mriedem@us.ibm.com</a>><br>
<b>Reply-To: </b>OpenStack Development Mailing List <<a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a>><br>
<b>Date: </b>Sunday, October 13, 2013 6:13 AM<br>
<b>To: </b>OpenStack Development Mailing List <<a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a>><br>
<b>Subject: </b>Re: [openstack-dev] [nova] Looking for clarification on the diagnostics API<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:black"><o:p> </o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">There is also a tempest patch now to ease some of the libvirt-specific keys checked in the new diagnostics tests there:</span><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:black"><br>
<br>
<a href="https://review.openstack.org/#/c/51412/"><span style="font-size:12.0pt">https://review.openstack.org/#/c/51412/</span></a><br>
<br>
</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">To relay some of my concerns that I put in that patch:</span><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:black"><br>
<br>
</span><i><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">I'm not sure how I feel about this. It should probably be more generic but I think we need more than just a change in tempest to enforce it, i.e. we should have a nova patch
 that changes the doc strings for the abstract compute driver method to specify what the minimum keys are for the info returned, maybe a doc api sample change, etc?</span></i><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:black"><br>
<br>
</span><i><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">For reference, here is the mailing list post I started on this last week:</span></i><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:black"><br>
<br>
<a href="http://lists.openstack.org/pipermail/openstack-dev/2013-October/016385.html"><i><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#0000A1">http://lists.openstack.org/pipermail/openstack-dev/2013-October/016385.html</span></i></a><br>
<br>
</span><i><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">There are also docs here (these examples use xen and libvirt):</span></i><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:black"><br>
<br>
<a href="http://docs.openstack.org/grizzly/openstack-compute/admin/content/configuring-openstack-compute-basics.html"><i><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#0000A1">http://docs.openstack.org/grizzly/openstack-compute/admin/content/configuring-openstack-compute-basics.html</span></i></a><br>
<br>
</span><i><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">And under procedure 4.4 here:</span></i><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:black">
<br>
<br>
<a href="http://docs.openstack.org/admin-guide-cloud/content/ch_introduction-to-openstack-compute.html#section_manage-the-cloud"><i><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#0000A1">http://docs.openstack.org/admin-guide-cloud/content/ch_introduction-to-openstack-compute.html#section_manage-the-cloud</span></i></a></span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"><br>
</span><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:black"><br>
</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">=============</span><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:black">
<br>
<br>
</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">I also found this wiki page related to metering and the nova diagnostics API:</span><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:black"><br>
<br>
<a href="https://wiki.openstack.org/wiki/EfficientMetering/FutureNovaInteractionModel"><span style="font-size:12.0pt">https://wiki.openstack.org/wiki/EfficientMetering/FutureNovaInteractionModel</span></a><br>
<br>
</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">So it seems like if at some point this will be used with ceilometer it should be standardized a bit which is what the Tempest part starts but I don't want it to get lost there.</span><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:black"><br>
</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"><br>
</span><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:black"><br>
</span><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:black">Thanks,</span><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:black">
<br>
<br>
</span><b><span style="font-family:"Arial","sans-serif";color:#8F8F8F">MATT RIEDEMANN</span></b><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:black"><br>
Advisory Software Engineer<br>
Cloud Solutions and OpenStack Development</span><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:black"><o:p></o:p></span></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="680" style="width:510.0pt;border-collapse:collapse">
<tbody>
<tr style="height:6.0pt">
<td width="680" colspan="2" style="width:510.0pt;border:solid black 1.0pt;padding:0cm 0cm 0cm 0cm;height:6.0pt">
<div class="MsoNormal" align="center" style="text-align:center;mso-line-height-alt:6.0pt">
<hr size="2" width="100%" align="center">
</div>
</td>
</tr>
<tr style="height:6.0pt">
<td width="418" valign="top" style="width:313.5pt;border:solid black 1.0pt;border-top:none;padding:0cm 0cm 0cm 0cm;height:6.0pt">
<p class="MsoNormal" style="mso-line-height-alt:6.0pt"><b><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#4181C0">Phone:</span></b><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#5F5F5F"> 1-507-253-7622</span><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#4181C0">
 | <b>Mobile:</b></span><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#5F5F5F"> 1-507-990-1889</span><b><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#4181C0"><br>
E-mail:</span></b><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#5F5F5F">
</span><a href="mailto:mriedem@us.ibm.com" target="_blank"><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#5F5F5F">mriedem@us.ibm.com</span></a><o:p></o:p></p>
</td>
<td width="261" valign="top" style="width:195.75pt;border-top:none;border-left:none;border-bottom:solid black 1.0pt;border-right:solid black 1.0pt;padding:0cm 0cm 0cm 0cm;height:6.0pt">
<p class="MsoNormal" align="right" style="text-align:right;mso-line-height-alt:6.0pt">
<img border="0" width="83" height="30" id="_x0000_i1026" src="cid:image001.gif@01CEC8C3.400A2E30" alt="IBM"><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#5F5F5F"><br>
<br>
3605 Hwy 52 N<br>
Rochester, MN 55901-1407<br>
United States</span><o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:black"><br>
<br>
<br>
<br>
<br>
</span><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#5F5F5F">From:        </span><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:black">Gary Kotton <<a href="mailto:gkotton@vmware.com">gkotton@vmware.com</a>></span><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:black"><br>
</span><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#5F5F5F">To:        </span><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:black">OpenStack Development Mailing List <<a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a>>,
</span><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:black"><br>
</span><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#5F5F5F">Date:        </span><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:black">10/12/2013 01:42 PM</span><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:black"><br>
</span><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#5F5F5F">Subject:        </span><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:black">Re: [openstack-dev] [nova] Looking for clarification on the diagnostics API</span><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:black"><o:p></o:p></span></p>
<div class="MsoNormal" align="center" style="text-align:center"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:black">
<hr size="2" width="100%" noshade="" style="color:#A0A0A0" align="center">
</span></div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:black"><br>
<br>
<br>
</span><span style="font-size:7.5pt;font-family:"Calibri","sans-serif";color:black">Yup, it seems to be hypervisor specific. I have added in the Vmware support following you correcting in the Vmware driver.</span><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:black"><br>
</span><span style="font-size:7.5pt;font-family:"Calibri","sans-serif";color:black">Thanks</span><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:black">
<br>
</span><span style="font-size:7.5pt;font-family:"Calibri","sans-serif";color:black">Gary
</span><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:black"><br>
<br>
</span><b><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:black">From:
</span></b><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:black">Matt Riedemann <</span><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:black"><a href="mailto:mriedem@us.ibm.com"><span style="font-size:10.0pt">mriedem@us.ibm.com</span></a></span><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:black">><b><br>
Reply-To: </b>OpenStack Development Mailing List <</span><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:black"><a href="mailto:openstack-dev@lists.openstack.org"><span style="font-size:10.0pt">openstack-dev@lists.openstack.org</span></a></span><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:black">><b><br>
Date: </b>Thursday, October 10, 2013 10:17 PM<b><br>
To: </b>OpenStack Development Mailing List <</span><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:black"><a href="mailto:openstack-dev@lists.openstack.org"><span style="font-size:10.0pt">openstack-dev@lists.openstack.org</span></a></span><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:black">><b><br>
Subject: </b>Re: [openstack-dev] [nova] Looking for clarification on the diagnostics API</span><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:black"><br>
<br>
</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">Looks like this has been brought up a couple of times:</span><span style="font-size:7.5pt;font-family:"Calibri","sans-serif";color:black"><br>
</span><u><span style="font-size:7.5pt;font-family:"Calibri","sans-serif";color:blue"><br>
</span></u><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:black"><a href="https://lists.launchpad.net/openstack/msg09138.html"><span style="font-size:12.0pt">https://lists.launchpad.net/openstack/msg09138.html</span></a></span><span style="font-size:7.5pt;font-family:"Calibri","sans-serif";color:black"><br>
</span><u><span style="font-size:7.5pt;font-family:"Calibri","sans-serif";color:blue"><br>
</span></u><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:black"><a href="https://lists.launchpad.net/openstack/msg08555.html"><span style="font-size:12.0pt">https://lists.launchpad.net/openstack/msg08555.html</span></a></span><span style="font-size:7.5pt;font-family:"Calibri","sans-serif";color:black"><br>
</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"><br>
But they seem to kind of end up in the same place I already am - it seems to be an open-ended API that is hypervisor-specific.</span><span style="font-size:7.5pt;font-family:"Calibri","sans-serif";color:black"><br>
</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"><br>
</span><span style="font-size:7.5pt;font-family:"Calibri","sans-serif";color:black"><br>
</span><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:black"><br>
Thanks,</span><span style="font-size:7.5pt;font-family:"Calibri","sans-serif";color:black">
<br>
</span><b><span style="font-family:"Arial","sans-serif";color:#8F8F8F"><br>
MATT RIEDEMANN</span></b><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:black"><br>
Advisory Software Engineer<br>
Cloud Solutions and OpenStack Development</span><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:black"><o:p></o:p></span></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="680" style="width:510.0pt;border-collapse:collapse">
<tbody>
<tr style="height:6.0pt">
<td width="678" colspan="2" style="width:508.5pt;border:solid black 1.0pt;padding:.75pt .75pt .75pt .75pt;height:6.0pt">
<div class="MsoNormal" align="center" style="text-align:center;mso-line-height-alt:6.0pt">
<hr size="2" width="100%" align="center">
</div>
</td>
</tr>
<tr style="height:6.0pt">
<td width="416" valign="top" style="width:312.0pt;border:solid black 1.0pt;border-top:none;padding:.75pt .75pt .75pt .75pt;height:6.0pt">
<p class="MsoNormal" style="mso-line-height-alt:6.0pt"><b><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#4181C0">Phone:</span></b><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#5F5F5F"> 1-507-253-7622</span><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#4181C0">
 | <b>Mobile:</b></span><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#5F5F5F"> 1-507-990-1889</span><b><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#4181C0"><br>
E-mail:</span></b><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#5F5F5F">
</span><a href="mailto:mriedem@us.ibm.com" target="_blank"><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#5F5F5F">mriedem@us.ibm.com</span></a><o:p></o:p></p>
</td>
<td width="259" valign="top" style="width:194.25pt;border-top:none;border-left:none;border-bottom:solid black 1.0pt;border-right:solid black 1.0pt;padding:.75pt .75pt .75pt .75pt;height:6.0pt">
<p class="MsoNormal" align="right" style="text-align:right;mso-line-height-alt:6.0pt">
<img border="0" width="83" height="30" id="_x0000_i1029" src="cid:image001.gif@01CEC8C3.400A2E30" alt="IBM"><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#5F5F5F"><br>
<br>
3605 Hwy 52 N<br>
Rochester, MN 55901-1407<br>
United States</span><o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:black"><br>
</span><span style="font-size:7.5pt;font-family:"Calibri","sans-serif";color:black"><br>
<br>
<br>
<br>
</span><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#5F5F5F"><br>
From:        </span><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:black">Matt Riedemann/Rochester/IBM</span><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#5F5F5F"><br>
To:        </span><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:black">"OpenStack Development Mailing List" <</span><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:black"><a href="mailto:openstack-dev@lists.openstack.org"><span style="font-size:7.5pt;font-family:"Arial","sans-serif"">openstack-dev@lists.openstack.org</span></a></span><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:black">>,
</span><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#5F5F5F"><br>
Date:        </span><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:black">10/10/2013 02:12 PM</span><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#5F5F5F"><br>
Subject:        </span><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:black">[nova] Looking for clarification on the diagnostics API</span><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:black"><o:p></o:p></span></p>
<div class="MsoNormal" align="center" style="text-align:center"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:black">
<hr size="2" width="100%" noshade="" style="color:#A0A0A0" align="center">
</span></div>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Calibri","sans-serif";color:black"><br>
</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"><br>
Tempest recently got some new tests for the nova diagnostics API [1] which failed when I was running against the powervm driver since it doesn't implement that API.  I started looking at other drivers that did and found that libvirt, vmware and xenapi at least
 had code for the get_diagnostics method.  I found that the vmware driver was re-using it's get_info method for get_diagnostics which led to bug 1237622 [2] but overall caused some confusion about the difference between the compute driver's get_info and get_diagnostics
 mehods.  It looks like get_info is mainly just used to get the power_state of the instance.</span><span style="font-size:7.5pt;font-family:"Calibri","sans-serif";color:black"><br>
</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"><br>
First, the get_info method has a nice docstring for what it needs returned [3] but the get_diagnostics method doesn't [4].  From looking at the API docs [5], the diagnostics API basically gives an example of values to get back which is completely based on what
 the libvirt driver returns.  Looking at the xenapi driver code, it looks like it does things a bit differently than the libvirt driver (maybe doesn't return the exact same keys, but it returns information based on what Xen provides).</span><span style="font-size:7.5pt;font-family:"Calibri","sans-serif";color:black"><br>
</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"><br>
I'm thinking about implementing the diagnostics API for the powervm driver but I'd like to try and get some help on defining just what should be returned from that call.  There are some IVM commands available to the powervm driver for getting hardware resource
 information about an LPAR so I think I could implement this pretty easily.</span><span style="font-size:7.5pt;font-family:"Calibri","sans-serif";color:black"><br>
</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"><br>
I think it basically comes down to providing information about the processor, memory, storage and network interfaces for the instance but if anyone has more background information on that API I'd like to hear it.</span><span style="font-size:7.5pt;font-family:"Calibri","sans-serif";color:black"><br>
</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"><br>
[1] </span><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:black"><a href="https://github.com/openstack/tempest/commit/da0708587432e47f85241201968e6402190f0c5d"><span style="font-size:12.0pt">https://github.com/openstack/tempest/commit/da0708587432e47f85241201968e6402190f0c5d</span></a></span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"><br>
[2] </span><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:black"><a href="https://bugs.launchpad.net/nova/+bug/1237622"><span style="font-size:12.0pt">https://bugs.launchpad.net/nova/+bug/1237622</span></a></span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"><br>
[3] </span><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:black"><a href="https://github.com/openstack/nova/blob/2013.2.rc1/nova/virt/driver.py#L144"><span style="font-size:12.0pt">https://github.com/openstack/nova/blob/2013.2.rc1/nova/virt/driver.py#L144</span></a></span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"><br>
[4] </span><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:black"><a href="https://github.com/openstack/nova/blob/2013.2.rc1/nova/virt/driver.py#L299"><span style="font-size:12.0pt">https://github.com/openstack/nova/blob/2013.2.rc1/nova/virt/driver.py#L299</span></a></span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"><br>
[5] </span><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:black"><a href="http://paste.openstack.org/show/48236/"><span style="font-size:12.0pt">http://paste.openstack.org/show/48236/</span></a></span><span style="font-size:7.5pt;font-family:"Calibri","sans-serif";color:black"><br>
</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"><br>
</span><span style="font-size:7.5pt;font-family:"Calibri","sans-serif";color:black"><br>
</span><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:black"><br>
Thanks,</span><span style="font-size:7.5pt;font-family:"Calibri","sans-serif";color:black">
<br>
</span><b><span style="font-family:"Arial","sans-serif";color:#8F8F8F"><br>
MATT RIEDEMANN</span></b><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:black"><br>
Advisory Software Engineer<br>
Cloud Solutions and OpenStack Development</span><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:black"><o:p></o:p></span></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="680" style="width:510.0pt;border-collapse:collapse">
<tbody>
<tr style="height:6.0pt">
<td width="678" colspan="2" style="width:508.5pt;border:solid black 1.0pt;padding:.75pt .75pt .75pt .75pt;height:6.0pt">
<div class="MsoNormal" align="center" style="text-align:center;mso-line-height-alt:6.0pt">
<hr size="2" width="100%" align="center">
</div>
</td>
</tr>
<tr style="height:6.0pt">
<td width="416" valign="top" style="width:312.0pt;border:solid black 1.0pt;border-top:none;padding:.75pt .75pt .75pt .75pt;height:6.0pt">
<p class="MsoNormal" style="mso-line-height-alt:6.0pt"><b><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#4181C0">Phone:</span></b><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#5F5F5F"> 1-507-253-7622</span><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#4181C0">
 | <b>Mobile:</b></span><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#5F5F5F"> 1-507-990-1889</span><b><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#4181C0"><br>
E-mail:</span></b><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#5F5F5F">
</span><a href="mailto:mriedem@us.ibm.com" target="_blank"><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#5F5F5F">mriedem@us.ibm.com</span></a><o:p></o:p></p>
</td>
<td width="259" valign="top" style="width:194.25pt;border-top:none;border-left:none;border-bottom:solid black 1.0pt;border-right:solid black 1.0pt;padding:.75pt .75pt .75pt .75pt;height:6.0pt">
<p class="MsoNormal" align="right" style="text-align:right;mso-line-height-alt:6.0pt">
<img border="0" width="83" height="30" id="_x0000_i1032" src="cid:image001.gif@01CEC8C3.400A2E30" alt="IBM"><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#5F5F5F"><br>
<br>
3605 Hwy 52 N<br>
Rochester, MN 55901-1407<br>
United States</span><o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:black"><br>
</span><span style="font-size:7.5pt;font-family:"Calibri","sans-serif";color:black"><br>
</span><tt><span style="font-size:10.0pt;color:black">_______________________________________________</span></tt><span style="font-size:10.0pt;font-family:"Courier New";color:black"><br>
<tt>OpenStack-dev mailing list</tt><br>
<tt><a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a></tt><br>
</span><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:black"><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev"><tt><span style="font-size:10.0pt">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</span></tt></a></span><span style="font-size:10.0pt;font-family:"Courier New";color:black"><br>
</span><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:black"><br>
</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">[attachment "ATT00001..gif" deleted by Matt Riedemann/Rochester/IBM] [attachment "ATT00002..gif" deleted by Matt Riedemann/Rochester/IBM]
</span><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:black"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</body>
</html>