[one-users] onehost sync
Jaime Melis
jmelis at opennebula.org
Fri Oct 25 09:22:12 PDT 2013
Hi Olivier,
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...
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:
https://github.com/OpenNebula/one/blob/one-3.8/src/im/InformationManager.cc#L224
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:
https://github.com/OpenNebula/one/blob/master/src/cli/one_helper/onehost_helper.rb#L161
cheers,
Jaime
On Fri, Oct 25, 2013 at 5:14 PM, Olivier Sallou <olivier.sallou at irisa.fr>wrote:
> As additional information,
> there is no error in oned.log (nor any info about a sync operation), and
> my node has been monitored in the meanwhile:
>
> oneadmin at genokvm4:~$ onehost show mynode
> HOST 14
> INFORMATION
> ID : 14
> NAME : mynode
> CLUSTER : -
> STATE : MONITORED
> IM_MAD : im_ganglia
> VM_MAD : vmm_kvm
> VN_MAD : dummy
> LAST MONITORING TIME : 10/25 17:09:27
>
> The "touch" made by the sync command succeed (/var/lib/one/remotes has
> been updated), but no file is copied to remote nodes.
>
> On 10/25/2013 04:05 PM, Olivier Sallou wrote:
> > Hi,
> >
> > I have executed "onehost sync" on my master, but even after quite a long
> > time, scripts are not updated on nodes (old scripts).
> >
> > (master installed via deb packages, and in oned.conf:
> > SCRIPTS_REMOTE_DIR=/opt/one)
> >
> > On master I have:
> >
> > root at master:/var/log/one# ls -l /var/lib/one/remotes/vmm/kvm/
> > total 84
> > -rwxr-xr-x 1 oneadmin oneadmin 2842 juil. 24 19:09 attach_disk
> > -rwxr-xr-x 1 oneadmin oneadmin 1583 juil. 24 19:09 attach_nic
> > -rwxr-xr-x 1 oneadmin oneadmin 1596 juil. 24 19:09 cancel
> > -rwxr-xr-x 1 oneadmin oneadmin 1545 juil. 24 19:09 deploy
> > -rwxr-xr-x 1 oneadmin oneadmin 1495 juil. 24 19:09 detach_disk
> > -rwxr-xr-x 1 oneadmin oneadmin 1470 juil. 24 19:09 detach_nic
> > -rw-r--r-- 1 oneadmin oneadmin 1790 juil. 24 19:09 kvmrc
> > -rwxr-xr-x 1 oneadmin oneadmin 1455 juil. 24 19:09 migrate
> > -rwxr-xr-x 1 oneadmin oneadmin 1381 juil. 24 19:09 migrate_local
> > -rwxr-xr-x 1 oneadmin oneadmin 10402 juil. 24 19:09 poll
> > -rwxr-xr-x 1 oneadmin oneadmin 2930 juil. 24 19:09 poll_ganglia
> > -rwxr-xr-x 1 oneadmin oneadmin 1400 juil. 24 19:09 reboot
> > -rwxr-xr-x 1 oneadmin oneadmin 1398 juil. 24 19:09 reset
> > -rwxr-xr-x 1 oneadmin oneadmin 1376 juil. 24 19:09 restore
> > -rwxr-xr-x 1 oneadmin oneadmin 1613 juil. 24 19:09 save
> > -rwxr-xr-x 1 oneadmin oneadmin 2304 juil. 24 19:09 shutdown
> > -rwxr-xr-x 1 oneadmin oneadmin 1522 juil. 24 19:09 snapshot_create
> > -rwxr-xr-x 1 oneadmin oneadmin 1443 juil. 24 19:09 snapshot_delete
> > -rwxr-xr-x 1 oneadmin oneadmin 1454 juil. 24 19:09 snapshot_revert
> >
> >
> > but on node:
> >
> > root at mynode:~# ls -l /opt/one/vmm/kvm/
> > total 48
> > -rwxr-xr-x 1 oneadmin oneadmin 1386 2 avril 2012 cancel
> > -rwxr-xr-x 1 oneadmin oneadmin 1545 2 avril 2012 deploy
> > -rw-r--r-- 1 oneadmin oneadmin 1266 2 avril 2012 kvmrc
> > -rwxr-xr-x 1 oneadmin oneadmin 1455 2 avril 2012 migrate
> > -rwxr-xr-x 1 oneadmin oneadmin 1381 2 avril 2012 migrate_local
> > -rwxr-xr-x 1 oneadmin oneadmin 8183 2 avril 2012 poll
> > -rwxr-xr-x 1 oneadmin oneadmin 2324 2 avril 2012 poll_ganglia
> > -rwxr-xr-x 1 oneadmin oneadmin 1400 2 avril 2012 reboot
> > -rwxr-xr-x 1 oneadmin oneadmin 1376 2 avril 2012 restore
> > -rwxr-xr-x 1 oneadmin oneadmin 1467 2 avril 2012 save
> > -rwxr-xr-x 1 oneadmin oneadmin 2065 2 avril 2012 shutdown
> >
> > Any idea how to fix this ?
> >
> > Olivier
> >
>
> --
> 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
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
--
Jaime Melis
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | jmelis at opennebula.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20131025/73f2f9d7/attachment-0002.htm>
More information about the Users
mailing list