Hi,

thank you all for reporting this. We have analyzed the code and it is in
fact a bug. We have created a bug and applied the fix:
http://dev.opennebula.org/issues/380

To fix it manually edit /usr/lib/one/ruby/ActionManager.rb:
line 186:
one_config='/var/log/one/config'
change that to:
one_config='/var/lib/one/config'

The problem is that we originally placed the configuration file generated by
oned in /var/log/one, but we later decided to move it to /var/lib/one, but
didn't update this file.

thank you all for your great feedback!

cheers,
Jaime


On Thu, Oct 28, 2010 at 4:09 PM, Tiago Batista <tiagosbati...@gmail.com>wrote:

> I am stumped... You can always modify the line
>
> @remote_dir = @config['SCRIPTS_REMOTE_DIR'] || '/tmp/one'
>
> on the mads, but that is not what should be done.
>
> In fact your oned is behaving as if the variable is not set on
> /etc/oned.conf (I am assuming a system wide install).
>
>
>
>
> On Thu, Oct 28, 2010 at 2:57 PM, Oscar Elfving <sofa...@gmail.com> wrote:
> > Sadly this does nothing, still creates the files under /tmp/one.
> > /Oscar
> >
> > On Thu, Oct 28, 2010 at 3:50 PM, Jhon Masschelein <
> jhon.masschel...@sara.nl>
> > wrote:
> >>
> >> Hi,
> >>
> >> Not sure if this will help but I read somewhere in the doc that the
> remote
> >> scripts are only copied out when their timestamps have changed. (i guess
> to
> >> reduce the overhead of copying files.)
> >>
> >> I'm still running an older beta version, but just try and touch the
> files
> >> under /usr/lib/one and see if that does the trick?
> >>
> >> Wkr,
> >>
> >> Jhon
> >>
> >> On 10/28/2010 03:46 PM, Oscar Elfving wrote:
> >>
> >> So, where do I start debugging this? As far as I can tell
> >> the /usr/lib/one/mads/one_im_ssh.rb and /usr/lib/one/mads/one_vmm_ssh.rb
> >> scripts are the only ones using the variable but I am unsure how to
> actually
> >> verify that it is getting the variable or not as it says in the
> >> file: @remote_dir = @config['SCRIPTS_REMOTE_DIR'] || '/tmp/one'.
> >> Any other ideas?
> >> Best regards,
> >> Oscar Elfving
> >> On Thu, Oct 28, 2010 at 3:37 PM, Tiago Batista <tiagosbati...@gmail.com
> >
> >> wrote:
> >>>
> >>> I know it sounded stupid, but I was bitten by this more than once...
> >>>
> >>> As far as I can tell you are doing the right thing, my installation is
> >>> on the user-dir, other than that I use the same procedure!
> >>>
> >>>
> >>> On Thu, Oct 28, 2010 at 2:21 PM, Oscar Elfving <sofa...@gmail.com>
> wrote:
> >>> > Yes I restarted it, the /var/lib/one/config is reflecting the change
> as
> >>> > well. And just to make sure, a restart is "one stop; one start"
> right?
> >>> > Best regards,
> >>> > Oscar Elfving
> >>> >
> >>> > On Thu, Oct 28, 2010 at 3:14 PM, Tiago Batista
> >>> > <tiagosbati...@gmail.com>
> >>> > wrote:
> >>> >>
> >>> >> In my case, the most common explanation for this is the lack of a
> >>> >> process restart... Did you stop and restart oned?
> >>> >>
> >>> >>
> >>> >> On Thu, Oct 28, 2010 at 2:08 PM, Oscar Elfving <sofa...@gmail.com>
> >>> >> wrote:
> >>> >> > Hi,
> >>> >> > I have a problem right now where no matter what I
> >>> >> > set SCRIPTS_REMOTE_DIR
> >>> >> > in
> >>> >> > /etc/one/oned.conf when I add a host it still puts all the related
> >>> >> > scripts
> >>> >> > in /tmp/one. This is undesirable since this purges the scripts at
> >>> >> > every
> >>> >> > reboot and I would like to set the location myself.
> >>> >> > Any pointers to why I might be experiencing this problem?
> >>> >> > Best regards,
> >>> >> > Oscar Elfving
> >>> >> > _______________________________________________
> >>> >> > Users mailing list
> >>> >> > Users@lists.opennebula.org
> >>> >> > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> >>> >> >
> >>> >> >
> >>> >
> >>> >
> >>
> >>
> >>
> >> _______________________________________________
> >> Users mailing list
> >> Users@lists.opennebula.org
> >> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> >>
> >
> >
> > _______________________________________________
> > Users mailing list
> > Users@lists.opennebula.org
> > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> >
> >
> _______________________________________________
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
_______________________________________________
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

Reply via email to