Comments (3)
I have resolved unreliable network issue. Problem was with Realtek driver! Automatically, r8169 was loaded for both eth0 and eth1 interfaces. This driver has given me so much headache. For some reason it completely stops every network interface on compute nodes, so script from above post restarts them on failure. This is unacceptable.
Unfortunately, r8168 does not come with ubuntu 12.04.3 kernel 3.2, so I had to manually build and install it following this tutorial: http://djlab.com/2010/10/fixing-rtl8111-8168b-driver-debian-ubuntu/
Now, I have r8168 loaded for eth0, and r8169 for eth1. Script from previous post is not required anymore.
Still need to test reliability of whole system. I will do more stress test next couple of days and let you know what is going on.
from openstack-grizzly-install-guide.
Unfortunately, r8168 and r8169 are terrible drivers/modules from my experience. People complain all over the Internet for last 5 years about it. Many suggested upgrading kernel to latest, but since OVS 1.4.0 and kernel 3.2 are only available at the moment for ubuntu 12.04.3, we will be forced to stay on it. Script from original question works very well, so anyone can use it. We use it.
In script from initial questions, we even tried using "ip link set mtu 1400 dev eth0" and "ip link set mtu 1600 dev eth0", instead of "ifconfig eth0 down" and "ifconfig eth0 up". But, after some time it stops working.
My next direction will be to to install isolated Grizzly with only 3 machines, and try to use latest kernel on 12.04.3 available and make OVS work.
I read almost every possible guide for last 4 versions of OpenStack, and I cannot find any specific setting which in OpenStack can cause network interface to go down, so I can conclude that problem is not in OpenStack.
I know it does not have to anything with official guide, but I see complains all over the forums, and discussions are always getting to dead end. I will keep you posted anyway until we find solution to this problem.
from openstack-grizzly-install-guide.
Finally good news,
I have managed to resolve this issue. Indeed, kernel module r8168/r8169 caused all problems. To resolve this update Linux Kernel to 3.8 and OVS to 1.9.0, but there is a catch, so follow next instructions.
Kernel and OVS
On Controller, Network and all Compute nodes do following:
# apt-get -y update
# apt-get -y upgrade
# apt-get -y dist-upgrade
# apt-get install linux-image-generic-lts-raring linux-headers-generic-lts-raring
# update-grub
# update-grub2
# reboot
# apt-get install -y openvswitch-datapath-lts-raring-source
# apt-get install -y module-assistant
# module-assistant prepare
# cd /lib/modules/`uname -r`/build/include/linux
# ln -s ../generated/uapi/linux/version.h .
# module-assistant auto-install openvswitch-datapath-lts-raring
# reboot
References:
- http://javacruft.wordpress.com/2013/08/21/openvswitch-for-ubuntu-12-04-3-lts/
- http://blog.vpetkov.net/2013/08/31/openstack-quantum-open-vswitch-datapath-for-tunnels-or-patch-ports/
OVS and DHCP
Once net0 and all compX machines are installed and configured, stop quantum services on net0 and compX machines.
On net0:
# cd /etc/init.d/; for i in $( ls quantum-* ); do sudo service $i stop; done
On all compX:
# cd /etc/init.d/; for i in $( ls quantum-* ); do sudo service $i stop; done
On ctrl0:
# mysql -u root -p
> use quantum;
> select * from ovs_tunnel_endpoints;
> delete from ovs_tunnel_endpoints;
On net0:
# ovs-vsctl list-br
# ovs-vsctl del-br br-ex
# ovs-vsctl del-br br-int
# ovs-vsctl del-br br-tun
# ovs-vsctl add-br br-int
# ovs-vsctl add-br br-ex
# ovs-vsctl add-port br-ex eth1
# ovs-vsctl list-br
# cd /etc/init.d/; for i in $( ls quantum-* ); do sudo service $i restart; done
# ovs-vsctl list-br
On all compX machines:
# cd /etc/init.d/; for i in $( ls quantum-* ); do sudo service $i restart; done
Then Hard Restart all instances.
References:
from openstack-grizzly-install-guide.
Related Issues (20)
- Can't access VM after successfully created HOT 6
- Keystone user-list HOT 3
- VM does not get an IP HOT 5
- Configure tgt instead of iscsitarget HOT 1
- Share Ubuntu LTS image that works for Openstack openvswitch HOT 1
- AgentNotFoundByTypeHost: Agent with agent_type=L3 agent and host=quantum-********* could not be found HOT 1
- failed to get flags for network device
- About the 3 nics in network node HOT 1
- Looking someone to configure 3 servers with openstack grizzly HOT 1
- How to add IP from guest VM
- VM unaccessible with ping and ssh (again)
- Havana Install Guide HOT 1
- OpenStack multi-node: compute nodes fail when create a new VM in dashboard HOT 1
- access instance console from host terminal
- access instance console from host terminal
- Very slow openstack dashboard HOT 2
- L3 agent id missing
- Issues in networking node which is creating issues in spawning VMs
- apt-get install -y quantum-server
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openstack-grizzly-install-guide.