Hmm, I didn't know of 'onehost sync', so the results in my previous email probably weren't very accurate.<br>I did some more testing, this time I did always make sure my changes to the scripts were applied to /var/tmp/one/* , and reverted my changes to oneadmin's .bashrc .<br>
<br>My conclusion is that we need not only "export LANG=C" in scripts_common.sh but also "export LANGUAGE=en_US:en" to make shell commands always return in English.<br><br>But there was another confusing result:<br>
<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">root@cnmc20:/var/tmp/one/vmm/kvm# su oneadmin<br>oneadmin@cnmc20:/var/tmp/one/vmm/kvm$ cd<br>oneadmin@cnmc20:~$ export | grep LANG<br>
declare -x LANG="zh_TW.UTF-8"<br>declare -x LANGUAGE="zh_TW:zh"<br>oneadmin@cnmc20:~$ virsh list<br> Id 名稱 狀態<br>----------------------------------<br> 24 one-45 執行中<br><br>
oneadmin@cnmc20:~$ LANG=C virsh list<br> Id Name State<br>----------------------------------<br> 24 one-45 running<br></blockquote><div>This means we actually only need "LANG=C" to override shell command's output locale?<br>
<br>My default locale:<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">root@cnmc20:/var/tmp/one# grep 'LANG' /etc/default/locale <br>LANG="zh_TW.UTF-8"<br>
LANGUAGE="zh_TW:zh"<br></blockquote><div><br>My issue is solved, but I still really don't know why.<br><br>I will do a fresh install of Ubuntu and OpenNebula some time later and try to reproduce my previous results, if it is reproducible, I will file a bug report.<br>
<br>Thanks for your help, Javier ! :-) <br></div> <br></div><div class="gmail_quote">2012/9/6 Javier Fontan <span dir="ltr"><<a href="mailto:jfontan@opennebula.org" target="_blank">jfontan@opennebula.org</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The scripts that call virsh include the file 'scripts_common.sh' that<br>
already does an 'export LANG=C' so this is really strange.<br>
<br>
The call is located in your nodes in /var/tmp/one/vmm/kvm/deploy. as<br>
you can see it includes the mentioned script.<br>
<br>
Could it be that you had an old installation and those files belong to<br>
an old version. Execute 'onehost sync' in the frontend so those<br>
scripts are updated, just in case.<br>
<div><div class="h5"><br>
<br>
<br>
On Tue, Sep 4, 2012 at 5:19 PM, Pellaeon Lin <<a href="mailto:nfsmwlin@gmail.com">nfsmwlin@gmail.com</a>> wrote:<br>
> Hi,<br>
> I use the OpenNebula 3.6.0 deb package on Ubuntu Server 12.04.1 , I have KVM<br>
> and Sunstone working.<br>
> When I create a new VM via Sunstone, it would normally boot up and show the<br>
> state "RUNNING", and I can ssh into it.<br>
> But via Sunstone I saw the VM's Deploy ID was "區域" , which instead should be<br>
> "one-<number>"<br>
> After a while its state would become "UNKNOWN". Here's what I get in<br>
> oned.log:<br>
>><br>
>> Message received: LOG I 19 錯誤: 無法取得區域「區域」<br>
>> Message received: LOG I 19 錯誤: Domain not found: no domain with matching<br>
>> name '區域'<br>
>> Message received: LOG I 19 ExitCode: 0<br>
>> Message received: POLL SUCCESS 19 STATE=d<br>
><br>
><br>
> I installed Ubuntu in Traditional Chinese, so I'm guessing that some shell<br>
> commands' output would be in Chinese, thus OpenNubula would be unable to<br>
> parse it.<br>
><br>
> I added<br>
>><br>
>> export LANG="C"<br>
>> export LANGUAGE="en_US:en"<br>
><br>
> to oneadmin's .bashrc , logged in again, restart oned, then create a new VM<br>
> via Sunstone, the issue persists.<br>
><br>
> I then added<br>
>><br>
>> ENV['LANGUAGE']='en_US:en'<br>
><br>
> to /var/lib/one/remotes/vmm/kvm/poll, the issue still persists.<br>
><br>
> From oned.log above, I think OpenNebula was trying to execute a "virsh<br>
> <something>" command, but I can't find where it was invoked nor which<br>
> command it actually was.<br>
><br>
> Any advice?<br>
><br>
> Thanks :-)<br>
><br>
</div></div>> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
> <a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
Javier Fontán Muiños<br>
Project Engineer<br>
OpenNebula - The Open Source Toolkit for Data Center Virtualization<br>
<a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:jfontan@opennebula.org">jfontan@opennebula.org</a> | @OpenNebula<br>
</font></span></blockquote></div><br>