Re: [Users] Failure to migrate from one host out of four

2012-08-03 Thread Karli Sjöberg

3 aug 2012 kl. 09.55 skrev Karli Sjöberg:

 
 3 aug 2012 kl. 09.30 skrev Martin Kletzander:
 
 On 08/02/2012 04:20 PM, Karli Sjöberg wrote:
 Sorry man, I spoke too soon. It´s back again:(
 
 I´ve got another guest stuck. It´s all for testing at this point, so I
 can basically do anything I want with it, so I just shut it down and put
 the host back into maintenance. I guess something must still have the
 old locale written in some conf somewhere, set after it was installed.
 Do you know where to start looking?
 
 
 No problem, but I don't think it will be the locale again. BTW I took
 this off-list when I replied to you last time. Try looking at
 libvirtd.log again. If you don't find anything, then you can try sending
 it to me or libvirt-users list (if it is libvirt that's doing the
 problem, but I don't think so).
 
 Martin
 
 Well, hasty as I am, I thought that maybe it would be good to remove glibc 
 and glib-common, and then installing again... Turns out that don´t work out 
 too well, haha:) So I´m reinstalling it right now, and was careful to choose 
 us_EN this time. Will keep you posted on how it turns out.

After a clean reinstall and us_EN locale it´s working again, just as expected. 
I´ll still keep an eye on it though, just in case.

/Karli

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Failure to migrate from one host out of four

2012-08-02 Thread Karli Sjöberg

2 aug 2012 kl. 15.10 skrev Karli Sjöberg:


2 aug 2012 kl. 15.05 skrev Martin Kletzander:

Hi,

Thanks for reporting this, I've found now where the problem is and it is
in libvirt. However this issue is not easy to fix as it reveals more
than just this one problem. The format for outputting floating point
numbers into JSON string seems to be locale-dependent. Could you send me
what locale are you having? I guess you could migrate the guest by
starting libvirt with LC_ALL=C set.

OK, wow, awesome! Sorry, I´m not too familiar with Fedora, more of a BSD-guy, 
in learning:) How do you change Locale to something more appropriate? And what 
does it like?

Oh and also, I have this output from the non-working host:
LANG=sv_SE.UTF-8
LC_CTYPE=sv_SE.UTF-8
LC_NUMERIC=sv_SE.UTF-8
LC_TIME=sv_SE.UTF-8
LC_COLLATE=sv_SE.UTF-8
LC_MONETARY=sv_SE.UTF-8
LC_MESSAGES=sv_SE.UTF-8
LC_PAPER=sv_SE.UTF-8
LC_NAME=sv_SE.UTF-8
LC_ADDRESS=sv_SE.UTF-8
LC_TELEPHONE=sv_SE.UTF-8
LC_MEASUREMENT=sv_SE.UTF-8
LC_IDENTIFICATION=sv_SE.UTF-8
LC_ALL=

And this from the working ones:
LANG=en_US.UTF-8
LC_CTYPE=en_US.UTF-8
LC_NUMERIC=en_US.UTF-8
LC_TIME=en_US.UTF-8
LC_COLLATE=en_US.UTF-8
LC_MONETARY=en_US.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_PAPER=en_US.UTF-8
LC_NAME=en_US.UTF-8
LC_ADDRESS=en_US.UTF-8
LC_TELEPHONE=en_US.UTF-8
LC_MEASUREMENT=en_US.UTF-8
LC_IDENTIFICATION=en_US.UTF-8
LC_ALL=

But how do I change from sv_SE.UTF-8 to en_US.UTF-8?



Martin

On 08/02/2012 02:01 PM, Karli Sjöberg wrote:
Hi,

Wondering if anyone has encountered the same issue as me. On one host in
my cluster, if I migrate in a guest, I cannot migrate it out to another
host?  The get stuck there, so to speak. Same when a guest is started
on that particular host, it is impossible to migrate them out again.




Med Vänliga Hälsningar
---
Karli Sjöberg
Swedish University of Agricultural Sciences
Box 7079 (Visiting Address Kronåsvägen 8)
S-750 07 Uppsala, Sweden
Phone:  +46-(0)18-67 15 66
karli.sjob...@slu.semailto:karli.sjob...@adm.slu.se




Med Vänliga Hälsningar
---
Karli Sjöberg
Swedish University of Agricultural Sciences
Box 7079 (Visiting Address Kronåsvägen 8)
S-750 07 Uppsala, Sweden
Phone:  +46-(0)18-67 15 66
karli.sjob...@slu.semailto:karli.sjob...@adm.slu.se

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Failure to migrate from one host out of four

2012-08-02 Thread Martin Kletzander
On 08/02/2012 03:10 PM, Karli Sjöberg wrote:
 
 2 aug 2012 kl. 15.05 skrev Martin Kletzander:
 
 Hi,

 Thanks for reporting this, I've found now where the problem is and it is
 in libvirt. However this issue is not easy to fix as it reveals more
 than just this one problem. The format for outputting floating point
 numbers into JSON string seems to be locale-dependent. Could you send me
 what locale are you having? I guess you could migrate the guest by
 starting libvirt with LC_ALL=C set.
 
 OK, wow, awesome! Sorry, I´m not too familiar with Fedora, more of a
 BSD-guy, in learning:) How do you change Locale to something more
 appropriate? And what does it like?
 

If you want to set it for the whole system, I think it is in
/etc/sysconfig/i18n but I've never did that in Fedora and I bet there is
some GUI or at least a TUI interface for that (system-config-language
maybe?). Changing it might require you to reboot or re-login, but if you
don't want to do that or even if you don't want to change your locale
system-wide, just tell me, I'll help you figure out a procedure to start
libvirt without changing any of that.

However, this is really a bug in our code, so you shouldn't be pushed to
do that. I'm looking into that right now. Feel free to create a bug on
libvirt with the first log saying that our JSON is locale-dependant.

Martin
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users