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