[one-users] Network issue with OpenNebula 3.0
Jonathan Rouzaud-Cornabas
jonathan.rouzaud-cornabas at ensi-bourges.fr
Thu Aug 25 07:40:31 PDT 2011
Hi,
I use OpenNebula 3.0 with KVM.
I instantiate fifty times the same template (ubuntu 11.04 64bit).
Sometime (maybe one third of the VM, sometime more, sometime less), the
network of the VM does not work for example the VM 86.
The SSH is working on two third of the VM.
I check the logs (/var/log/oned.log and /var/log/X.log) and no error is
displayed.
I also check the syslog on the node that executes the VM and the libvirt
log of the VM.
I can connect to the VM through virsh console.
The VM is started and works.
The network is correctly configured by vmcontext script.
But the network does not work.
Thus, input and output network does not work.
I try to restart the VM through the console and it does not work.
I try with/without openvswitch and it does not change anything.
I try with/without mysql and it does not change anything.
I try on different hardware and it always the same (some VMs failed to
have a working network).
Anyone have seen this issue ? Or have any ideas how I can fix it or
where can I look for errors ?
Thanks,
Jonathan Rouzaud
The template:
TEMPLATE 5 INFORMATION
ID : 5
NAME : COMPUTENODE
USER : user_0
GROUP : users
REGISTER TIME : 08/25 16:06:11
PUBLIC : No
TEMPLATE CONTENTS
CPU=0.4
DISK=[
DRIVER=qcow2,
IMAGE_ID=6,
TARGET=sda ]
FEATURES=[
ACPI=yes ]
MEMORY=1024
NAME=COMPUTENODE
NIC=[
NETWORK_ID=2 ]
OS=[
ARCH=x86_64,
BOOT=hd,
ROOT=sda ]
RAW=[
DATA="<devices><serial type=\"pty\"><source
path=\"/dev/pts/5\"/><target port=\"0\"/></serial><console type=\"pty\"
tty=\"/dev/pts/5\"><source path=\"/dev/pts/5\"/><target
port=\"0\"/></console><graphics type=\"vnc\" port=\"5901\"
autoport=\"yes\"/></devices>",
TYPE=kvm ]
TEMPLATE_ID=5
The VM 86:
VIRTUAL MACHINE 86 INFORMATION
ID : 86
NAME : one-86
USER : user_0
GROUP : users
STATE : ACTIVE
LCM_STATE : RUNNING
HOSTNAME : node-37
START TIME : 08/25 16:06:12
END TIME : -
DEPLOY ID : one-86
VIRTUAL MACHINE MONITORING
NET_TX : 8076
NET_RX : 9964
USED MEMORY : 1048576
USED CPU : 1
VIRTUAL MACHINE TEMPLATE
CPU=0.4
DISK=[
CLONE=YES,
DISK_ID=0,
DRIVER=qcow2,
IMAGE=computevm,
IMAGE_ID=6,
READONLY=NO,
SAVE=NO,
SOURCE=/var/lib/one/images/f72a4b6b0efd6821074a8d927781b689,
TARGET=sda,
TYPE=DISK ]
FEATURES=[
ACPI=yes ]
MEMORY=1024
NAME=one-86
NIC=[
BRIDGE=br0,
IP=10.158.9.4,
MAC=02:00:0a:9e:09:04,
NETWORK=private_1,
NETWORK_ID=2 ]
OS=[
ARCH=x86_64,
BOOT=hd,
ROOT=sda ]
RAW=[
DATA="<devices><serial type=\"pty\"><source
path=\"/dev/pts/5\"/><target port=\"0\"/></serial><console type=\"pty\"
tty=\"/dev/pts/5\"><source path=\"/dev/pts/5\"/><target
port=\"0\"/></console><graphics type=\"vnc\" port=\"5901\"
autoport=\"yes\"/></devices>",
TYPE=kvm ]
TEMPLATE_ID=5
VMID=86
/var/log/one/86.log:
Thu Aug 25 16:06:34 2011 [DiM][I]: New VM state is ACTIVE.
Thu Aug 25 16:06:34 2011 [LCM][I]: New VM state is PROLOG.
Thu Aug 25 16:06:34 2011 [VM][I]: Virtual Machine has no context
Thu Aug 25 16:11:58 2011 [TM][D]: tm_clone.sh:
parapluie-20.rennes.grid5000.fr:/var/lib/one/images/f72a4b6b0efd6821074a8d927781b689
parapluie-37.rennes.grid5000.fr:/srv/cloud/one/var/86/images/disk.0
Thu Aug 25 16:11:58 2011 [TM][D]: tm_clone.sh: DST:
/var/lib/one/86/images/disk.0
Thu Aug 25 16:11:58 2011 [TM][I]: tm_clone.sh: Creating directory
/var/lib/one/86/images
Thu Aug 25 16:11:58 2011 [TM][I]: tm_clone.sh: Executed "mkdir -p
/var/lib/one/86/images".
Thu Aug 25 16:11:58 2011 [TM][I]: tm_clone.sh: Executed "chmod a+w
/var/lib/one/86/images".
Thu Aug 25 16:11:58 2011 [TM][I]: tm_clone.sh: Cloning
/var/lib/one/images/f72a4b6b0efd6821074a8d927781b689
Thu Aug 25 16:11:58 2011 [TM][I]: tm_clone.sh: Executed "cp -r
/var/lib/one/images/f72a4b6b0efd6821074a8d927781b689
/var/lib/one/86/images/disk.0".
Thu Aug 25 16:11:58 2011 [TM][I]: tm_clone.sh: Executed "chmod a+rw
/var/lib/one/86/images/disk.0".
Thu Aug 25 16:11:58 2011 [TM][I]: ExitCode: 0
Thu Aug 25 16:11:58 2011 [LCM][I]: New VM state is BOOT
Thu Aug 25 16:11:58 2011 [VMM][I]: Generating deployment file:
/var/lib/one/86/deployment.0
Thu Aug 25 16:11:59 2011 [VMM][I]: ExitCode: 0
Thu Aug 25 16:11:59 2011 [LCM][I]: New VM state is RUNNING
Thu Aug 25 16:12:00 2011 [HKM][I]: ExitCode: 0
Thu Aug 25 16:12:00 2011 [HKM][I]: Success executing Hook:
openvswitch-vlan: .
Thu Aug 25 16:22:03 2011 [VMM][I]: ExitCode: 0
Thu Aug 25 16:22:03 2011 [VMM][D]: Monitor Information:
CPU : 1
Memory: 1048576
Net_TX: 8076
Net_RX: 9964
Thu Aug 25 16:32:03 2011 [VMM][I]: ExitCode: 0
Thu Aug 25 16:32:03 2011 [VMM][D]: Monitor Information:
CPU : 1
Memory: 1048576
Net_TX: 8076
Net_RX: 9964
syslog on the node:
Aug 25 16:16:08 parapluie-37 ovs-vsctl: 00001|vsctl|INFO|Called as
/usr/local/bin/ovs-vsctl --timeout=5 -vANY:console:WARN -- add-port br0
vnet1 -- comment ovs-brcompatd: addif br0 vnet1
Aug 25 16:16:08 parapluie-37 ovs-vswitchd: 00100|bridge|INFO|created
port vnet1 on bridge br0
Aug 25 16:16:08 parapluie-37 kernel: [ 9129.688997] device vnet1 entered
promiscuous mode
Aug 25 16:16:09 parapluie-37 ovs-vsctl: 00001|vsctl|INFO|Called as
/usr/local/bin/ovs-vsctl set Port vnet1 tag=4
Aug 25 16:16:13 parapluie-37 kernel: [ 9134.051526] kvm: 8734: cpu0
unhandled rdmsr: 0xc0010001
Aug 25 16:16:18 parapluie-37 kernel: [ 9139.964038] vnet1: no IPv6
routers present
libvirt log:
cat /var/log/libvirt/qemu/one-86.log
LC_ALL=C
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin HOME=/
QEMU_AUDIO_DRV=none /usr/bin/kvm -S -M pc-0.12 -enable-kvm -m 1024 -smp
1,sockets=1,cores=1,threads=1 -name one-86 -uuid
1021d603-798e-e5c3-ece0-c0e7d261b240 -nodefaults -chardev
socket,id=monitor,path=/var/lib/libvirt/qemu/one-86.monitor,server,nowait -mon
chardev=monitor,mode=readline -rtc base=utc -boot c -device
lsi,id=scsi0,bus=pci.0,addr=0x4 -drive
file=/srv/cloud/one/var/86/images/disk.0,if=none,id=drive-scsi0-0-0,boot=on,format=qcow2
-device
scsi-disk,bus=scsi0.0,scsi-id=0,drive=drive-scsi0-0-0,id=scsi0-0-0
-device rtl8139,vlan=0,id=net0,mac=02:00:0a:9e:09:04,bus=pci.0,addr=0x3
-net tap,fd=60,vlan=0,name=hostnet0 -chardev pty,id=serial0 -device
isa-serial,chardev=serial0 -usb -vnc 127.0.0.1:0 -vga cirrus -device
virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5
char device redirected to /dev/pts/0
More information about the Users
mailing list