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

Tino Vazquez tinova at opennebula.org
Mon Aug 29 07:17:09 PDT 2011


Hi Nikolay,

Ok, if not on system-wide, please copy them to
$ONE_LOCATION/var/remotes, and see how it goes.

Regards,

-Tino

--
Constantino Vázquez Blanco, MSc
OpenNebula Major Contributor
www.OpenNebula.org | @tinova79



On Mon, Aug 29, 2011 at 9:19 AM,  <knawnd at gmail.com> wrote:
> any news/help on that?
>
> Nikolay.
>
> knawnd at gmail.com wrote on 23/08/11 15:16:
>>
>> 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