[one-users] hooks execution on remote nodes without shared ONE installation dir

knawnd at gmail.com knawnd at gmail.com
Tue Aug 23 05:16:53 PDT 2011


Tino Vazquez wrote on 23/08/11 14:45:
> Hi,
>
> Let's try this, since this seems like a bug. Could you please copy the
> hook into "/var/lib/one/remotes" and "onehost sync" again?
Since in my deployment scenario OpenNebula is installed in 
self-contained mode there was no such dir as /var/lib/one/. So I created it:
[root at FN]$ mkdir -p /var/lib/one/remotes
[root at FN]$ chown oneadmin:cloud -R /var/lib/one/

And then
[oneadmin at FN]$ cp $ONE_LOCATOIN/share/hooks/* /var/lib/one/remotes/

[oneadmin at FN]$ ll /var/lib/one/remotes/
total 28
-rwxr-xr-x 1 oneadmin cloud 3589 Aug 23 15:59 ebtables-flush
-rwxr-xr-x 1 oneadmin cloud 3529 Aug 23 15:59 ebtables-kvm
-rwxr-xr-x 1 oneadmin cloud 3459 Aug 23 15:59 ebtables-xen
-rwxr-xr-x 1 oneadmin cloud 3084 Aug 23 15:59 host_error.rb
-rwxr-xr-x 1 oneadmin cloud 2408 Aug 23 15:59 image.rb
-rwxr-xr-x 1 oneadmin cloud 2151 Aug 23 15:59 image.rb.bk
-rwxr-xr-x 1 oneadmin cloud   42 Aug 23 15:59 vzfirewall.sh

[oneadmin at FN]$ onehost sync

During next monitoring cycle the driver scripts had been updated on CNs 
(i.e. the content of /tmp/one/im/ovz/ and /tmp/one/vmm/ovz/ dirs) but no 
hooks scripts appeared in /tmp/one on CNs (checked by running 'find 
/tmp/one/ -name vzfirewall.sh').

So it looks like hooks scripts were not copied even from 
/var/lib/one/remotes.
More ideas?

Thanks!
Nikolay.

>
> Regards,
>
> -Tino



More information about the Users mailing list