| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |
|
|
|
|
| |
If hostname can not be translated to IP, provider thinks it does not
belong to running system. This change makes sure that hostname is
properly recognized and no traceback is trown.
|
| |
|
|
| |
Updated copyright years to include new year 2014.
|
| |
|
|
| |
This patch removes trailing spaces from source files.
|
| |
|
|
|
| |
Let's use gethostname() instead of querying BaseConfiguration's system_name
property that has been removed.
|
| |
|
|
|
| |
Removed import from software provider. providers package can not depend
on any lmi provider package.
|
| |
|
|
|
|
|
|
|
| |
Added ComputerSystem module to lmi.providers with convenience functions
allowing to obtain instance from CIMOM and check for its correctness
when inspecting client's input.
Also removed obsoleted system_name property out of BaseConfiguration
class.
|
| | |
|
| |
|
|
| |
There is too much noise in TRACE_VERBOSE and exception stack trace is
more important than e.g. entering/leaving messages.
|
| |
|
|
|
|
| |
Function wrappers should look like the functions being wrapped. Without
the *wraps()* decorator, the resulting function would not have assigned
doc string, would have wrong name etc.
|
| |
|
|
|
|
| |
Tracing messages logging entries and exits of functions/methods polute
the trace logs greatly. Let's make them less severe making them
easy to suppress, while keeping other interesting messages enabled.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Tracing decorators are everywhere and they make debugging very
inconvenient. This allows to disable them easily using environment
variable.
To disable them, just add
export LMI_DISABLE_TRACING_DECORATORS=1
to your
/usr/libexec/pegasus/$provider-cimprovagt
script.
|
| |
|
|
| |
The thread did not stop when AttributeError occured.
|
| |
|
|
|
|
| |
dictConfig() function of logging.config module is not present in stdlib
of python 2.6. This change replaces mentioned function call with manual
setup of handlers and modules.
|
| |
|
| |
log_debug() takes only 'msg' as parameter.
|
| | |
|
| |
|
|
|
|
|
|
|
| |
Reduced length of tracing messages written to log by rendering just the
first item of list, dict or set instead of whole argument. This will
also improve execution time when running in debug mode.
Fixed logging decorator of software job manager which previously
rendered informations from uninteresting frame.
|
| |
|
|
|
|
|
|
| |
Allowed to pass different logging configuration dictionary.
Changed behaviour, when [Log] Stderr = True. Now both logging to CIMOM
and to stderr are enabled. Previously only logging to stderr has been
done.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Module now contains enhanced tracing function decorators providing more
details. There is no global logger, each provider module should obtain
its own logger via get_logger() function.
Usage of LogManager is optional. It allows for logging's
reconfiguration, when config file is changed.
Exceptions logged with error(), exception() or critical() methods are
now logged twice:
* First time for specified level with error message only.
* Second time for TRACE_WARNING level with traceback.
This prevents the polution of syslog.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is hopefully temporary workaround, which:
- Disables LMI_ConcreteJob.JobInParameters, as they are not that important
and can contain arrays of references, which is prohibited by MOF syntax.
- Removes input parameters from CIM_IndModifyInstance.MethodParameters
from the same reason.
- In CIM_IndModifyInstance.MethodParameters and
LMI_ConcreteJob.JobOutParameters uses non-standard classname for the
embedded object (__MethodParameters_<method name> and
__MethodParameters_<method name>_Result), so we can register different
class for each asynchronous method with output parameters.
|
|
|
Split the openlmi-python package to 2:
* openlmi-python-base
- lmi namespace
- functionality for any OpenLMI related python code
- contains packages 'lmi' and 'lmi.base'
* openlmi-python-providers
- common functionality for OpenLMI providers
- contains 'lmi.providers'
|