[one-users] datastore log info missing from oned.log in v4.2

Gary S. Cuozzo gary at isgsoftware.net
Tue Nov 26 07:38:54 PST 2013


Then it seems that this has changed since the 3.8.x series.  I use log_debug script function to log various messages in my drivers.  I have my log level set to DEBUG in conf file.  I used to see those messages, as I would expect, unless I changed the log level to something above DEBUG.  The messages were logged regardless of the outcome of the script.

It seems that if that is no longer the case, then the log facility can't be used for anything other than error conditions and having DEBUG, INFO, etc. is not very useful anymore.

Maybe I'm missing the point of the feature, but it definitely did not work this way before and was something I relied on for certain things.  I'm now overriding the log_debug function locally in my script and writing the output to my own log file.  That is not as nice because now the log entries are not intertwined with other events which are happening in the oned.log file.

IMO, any message should be written to the file based on the configured log level.

Let me know your thoughts.

Thanks for the reply,
gary

----- Original Message -----
From: "Javier Fontan" <jfontan at opennebula.org>

STDERR is only logged when the action is not successful, maybe that is
your problem.

On Sat, Nov 23, 2013 at 11:35 PM, Gary S. Cuozzo <gary at isgsoftware.net> wrote:
> Hi All,
> I finally got some time to get back to looking at this.  My original task was to get my custom drivers working with ONE 4.2.  I was able to do so.  It was related to a bug fix where the SRC & DST arguments to pre/postmigrate were swapped.  I simply had to swap them back.  The irony in it is that I was the one that suggested the pre/postmigrate feature request and reported that bug.  ;)
>
> So, I'm happily able to live migrate again.
>
> Oddly though, I am unable to get any log messages to show up in oned.log file.  I'm guessing some of the common script libraries have gotten reorganized, so I need to dig in a bit more on this issue.
>
> Cheers,
> gary
>
> ----- Original Message -----
> From: "Gary S. Cuozzo" <gary at isgsoftware.net>
> To: "Users OpenNebula" <users at lists.opennebula.org>
> Sent: Friday, November 8, 2013 8:53:32 AM
> Subject: Re: [one-users] datastore log info missing from oned.log in v4.2
>
> Is this a new behavior?  I used to see any logged messages up to the level of the log mode in the oned.log file.  It seems like 'debug' mode should log regardless of the exit code of the script.  Even if I changed the logs from log_debug to log_error, still no output.  I'll try forcing exit 1 to see if that causes the logs to show up.
>
> Also, I validated that when I first installed ONE 4.2, the log messages were there, but now are not.  I went back to my logs from a few weeks ago and see all the messages I would expect.  I did not have time to work on this, so the server sat for a few weeks.  Now I'm back to working on it and not seeing the messages.  Very odd.
>
> Will let you know if setting exit 1 helps.
>
> Thanks for the reply,
> gary
>
> ----- Original Message -----
> Normally the transfers are not logged when everything goes ok, that
> is, the script exists with 0.
>
> On Fri, Nov 8, 2013 at 1:17 AM, Gary S. Cuozzo <gary at isgsoftware.net> wrote:
>> Hi All,
>> I have recently upgraded our environment from 3.8.x to 4.2 version.  Running
>> on Ubuntu 12.04LTS.  I have some custom datastore/tm drivers that I wrote
>> which worked well in 3.8.  I am trying to troubleshoot something related to
>> live migration and my log messages are not getting to /var/log/one/oned.log
>> file.  I have logging set to debug in oned.conf.  I see debug level messages
>> for other subsystems, such as [ReM] but nothing related to the datastore or
>> tm.
>>
>> Just as a sanity check, I have another server that I did a clean install on
>> and I'm seeing the same results.
>>
>> I also tested adding some log entries into the stock ONE drivers and I do
>> not see anything logged.
>>
>> Any ideas?
>>
>> Thanks in advance,
>> gary
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>
>
>
> --
> Javier Fontán Muiños
> Developer
> OpenNebula - The Open Source Toolkit for Data Center Virtualization
> www.OpenNebula.org | @OpenNebula | github.com/jfontan
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org



-- 
Javier Fontán Muiños
Developer
OpenNebula - The Open Source Toolkit for Data Center Virtualization
www.OpenNebula.org | @OpenNebula | github.com/jfontan



More information about the Users mailing list