<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <div class="moz-cite-prefix">On 10/25/2013 06:22 PM, Jaime Melis
      wrote:<br>
    </div>
    <blockquote
cite="mid:CA+HrgRrGi9iE6ZJx6HywBgsVSvEkyfnpcmdzk2QbfJSxHiDkvQ@mail.gmail.com"
      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 moz-do-not-send="true"
href="https://github.com/OpenNebula/one/blob/one-3.8/src/im/InformationManager.cc#L224">https://github.com/OpenNebula/one/blob/one-3.8/src/im/InformationManager.cc#L224</a><br>
        </div>
      </div>
    </blockquote>
    One of my hosts is "down" (I have set it down with the onehost
    command).<br>
    <br>
    I wonder if:<br>
    <br>
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-1">
    <span style="color: rgb(51, 51, 51); font-family: Consolas,
      'Liberation Mono', Courier, monospace; font-size: 12px;
      font-style: normal; font-variant: normal; font-weight: normal;
      letter-spacing: normal; line-height: 18px; orphans: auto;
      text-align: start; text-indent: 0px; text-transform: none;
      white-space: pre; widows: auto; word-spacing: 0px;
      -webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
      255); display: inline !important; float: none;">    </span><span
      class="n" style="color: rgb(51, 51, 51); font-family: Consolas,
      'Liberation Mono', Courier, monospace; font-size: 12px;
      font-style: normal; font-variant: normal; font-weight: normal;
      letter-spacing: normal; line-height: 18px; orphans: auto;
      text-align: start; text-indent: 0px; text-transform: none;
      white-space: pre; widows: auto; word-spacing: 0px;
      -webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
      255);"> rc</span><span style="color: rgb(51, 51, 51); font-family:
      Consolas, 'Liberation Mono', Courier, monospace; font-size: 12px;
      font-style: normal; font-variant: normal; font-weight: normal;
      letter-spacing: normal; line-height: 18px; orphans: auto;
      text-align: start; text-indent: 0px; text-transform: none;
      white-space: pre; widows: auto; word-spacing: 0px;
      -webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
      255); display: inline !important; float: none;"> </span><span
      class="o" style="font-weight: bold; color: rgb(51, 51, 51);
      font-family: Consolas, 'Liberation Mono', Courier, monospace;
      font-size: 12px; font-style: normal; font-variant: normal;
      letter-spacing: normal; line-height: 18px; orphans: auto;
      text-align: start; text-indent: 0px; text-transform: none;
      white-space: pre; widows: auto; word-spacing: 0px;
      -webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
      255);">=</span><span style="color: rgb(51, 51, 51); font-family:
      Consolas, 'Liberation Mono', Courier, monospace; font-size: 12px;
      font-style: normal; font-variant: normal; font-weight: normal;
      letter-spacing: normal; line-height: 18px; orphans: auto;
      text-align: start; text-indent: 0px; text-transform: none;
      white-space: pre; widows: auto; word-spacing: 0px;
      -webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
      255); display: inline !important; float: none;"> </span><span
      class="n" style="color: rgb(51, 51, 51); font-family: Consolas,
      'Liberation Mono', Courier, monospace; font-size: 12px;
      font-style: normal; font-variant: normal; font-weight: normal;
      letter-spacing: normal; line-height: 18px; orphans: auto;
      text-align: start; text-indent: 0px; text-transform: none;
      white-space: pre; widows: auto; word-spacing: 0px;
      -webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
      255);">hpool</span><span class="o" style="font-weight: bold;
      color: rgb(51, 51, 51); font-family: Consolas, 'Liberation Mono',
      Courier, monospace; font-size: 12px; font-style: normal;
      font-variant: normal; letter-spacing: normal; line-height: 18px;
      orphans: auto; text-align: start; text-indent: 0px;
      text-transform: none; white-space: pre; widows: auto;
      word-spacing: 0px; -webkit-text-stroke-width: 0px;
      background-color: rgb(255, 255, 255);">-></span><span class="n"
      style="color: rgb(51, 51, 51); font-family: Consolas, 'Liberation
      Mono', Courier, monospace; font-size: 12px; font-style: normal;
      font-variant: normal; font-weight: normal; letter-spacing: normal;
      line-height: 18px; orphans: auto; text-align: start; text-indent:
      0px; text-transform: none; white-space: pre; widows: auto;
      word-spacing: 0px; -webkit-text-stroke-width: 0px;
      background-color: rgb(255, 255, 255);">discover</span><span
      class="p" style="color: rgb(51, 51, 51); font-family: Consolas,
      'Liberation Mono', Courier, monospace; font-size: 12px;
      font-style: normal; font-variant: normal; font-weight: normal;
      letter-spacing: normal; line-height: 18px; orphans: auto;
      text-align: start; text-indent: 0px; text-transform: none;
      white-space: pre; widows: auto; word-spacing: 0px;
      -webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
      255);">(</span><span class="o" style="font-weight: bold; color:
      rgb(51, 51, 51); font-family: Consolas, 'Liberation Mono',
      Courier, monospace; font-size: 12px; font-style: normal;
      font-variant: normal; letter-spacing: normal; line-height: 18px;
      orphans: auto; text-align: start; text-indent: 0px;
      text-transform: none; white-space: pre; widows: auto;
      word-spacing: 0px; -webkit-text-stroke-width: 0px;
      background-color: rgb(255, 255, 255);">&</span><span class="n"
      style="color: rgb(51, 51, 51); font-family: Consolas, 'Liberation
      Mono', Courier, monospace; font-size: 12px; font-style: normal;
      font-variant: normal; font-weight: normal; letter-spacing: normal;
      line-height: 18px; orphans: auto; text-align: start; text-indent:
      0px; text-transform: none; white-space: pre; widows: auto;
      word-spacing: 0px; -webkit-text-stroke-width: 0px;
      background-color: rgb(255, 255, 255);">discovered_hosts</span><span
      class="p" style="color: rgb(51, 51, 51); font-family: Consolas,
      'Liberation Mono', Courier, monospace; font-size: 12px;
      font-style: normal; font-variant: normal; font-weight: normal;
      letter-spacing: normal; line-height: 18px; orphans: auto;
      text-align: start; text-indent: 0px; text-transform: none;
      white-space: pre; widows: auto; word-spacing: 0px;
      -webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
      255);">,</span><span style="color: rgb(51, 51, 51); font-family:
      Consolas, 'Liberation Mono', Courier, monospace; font-size: 12px;
      font-style: normal; font-variant: normal; font-weight: normal;
      letter-spacing: normal; line-height: 18px; orphans: auto;
      text-align: start; text-indent: 0px; text-transform: none;
      white-space: pre; widows: auto; word-spacing: 0px;
      -webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
      255); display: inline !important; float: none;"> </span><span
      class="n" style="color: rgb(51, 51, 51); font-family: Consolas,
      'Liberation Mono', Courier, monospace; font-size: 12px;
      font-style: normal; font-variant: normal; font-weight: normal;
      letter-spacing: normal; line-height: 18px; orphans: auto;
      text-align: start; text-indent: 0px; text-transform: none;
      white-space: pre; widows: auto; word-spacing: 0px;
      -webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
      255);">host_limit</span><span class="p" style="color: rgb(51, 51,
      51); font-family: Consolas, 'Liberation Mono', Courier, monospace;
      font-size: 12px; font-style: normal; font-variant: normal;
      font-weight: normal; letter-spacing: normal; line-height: 18px;
      orphans: auto; text-align: start; text-indent: 0px;
      text-transform: none; white-space: pre; widows: auto;
      word-spacing: 0px; -webkit-text-stroke-width: 0px;
      background-color: rgb(255, 255, 255);">,</span><span style="color:
      rgb(51, 51, 51); font-family: Consolas, 'Liberation Mono',
      Courier, monospace; font-size: 12px; font-style: normal;
      font-variant: normal; font-weight: normal; letter-spacing: normal;
      line-height: 18px; orphans: auto; text-align: start; text-indent:
      0px; text-transform: none; white-space: pre; widows: auto;
      word-spacing: 0px; -webkit-text-stroke-width: 0px;
      background-color: rgb(255, 255, 255); display: inline !important;
      float: none;"> </span><span class="n" style="color: rgb(51, 51,
      51); font-family: Consolas, 'Liberation Mono', Courier, monospace;
      font-size: 12px; font-style: normal; font-variant: normal;
      font-weight: normal; letter-spacing: normal; line-height: 18px;
      orphans: auto; text-align: start; text-indent: 0px;
      text-transform: none; white-space: pre; widows: auto;
      word-spacing: 0px; -webkit-text-stroke-width: 0px;
      background-color: rgb(255, 255, 255);">target_time</span><span
      class="p" style="color: rgb(51, 51, 51); font-family: Consolas,
      'Liberation Mono', Courier, monospace; font-size: 12px;
      font-style: normal; font-variant: normal; font-weight: normal;
      letter-spacing: normal; line-height: 18px; orphans: auto;
      text-align: start; text-indent: 0px; text-transform: none;
      white-space: pre; widows: auto; word-spacing: 0px;
      -webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
      255);">);</span><br>
    <br>
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-1">
    <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; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div class="line" id="LC180" style="padding-left: 10px;">    <span class="k" style="font-weight: bold;">if</span> <span class="p">((</span><span class="n" style="color: rgb(51, 51, 51);">rc</span> <span class="o" style="font-weight: bold;">!=</span> <span class="mi" style="color: rgb(0, 153, 153);">0</span><span class="p">)</span> <span class="o" style="font-weight: bold;">||</span> <span class="p">(</span><span class="n" style="color: rgb(51, 51, 51);">discovered_hosts</span><span class="p">.</span><span class="n" style="color: rgb(51, 51, 51);">empty</span><span class=
"p">()</span> <span class="o" style="font-weight: bold;">==</span> <span class="nb" style="color: rgb(0, 134, 179);">true</span><span class="p">))</span></div><div class="line" id="LC181" style="padding-left: 10px;">    <span class="p">{</span></div><div class="line" id="LC182" style="padding-left: 10px;">        <span class="k" style="font-weight: bold;">return</span><span class="p">;</span></div><div class="line" id="LC183" style="padding-left: 10px;">    <span class="p">}


</span></div></pre>
    would not do a return because of my host is not up.....<br>
    <blockquote
cite="mid:CA+HrgRrGi9iE6ZJx6HywBgsVSvEkyfnpcmdzk2QbfJSxHiDkvQ@mail.gmail.com"
      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 moz-do-not-send="true"
href="https://github.com/OpenNebula/one/blob/master/src/cli/one_helper/onehost_helper.rb#L161">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 moz-do-not-send="true"
              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 class="HOEnZb">
              <div class="h5"><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 class="HOEnZb"><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 class="HOEnZb">
              <div class="h5"><br>
                gpg key id: 4096R/326D8438  (<a moz-do-not-send="true"
                  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 moz-do-not-send="true"
                  href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
                <a moz-do-not-send="true"
                  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 moz-do-not-send="true" href="http://www.OpenNebula.org"
              target="_blank">www.OpenNebula.org</a> | <a
              moz-do-not-send="true" href="mailto:jmelis@opennebula.org"
              target="_blank">jmelis@opennebula.org</a></div>
        </div>
      </div>
    </blockquote>
    <br>
    <pre class="moz-signature" 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  (keyring.debian.org)
Key fingerprint = 5FB4 6F83 D3B9 5204 6335  D26D 78DC 68DB 326D 8438

</pre>
  </body>
</html>