<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:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@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";}
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;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
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-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hi Nishant,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Mellanox plugin supports two types of VF provisioning , as pci passthrough (hostdev) and as macvtap (mlnx_direct) vNIC.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">According to the log, you want to use the first flavor (hostdev).
<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">Please follow the following instructions in:
</span><a href="http://community.mellanox.com/community/develop/">http://Community.mellanox.com/community/develop/</a> -
<span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">After the installation perform the following changes for  setting the ‘probe_vf’  option in mlx4_core. In case you want all VFs to be used in pci passthrough mode, set the probe_vf
 = 0.<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">In case you need further assistance, please contact us at
<a href="mailto:Openstack@mellanox.com">Openstack@mellanox.com</a><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">Best Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Irena<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"><o:p> </o:p></span></p>
<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""> nishant kumar [mailto:nishantkumar_2k@yahoo.com]
<br>
<b>Sent:</b> Monday, January 27, 2014 10:19 AM<br>
<b>To:</b> openstack@lists.openstack.org<br>
<b>Subject:</b> [Openstack] Need help on openstack mellanox quantum plugin setup<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Helvetica","sans-serif";color:black">Hi there!<br>
<br>
I have setup a compute node with openstack networking enabled by the mellanox neutron plugin on RH6.4. I have enabled SR-IOV and created 4 VFs. They all show up in ifconfig. I tried creating an instance using 'nova boot' command. However it is in error state.<br>
<br>
I created network, subnet and ports successfully by following this doc:<br>
<a href="http://www.mellanox.com/related-docs/applications/Mellanox-OpenStack-Solution-for-Red-Hat.pdf">http://www.mellanox.com/related-docs/applications/Mellanox-OpenStack-Solution-for-Red-Hat.pdf</a><br>
<br>
I created an instance using following command:<br>
nova boot --flavor 1 --image 7f8460fd-6928-49ae-bef8-055a1de3e39a cirrOS --nic port-id=98f537b2-27dc-4583-ad1a-85edbd74987a<br>
<br>
The instance was in error state and eswitchd.log shows this:<br>
2014-01-26 09:41:36,549 DEBUG PF eth4, eths=['eth6', 'eth7', 'eth8', 'eth9'], vfs=[]<br>
- - - - - - - - - - - - truncated - - - - - - - - - - - -<br>
2014-01-26 10:43:13,320 DEBUG vnics are {}<br>
2014-01-26 10:43:13,746 DEBUG Handling message - {u'action': u'get_vnics', u'fabric': u'*'}<br>
2014-01-26 10:43:13,746 DEBUG fabrics =['default']<br>
2014-01-26 10:43:13,747 DEBUG vnics are {}<br>
2014-01-26 10:43:14,565 DEBUG Handling message - {u'fabric': u'default', u'dev_name': None, u'vnic_type': u'hostdev', u'action': u'create_port', u'vnic_mac': u'fa:16:3e:c9:c2:23', u'device_id': u'e106da24-9b10-4c4c-87a0-66276f025c6e'}<br>
2014-01-26 10:43:14,565 ERROR exception on device allocation on dev  None - No available resources.<br>
2014-01-26 10:43:14,566 ERROR Create port operation failed<br>
<br>
My queries are:<br>
    - Does my setup look ok?<br>
    - I guess since I am using SR-IOV, the adapter is presenting VFs as PFs to OS. Is this understanding correct?<br>
    - vfs list is empty (Log says vfs=[]). Is this OK?<br>
<br>
Please comment/advise on what could be the issue.<br>
<br>
Thanks,<br>
Nishant<o:p></o:p></span></p>
</div>
</div>
</div>
</body>
</html>