Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Xen: API

Xmlrpc response missing vif data

 

 

Xen api RSS feed   Index | Next | Previous | View Threaded


vaerivatnet at gmail

May 23, 2012, 3:38 AM

Post #1 of 2 (192 views)
Permalink
Xmlrpc response missing vif data

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 [at] xen)─ 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_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'restart'


└─(vaerivatnet [at] xen)─ 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 [at] xen)─ 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


mike.mcclurg at citrix

May 23, 2012, 7:02 AM

Post #2 of 2 (168 views)
Permalink
Re: Xmlrpc response missing vif data [In reply to]

On 23/05/12 11:38, Little Vaerivatnet wrote:
> 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')

...

> - xl list -l fsb.t.org <http://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...

I don't think you would want to bother reading the xenstored source
code, but instead would want to inspect the xenstore using xenstore-ls,
xenstore-list, etc.

> Should I try xapi? Is Remus compatible with xapi?

Xapi does not understand Remus, so no, I wouldn't recommend trying xapi
here.

> Thanks a lot for any ideas.
> Jix


_______________________________________________
Xen-api mailing list
Xen-api [at] lists
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api

Xen api RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.