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

Tino Vazquez tinova at opennebula.org
Tue Aug 23 04:45:22 PDT 2011


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?

Regards,

-Tino

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



On Tue, Aug 23, 2011 at 1:26 PM,  <knawnd at gmail.com> wrote:
> Tino Vazquez wrote on 23/08/11 13:54:
>>
>> Hi Nikolay,
>
> Hi Tino,
>>
>> The following are the location of the scripts for the FE
>>
>>   * System wide = /usr/share/one/hooks
>>   * Self contained = $ONE_LOCATION/share/hooks
>>
>> The following the location in the CNs
>>
>> SCRIPTS_REMOTE_DIR=/var/tmp/one
>
> I set SCRIPTS_REMOTE_DIR to /tmp/one in oned.conf.
> Drivers scripts are there but hooks ones are missing.
> [CN]$ ll /tmp/one/
> total 8
> drwxr-xr-x 6 oneadmin cloud 4096 Aug 18 20:41 im
> drwxr-xr-x 5 oneadmin cloud 4096 Aug 18 20:41 vmm
>
> Should I provide more details?
> I tried to mention them in my initial email of that thread [1].
>
> [1]
> http://lists.opennebula.org/pipermail/users-opennebula.org/2011-August/006084.html
>
> Thanks for help!
> Nikolay.
>>
>> This should be writable by oneadmin and can be changed.
>>
>> Please let us know if this is not the seen behavior.
>>
>> Regards,
>>
>> -Tino
>>
>> --
>> Constantino Vázquez Blanco, MSc
>> OpenNebula Major Contributor
>> www.OpenNebula.org | @tinova79
>>
>>
>>
>> On Mon, Aug 22, 2011 at 3:38 PM,<knawnd at gmail.com>  wrote:
>>>
>>> Tino Vazquez wrote on 22/08/11 13:54:
>>>>
>>>> Hi Nikolay,
>>>
>>> Hi Tino,
>>>
>>> thanks for reply but it doesn't clarify much for me (please, see below).
>>>
>>>> For OpenNebula 2.2, the location of the remotes are
>>>>
>>>>  * System wide = /usr/share/one/hooks
>>>>  * Self contained = $ONE_LOCATION/share/hooks
>>>
>>> I have OpenNebula (version 2.2.1) installed in self-contained mode.
>>> Are those hooks locations for 1) front-end node or 2) for CNs?
>>> If it is for CNs then it looks like it is mandatory to have
>>> $ONE_LOCATION/share/hooks mounted on all CNs. Or it's not true and one
>>> can
>>> have non-shared FS setup?
>>> Carlos wrote in [1]:
>>> ===========
>>>>
>>>> The mechanism you are referring to is the 'onehost sync', it has to be
>>>> executed as oneadmin in the front-end. This will force the hooks and
>>>> drivers
>>>> scripts to be copied to the hosts in the next monitorization cycle.
>>>
>>> ===========
>>>
>>> So one can assume that it's not mandatory to have shared
>>> $ONE_LOCATION/share/hooks dir and in case of non-shared
>>> $ONE_LOCATION/share/hooks dir the hooks have to be copied on CNs. But it
>>> didn't happen in my case.
>>> So my questions still are the following:
>>> 1) is it mandatory to have shared $ONE_LOCATION/share/hooks on CNs? If
>>> the
>>> answer is 'no' then do I have to create on CNs the same directory
>>> structure
>>> (with proper permissions for oneadmin user) as on FN to make hooks be
>>> available in the same path on both FN and CNs?
>>> 2) is $SCRIPTS_REMOTE_DIR for specifying remote path for drivers scripts
>>> only or for hooks as well?
>>> 3) is there any way to configure remote location for hooks scripts (e.g.
>>> $SCRIPT_REMOTE_DIR/hooks)?
>>>
>>> Sorry about taking your time with that issue.
>>>
>>> [1] http://www.mail-archive.com/users@lists.opennebula.org/msg03892.html
>>>
>>> Thanks in advance,
>>> Nikolay.
>>>
>



More information about the Users mailing list