summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* fan: add FindLMSensors.cmake for finding lm_sensorsRadek Novacek2013-09-261-0/+2
| | | | | This file is required for enforcing that lm_sensors-devel is installed when building the provider from sources.
* 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.
* Merge branch 'master' of ssh://git.fedorahosted.org/git/openlmi-providersPeter Schiffer2013-09-25108-401/+1627
|\ | | | | | | | | | | | | | | Conflicts: src/hardware/LMI_PCIBridgeProvider.c src/hardware/LMI_PCIBridgeSystemDeviceProvider.c src/hardware/LMI_PCIDeviceProvider.c src/hardware/LMI_PCIDeviceSystemDeviceProvider.c
| * account: Allow to set plain text passwordRoman Rakus2013-09-202-1/+65
| | | | | | | | | | | | libuser has a mechanism to encrypt password Signed-off-by: Roman Rakus <rrakus@redhat.com>
| * Fixed logging of debug messages.Jan Safranek2013-09-191-1/+1
| | | | | | log_debug() takes only 'msg' as parameter.
| * logicalfile: add documentationJan Synacek2013-09-196-0/+610
| |
| * Priority of traces should be lower than priority of DEBUG log messagesRadek Novacek2013-09-192-7/+9
| |
| * power: Fix crash in power providerRadek Novacek2013-09-191-1/+2
| |
| * Call lmi_init function from providersRadek Novacek2013-09-1990-2/+157
| |
| * Improve logging in C providersRadek Novacek2013-09-192-11/+89
| | | | | | | | | | | | | | | | | | Use CMLogMessage instead of CMTraceMessage for each message with level > ERROR. The logging level is now read from the config file. The Stderr option for logging to stderr in now also honored.
| * logicalfile: code cleanup and rewriteJan Synacek2013-09-1812-161/+310
| | | | | | | | | | | | | | | | | | | | GetInstance() calls were rewritten using cleaner code. Also, the macros that were used before were either rewritten to functions, or cleaned up so they wouldn't return or do anything unexpected. Helper functions now use CMPIStatus more consistently. Some memory leaks were fixed.
| * Account: Better failure check of lock pool initialization.Robin Hack2013-09-181-1/+2
| |
| * Forgot to add openlmi.conf fileRadek Novacek2013-09-181-0/+22
| |
| * Introduce toplevel openlmi config fileRadek Novacek2013-09-185-22/+221
| | | | | | | | | | | | | | | | | | | | | | | | | | Toplevel openlmi configuration file (/etc/openlmi/openlmi.conf) now contains common configuration options for all providers. Configuration for each provider could be overriden in provider-specific config (/etc/openlmi/$provider/$provider.conf). This patch also modify config file handling in python providers to include this config file. There is also support for C providers (in libopenlmicommon) for reading these config files and providing default configuration options.
| * Service: Propagate error messages, check for invalid (NULL) service names, ↵Vitezslav Crhonek2013-09-173-14/+58
| | | | | | | | fix possible memory leak
| * logicalfile: ignore some key propertiesJan Synacek2013-09-167-175/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | CIM_LogicalFile and CIM_UnixFile have some key properties that are not needed when calling GetInstance(). On Linux systems, all is needed to get information about a file is its path. Type of the filesystem that the file resides on and the file type itself are not needed. In fact, it's not desirable to require those when querying remote systems. Ignore FSCreationClassName, FSName, LFCreationClassName and CreationClassName. This commit reverts most of the functionality of commit 5c3e1a6203e495bec37acd8c3731ca41377beb94.
| * software: fixed critical section problemMichal Minar2013-09-121-2/+2
| | | | | | | | | | Missing notifyAll call on a condition could cause endless waiting for multiple threads.
| * logging improvements and fixMichal Minar2013-09-122-17/+42
| | | | | | | | | | | | | | | | | | 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.
| * logicalfile: warn if udev context creation failsJan Synacek2013-09-121-0/+1
| |
| * Account: Removed unused macro undefinitions.Robin Hack2013-09-111-5/+0
| |
* | Hardware: Move PCI bus initialization to the Initialize() functionPeter Schiffer2013-09-246-69/+109
|/ | | | Move initialize and cleanup code to the Initialize() and Cleanup() functions.
* Account: Added associative thread locking.Robin Hack2013-09-104-0/+242
|
* Service: Fix detection of service stateVitezslav Crhonek2013-09-102-17/+8
|
* software: removed outdated console scriptMichal Minar2013-09-102-245/+6
| | | | | | | | Software cli is outdated and based on pywbem. Now we have openlmi-scripts with a complete script for software profile providing more functionality. Updated TODO.
* python: added license to setup and corrected classifiersMichal Minar2013-09-101-3/+6
| | | | | | | | PyPi requires valid classifiers from: https://pypi.python.org/pypi?%3Aaction=list_classifiers They compared case-sensitively. added pywbem to requires
* software: fixed updating of package done by async methodMichal Minar2013-09-102-3/+4
| | | | Allowed to specify a package as a nevra string.
* fix issues when creating instance for broken repositoryMichal Minar2013-09-101-1/+2
| | | | | If repository has unaccessible metalink, some properties can not be obtained, set them to None.
* fixed getting information about verification jobMichal Minar2013-09-101-1/+1
|
* Hardware: Added PCI_Bridge providerPeter Schiffer2013-09-099-81/+1077
| | | | | | | | | Separated PCI_Bridges from PCI_Devices and provided multiple additional information related to PCI_Bridges. New providers: * LMI_PCIBridgeProvider * LMI_PCIBridgeSystemDeviceProvider
* logicalfile: correctly return an objectpathJan Synacek2013-09-091-1/+1
| | | | | CreateInstance() has to return an objectpath to the created instance. Returning only status made the server stall.
* logicalfile: protect libselinux calls with a mutexJan Synacek2013-09-091-0/+9
|
* logicalfile: use lstat(2) instead of stat(2)Jan Synacek2013-09-061-1/+1
|
* Account: Better return values for methodsRoman Rakus2013-09-051-14/+31
| | | | Signed-off-by: Roman Rakus <rrakus@redhat.com>
* Account: Fix memory leaksRoman Rakus2013-09-051-0/+6
| | | | Signed-off-by: Roman Rakus <rrakus@redhat.com>
* Account: Fix memory corruptionRoman Rakus2013-09-044-67/+117
| | | | | | | | | There was false assumption that lu_end doesn't free error messages. The code is restructured to copy error message to temporary string holder, which is freed after and error message is correctly returned, all in one place. Signed-off-by: Roman Rakus <rrakus@redhat.com>
* Account: Warn about a bug (libuser) in documentation.Roman Rakus2013-09-041-0/+5
| | | | Signed-off-by: Roman Rakus <rrakus@redhat.com>
* Account: Use return CIM_RC_ERR_FAILED instead of exit(1)Roman Rakus2013-09-0410-36/+41
| | | | Signed-off-by: Roman Rakus <rrakus@redhat.com>
* Merge branch 'master' of https://git.fedorahosted.org/cgit/openlmi-providersRobin Hack2013-09-041-0/+27
|\
| * Fix for cim-schema > 2.33Radek Novacek2013-09-031-0/+27
| | | | | | | | There are some new methods in CIM_ConcreteJob
* | Service: Upstream test suite for service-dbus provider.Robin Hack2013-09-032-0/+525
|/
* Realmd: check for possible NULL dereferencesTomas Smetana2013-09-031-1/+9
|
* software: fixed installation of rpm package from uriMichal Minar2013-09-021-2/+2
|
* Account: Remove unused codeRoman Rakus2013-09-021-20/+0
| | | | Signed-off-by: Roman Rakus <rrakus@redhat.com>
* Account: Use constants for method return valuesRoman Rakus2013-09-021-8/+15
| | | | Signed-off-by: Roman Rakus <rrakus@redhat.com>
* Account: Reflect delete user changes in docRoman Rakus2013-09-021-3/+13
| | | | Signed-off-by: Roman Rakus <rrakus@redhat.com>
* Merge branch 'master' of ssh://git.fedorahosted.org/git/openlmi-providersPeter Schiffer2013-09-021-36/+153
|\
| * Account: Fix build error, force -> ForceRoman Rakus2013-09-021-1/+1
| | | | | | | | Signed-off-by: Roman Rakus <rrakus@redhat.com>
| * Account: New delete methodRoman Rakus2013-09-021-47/+147
| | | | | | | | | | | | This method should be used insted of intrinsic DeleteInstace. Signed-off-by: Roman Rakus <rrakus@redhat.com>
| * Account: Don't delete home dir if user is not ownerRoman Rakus2013-09-021-3/+20
| | | | | | | | | | | | | | | | | | Mark DeleteInstance of LMI_Account as deprecated. Delete home dir of user only if the user is owner of that directory. Bugzilla: #999410 Signed-off-by: Roman Rakus <rrakus@redhat.com>
* | Hardware: Get rid of different error return codes.Peter Schiffer2013-08-306-148/+3
|/ | | | | | Different error return code for every failure in function is pretty useless, so, get rid of them. Now, if function exits successfully, 0 is returned. In case of any problem, function returns -1 and prints warning log message.