[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-API] Xmlrpc response missing vif data


  • To: xen-api@xxxxxxxxxxxxx
  • From: Little Vaerivatnet <vaerivatnet@xxxxxxxxx>
  • Date: Wed, 23 May 2012 12:38:27 +0200
  • Delivery-date: Wed, 23 May 2012 10:38:41 +0000
  • List-id: User and development list for XCP and XAPI <xen-api.lists.xen.org>

Hi all,
ÂÂ I'm unable to resolve following problem:
- Remus network buffering doesn't work. It seems to be because of no vif is reported by the function server.xend.domain on line 29 of /usr/local/lib/python2.7/dist-
packages/xen/remus/vm.py (seen using pdb) :
Â27ÂÂÂ if domid:
Â28ÂÂÂÂÂÂ try:
Â29ÂÂÂÂÂÂÂÂÂ self.dominfo = server.xend.domain(domid, 'all')

> /usr/local/lib/python2.7/dist-packages/xen/remus/vm.py(36)__init__()
-> if self.dominfo:
(Pdb) print self.dominfo
['domain', ['domid', 2], ['cpu_weight', 256], ['cpu_cap', 0], ['pool_name', 'Pool-0'], ['bootloader', ''], ['vcpus', 1], ['cpus', [[0, 1]]], ['on_poweroff', 'destroy'], ['on_crash', 'restart'], ['uuid', 'be52df45-4a7e-48ab-a101-3f6693d0ecf4'], ['bootloader_args', ''], ['name', 'fsb.t.org'], ['on_reboot', 'restart'], ['maxmem', 129], ['memory', 128], ['shadow_memory', 0], ['features', ''], ['on_xend_start', 'ignore'], ['on_xend_stop', 'ignore'], ['start_time', 1337550697.86], ['cpu_time', 4.62718796], ['online_vcpus', 1], ['image', ['linux', ['kernel', ''], ['superpages', 0], ['nomigrate', 0], ['tsc_mode', 0]]], ['status', 2], ['state', '-b----'], ['device', ['console', ['protocol', 'vt100'], ['location', '2'], ['uuid', '72576092-468f-5d0f-7b29-7b5d0a63c6c1']]]]
(Pdb)

- xl list -l fsb.t.org (see below) shows vif data
- the VM is connected to the network during the boot (with a static IP via a bridge) without any problem
- live migration between two xen servers works well, but with some packet loss
- the problem persists regardless xen or kernel dom0 and domU version, I tried xen 4.1.2, 4.2 unstable, jeremy's kernel (a described on http://remusha.wikidot.com/ page) and ubuntu pae kernels
- no disk replication for the moment (for the sake of simplicity)
- some more info follows.

I tried to follow the processing, but if I'm right the request is processed by the xenstored and I don't know ocaml...

Should I try xapi? Is Remus compatible with xapi?

Thanks a lot for any ideas.
Jix


ââ(vaerivatnet@xena)â cat /etc/xen/fsb.t.org.cfg

# Configuration file for the Xen instance fsb.t.org, created
# by xen-tools 4.2.1 on Sun May 20 18:01:14 2012.
#

#
#Â Kernel + memory size
#
kernelÂÂÂÂÂ = '/boot/vmlinuz-3.2.0-24-generic-pae'
ramdiskÂÂÂÂ = '/boot/initrd.img-3.2.0-24-generic-pae'

vcpusÂÂÂÂÂÂ = '1'
memoryÂÂÂÂÂ = '128'

#
#Â Disk device(s).
#
rootÂÂÂÂÂÂÂ = '/dev/xvda2 ro'
diskÂÂÂÂÂÂÂ = [
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 'file:xen//domains/fsb.t.org/disk.img,xvda2,w',
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 'file:xen//domains/fsb.t.org/swap.img,xvda1,w',
ÂÂÂÂÂÂÂÂÂÂÂÂÂ ]


#
#Â Physical volumes
#


#
#Â Hostname
#
nameÂÂÂÂÂÂÂ = 'fsb.t.org'

#
#Â Networking
#
vifÂÂÂÂÂÂÂÂ = [ 'ip=192.168.2.201,mac=00:16:3E:C4:65:79,bridge=xenbr0' ]

#
#Â Behaviour
#
>on_rebootÂÂ = 'restart'
on_crashÂÂÂ = 'restart'


ââ(vaerivatnet@xena)â sudo xl list -l

{"domid":2,"config":{"c_info":{"type":"pv","hap":"<default>","oos":"<default>","ssidref":0,"name":"fsb.t.org","uuid":"339a8082-6104-4342-96b5-b7f6000e4972","xsdata":{},"platformdata":{},"poolid":0},"b_info":{"max_vcpus":1,"cur_vcpus":1,"cpumap":[],"tsc_mode":"default","max_memkb":131072,"target_memkb":131072,"video_memkb":-1,"shadow_memkb":2048,"rtc_timeoffset":0,"localtime":"<default>","disable_migrate":"<default>","cpuid":[],"device_model_version":null,"device_model_stubdomain":"<default>","device_model":null,"device_model_ssidref":0,"extra":[],"extra_pv":[],"extra_hvm":[],"sched_params":{"weight":0,"cap":0,"tslice_ms":0,"ratelimit_us":0,"period":0,"slice":0,"latency":0,"extratime":0},"u":{"kernel":"/boot/vmlinuz-3.2.0-24-generic-pae","slack_memkb":-1,"bootloader":null,"bootloader_args":[],"cmdline":"root=/dev/xvda2 ro ","ramdisk":"/boot/initrd.img-3.2.0-24-generic-pae","e820_host":"<default>"}},"disks":[{"backend_domid":0,"pdev_path":"xen//domains/fsb.t.org/disk.img","vdev":"xvda2","backend":"unknown","format":"raw","script":null,"removable":0,"readwrite":1,"is_cdrom":0},{"backend_domid":0,"pdev_path":"xen//domains/fsb.t.org/swap.img","vdev":"xvda1","backend":"unknown","format":"raw","script":null,"removable":0,"readwrite":1,"is_cdrom":0}],"vifs":[{"backend_domid":0,"devid":0,"mtu":0,"model":null,"mac":"00:16:3e:c4:65:79","ip":"192.168.2.201","bridge":"xenbr0","ifname":null,"script":"vif-bridge","nictype":null,"rate_bytes_per_interval":0,"rate_interval_usecs":0}],"pcidevs":[],"vfbs":[],"vkbs":[],"on_poweroff":"destroy","on_reboot":"restart","on_watchdog":"destroy","on_crash":"restart"}}

ââ(vaerivatnet@xena)â sudo xl info

hostÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ : xena
releaseÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ : 3.2.0-24-generic-pae
versionÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ : #37-Ubuntu SMP Wed Apr 25 10:47:59 UTC 2012
machineÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ : i686
nr_cpusÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ : 2
max_cpu_idÂÂÂÂÂÂÂÂÂÂÂÂ : 1
nr_nodesÂÂÂÂÂÂÂÂÂÂÂÂÂÂ : 1
cores_per_socketÂÂÂÂÂÂ : 2
threads_per_coreÂÂÂÂÂÂ : 1
cpu_mhzÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ : 1828
hw_capsÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ : bfebfbff:20100000:00000000:00000940:0000e3bd:00000000:00000001:00000000
virt_capsÂÂÂÂÂÂÂÂÂÂÂÂÂ : hvm
total_memoryÂÂÂÂÂÂÂÂÂÂ : 3063
free_memoryÂÂÂÂÂÂÂÂÂÂÂ : 293
sharing_freed_memoryÂÂ : 72057594037927935
sharing_used_memoryÂÂÂ : 72057594037927935
free_cpusÂÂÂÂÂÂÂÂÂÂÂÂÂ : 0
xen_majorÂÂÂÂÂÂÂÂÂÂÂÂÂ : 4
xen_minorÂÂÂÂÂÂÂÂÂÂÂÂÂ : 2
xen_extraÂÂÂÂÂÂÂÂÂÂÂÂÂ : -unstable
xen_capsÂÂÂÂÂÂÂÂÂÂÂÂÂÂ : xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p
xen_schedulerÂÂÂÂÂÂÂÂÂ : credit
xen_pagesizeÂÂÂÂÂÂÂÂÂÂ : 4096
platform_paramsÂÂÂÂÂÂÂ : virt_start=0xf5800000
xen_changesetÂÂÂÂÂÂÂÂÂ : Fri May 18 11:00:45 2012 +0100 25371:e9058654ca08
xen_commandlineÂÂÂÂÂÂÂ : placeholder
cc_compilerÂÂÂÂÂÂÂÂÂÂÂ : gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
cc_compile_byÂÂÂÂÂÂÂÂÂ : root
cc_compile_domainÂÂÂÂÂ :
cc_compile_dateÂÂÂÂÂÂÂ : Sun May 20 22:17:40 CEST 2012
xend_config_formatÂÂÂÂ : 4
_______________________________________________
Xen-api mailing list
Xen-api@xxxxxxxxxxxxx
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.