<div dir="ltr">Hi,<div><br></div><div>yes, that's probably the problem actually. Does it work if it's enabled?</div><div><br></div><div>cheers,<br>Jaime</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Fri, Oct 25, 2013 at 6:35 PM, Olivier Sallou <span dir="ltr"><<a href="mailto:olivier.sallou@irisa.fr" target="_blank">olivier.sallou@irisa.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><div class="im">
<br>
<div>On 10/25/2013 06:22 PM, Jaime Melis
wrote:<br>
</div>
</div><div class="im"><blockquote type="cite">
<div dir="ltr">Hi Olivier,
<div><br>
</div>
<div>I don't know what could be going on. When the core detects
that the remotes_dir has been "touched" by the "onehost sync",
then it sends a special argument to the driver which forces an
'scp' of the remotes...</div>
<div><br>
</div>
<div>As a workaround I can only tell you what you already know,
which is to manually scp the remotes over to the hosts... To
debug it, we could gdb the oned process and see what's going
on, especifically here:</div>
<div><a href="https://github.com/OpenNebula/one/blob/one-3.8/src/im/InformationManager.cc#L224" target="_blank">https://github.com/OpenNebula/one/blob/one-3.8/src/im/InformationManager.cc#L224</a><br>
</div>
</div>
</blockquote></div>
One of my hosts is "down" (I have set it down with the onehost
command).<br>
<br>
I wonder if:<br>
<br>
<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:18px;color:rgb(51,51,51);text-transform:none;font-size:12px;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace;word-spacing:0px"> </span><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;font-weight:normal;line-height:18px;color:rgb(51,51,51);text-transform:none;font-size:12px;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace;word-spacing:0px"> rc</span><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:18px;color:rgb(51,51,51);text-transform:none;font-size:12px;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace;word-spacing:0px"> </span><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;font-weight:bold;line-height:18px;color:rgb(51,51,51);text-transform:none;font-size:12px;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace;word-spacing:0px">=</span><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:18px;color:rgb(51,51,51);text-transform:none;font-size:12px;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace;word-spacing:0px"> </span><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;font-weight:normal;line-height:18px;color:rgb(51,51,51);text-transform:none;font-size:12px;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace;word-spacing:0px">hpool</span><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;font-weight:bold;line-height:18px;color:rgb(51,51,51);text-transform:none;font-size:12px;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace;word-spacing:0px">-></span><span>discover</span><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;font-weight:normal;line-height:18px;color:rgb(51,51,51);text-transform:none;font-size:12px;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace;word-spacing:0px">(</span><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;font-weight:bold;line-height:18px;color:rgb(51,51,51);text-transform:none;font-size:12px;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace;word-spacing:0px">&</span><span>discovered_hosts</span><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;font-weight:normal;line-height:18px;color:rgb(51,51,51);text-transform:none;font-size:12px;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace;word-spacing:0px">,</span><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:18px;color:rgb(51,51,51);text-transform:none;font-size:12px;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace;word-spacing:0px"> </span><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;font-weight:normal;line-height:18px;color:rgb(51,51,51);text-transform:none;font-size:12px;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace;word-spacing:0px">host_limit</span><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;font-weight:normal;line-height:18px;color:rgb(51,51,51);text-transform:none;font-size:12px;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace;word-spacing:0px">,</span><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:18px;color:rgb(51,51,51);text-transform:none;font-size:12px;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace;word-spacing:0px"> </span><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;font-weight:normal;line-height:18px;color:rgb(51,51,51);text-transform:none;font-size:12px;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace;word-spacing:0px">target_time</span><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;font-weight:normal;line-height:18px;color:rgb(51,51,51);text-transform:none;font-size:12px;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace;word-spacing:0px">);</span><br>
<br>
<pre style="font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;margin-top:0px;margin-bottom:0px;color:rgb(51,51,51);font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:18px;text-align:start;text-indent:0px;text-transform:none;word-spacing:0px">
<div style="padding-left:10px"> <span style="font-weight:bold">if</span> <span>((</span><span style="color:rgb(51,51,51)">rc</span> <span style="font-weight:bold">!=</span> <span style="color:rgb(0,153,153)">0</span><span>)</span> <span style="font-weight:bold">||</span> <span>(</span><span style="color:rgb(51,51,51)">discovered_hosts</span><span>.</span><span style="color:rgb(51,51,51)">empty</span><u></u>() <span style="font-weight:bold">==</span> <span style="color:rgb(0,134,179)">true</span><span>))</span></div>
<div style="padding-left:10px"> <span>{</span></div><div style="padding-left:10px"> <span style="font-weight:bold">return</span><span>;</span></div><div style="padding-left:10px"> <span>}
</span></div></pre>
would not do a return because of my host is not up.....<div><div class="h5"><br>
<blockquote type="cite">
<div dir="ltr">
<div><br>
</div>
<div>The upcoming OpenNebula 4.4 version won't have this
problem, though. The scp will be triggered by the actual
'onehost sync' command, instead of the core. This is an
advantage in many ways because it'll be easier to debug and
because you can select what hosts/clusters to update:</div>
<div><a href="https://github.com/OpenNebula/one/blob/master/src/cli/one_helper/onehost_helper.rb#L161" target="_blank">https://github.com/OpenNebula/one/blob/master/src/cli/one_helper/onehost_helper.rb#L161</a><br>
</div>
<div><br>
</div>
<div>
cheers,<br>
Jaime</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Fri, Oct 25, 2013 at 5:14 PM,
Olivier Sallou <span dir="ltr"><<a href="mailto:olivier.sallou@irisa.fr" target="_blank">olivier.sallou@irisa.fr</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">As
additional information,<br>
there is no error in oned.log (nor any info about a sync
operation), and<br>
my node has been monitored in the meanwhile:<br>
<br>
oneadmin@genokvm4:~$ onehost show mynode<br>
HOST 14<br>
INFORMATION<br>
ID : 14<br>
NAME : mynode<br>
CLUSTER : -<br>
STATE : MONITORED<br>
IM_MAD : im_ganglia<br>
VM_MAD : vmm_kvm<br>
VN_MAD : dummy<br>
LAST MONITORING TIME : 10/25 17:09:27<br>
<br>
The "touch" made by the sync command succeed
(/var/lib/one/remotes has<br>
been updated), but no file is copied to remote nodes.<br>
<div>
<div><br>
On 10/25/2013 04:05 PM, Olivier Sallou wrote:<br>
> Hi,<br>
><br>
> I have executed "onehost sync" on my master, but
even after quite a long<br>
> time, scripts are not updated on nodes (old
scripts).<br>
><br>
> (master installed via deb packages, and in
oned.conf:<br>
> SCRIPTS_REMOTE_DIR=/opt/one)<br>
><br>
> On master I have:<br>
><br>
> root@master:/var/log/one# ls -l
/var/lib/one/remotes/vmm/kvm/<br>
> total 84<br>
> -rwxr-xr-x 1 oneadmin oneadmin 2842 juil. 24 19:09
attach_disk<br>
> -rwxr-xr-x 1 oneadmin oneadmin 1583 juil. 24 19:09
attach_nic<br>
> -rwxr-xr-x 1 oneadmin oneadmin 1596 juil. 24 19:09
cancel<br>
> -rwxr-xr-x 1 oneadmin oneadmin 1545 juil. 24 19:09
deploy<br>
> -rwxr-xr-x 1 oneadmin oneadmin 1495 juil. 24 19:09
detach_disk<br>
> -rwxr-xr-x 1 oneadmin oneadmin 1470 juil. 24 19:09
detach_nic<br>
> -rw-r--r-- 1 oneadmin oneadmin 1790 juil. 24 19:09
kvmrc<br>
> -rwxr-xr-x 1 oneadmin oneadmin 1455 juil. 24 19:09
migrate<br>
> -rwxr-xr-x 1 oneadmin oneadmin 1381 juil. 24 19:09
migrate_local<br>
> -rwxr-xr-x 1 oneadmin oneadmin 10402 juil. 24 19:09
poll<br>
> -rwxr-xr-x 1 oneadmin oneadmin 2930 juil. 24 19:09
poll_ganglia<br>
> -rwxr-xr-x 1 oneadmin oneadmin 1400 juil. 24 19:09
reboot<br>
> -rwxr-xr-x 1 oneadmin oneadmin 1398 juil. 24 19:09
reset<br>
> -rwxr-xr-x 1 oneadmin oneadmin 1376 juil. 24 19:09
restore<br>
> -rwxr-xr-x 1 oneadmin oneadmin 1613 juil. 24 19:09
save<br>
> -rwxr-xr-x 1 oneadmin oneadmin 2304 juil. 24 19:09
shutdown<br>
> -rwxr-xr-x 1 oneadmin oneadmin 1522 juil. 24 19:09
snapshot_create<br>
> -rwxr-xr-x 1 oneadmin oneadmin 1443 juil. 24 19:09
snapshot_delete<br>
> -rwxr-xr-x 1 oneadmin oneadmin 1454 juil. 24 19:09
snapshot_revert<br>
><br>
><br>
> but on node:<br>
><br>
> root@mynode:~# ls -l /opt/one/vmm/kvm/<br>
> total 48<br>
> -rwxr-xr-x 1 oneadmin oneadmin 1386 2 avril 2012
cancel<br>
> -rwxr-xr-x 1 oneadmin oneadmin 1545 2 avril 2012
deploy<br>
> -rw-r--r-- 1 oneadmin oneadmin 1266 2 avril 2012
kvmrc<br>
> -rwxr-xr-x 1 oneadmin oneadmin 1455 2 avril 2012
migrate<br>
> -rwxr-xr-x 1 oneadmin oneadmin 1381 2 avril 2012
migrate_local<br>
> -rwxr-xr-x 1 oneadmin oneadmin 8183 2 avril 2012
poll<br>
> -rwxr-xr-x 1 oneadmin oneadmin 2324 2 avril 2012
poll_ganglia<br>
> -rwxr-xr-x 1 oneadmin oneadmin 1400 2 avril 2012
reboot<br>
> -rwxr-xr-x 1 oneadmin oneadmin 1376 2 avril 2012
restore<br>
> -rwxr-xr-x 1 oneadmin oneadmin 1467 2 avril 2012
save<br>
> -rwxr-xr-x 1 oneadmin oneadmin 2065 2 avril 2012
shutdown<br>
><br>
> Any idea how to fix this ?<br>
><br>
> Olivier<br>
><br>
<br>
--<br>
</div>
</div>
<span><font color="#888888">Olivier Sallou<br>
IRISA / University of Rennes 1<br>
Campus de Beaulieu, 35000 RENNES - FRANCE<br>
Tel: 02.99.84.71.95<br>
</font></span>
<div>
<div><br>
gpg key id: 4096R/326D8438 (<a href="http://keyring.debian.org" target="_blank">keyring.debian.org</a>)<br>
Key fingerprint = 5FB4 6F83 D3B9 5204 6335 D26D 78DC
68DB 326D 8438<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">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>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr">
<div>Jaime Melis<br>
Project Engineer<br>
OpenNebula - Flexible Enterprise Cloud Made Simple<br>
<a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:jmelis@opennebula.org" target="_blank">jmelis@opennebula.org</a></div>
</div>
</div>
</blockquote>
<br>
<pre cols="72">--
Olivier Sallou
IRISA / University of Rennes 1
Campus de Beaulieu, 35000 RENNES - FRANCE
Tel: 02.99.84.71.95
gpg key id: 4096R/326D8438 (<a href="http://keyring.debian.org" target="_blank">keyring.debian.org</a>)
Key fingerprint = 5FB4 6F83 D3B9 5204 6335 D26D 78DC 68DB 326D 8438
</pre>
</div></div></div>
<br>_______________________________________________<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></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div>Jaime Melis<br>Project Engineer<br>OpenNebula - Flexible Enterprise Cloud Made Simple<br><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:jmelis@opennebula.org" target="_blank">jmelis@opennebula.org</a></div>
</div>
</div>