<div>Thanks Moshe,</div><div>Referring to https://wiki.openstack.org/wiki/SR-IOV-Passthrough-For-Networking, it has the note:</div><div><font size="1"><b style="font-family: 'Arial Unicode MS', Arial, sans-serif; line-height: 20px;">Note:</b><span style="font-family: 'Arial Unicode MS', Arial, sans-serif; line-height: 20px;">SR-IOV agent only work with NoopFirewallDriver when Security Groups are enabled, but you can still use other firewall_driver for other Agents by updating their conf with the requested firewall driver.</span></font></div><div><font size="1"><span style="font-family: 'Arial Unicode MS', Arial, sans-serif; line-height: 20px;">So I think </span><font face="Arial Unicode MS, Arial, sans-serif"><span style="line-height: 20px;">linux.iptables_firewall.OVSHybridIptabl maybe not the issue.</span></font></font></div><div><font size="1"><font face="Arial Unicode MS, Arial, sans-serif"><span style="line-height: 20px;"><br></span></font></font></div><div><font face="Arial Unicode MS, Arial, sans-serif" size="1"><span style="line-height: 20px;"><div>[root@compute ~]# ps -ef|grep neutron-sriov</div><div>root 28672 26639 0 22:45 pts/0 00:00:00 grep --color=auto neutron-sriov</div><div>neutron 30891 1 0 05:21 ? 00:01:41 /usr/bin/python2 /usr/bin/neutron-sriov-nic-agent --config-file /usr/share/neutron/neutron-dist.conf --config-file /etc/neutron/neutron.conf --config-dir /etc/neutron/conf.d/neutron-sriov-nic-agent --config-file /etc/neutron/plugins/ml2/ml2_conf_sriov.ini --log-file /var/log/neutron/sriov-nic-agent.log</div></span></font></div><div><font face="Arial Unicode MS, Arial, sans-serif" size="1"><span style="line-height: 20px;"><br></span></font></div><div><font face="Arial Unicode MS, Arial, sans-serif" size="1"><span style="line-height: 20px;">I will have a try of vlan and vxlan.</span></font></div><div><font face="Arial Unicode MS, Arial, sans-serif"><span style="line-height: 20px;"><br></span></font></div><div><font face="Arial Unicode MS, Arial, sans-serif"><span style="line-height: 20px;">Thank you,</span></font></div><div><font face="Arial Unicode MS, Arial, sans-serif"><span style="line-height: 20px;">Yu</span></font></div><div><div><br></div><div><br></div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------ 原始邮件 ------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>发件人:</b> "Moshe Levi";<moshele@mellanox.com>;</div><div><b>发送时间:</b> 2015年8月21日(星期五) 下午5:15</div><div><b>收件人:</b> "OpenStack Development Mailing List (not for usage questions)"<openstack-dev@lists.openstack.org>; "openstack-operators"<openstack-operators@lists.openstack.org>; <wbr></div><div></div><div><b>主题:</b> Re: [openstack-dev] [Neutron][SR-IOV]How to assign VF to a VM?</div></div><div><br></div>
<style></style>
<div class="WordSection1">
<p class="MsoNormal"><span style=" font-size:11.0pt ; ; ; ">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 ; ; ; "><o:p> </o:p></span></p>
<p class="MsoNormal"><span style=" font-size:11.0pt ; ; ; ">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 ; ; ; ">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 ; ; ">[securitygroup]<o:p></o:p></span></p>
<p class="MsoNormal"><span style=" font-size:10.0pt ; ; ">firewall_driver = neutron.agent.firewall.NoopFirewallDriver<o:p></o:p></span></p>
<p class="MsoNormal"><span style=" font-size:10.0pt ; ; ">[sriov_nic]<o:p></o:p></span></p>
<p class="MsoNormal"><span style=" font-size:10.0pt ; ; ">physical_device_mappings = physnet1:eth1<o:p></o:p></span></p>
<p class="MsoNormal"><span style=" font-size:10.0pt ; ; ">exclude_devices =<o:p></o:p></span></p>
<p class="MsoNormal"><span style=" font-size:11.0pt ; ; ; "><o:p> </o:p></span></p>
<p class="MsoNormal"><span style=" font-size:11.0pt ; ; ; ">also can you send the output of “ps –ef | grep neutron-sriov-nic-agent” command?<o:p></o:p></span></p>
<p class="MsoNormal"><span style=" font-size:11.0pt ; ; ; "><o:p> </o:p></span></p>
<p class="MsoNormal"><span style=" font-size:11.0pt ; ; ; "><o:p> </o:p></span></p>
<p class="MsoNormal"><span style=" font-size:11.0pt ; ; ; "><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 ; ; ; ">From:</span></b><span style=" font-size:11.0pt ; ; ; ">
</span><span lang="ZH-CN" style="font-size:11.0pt;font-family:SimSun;mso-fareast-language:ZH-CN">于洁</span><span style=" font-size:11.0pt ; ; ; "> [mailto:16189455@qq.com]
<br>
<b>Sent:</b> Friday, August 21, 2015 12:01 PM<br>
<b>To:</b> openstack-operators <openstack-operators@lists.openstack.org>; openstack-dev <openstack-dev@lists.openstack.org><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></div>