summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* journald: Properly handle journal EOFTomas Bzatek2014-04-184-21/+95
| | | | | | | | | | | | | | | | | | | The logic of handling EOF is incompatible between journald API and CIM_MessageLog model we use. The CIM_MessageLog.GetRecord() method allows stepping to the next record after data retrieval but there's no specific return code for the EOF case. And returning failure code makes the client application think the whole data retrieval has failed and thus throwing away the last record. To work around this case, a new flag has been introduced to the IterationIdentifier string, which is considered opaque to the client. That way we return success from the GetRecord() method call and putting a flag to the IterationIdentifier string so that any successive GetRecord() method call properly fails without any data loss. Care is taken of the case when a new message is logged between the GetRecord() calls. This commit also adds the CIM_MessageLog.PositionToLastRecord() method for convenient access to the end of the journal.
* Software-dbus: refactor & cleanup 2Peter Schiffer2014-04-184-222/+166
|
* Update job_request decorator for Python 2.6Jan Safranek2014-04-171-2/+4
| | | | | There is no inspect.callargs there, so we must assume that 'async' is in kwargs.
* Update job_handler decorator for Python 2.6Jan Safranek2014-04-171-8/+16
| | | | | | There is no inspect.callargs there. As a simple workaround, 'job' must be the first parameter in decorated method.
* Fixed loading of logging config.Jan Safranek2014-04-172-2/+2
| | | | | - use correct config file path - read correct config file item
* Software-dbus: refactor & cleanupPeter Schiffer2014-04-175-202/+214
|
* Service-legacy (non d-bus):Vitezslav Crhonek2014-04-175-5/+78
| | | | | | - Add support for building service-legacy provider into cmake files (OFF by default) - Add service-legacy mof file (no indications, builds with older cmake) - Fix service enumeration (use chkconfig)
* Merge branch 'master' of ssh://git.fedorahosted.org/git/openlmi-providersAles Ledvinka2014-04-162-2/+2
|\
| * Software-dbus: fix resolving of older packagesPeter Schiffer2014-04-152-2/+2
| | | | | | | | | | | | Function pk_task_resolve_sync() won't return all versions of required package, so this patch replaces this function with pk_task_search_names_sync() which returns all versions of given package.
* | Merge branch 'master' of https://git.fedorahosted.org/git/openlmi-providersAles Ledvinka2014-04-161-3/+16
|\|
| * Disable the openlmi-devassistant subpackage on rhelTomas Bzatek2014-04-151-3/+16
| | | | | | | | | | RHEL 7.0 comes with a rather old devassistant package version than we require so let's disable DevAssistant support for OpenLMI temporarily.
* | python 2.6 newclassAles Ledvinka2014-04-161-1/+1
| |
* | Merge branch 'master' of https://git.fedorahosted.org/git/openlmi-providersAles Ledvinka2014-04-153-14/+15
|\|
| * power: use proper poweroff/reboot commands with sysvinitRadek Novacek2014-04-101-3/+3
| | | | | | | | The commands/options that were used are not compatible with sysvinit.
| * power: check if connection to Logind DBus is validRadek Novacek2014-04-101-9/+10
| |
| * fix for older versions of cmakeRadek Novacek2014-04-102-2/+2
| | | | | | | | | | Older versions of cmake needs to have absolute path in the destination paremeter of configure_file command.
* | python 2.6 compatibility. fix conversion of string into character set error.Ales Ledvinka2014-04-155-29/+29
| |
* | python2.6 review one omissionAles Ledvinka2014-04-141-3/+3
| |
* | python2.6 syntax conversion, review comments for set performanceAles Ledvinka2014-04-144-8/+8
| |
* | python2.6 support, review comment performance of set([])Ales Ledvinka2014-04-149-53/+53
| |
* | python2.6 software providerAles Ledvinka2014-04-118-20/+20
|/
* Service-dbus: Improve EnumerateInstances efficiencyVitezslav Crhonek2014-04-103-15/+249
|
* Add missing pthread.h inclusionRadek Novacek2014-04-091-0/+1
|
* Service (non d-bus): Use mkstemp instead of mktemp and minor updatesVitezslav Crhonek2014-04-085-16/+71
|
* Software-dbus: implemented MemberOfSoftwareCollectionProviderPeter Schiffer2014-04-045-90/+750
|
* Software-dbus: implemented HostedSoftwareCollectionProviderPeter Schiffer2014-03-311-3/+41
|
* devassistant: Add a subpackage to the spec fileTomas Bzatek2014-03-281-3/+20
|
* Software-dbus: enhanced error reportingPeter Schiffer2014-03-284-35/+66
|
* Software-dbus: Implemented SoftwareIdentityResourceProviderPeter Schiffer2014-03-272-4/+183
|
* Software-dbus: implemented LMI_SystemSoftwareCollectionProviderPeter Schiffer2014-03-264-6/+46
|
* Software-dbus: Implemented SoftwareIdentity ProviderPeter Schiffer2014-03-265-13/+584
| | | | Implemented SoftwareIdentity Provider in Software-dbus using PackageKit.
* Fix incorrect array length when reading provider config optionsRadek Novacek2014-03-252-30/+20
| | | | | Use NULL terminated array instead of obtaining array length using sizeof (which doesn't work in this case).
* account: Add tests for invalid system filesAlois Mahdal2014-03-252-1/+570
| | | | | | Each test creates an instance it LMI_Account, then intentionally cripples one of system files related to users/groups, and performs a simple sanity test that checks if instance properties are readable.
* Software-dbus: started new software-dbus providerPeter Schiffer2014-03-1427-0/+4345
|
* 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.
* Account: Try to make coverity happy.Robin Hack2014-03-051-3/+5
| | | | Fix nonsense if statement in indication_common.c.
* account: Added test for race conditionsAlois Mahdal2014-02-273-0/+406
| | | | | | | | Based on bug 1061153, these tests attempt to create, modify or delete users from a number of threads. Clean up is done by reverting backup of /etc/passwd, /etc/groups, /etc/shadow and /etc/gshadow.
* devassistant: Add C and Python provider templatesTomas Bzatek2014-02-2521-0/+1594
| | | | | | This commit introduces basic Developer Assistant support for generating C and Python OpenLMI providers. Turned off by default, enable with -DWITH-DEVASSISTANT=ON cmake argument.
* Hardware: documented temperature field for Disk DrivePeter Schiffer2014-02-141-0/+1
|
* Hardware: added VirtualMachine field to the Chassis providerPeter Schiffer2014-02-146-3/+106
|
* Account: Race conditions fixes (like: bz#1061150)Robin Hack2014-02-135-87/+149
| | | | | | | | | This patch solves: * Avoid race conditions with shadow-utils. * Avoid race condition with libuser: uid/gid "sharing" amoung users/groups. * Fix deadlock in lock.c code. This patch introduces giant lock which is held for all write operations.
* Providers: Enable hardware provider tests.Robin Hack2014-02-131-1/+1
|
* Hardware: added temperature to the DiskDriveProviderPeter Schiffer2014-02-104-1/+21
|
* logicalfile: fix GetInstance() on a socket fileJan Synacek2014-02-101-0/+3
|
* Hardware: minor CPU provider updatesPeter Schiffer2014-02-062-6/+20
| | | | | * added cpu name fallback to ProcessorChip class * added stepping fallback for virtual CPUs to Processor class
* Hardware: use unknown RPM value if real value is unavailablePeter Schiffer2014-02-051-3/+8
|
* Hardware: don't set ConfiguredMemoryClockSpeed if it's unknownPeter Schiffer2014-02-051-2/+4
|
* Hardware: better cpu name fallbackPeter Schiffer2014-02-041-1/+5
|
* Hardware: fixed memory leakPeter Schiffer2014-02-041-0/+2
|
* Hardware: updated tests READMEPeter Schiffer2014-02-041-7/+10
|