<div dir="ltr"><div><div><div>Hi Itzik, <br><br></div>Please find the files below:<br><br></div>1. ml2_conf.ini<br>[ml2]<br># (ListOpt) List of network type driver entrypoints to be loaded from<br># the neutron.ml2.type_drivers namespace.<br>#<br># type_drivers = local,flat,vlan,gre,vxlan<br># Example: type_drivers = flat,vlan,gre,vxlan<br>#type_drivers = flat,gre, vlan<br>type_drivers = flat,vlan<br><br># (ListOpt) Ordered list of network_types to allocate as tenant<br># networks. The default value 'local' is useful for single-box testing<br># but provides no connectivity between hosts.<br>#<br># tenant_network_types = local<br># Example: tenant_network_types = vlan,gre,vxlan<br>#tenant_network_types = gre, vlan<br>tenant_network_types = vlan<br><br># (ListOpt) Ordered list of networking mechanism driver entrypoints<br># to be loaded from the neutron.ml2.mechanism_drivers namespace.<br>mechanism_drivers = openvswitch,sriovnicswitch<br># Example: mechanism_drivers = openvswitch,mlnx<br># Example: mechanism_drivers = arista<br># Example: mechanism_drivers = cisco,logger<br># Example: mechanism_drivers = openvswitch,brocade<br># Example: mechanism_drivers = linuxbridge,brocade<br><br># (ListOpt) Ordered list of extension driver entrypoints<br># to be loaded from the neutron.ml2.extension_drivers namespace.<br># extension_drivers =<br># Example: extension_drivers = anewextensiondriver<br><br>[ml2_type_flat]<br># (ListOpt) List of physical_network names with which flat networks<br># can be created. Use * to allow flat networks with arbitrary<br># physical_network names.<br>#<br>flat_networks = external<br># Example:flat_networks = physnet1,physnet2<br># Example:flat_networks = *<br>[ml2_type_vlan]<br># (ListOpt) List of <physical_network>[:<vlan_min>:<vlan_max>] tuples<br># specifying physical_network names usable for VLAN provider and<br># tenant networks, as well as ranges of VLAN tags on each<br># physical_network available for allocation as tenant networks.<br>#<br>network_vlan_ranges = external:2:100<br># Example: network_vlan_ranges = physnet1:1000:2999,physnet2<br><br>[ml2_type_gre]<br># (ListOpt) Comma-separated list of <tun_min>:<tun_max> tuples enumerating ranges of GRE tunnel IDs that are available for tenant network allocation<br>#tunnel_id_ranges = 1:1000<br><br>[ml2_type_vxlan]<br># (ListOpt) Comma-separated list of <vni_min>:<vni_max> tuples enumerating<br># ranges of VXLAN VNI IDs that are available for tenant network allocation.<br>#<br># vni_ranges =<br><br># (StrOpt) Multicast group for the VXLAN interface. When configured, will<br># enable sending all broadcast traffic to this multicast group. When left<br># unconfigured, will disable multicast VXLAN mode.<br>#<br># vxlan_group =<br># Example: vxlan_group = 239.1.1.1<br><br>[securitygroup]<br># Controls if neutron security group is enabled or not.<br># It should be false when you use nova security group.<br>enable_security_group = True<br><br># Use ipset to speed-up the iptables security groups. Enabling ipset support<br># requires that ipset is installed on L2 agent node.<br>enable_ipset = True<br>firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver<br>[ovs]<br>local_ip = controller<br>#enable_tunneling = True<br>bridge_mappings = external:br-ex<br><br>[agent]<br>#tunnel_types = vlan<br><br>#[ml2_sriov]<br>#agent_required = True<br><br></div>2. ml2_conf_sriov.ini:<br># Defines configuration options for SRIOV NIC Switch MechanismDriver<br># and Agent<br><br>[ml2_sriov]<br># (ListOpt) Comma-separated list of<br># supported Vendor PCI Devices, in format vendor_id:product_id<br>#<br>#supported_pci_vendor_devs = 8086:10ca, 8086:10ed<br>supported_pci_vendor_devs = 8086:10ed<br># Example: supported_pci_vendor_devs = 15b3:1004<br>#<br># (BoolOpt) Requires running SRIOV neutron agent for port binding<br>#agent_required = True<br><br>[sriov_nic]<br># (ListOpt) Comma-separated list of <physical_network>:<network_device><br># tuples mapping physical network names to the agent's node-specific<br># physical network device interfaces of SR-IOV physical function to be used<br># for VLAN networks. All physical networks listed in network_vlan_ranges on<br># the server should have mappings to appropriate interfaces on each agent.<br>#<br>physical_device_mappings = external:em1<br># Example: physical_device_mappings = physnet1:eth1<br>#<br># (ListOpt) Comma-separated list of <network_device>:<vfs__to_exclude><br># tuples, mapping network_device to the agent's node-specific list of virtual<br># functions that should not be used for virtual networking.<br># vfs_to_exclude is a semicolon-separated list of virtual<br># functions to exclude from network_device. The network_device in the<br># mapping should appear in the physical_device_mappings list.<br># exclude_devices =<br># Example: exclude_devices = eth1:0000:07:00.2; 0000:07:00.3<br><div><div><div><br><br></div><div>3. nova.conf:<br>[DEFAULT]<br>dhcpbridge_flagfile=/etc/nova/nova.conf<br>dhcpbridge=/usr/bin/nova-dhcpbridge<br>logdir=/var/log/nova<br>state_path=/var/lib/nova<br>lock_path=/var/lock/nova<br>force_dhcp_release=True<br>libvirt_use_virtio_for_bridges=True<br>verbose=True<br>ec2_private_dns_show_ip=True<br>api_paste_config=/etc/nova/api-paste.ini<br>enabled_apis=ec2,osapi_compute,metadata<br><br>verbose = True<br><br>my_ip = 172.17.250.78<br><br>vnc_enabled = True<br>vncserver_listen = controller<br>vncserver_proxyclient_address = controller<br>novncproxy_base_url = <a href="http://controller:6080/vnc_auto.html">http://controller:6080/vnc_auto.html</a><br><br>rpc_backend = rabbit<br>rabbit_host = controller<br>rabbit_password = d3ll1234<br><br>auth_strategy = keystone<br><br>network_api_class = nova.network.neutronv2.api.API<br>security_group_api = neutron<br>linuxnet_interface_driver = nova.network.linux_net.LinuxOVSInterfaceDriver<br>firewall_driver = nova.virt.firewall.NoopFirewallDriver<br><br>instance_usage_audit = True<br>instance_usage_audit_period = hour<br>notify_on_state_change = vm_and_task_state<br>notification_driver = nova.openstack.common.notifier.rpc_notifier<br>notification_driver = ceilometer.compute.nova_notifier<br><br>libvirt_vif_driver=nova.virt.libvirt.vif.LibvirtGenericVIFDriver<br>#libvirt_vif_driver=nova.virt.libvirt.vif.LibvirtHybridOVSBridgeDriver<br>scheduler_default_filters=AllHostsFilter<br>scheduler_available_filters=nova.scheduler.filters.all_filters<br>rpc_response_timeout=600<br><br>pci_passthrough_whitelist = {"address":"*:03:10.*","physical_network":"external"}<br><br>[database]<br>connection = mysql://nova:d3ll1234@controller/nova<br><br>[keystone_authtoken]<br>auth_uri = <a href="http://controller:5000/v2.0">http://controller:5000/v2.0</a><br>identity_uri = <a href="http://controller:35357">http://controller:35357</a><br>admin_tenant_name = service<br>admin_user = nova<br>admin_password = d3ll1234<br><br>[glance]<br>host = controller<br><br>[neutron]<br>url = <a href="http://controller:9696">http://controller:9696</a><br>auth_strategy = keystone<br>admin_auth_url = <a href="http://controller:35357/v2.0">http://controller:35357/v2.0</a><br>admin_tenant_name = service<br>admin_username = neutron<br>admin_password = d3ll1234<br>service_metadata_proxy = True<br>metadata_proxy_shared_secret = a6b3690f93a2f41fed1c<br><br></div><div>Please let me know what I am doing wrong or missing in order to fix this bug. <br><br></div><div>Thanks and Regards,<br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 1, 2015 at 11:36 AM, dhanesh1212121212 <span dir="ltr"><<a href="mailto:dhanesh1212@gmail.com" target="_blank">dhanesh1212@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi All,<br><br></div>Iam facing the same issue, my set up is very minimal with centos.<br><br><br></div>Thanks and regards,<br></div>Dhanesh M.<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 31, 2014 at 9:41 PM, Pedro Navarro Pérez <span dir="ltr"><<a href="mailto:pednape@gmail.com" target="_blank">pednape@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Sadia,<div><br></div><div>the binding occurs when calling the binding function in the sriov mechanism. I'd check the following:</div><div><br></div><div>1. The network type you are using when creating the port is VLAN</div><div>2. Are you using neutron-sriov-agent?</div><div><br></div><div>In my case, I found this error when using not VLAN type.</div><div><br></div><div>Regards </div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Wed, Dec 31, 2014 at 12:13 PM, Sadia Bashir <span dir="ltr"><<a href="mailto:11msccssbashir@seecs.edu.pk" target="_blank">11msccssbashir@seecs.edu.pk</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><div><div><div><div>Hello everyone, <br><br></div>I am getting following error in nova-compute.log while creating a virtual machine with sriov nic type on Juno All-In-One Installation (Ubuntu14.04):<br><br>2014-12-31 02:40:49.416 20653 INFO nova.virt.libvirt.driver [-] [instance: 53519867-d316-4ace-b1d6-abebe4986f01] Creating image<br>2014-12-31 02:40:49.662 20653 INFO nova.virt.disk.vfs.api [-] Unable to import guestfsfalling back to VFSLocalFS<br>2014-12-31 02:40:50.162 20653 ERROR nova.compute.manager [-] [instance: 53519867-d316-4ace-b1d6-abebe4986f01] Instance failed to spawn<br>2014-12-31 02:40:50.162 20653 TRACE nova.compute.manager [instance: 53519867-d316-4ace-b1d6-abebe4986f01] Traceback (most recent call last):<br>2014-12-31 02:40:50.162 20653 TRACE nova.compute.manager [instance: 53519867-d316-4ace-b1d6-abebe4986f01]   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2249, in _build_resources<br>2014-12-31 02:40:50.162 20653 TRACE nova.compute.manager [instance: 53519867-d316-4ace-b1d6-abebe4986f01]     yield resources<br>2014-12-31 02:40:50.162 20653 TRACE nova.compute.manager [instance: 53519867-d316-4ace-b1d6-abebe4986f01]   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2119, in _build_and_run_instance<br>2014-12-31 02:40:50.162 20653 TRACE nova.compute.manager [instance: 53519867-d316-4ace-b1d6-abebe4986f01]     block_device_info=block_device_info)<br>2014-12-31 02:40:50.162 20653 TRACE nova.compute.manager [instance: 53519867-d316-4ace-b1d6-abebe4986f01]   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 2619, in spawn<br>2014-12-31 02:40:50.162 20653 TRACE nova.compute.manager [instance: 53519867-d316-4ace-b1d6-abebe4986f01]     write_to_disk=True)<br>2014-12-31 02:40:50.162 20653 TRACE nova.compute.manager [instance: 53519867-d316-4ace-b1d6-abebe4986f01]   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 4150, in _get_guest_xml<br>2014-12-31 02:40:50.162 20653 TRACE nova.compute.manager [instance: 53519867-d316-4ace-b1d6-abebe4986f01]     context)<br>2014-12-31 02:40:50.162 20653 TRACE nova.compute.manager [instance: 53519867-d316-4ace-b1d6-abebe4986f01]   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 3936, in _get_guest_config<br>2014-12-31 02:40:50.162 20653 TRACE nova.compute.manager [instance: 53519867-d316-4ace-b1d6-abebe4986f01]     flavor, CONF.libvirt.virt_type)<br>2014-12-31 02:40:50.162 20653 TRACE nova.compute.manager [instance: 53519867-d316-4ace-b1d6-abebe4986f01]   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/vif.py", line 352, in get_config<br>2014-12-31 02:40:50.162 20653 TRACE nova.compute.manager [instance: 53519867-d316-4ace-b1d6-abebe4986f01]     _("Unexpected vif_type=%s") % vif_type)<br>2014-12-31 02:40:50.162 20653 TRACE nova.compute.manager [instance: 53519867-d316-4ace-b1d6-abebe4986f01] NovaException: Unexpected vif_type=binding_failed<br><br></div>After configuring I have made changes to /etc/init/neutron-server.conf and neutron-plugin-sriov-agent.conf scripts to avoid errors. <br><br></div>Please let me know the exact reason which is causing this error and how can it be fixed. Any help/suggestion would be highly appreciated. <br><br></div>Thanks and Regards,<span><font color="#888888"><br><div><div><div>-- <br><div><div><div><div><font color="#3366ff"><br></font></div><div><font color="#3366ff"></font> </div></div>
</div></div></div></div></div></font></span></div>
<br></div></div>_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to     : <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr">Pedro Navarro Pérez</div></div>
</font></span></div>
<br>_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to     : <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div><font color="#3366ff"><br></font></div><div><font color="#3366ff"></font> </div></div>
</div>