Re: [openstack-dev] setting up 1-node devstack + ml2 + vxlan

2014-02-26 Thread Mathieu Rohon
To more precise, the kernel will listen on udp port 8472 as soon as
you create a vxlan port, with ip_route2. I doubt it's your case, but i
can't figure out why you want to change the vxlan port? please tell us
about that, it could be interesting.

In your case, your config doesn't seem to be a multi-node one, so you
will have only one vxlan endpoint, which hosts network node and
compute node. If this is right, it's normal that no vxlan tunnel is
created, since you don't have any other vxlan endpoint.


On Wed, Feb 26, 2014 at 11:38 AM, Mathieu Rohon mathieu.ro...@gmail.com wrote:
 Hi,

 FYI setting the vxlan UDP doesn't work properly for the moment :
 https://bugs.launchpad.net/neutron/+bug/1241561

 May be your kernel has the vxlan module already loaded, which bind the
 udp port 8472. that a reason why the vxlan port can't be created by
 ovs. Check your ovs-vswitchd.log

 On Tue, Feb 25, 2014 at 10:08 PM, Varadhan, Sowmini
 sowmini.varad...@hp.com wrote:
 Folks,

 I'm trying to set up a simple single-node devstack + ml2 + vxlan
 combination, and though this ought to be a simple RTFM exercise,
 I'm having some trouble setting this up. Perhaps I'm doing something
 wrong- clues would be welcome.

 I made sure to use ovs_version 1.10.2, and followed
 the instructions in https://wiki.openstack.org/wiki/Neutron/ML2
 (and then some, based on various and sundry blogs that google found)

 Can someone share (all) the contents of their localrc,
 and if possible, a description of their VM (virtualbox?  qemu-kvm?)
 setup so that I can compare against my env?

 FWIW, I tried the attached configs.
 localrc.all - sets up
 Q_PLUGIN=ml2
 Q_ML2_TENANT_NETWORK_TYPE=vxlan
 Q_AGENT_EXTRA_AGENT_OPTS=(tunnel_type=vxlan vxlan_udp_port=8472)
 Q_SRV_EXTRA_OPTS=(tenant_network_type=vxlan)
 Resulting VM boots, but no vxlan interfaces show up (see ovs-ctl.out.all)

 localrc.vxlan.only - disallow anything other than vxlan and gre.
 VM does not boot- I get a binding_failed error. See ovs-ctl.out.vxlan.only

 Thanks in advance,
 Sowmini

 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] setting up 1-node devstack + ml2 + vxlan

2014-02-26 Thread Varadhan, Sowmini
On 2/26/14 5:47 AM, Mathieu Rohon wrote:
 Hi,

 FYI setting the vxlan UDP doesn't work properly for the moment :
 https://bugs.launchpad.net/neutron/+bug/1241561

So I checked this again by going back to 13.10, still no luck.


 May be your kernel has the vxlan module already loaded, which bind the
 udp port 8472. that a reason why the vxlan port can't be created by
 ovs. Check your ovs-vswitchd.log

Yes vxlan is loaded (as indicated by lsmod) but I didnt
see any messages around 8472 in the ovs-vswitchd.log, so it must
be something else in my config. To double check, I even tried some
other port (8474) for vxlan_udp_port, still no luck.

So is there a template stack.sh around for this? That would
help me elminate the obvious config errors I may have made?

--Sowmini




___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] setting up 1-node devstack + ml2 + vxlan

2014-02-26 Thread Mathieu Rohon
Please look at my last reply. Do you have several compute nodes? If
you have only one node, you won't have any vxlan port on br-tun.

On Wed, Feb 26, 2014 at 6:44 PM, Varadhan, Sowmini
sowmini.varad...@hp.com wrote:
 On 2/26/14 5:47 AM, Mathieu Rohon wrote:
 Hi,

 FYI setting the vxlan UDP doesn't work properly for the moment :
 https://bugs.launchpad.net/neutron/+bug/1241561

 So I checked this again by going back to 13.10, still no luck.


 May be your kernel has the vxlan module already loaded, which bind the
 udp port 8472. that a reason why the vxlan port can't be created by
 ovs. Check your ovs-vswitchd.log

 Yes vxlan is loaded (as indicated by lsmod) but I didnt
 see any messages around 8472 in the ovs-vswitchd.log, so it must
 be something else in my config. To double check, I even tried some
 other port (8474) for vxlan_udp_port, still no luck.

 So is there a template stack.sh around for this? That would
 help me elminate the obvious config errors I may have made?

 --Sowmini




 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


[openstack-dev] setting up 1-node devstack + ml2 + vxlan

2014-02-25 Thread Varadhan, Sowmini
Folks,

I'm trying to set up a simple single-node devstack + ml2 + vxlan
combination, and though this ought to be a simple RTFM exercise,
I'm having some trouble setting this up. Perhaps I'm doing something
wrong- clues would be welcome.

I made sure to use ovs_version 1.10.2, and followed
the instructions in https://wiki.openstack.org/wiki/Neutron/ML2
(and then some, based on various and sundry blogs that google found)

Can someone share (all) the contents of their localrc,
and if possible, a description of their VM (virtualbox?  qemu-kvm?)
setup so that I can compare against my env?

FWIW, I tried the attached configs.
localrc.all - sets up
Q_PLUGIN=ml2
Q_ML2_TENANT_NETWORK_TYPE=vxlan
Q_AGENT_EXTRA_AGENT_OPTS=(tunnel_type=vxlan vxlan_udp_port=8472)
Q_SRV_EXTRA_OPTS=(tenant_network_type=vxlan)
Resulting VM boots, but no vxlan interfaces show up (see ovs-ctl.out.all)

localrc.vxlan.only - disallow anything other than vxlan and gre.
VM does not boot- I get a binding_failed error. See ovs-ctl.out.vxlan.only

Thanks in advance,
Sowmini
OFFLINE=False
RECLONE=yes

HOST_IP=192.168.122.198
PUBLIC_INTERFACE=eth1
SERVICE_HOST=$HOST_IP

MULTI_HOST=1
LOGFILE=$HOME/logs/devstack.log
LOGDAYS=7
SCREEN_LOGDIR=$HOME/logs/screen
LOG_COLOR=False

DATABASE_USER=root
MYSQL_PASSWORD=password
DATABASE_PASSWORD=password

ADMIN_PASSWORD=password
RABBIT_PASSWORD=password
SERVICE_PASSWORD=password
SERVICE_TOKEN=password
ADMIN_PASSWORD=password

Q_PLUGIN=ml2
Q_ML2_TENANT_NETWORK_TYPE=vxlan
Q_AGENT_EXTRA_AGENT_OPTS=(tunnel_type=vxlan vxlan_udp_port=8472)
Q_SRV_EXTRA_OPTS=(tenant_network_type=vxlan)


disable_service n-net
disable_service tempest
disable_service horizon
disable_service cinder
disable_service heat

enable_service  neutron
enable_service  q-agt
enable_service  q-svc
enable_service  q-l3
enable_service  q-dhcp


SCHEDULER=nova.scheduler.filter_scheduler.FilterScheduler
LIBVIRT_FIREWALL_DRIVER=nova.virt.firewall.NoopFirewallDriver

# disable_all_services
#
# enable_service   g-api
# enable_service   glance
# enable_service   keystone
# enable_service   nova
# enable_service   quantum
# enable_service   rabbit

disable_service  n-net

CINDER_BRANCH=master
GLANCE_BRANCH=master
HEAT_BRANCH=master
HORIZON_BRANCH=master
KEYSTONE_BRANCH=master
NOVA_BRANCH=master
QUANTUM_BRANCH=master
SWIFT_BRANCH=master
TEMPEST_BRANCH=master



#FLOATING_RANGE=10.10.37.0/24
FLOATING_RANGE=10.10.30.0/24
Q_FLOATING_ALLOCATION_POOL=start=10.10.30.64,end=10.10.30.127
FIXED_NETWORK_SIZE=256
SWIFT_HASH=password


OFFLINE=False
RECLONE=yes

HOST_IP=192.168.122.198
# PUBLIC_INTERFACE=eth1
SERVICE_HOST=$HOST_IP

#MULTI_HOST=1
LOGFILE=$HOME/logs/devstack.log
LOGDAYS=7
SCREEN_LOGDIR=$HOME/logs/screen
LOG_COLOR=False

DATABASE_USER=root
MYSQL_PASSWORD=password
DATABASE_PASSWORD=password

ADMIN_PASSWORD=password
RABBIT_PASSWORD=password
SERVICE_PASSWORD=password
SERVICE_TOKEN=password
ADMIN_PASSWORD=password
#
# fails with vif_type=binding_failed for the router interface?
#
Q_PLUGIN=ml2
Q_ML2_TENANT_NETWORK_TYPES=vxlan
Q_ML2_MECHANISM_DRIVERS=openvswitch
Q_ML2_PLUGIN_TYPE_DRIVERS=vxlan,gre
Q_AGENT_EXTRA_AGENT_OPTS=(tunnel_type=vxlan vxlan_udp_port=8472)
Q_SRV_EXTRA_OPTS=(tenant_network_types=vxlan)


disable_service n-net
disable_service tempest
disable_service horizon
disable_service cinder
disable_service heat
disable_service swift

enable_service  neutron
enable_service  q-agt
enable_service  q-svc
enable_service  q-l3
enable_service  q-dhcp
enable_service  q-meta


SCHEDULER=nova.scheduler.filter_scheduler.FilterScheduler
LIBVIRT_FIREWALL_DRIVER=nova.virt.firewall.NoopFirewallDriver

# disable_all_services
#
# enable_service   g-api
# enable_service   glance
# enable_service   keystone
# enable_service   nova
# enable_service   quantum
# enable_service   rabbit

disable_service  n-net

CINDER_BRANCH=master
GLANCE_BRANCH=master
HEAT_BRANCH=master
HORIZON_BRANCH=master
KEYSTONE_BRANCH=master
NOVA_BRANCH=master
QUANTUM_BRANCH=/home/sowmini/devstack/neutron
SWIFT_BRANCH=master
TEMPEST_BRANCH=master


FLAT_INTERFACE=eth1
OVS_PHYSICAL_BRIDGE=br-int
Q_USE_SECGROUP=True

#FLOATING_RANGE=10.10.37.0/24
FLOATING_RANGE=10.10.30.0/24
Q_FLOATING_ALLOCATION_POOL=start=10.10.30.64,end=10.10.30.127
FIXED_NETWORK_SIZE=256
SWIFT_HASH=password


owmini@sowmini-virtual-machine:~/devstack/devstack$ sudo ovs-vsctl show
0352c6e8-cced-4f21-8cff-36550186b4b8
Bridge br-int
Port qr-c4d5a7c3-69
tag: 1
Interface qr-c4d5a7c3-69
type: internal
Port br-int
Interface br-int
type: internal
Port patch-tun
Interface patch-tun
type: patch
options: {peer=patch-int}
Bridge br-ex
Port qg-f70ef8ee-65
Interface qg-f70ef8ee-65
type: internal
Port br-ex
Interface br-ex
type: internal
Bridge br-tun
Port br-tun
Interface br-tun