<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=gb2312">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@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;}
@font-face
{font-family:"\@SimSun";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";
mso-fareast-language:ZH-CN;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
mso-fareast-language:ZH-CN;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";
mso-fareast-language:ZH-CN;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:"Courier New";}
span.EmailStyle19
{mso-style-type:personal;
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";
mso-fareast-language:ZH-CN;}
span.EmailStyle22
{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="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I believe you are getting this problem because you are trying to use SR-IOV over a flat network, which is not supported.<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">From the logs:<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">2015-08-21 04:29:44.619 9644 DEBUG neutron.plugins.ml2.managers [req-314733e3-17ab-4e20-951a-0c75744016b5 ] Attempting to bind port 620187c5-b4ac-4aca-bdeb-96205503344d
on host compute for vnic_type direct with profile {"pci_slot": "0000:09:11.5", "physical_network": "external", "pci_vendor_info": "8086:1520"} bind_port /usr/lib/python2.7/site-packages/neutron/plugins/ml2/managers.py:611<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">2015-08-21 04:29:44.619 9644 DEBUG neutron.plugins.ml2.managers [req-314733e3-17ab-4e20-951a-0c75744016b5 ] Attempting to bind port 620187c5-b4ac-4aca-bdeb-96205503344d
on host compute at level 0 using segments [{'segmentation_id': None, 'physical_network': u'external', 'id': u'f3dee69f-ee4a-4c1b-bfa9-05689dc9b07b', 'network_type': u'flat'}] _bind_port_level /usr/lib/python2.7/site-packages/neutron/plugins/ml2/managers.py:628<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">You should try to use a segmented/VLAN based network.<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">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">/ludovic<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""> Moshe Levi [mailto:moshele@mellanox.com]
<br>
<b>Sent:</b> Friday, August 21, 2015 5:15 AM<br>
<b>To:</b> OpenStack Development Mailing List (not for usage questions); openstack-operators<br>
<b>Subject:</b> Re: [openstack-dev] [Neutron][SR-IOV]How to assign VF to a VM?<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">The problem is the sriov mechanism drive failed to bind the port.<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">For the log I see that you are working with agent_required=True, but the device mapping is empty {u'devices': 0, u'device_mappings': {}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Please check the agent configuration file see that you have the following
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">[securitygroup]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">firewall_driver = neutron.agent.firewall.NoopFirewallDriver<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">[sriov_nic]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">physical_device_mappings = physnet1:eth1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">exclude_devices =<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">also can you send the output of ¡°ps ¨Cef | grep neutron-sriov-nic-agent¡± command?<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>
<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 #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">
</span><span lang="ZH-CN" style="font-size:11.0pt;font-family:SimSun">ÓÚ½à</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> [<a href="mailto:16189455@qq.com">mailto:16189455@qq.com</a>]
<br>
<b>Sent:</b> Friday, August 21, 2015 12:01 PM<br>
<b>To:</b> openstack-operators <<a href="mailto:openstack-operators@lists.openstack.org">openstack-operators@lists.openstack.org</a>>; openstack-dev <<a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a>><br>
<b>Subject:</b> [openstack-dev] [Neutron][SR-IOV]How to assign VF to a VM?<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Hi all,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I try to configure SRIOV on OpenStack Kilo referring the information below.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="http://www.qlogic.com/solutions/Documents/UsersGuide_OpenStack_SR-IOV.pdf">http://www.qlogic.com/solutions/Documents/UsersGuide_OpenStack_SR-IOV.pdf</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="https://wiki.openstack.org/wiki/SR-IOV-Passthrough-For-Networking">https://wiki.openstack.org/wiki/SR-IOV-Passthrough-For-Networking</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Until creating port it works well. But after creating VM using the port created before, it was in the state of ERROR. Below is the port information: <o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal">neutron port-show 620187c5-b4ac-4aca-bdeb-96205503344d<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">+-----------------------+----------------------------------------------------------------------------------------------+<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">| Field | Value |<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">+-----------------------+----------------------------------------------------------------------------------------------+<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">| admin_state_up | True |<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">| allowed_address_pairs | |<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">| binding:host_id | compute |<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">| binding:profile | {"pci_slot": "0000:09:11.5", "physical_network": "external", "pci_vendor_info": "8086:1520"} |<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">| binding:vif_details | {} |<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">| binding:vif_type | binding_failed |<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">| binding:vnic_type | direct |<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">| device_id | baab9ba5-80e8-45f7-b86a-8ac3ce8ba944 |<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">| device_owner | compute:None |<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">| extra_dhcp_opts | |<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">| fixed_ips | {"subnet_id": "86849224-a0a7-4059-a6b0-689a2b35c995", "ip_address": "10.254.4.64"} |<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">| id | 620187c5-b4ac-4aca-bdeb-96205503344d |<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">| mac_address | fa:16:3e:8a:92:9b |<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">| name | |<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">| network_id | db078c2d-63f1-40c0-b6c3-b49de487362b |<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">| security_groups | 8e12a661-09b5-41ac-ade8-fddf6d997262 |<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">| status | DOWN |<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">| tenant_id | 85aa4ef08044470dab1608395e5cac26 |<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">+-----------------------+----------------------------------------------------------------------------------------------+<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">The logs of /var/log/neutron/server.log and /var/log/nova/nova-conductor.log are in attachment.<o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
<div>
<p class="MsoNormal">Any suggestions will be grateful.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Yu<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
</body>
</html>