summaryrefslogtreecommitdiffstats
path: root/src/python/lmi/providers
Commit message (Collapse)AuthorAgeFilesLines
* python 2.6 newclassAles Ledvinka2014-04-161-1/+1
|
* python: fixed SystemName verificationMichal Minar2014-03-101-2/+8
| | | | | | 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 yearsPeter Schiffer2014-01-166-6/+6
| | | | Updated copyright years to include new year 2014.
* Remove trailing spacesPeter Schiffer2014-01-161-12/+12
| | | | This patch removes trailing spaces from source files.
* python: fixed is_this_systemMichal Minar2013-10-311-3/+1
| | | | | Let's use gethostname() instead of querying BaseConfiguration's system_name property that has been removed.
* python: fixed ComputerSystem moduleMichal Minar2013-10-311-2/+2
| | | | | Removed import from software provider. providers package can not depend on any lmi provider package.
* python: solve ComputerSystem issuesMichal Minar2013-10-312-1/+172
| | | | | | | | | 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.
* Fixed sending of indications.Jan Safranek2013-10-221-2/+2
|
* Increase verbosity of logged exceptions.Jan Safranek2013-10-221-2/+2
| | | | There is too much noise in TRACE_VERBOSE and exception stack trace is more important than e.g. entering/leaving messages.
* python: correctly create function wrappersMichal Minar2013-10-181-0/+2
| | | | | | 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.
* python: changed the severity of function tracing messagesMichal Minar2013-10-101-7/+8
| | | | | | 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.
* python: allow to disable tracing decoratorsMichal Minar2013-10-101-5/+23
| | | | | | | | | | | | 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.
* Fix JobManager thread shutdown.Jan Safranek2013-10-091-1/+1
| | | | The thread did not stop when AttributeError occured.
* python: support for older versions of python (2.6)Michal Minar2013-09-251-73/+67
| | | | | | 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.
* Fixed logging of debug messages.Jan Safranek2013-09-191-1/+1
| | | log_debug() takes only 'msg' as parameter.
* Priority of traces should be lower than priority of DEBUG log messagesRadek Novacek2013-09-191-6/+8
|
* logging improvements and fixMichal Minar2013-09-121-14/+37
| | | | | | | | | 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.
* python: improved loggingMichal Minar2013-08-271-3/+11
| | | | | | | | 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.
* python: redone cmpi_loggingMichal Minar2013-08-234-186/+381
| | | | | | | | | | | | | | | 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.
* Work around Pegasus not being able to handle instances of unknown classes.Jan Safranek2013-08-061-13/+25
| | | | | | | | | | | | | | 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.
* openlmi-python: split python packageMichal Minar2013-07-305-0/+3096
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'