* remus fail with SMP domU
@ 2012-02-08 15:59 mailinglist
2012-02-08 17:49 ` Pasi Kärkkäinen
0 siblings, 1 reply; 5+ messages in thread
From: mailinglist @ 2012-02-08 15:59 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1: Type: text/plain, Size: 1343 bytes --]
Dear List,
i'm experimenting with remus with the following setup.
dom0:
- Debian Squeeze
- Jeremy's 2.6.38.48 kernel
- xen 4.1.2 recompiled from sid
- DRBD for block device backend
domU
- Debian Squeeze
Remus is working fine unless i try to give more than 1 core to the domU.
Here's the error from remus when i'm trying to enable it for an SMP domU:
Traceback (most recent call last):
File "/usr/lib/xen-4.1/lib/python/remus", line 219, in <module>
run(cfg)
File "/usr/lib/xen-4.1/lib/python/remus", line 109, in run
dom = vm.VM(cfg.domid)
File "/usr/lib/xen-4.1/lib/python/xen/remus/vm.py", line 32, in __init__
self.loaddominfo()
File "/usr/lib/xen-4.1/lib/python/xen/remus/vm.py", line 35, in loaddominfo
self.dom = parsedominfo(self.dominfo)
File "/usr/lib/xen-4.1/lib/python/xen/remus/vm.py", line 77, in
parsedominfo
return s2d(dominfo[1:])
File "/usr/lib/xen-4.1/lib/python/xen/remus/vm.py", line 61, in s2d
val = s2d(elem[1:])
File "/usr/lib/xen-4.1/lib/python/xen/remus/vm.py", line 64, in s2d
return s2d(elem)
File "/usr/lib/xen-4.1/lib/python/xen/remus/vm.py", line 66, in s2d
for k, v in val.iteritems():
AttributeError: 'int' object has no attribute 'iteritems'
I've attached the domU configuration file.
Please let me know if you need more info on this.
Best regards,
Mate
[-- Attachment #2: core-test --]
[-- Type: application/octet-stream, Size: 562 bytes --]
kernel = "/boot/vmlinuz-2.6.32.48-remus"
ramdisk = "/boot/initrd.img-2.6.32.48-remus"
# opcionalisan megadhatjuk a CPU szamit (alapbol 1-et kap)
vcpus = 2
# opcionalisan megadhatjuk, hogy melyik fizikai magokat hasznalhatja (alapbol dinamikusan osztja szet); azert 1-tol, mert a 0. core-t a dom0 kapja dedikaltan
cpus = "1-15"
memory = 1024
name = "core-test"
vif = [ 'mac=52:54:f0:9b:66:68,bridge=br1', 'mac=52:54:db:f3:cd:e7,bridge=br0' ]
disk = ['drbd:coretest,xvda1,w','drbd:coretest_swap,xvda2,w']
hostname = "core-test"
root = "/dev/xvda1 ro"
extra = "4"
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: remus fail with SMP domU
2012-02-08 15:59 remus fail with SMP domU mailinglist
@ 2012-02-08 17:49 ` Pasi Kärkkäinen
2012-02-08 18:54 ` Shriram Rajagopalan
2012-02-09 9:02 ` mailinglist
0 siblings, 2 replies; 5+ messages in thread
From: Pasi Kärkkäinen @ 2012-02-08 17:49 UTC (permalink / raw)
To: mailinglist; +Cc: Shriram Rajagopalan, xen-devel
On Wed, Feb 08, 2012 at 04:59:18PM +0100, mailinglist@modernbiztonsag.org wrote:
> Dear List,
>
Hello,
> i'm experimenting with remus with the following setup.
>
> dom0:
> - Debian Squeeze
> - Jeremy's 2.6.38.48 kernel
> - xen 4.1.2 recompiled from sid
> - DRBD for block device backend
>
Did you try xen-unstable? There are many Remus related fixes/enhancements in xen-unstable.
-- Pasi
> domU
> - Debian Squeeze
>
> Remus is working fine unless i try to give more than 1 core to the domU.
>
> Here's the error from remus when i'm trying to enable it for an SMP domU:
>
> Traceback (most recent call last):
> File "/usr/lib/xen-4.1/lib/python/remus", line 219, in <module>
> run(cfg)
> File "/usr/lib/xen-4.1/lib/python/remus", line 109, in run
> dom = vm.VM(cfg.domid)
> File "/usr/lib/xen-4.1/lib/python/xen/remus/vm.py", line 32, in __init__
> self.loaddominfo()
> File "/usr/lib/xen-4.1/lib/python/xen/remus/vm.py", line 35, in loaddominfo
> self.dom = parsedominfo(self.dominfo)
> File "/usr/lib/xen-4.1/lib/python/xen/remus/vm.py", line 77, in
> parsedominfo
> return s2d(dominfo[1:])
> File "/usr/lib/xen-4.1/lib/python/xen/remus/vm.py", line 61, in s2d
> val = s2d(elem[1:])
> File "/usr/lib/xen-4.1/lib/python/xen/remus/vm.py", line 64, in s2d
> return s2d(elem)
> File "/usr/lib/xen-4.1/lib/python/xen/remus/vm.py", line 66, in s2d
> for k, v in val.iteritems():
> AttributeError: 'int' object has no attribute 'iteritems'
>
> I've attached the domU configuration file.
>
> Please let me know if you need more info on this.
>
> Best regards,
> Mate
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: remus fail with SMP domU
2012-02-08 17:49 ` Pasi Kärkkäinen
@ 2012-02-08 18:54 ` Shriram Rajagopalan
2012-02-09 9:03 ` mailinglist
2012-02-09 9:02 ` mailinglist
1 sibling, 1 reply; 5+ messages in thread
From: Shriram Rajagopalan @ 2012-02-08 18:54 UTC (permalink / raw)
To: Pasi Kärkkäinen; +Cc: mailinglist, xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 2444 bytes --]
On Wed, Feb 8, 2012 at 9:49 AM, Pasi Kärkkäinen <pasik@iki.fi> wrote:
> On Wed, Feb 08, 2012 at 04:59:18PM +0100, mailinglist@modernbiztonsag.orgwrote:
> > Dear List,
> >
>
> Hello,
>
> > i'm experimenting with remus with the following setup.
> >
> > dom0:
> > - Debian Squeeze
> > - Jeremy's 2.6.38.48 kernel
> > - xen 4.1.2 recompiled from sid
> > - DRBD for block device backend
> >
>
> Did you try xen-unstable? There are many Remus related fixes/enhancements
> in xen-unstable.
>
>
IIRC, all fixes were backported to xen-4.1-testing.
> -- Pasi
>
>
> > domU
> > - Debian Squeeze
> >
> > Remus is working fine unless i try to give more than 1 core to the domU.
> >
>
The problem arises from your domU config file:
cpus = "1-15"
The python parser is unable to parse the cpu spec in this format. I think
even
cpus = "^0" throws an error of similar sort.
One solution is to remove this line, boot the domU,
and do xm vcpu-pin command to restrict the physical cpus
on which you wish the domU to run.
shriram
> > Here's the error from remus when i'm trying to enable it for an SMP
> domU:
> >
> > Traceback (most recent call last):
> > File "/usr/lib/xen-4.1/lib/python/remus", line 219, in <module>
> > run(cfg)
> > File "/usr/lib/xen-4.1/lib/python/remus", line 109, in run
> > dom = vm.VM(cfg.domid)
> > File "/usr/lib/xen-4.1/lib/python/xen/remus/vm.py", line 32, in
> __init__
> > self.loaddominfo()
> > File "/usr/lib/xen-4.1/lib/python/xen/remus/vm.py", line 35, in
> loaddominfo
> > self.dom = parsedominfo(self.dominfo)
> > File "/usr/lib/xen-4.1/lib/python/xen/remus/vm.py", line 77, in
> > parsedominfo
> > return s2d(dominfo[1:])
> > File "/usr/lib/xen-4.1/lib/python/xen/remus/vm.py", line 61, in s2d
> > val = s2d(elem[1:])
> > File "/usr/lib/xen-4.1/lib/python/xen/remus/vm.py", line 64, in s2d
> > return s2d(elem)
> > File "/usr/lib/xen-4.1/lib/python/xen/remus/vm.py", line 66, in s2d
> > for k, v in val.iteritems():
> > AttributeError: 'int' object has no attribute 'iteritems'
> >
> > I've attached the domU configuration file.
> >
> > Please let me know if you need more info on this.
> >
> > Best regards,
> > Mate
>
> > _______________________________________________
> > Xen-devel mailing list
> > Xen-devel@lists.xensource.com
> > http://lists.xensource.com/xen-devel
>
>
[-- Attachment #1.2: Type: text/html, Size: 3637 bytes --]
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: remus fail with SMP domU
2012-02-08 17:49 ` Pasi Kärkkäinen
2012-02-08 18:54 ` Shriram Rajagopalan
@ 2012-02-09 9:02 ` mailinglist
1 sibling, 0 replies; 5+ messages in thread
From: mailinglist @ 2012-02-09 9:02 UTC (permalink / raw)
To: "Pasi Kärkkäinen"
Cc: Shriram Rajagopalan, mailinglist, xen-devel
> On Wed, Feb 08, 2012 at 04:59:18PM +0100, mailinglist@modernbiztonsag.org
> wrote:
>> Dear List,
>>
>
> Hello,
>
>> i'm experimenting with remus with the following setup.
>>
>> dom0:
>> - Debian Squeeze
>> - Jeremy's 2.6.38.48 kernel
>> - xen 4.1.2 recompiled from sid
>> - DRBD for block device backend
>>
>
Hello,
> Did you try xen-unstable? There are many Remus related fixes/enhancements
> in xen-unstable.
>
Nope, not yet, and i would avoid it if possible because we would like to
use this in a "production" environment. (Shriram's suggestion work though
so i'm onto testing with heavy load now.)
> -- Pasi
Best regards,
Mate
>
>
>> domU
>> - Debian Squeeze
>>
>> Remus is working fine unless i try to give more than 1 core to the domU.
>>
>> Here's the error from remus when i'm trying to enable it for an SMP
>> domU:
>>
>> Traceback (most recent call last):
>> File "/usr/lib/xen-4.1/lib/python/remus", line 219, in <module>
>> run(cfg)
>> File "/usr/lib/xen-4.1/lib/python/remus", line 109, in run
>> dom = vm.VM(cfg.domid)
>> File "/usr/lib/xen-4.1/lib/python/xen/remus/vm.py", line 32, in
>> __init__
>> self.loaddominfo()
>> File "/usr/lib/xen-4.1/lib/python/xen/remus/vm.py", line 35, in
>> loaddominfo
>> self.dom = parsedominfo(self.dominfo)
>> File "/usr/lib/xen-4.1/lib/python/xen/remus/vm.py", line 77, in
>> parsedominfo
>> return s2d(dominfo[1:])
>> File "/usr/lib/xen-4.1/lib/python/xen/remus/vm.py", line 61, in s2d
>> val = s2d(elem[1:])
>> File "/usr/lib/xen-4.1/lib/python/xen/remus/vm.py", line 64, in s2d
>> return s2d(elem)
>> File "/usr/lib/xen-4.1/lib/python/xen/remus/vm.py", line 66, in s2d
>> for k, v in val.iteritems():
>> AttributeError: 'int' object has no attribute 'iteritems'
>>
>> I've attached the domU configuration file.
>>
>> Please let me know if you need more info on this.
>>
>> Best regards,
>> Mate
>
>> _______________________________________________
>> Xen-devel mailing list
>> Xen-devel@lists.xensource.com
>> http://lists.xensource.com/xen-devel
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: remus fail with SMP domU
2012-02-08 18:54 ` Shriram Rajagopalan
@ 2012-02-09 9:03 ` mailinglist
0 siblings, 0 replies; 5+ messages in thread
From: mailinglist @ 2012-02-09 9:03 UTC (permalink / raw)
To: rshriram; +Cc: mailinglist, xen-devel
> On Wed, Feb 8, 2012 at 9:49 AM, Pasi Kärkkäinen <pasik@iki.fi> wrote:
>
>> On Wed, Feb 08, 2012 at 04:59:18PM +0100,
>> mailinglist@modernbiztonsag.orgwrote:
>> > Dear List,
>> >
>>
>> Hello,
>>
>> > i'm experimenting with remus with the following setup.
>> >
>> > dom0:
>> > - Debian Squeeze
>> > - Jeremy's 2.6.38.48 kernel
>> > - xen 4.1.2 recompiled from sid
>> > - DRBD for block device backend
>> >
>>
>> Did you try xen-unstable? There are many Remus related
>> fixes/enhancements
>> in xen-unstable.
>>
>>
> IIRC, all fixes were backported to xen-4.1-testing.
>
>
>> -- Pasi
>>
>>
>> > domU
>> > - Debian Squeeze
>> >
>> > Remus is working fine unless i try to give more than 1 core to the
>> domU.
>> >
>>
>
Hello,
>
> The problem arises from your domU config file:
> cpus = "1-15"
>
> The python parser is unable to parse the cpu spec in this format. I think
> even
> cpus = "^0" throws an error of similar sort.
>
> One solution is to remove this line, boot the domU,
> and do xm vcpu-pin command to restrict the physical cpus
> on which you wish the domU to run.
>
Yes, that was the solution! Thank you for the quick answer!
>
> shriram
Best regards,
Mate
>
>
>> > Here's the error from remus when i'm trying to enable it for an SMP
>> domU:
>> >
>> > Traceback (most recent call last):
>> > File "/usr/lib/xen-4.1/lib/python/remus", line 219, in <module>
>> > run(cfg)
>> > File "/usr/lib/xen-4.1/lib/python/remus", line 109, in run
>> > dom = vm.VM(cfg.domid)
>> > File "/usr/lib/xen-4.1/lib/python/xen/remus/vm.py", line 32, in
>> __init__
>> > self.loaddominfo()
>> > File "/usr/lib/xen-4.1/lib/python/xen/remus/vm.py", line 35, in
>> loaddominfo
>> > self.dom = parsedominfo(self.dominfo)
>> > File "/usr/lib/xen-4.1/lib/python/xen/remus/vm.py", line 77, in
>> > parsedominfo
>> > return s2d(dominfo[1:])
>> > File "/usr/lib/xen-4.1/lib/python/xen/remus/vm.py", line 61, in s2d
>> > val = s2d(elem[1:])
>> > File "/usr/lib/xen-4.1/lib/python/xen/remus/vm.py", line 64, in s2d
>> > return s2d(elem)
>> > File "/usr/lib/xen-4.1/lib/python/xen/remus/vm.py", line 66, in s2d
>> > for k, v in val.iteritems():
>> > AttributeError: 'int' object has no attribute 'iteritems'
>> >
>> > I've attached the domU configuration file.
>> >
>> > Please let me know if you need more info on this.
>> >
>> > Best regards,
>> > Mate
>>
>> > _______________________________________________
>> > Xen-devel mailing list
>> > Xen-devel@lists.xensource.com
>> > http://lists.xensource.com/xen-devel
>>
>>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-02-09 9:03 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-08 15:59 remus fail with SMP domU mailinglist
2012-02-08 17:49 ` Pasi Kärkkäinen
2012-02-08 18:54 ` Shriram Rajagopalan
2012-02-09 9:03 ` mailinglist
2012-02-09 9:02 ` mailinglist
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).