[Openstack] [openstacl][neutron][ml2][vlan]
Andreas Scheuring
scheuran at linux.vnet.ibm.com
Tue Oct 14 06:35:14 UTC 2014
Hi,
Please check if the agent is available via
#neutron agent-list
This is my working vlan configuration:
Compute Node ml2.conf:
[ml2]
type_drivers = local,flat,vlan,gre,vxlan
mechanism_drivers = openvswitch,linuxbridge
[ml2_type_vlan]
network_vlan_ranges = phys-data:1000:1005
[securitygroup]
firewall_driver =
neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
[ovs]
local_ip = 9.152.150.191
bridge_mappings = phys-data:br-data
tenant_network_types = vlan
[agent]
root_helper = sudo /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf
(--> not sure if the root helper also fits for you. I had to adapt
the default config as on my system it was located in another
directory...)
combined Network/Controller Node ml2 cof:
[ml2]
tenant_network_types = vlan
type_drivers = vlan,flat
mechanism_drivers = openvswitch
[ml2_type_vlan]
network_vlan_ranges = phys-data:1000:1005
[securitygroup]
firewall_driver =
neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
[database]
connection = mysql://root:mysql-root-pw@127.0.0.1/neutron_ml2?charset
[ovs]
tenant_network_types = vlan
bridge_mappings = phys-data:br-data,phys-ex:br-ext
local_ip = 1.2.3.4
[agent]
root_helper =
sudo /usr/local/bin/neutron-rootwrap /etc/neutron/rootwrap.conf
--
Andreas
(irc: scheuran)
On Sat, 2014-10-11 at 20:03 +0200, Sławek Kapłoński wrote:
> Hello,
>
> Check in neutron-server logs why port is not bind correctly on host.
>
> ---
> Best regards
> Sławek Kapłoński
> slawek at kaplonski.pl
>
> Dnia sobota, 11 października 2014 04:37:50 Chinasubbareddy M pisze:
> > Hi ,
> >
> > When I am configuring ML2 plugin with vlan based network , nova boot is
> > failing with following error ,where as if I change the driver from ML2 to
> > OVS , things are working fine . Please suggest.
> >
> >
> > Here is the ml2 configuration:
> >
> > [ml2]
> > type_drivers = vlan
> > tenant_network_types = vlan
> > mechanism drivers = openvswitch
> > [ml2_type_vlan]
> > network_vlan_ranges = physnet1:1:4094
> > [ovs]
> > tenant_network_type = vlan
> > network_vlan_ranges = physnet1:1:4094
> > bridge_mappings = physnet1:br-eth1
> > [securitygroup]
> > firewall_driver =
> > neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
> > enable_security_group = True
> >
> > /etc/neutron/neutron.conf:
> > core_plugin = ml2
> > service_plugins = router
> > allow_overlapping_ips = True
> >
> >
> > logs:
> >
> >
> > root at build-server:/etc/init# grep -ir "241e4c21-5604-4a1b-a782-f44128fbd0b3"
> > /var/log/nova/* /var/log/nova/nova-compute.log:2014-09-11 02:41:23.053
> > 21941 ERROR nova.compute.manager [req-f4550d18-b37c-4dc6-9544-a9e8b2e38821
> > 5249dfc7f6c34fe68f98cfe60f82b331 22ad3f28f8f24b7fb14f17af44aa55f0]
> > [instance: 241e4c21-5604-4a1b-a782-f44128fbd0b3] Instance failed to spawn
> > /var/log/nova/nova-compute.log:2014-09-11 02:41:23.053 21941 TRACE
> > nova.compute.manager [instance: 241e4c21-5604-4a1b-a782-f44128fbd0b3]
> > Traceback (most recent call last):
> > /var/log/nova/nova-compute.log:2014-09-11 02:41:23.053 21941 TRACE
> > nova.compute.manager [instance: 241e4c21-5604-4a1b-a782-f44128fbd0b3]
> > File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1720,
> > in _spawn /var/log/nova/nova-compute.log:2014-09-11 02:41:23.053 21941
> > TRACE nova.compute.manager [instance: 241e4c21-5604-4a1b-a782-f44128fbd0b3]
> > block_device_info) /var/log/nova/nova-compute.log:2014-09-11
> > 02:41:23.053 21941 TRACE nova.compute.manager [instance:
> > 241e4c21-5604-4a1b-a782-f44128fbd0b3] File
> > "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 2250,
> > in spawn /var/log/nova/nova-compute.log:2014-09-11 02:41:23.053 21941 TRACE
> > nova.compute.manager [instance: 241e4c21-5604-4a1b-a782-f44128fbd0b3]
> > write_to_disk=True) /var/log/nova/nova-compute.log:2014-09-11 02:41:23.053
> > 21941 TRACE nova.compute.manager [instance:
> > 241e4c21-5604-4a1b-a782-f44128fbd0b3] File
> > "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 3431,
> > in to_xml /var/log/nova/nova-compute.log:2014-09-11 02:41:23.053 21941
> > TRACE nova.compute.manager [instance: 241e4c21-5604-4a1b-a782-f44128fbd0b3]
> > disk_info, rescue, block_device_info)
> > /var/log/nova/nova-compute.log:2014-09-11 02:41:23.053 21941 TRACE
> > nova.compute.manager [instance: 241e4c21-5604-4a1b-a782-f44128fbd0b3]
> > File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line
> > 3247, in get_guest_config /var/log/nova/nova-compute.log:2014-09-11
> > 02:41:23.053 21941 TRACE nova.compute.manager [instance:
> > 241e4c21-5604-4a1b-a782-f44128fbd0b3] flavor)
> > /var/log/nova/nova-compute.log:2014-09-11 02:41:23.053 21941 TRACE
> > nova.compute.manager [instance: 241e4c21-5604-4a1b-a782-f44128fbd0b3]
> > File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/vif.py", line 384,
> > in get_config /var/log/nova/nova-compute.log:2014-09-11 02:41:23.053 21941
> > TRACE nova.compute.manager [instance: 241e4c21-5604-4a1b-a782-f44128fbd0b3]
> > _("Unexpected vif_type=%s") % vif_type)
> > /var/log/nova/nova-compute.log:2014-09-11 02:41:23.053 21941 TRACE
> > nova.compute.manager [instance: 241e4c21-5604-4a1b-a782-f44128fbd0b3]
> > NovaException: Unexpected vif_type=binding_failed
> > /var/log/nova/nova-compute.log:2014-09-11 02:41:23.053 21941 TRACE
> > nova.compute.manager [instance: 241e4c21-5604-4a1b-a782-f44128fbd0b3]
> > /var/log/nova/nova-compute.log:2014-09-11 02:41:23.877 21941 ERROR
> > nova.virt.libvirt.driver [-] [instance:
> > 241e4c21-5604-4a1b-a782-f44128fbd0b3] During wait destroy, instance
> > disappeared. /var/log/nova/nova-compute.log:2014-09-11 02:41:24.275 21941
> > ERROR nova.compute.manager [req-f4550d18-b37c-4dc6-9544-a9e8b2e38821
> > 5249dfc7f6c34fe68f98cfe60f82b331 22ad3f28f8f24b7fb14f17af44aa55f0]
> > [instance: 241e4c21-5604-4a1b-a782-f44128fbd0b3] Error: Unexpected
> > vif_type=binding_failed /var/log/nova/nova-compute.log:2014-09-11
> > 02:41:24.275 21941 TRACE nova.compute.manager [instance:
> > 241e4c21-5604-4a1b-a782-f44128fbd0b3] Traceback (most recent call last):
> > /var/log/nova/nova-compute.log:2014-09-11 02:41:24.275 21941 TRACE
> > nova.compute.manager [instance: 241e4c21-5604-4a1b-a782-f44128fbd0b3]
> > File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1311,
> > in _build_instance /var/log/nova/nova-compute.log:2014-09-11 02:41:24.275
> > 21941 TRACE nova.compute.manager [instance:
> > 241e4c21-5604-4a1b-a782-f44128fbd0b3] set_access_ip=set_access_ip)
> > /var/log/nova/nova-compute.log:2014-09-11 02:41:24.275 21941 TRACE
> > nova.compute.manager [instance: 241e4c21-5604-4a1b-a782-f44128fbd0b3]
> > File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 399,
> > in decorated_function /var/log/nova/nova-compute.log:2014-09-11
> > 02:41:24.275 21941 TRACE nova.compute.manager [instance:
> > 241e4c21-5604-4a1b-a782-f44128fbd0b3] return function(self, context,
> > *args, **kwargs) /var/log/nova/nova-compute.log:2014-09-11 02:41:24.275
> > 21941 TRACE nova.compute.manager [instance:
> > 241e4c21-5604-4a1b-a782-f44128fbd0b3] File
> > "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1723, in
> > _spawn /var/log/nova/nova-compute.log:2014-09-11 02:41:24.275 21941 TRACE
> > nova.compute.manager [instance: 241e4c21-5604-4a1b-a782-f44128fbd0b3]
> > LOG.exception(_('Instance failed to spawn'), instance=instance)
> > /var/log/nova/nova-compute.log:2014-09-11 02:41:24.275 21941 TRACE
> > nova.compute.manager [instance: 241e4c21-5604-4a1b-a782-f44128fbd0b3]
> > File "/usr/lib/python2.7/dist-packages/nova/openstack/common/excutils.py",
> > line 68, in __exit__ /var/log/nova/nova-compute.log:2014-09-11 02:41:24.275
> > 21941 TRACE nova.compute.manager [instance:
> > 241e4c21-5604-4a1b-a782-f44128fbd0b3] six.reraise(self.type_,
> > self.value, self.tb) /var/log/nova/nova-compute.log:2014-09-11 02:41:24.275
> > 21941 TRACE nova.compute.manager [instance:
> > 241e4c21-5604-4a1b-a782-f44128fbd0b3] File
> > "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1720, in
> > _spawn /var/log/nova/nova-compute.log:2014-09-11 02:41:24.275 21941 TRACE
> > nova.compute.manager [instance: 241e4c21-5604-4a1b-a782-f44128fbd0b3]
> > block_device_info) /var/log/nova/nova-compute.log:2014-09-11 02:41:24.275
> > 21941 TRACE nova.compute.manager [instance:
> > 241e4c21-5604-4a1b-a782-f44128fbd0b3] File
> > "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 2250,
> > in spawn /var/log/nova/nova-compute.log:2014-09-11 02:41:24.275 21941 TRACE
> > nova.compute.manager [instance: 241e4c21-5604-4a1b-a782-f44128fbd0b3]
> > write_to_disk=True) /var/log/nova/nova-compute.log:2014-09-11 02:41:24.275
> > 21941 TRACE nova.compute.manager [instance:
> > 241e4c21-5604-4a1b-a782-f44128fbd0b3] File
> > "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 3431,
> > in to_xml /var/log/nova/nova-compute.log:2014-09-11 02:41:24.275 21941
> > TRACE nova.compute.manager [instance: 241e4c21-5604-4a1b-a782-f44128fbd0b3]
> > disk_info, rescue, block_device_info)
> > /var/log/nova/nova-compute.log:2014-09-11 02:41:24.275 21941 TRACE
> > nova.compute.manager [instance: 241e4c21-5604-4a1b-a782-f44128fbd0b3]
> > File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line
> > 3247, in get_guest_config /var/log/nova/nova-compute.log:2014-09-11
> > 02:41:24.275 21941 TRACE nova.compute.manager [instance:
> > 241e4c21-5604-4a1b-a782-f44128fbd0b3] flavor)
> > /var/log/nova/nova-compute.log:2014-09-11 02:41:24.275 21941 TRACE
> > nova.compute.manager [instance: 241e4c21-5604-4a1b-a782-f44128fbd0b3]
> > File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/vif.py", line 384,
> > in get_config /var/log/nova/nova-compute.log:2014-09-11 02:41:24.275 21941
> > TRACE nova.compute.manager [instance: 241e4c21-5604-4a1b-a782-f44128fbd0b3]
> > _("Unexpected vif_type=%s") % vif_type)
> > /var/log/nova/nova-compute.log:2014-09-11 02:41:24.275 21941 TRACE
> > nova.compute.manager [instance: 241e4c21-5604-4a1b-a782-f44128fbd0b3]
> > NovaException: Unexpected vif_type=binding_failed
> > /var/log/nova/nova-compute.log:2014-09-11 02:41:24.275 21941 TRACE
> > nova.compute.manager [instance: 241e4c21-5604-4a1b-a782-f44128fbd0b3]
> > /var/log/nova/nova-compute.log:2014-09-11 02:50:44.135 23339 ERROR
> > nova.virt.libvirt.driver [-] [instance:
> > 241e4c21-5604-4a1b-a782-f44128fbd0b3] During wait destroy, instance
> > disappeared.
> >
> >
> > Regards,
> > Subbareddy
> > Persistent systems ltd.
> >
> >
> > DISCLAIMER
> > ==========
> > This e-mail may contain privileged and confidential information which is the
> > property of Persistent Systems Ltd. It is intended only for the use of the
> > individual or entity to which it is addressed. If you are not the intended
> > recipient, you are not authorized to read, retain, copy, print, distribute
> > or use this message. If you have received this communication in error,
> > please notify the sender and delete all copies of this message. Persistent
> > Systems Ltd. does not accept any liability for virus infected mails.
> _______________________________________________ Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack Post to : openstack at lists.openstack.org Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
More information about the Openstack
mailing list