summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* fan: added documentationMichal Minar2013-10-187-0/+690
|
* software: make the admin documentation the same wayMichal Minar2013-10-1813-6/+8
| | | | | | Let's not deviate from other providers by having '_build' directory. Also moved the sources to source directory - just like the other providers.
* software: decorate function correctlyMichal Minar2013-10-183-6/+8
| | | | | | | Preserve the attributes of function being wrapped when creating a wrapper in decorator. Also removed redundant logging.
* 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.
* service: fix syntax error in tests (true -> True)Radek Novacek2013-10-171-1/+1
|
* software: Use LANG=C when calling yum repoinfoRadek Novacek2013-10-171-1/+1
| | | | | Big number are displayed as 12,345 which breaks the parsing, with LANG=C they're displayed as 12345 and parsed correctly.
* account: Fix invalid change from migration from Linux_ to PG_Radek Novacek2013-10-171-1/+1
|
* power: Disable debug print to stderrRadek Novacek2013-10-171-3/+0
|
* power: Fix InstanceIDs to follow OpenLMI standard schemeRadek Novacek2013-10-175-7/+21
|
* Use the same heading, theme and conditional class tree and reference for all ↵Jan Safranek2013-10-174-14/+24
| | | | providers.
* power: Fetch definition of Implemented qualifier to konkretcmpiRadek Novacek2013-10-171-0/+1
|
* power: Fix memory leakRadek Novacek2013-10-172-0/+2
|
* power: Replace fprintf with debug()Radek Novacek2013-10-171-4/+6
|
* power: Add documentation for power providerRadek Novacek2013-10-1711-0/+588
|
* Hardware: Created documentationPeter Schiffer2013-10-167-0/+725
|
* realmd: Fix documentation theme pathTomas Bzatek2013-10-151-1/+1
|
* documentation: extended configuration sectionMichal Minar2013-10-151-0/+4
|
* journald: Adapt to recent global logging changesTomas Bzatek2013-10-157-4/+35
|
* journald: Add tests for new records writingTomas Bzatek2013-10-151-0/+43
|
* journald: Support writing new recordsTomas Bzatek2013-10-153-1/+142
| | | | | | | | | | | | | | | | | | | This change adds ability to report new messages in the journal log. This is done by the LMI_JournalLogRecord.CreateInstance() method call taking only CreationClassName, LogCreationClassName, LogName and DataFormat key properties as mandatory, with no need to specify the MessageTimestamp and RecordID key properties. The returned instance will contain all the information with actual RecordID key property of the new record. As long as sd_journal_send() actually only queues the request, we need to watch for journal changes in order to find the new record. This is quite unfortunate as the daemon could be busy and we can't wait forever. Messages are available immediately usually, a timeout is set to 5 seconds for the moment. Record matching is done by comparing the message itself, the origin function name and PID. This brings sufficient amount of confidence though more sophisticated approach may be needed in future to ensure full uniqueness.
* journald: Update tests to match modified message formatTomas Bzatek2013-10-151-1/+1
| | | | | The commit c7777bfa1b1114fd9d changed format of the message we expose to include process name and PID so let's update our tests accordingly.
* journald: Add iterator testsTomas Bzatek2013-10-153-1/+188
| | | | | | | Tests basic iterator operations, assumes accessible journal and several (> 10) records available. Also comes with a simple example script for downloading complete journal.
* journald: Add support for iteratorsTomas Bzatek2013-10-153-13/+462
| | | | | | | | | | | | | | | | | | | | | | | | | This implements CIM_MessageLog iterator functionality according to the model. The only limitation, or, let's say shortcoming, is a free-form output data format from the GetRecord call. Currently we feed the uint8 array with UTF-8 chars and it's up to the client to deal with it (as suggested in the model). This may be subject to change. Many methods are returning modified iterator that has been passed in and that allows having persistent iterators. As long as CIMOMs may destroy the instances and unload providers on inactivity, any particular delay would cause loss of the iterator. The iterator string contains journal cursor string, uniquely identifying a record. When this part of the iterator string is valid, the provider is able to reopen journal and seek to that position, allowing seamless continuation of the itearation process. If the cursor points to non-existing record, an error is returned. This typically happens when journal is rotated or the cursor is very old. The provider keeps track of active iterators during its lifetime, keeping the journal open for fast access. Clients are supposed to close the iterator by calling the CancelIteration method.
* journald: Include process name and PID in the messageTomas Bzatek2013-10-151-3/+28
| | | | Let's be consistent with traditional syslog message format.
* journald: Map the PRIORITY field to CIM_RecordForLog.PerceivedSeverityTomas Bzatek2013-10-151-0/+39
| | | | | | | | | | | | | | | Records in journal may contain syslog-style priority value so let's use them. Unfortunately mapping the particular values between syslog and CIM classes is not linear, manual mapping is needed. The LOG_ERR may also map to PerceivedSeverity = Major but it's kept on Minor for the moment. If no such information is provided by the Journal, the CIM property is left unset for the particular record. See e.g. http://schemas.dmtf.org/wbem/cim-html/2.34.0/CIM_RecordForLog.html for valuemap description.
* journald: Use lmi logging infrastructure for error messagesTomas Bzatek2013-10-156-11/+19
|
* journald: Add indicationsTomas Bzatek2013-10-158-0/+539
| | | | Also contains simple test suite to test indications.
* journald: Basic provider implementationTomas Bzatek2013-10-1511-0/+1159
| | | | | | | | This is a fully functional basic implementation of the provider. Maximum number of enumerated instances is limited, see the code. TODO list: https://fedorahosted.org/openlmi/ticket/142
* realmd: Fix unchecked resultTomas Bzatek2013-10-141-1/+3
| | | | | | | | Found by Coverity Scan. The change is really not needed, the iter variable is initialized NULL and subsequent g_variant_iter_next() call should return immediately, preventing the cycle to run. But, just to be on a safe side...
* Realmd: add documentationTomas Smetana2013-10-146-0/+487
|
* 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.
* software: removed TODOMichal Minar2013-10-101-6/+0
| | | | use track instead
* software: added configuration section to docMichal Minar2013-10-102-0/+152
|
* software: documentation improvementsMichal Minar2013-10-107-0/+506
| | | | Added a short introduction to OpenLMI Software provider documentation.
* software: doc improvementsMichal Minar2013-10-101-5/+6
| | | | specified regular expression for Version and Release properties
* hardware: allow compilation for older cim-schemaMichal Minar2013-10-101-0/+10
| | | | | | | Compilation fails with older schema (preceding 2.38.0) because of missing Values in CIM_Processor::Family's qualifiers. Let's check whether the values get generated by konkret and fallback to custom defines.
* software: adjust the config commentMichal Minar2013-10-101-1/+4
| | | | | Add a note about the need to change the SystemClassName in config when sfcb is used.
* software: fixed regular expressions matching identityMichal Minar2013-10-101-7/+8
| | | | | Regular expressions could parse nevra and envra strings wrongly. Also increased the rebustness of checks for SoftwareIdentity::InstanceID.
* Merge branch 'devel/fix-thread-shutdown'Jan Safranek2013-10-101-1/+1
|\
| * Fix JobManager thread shutdown.Jan Safranek2013-10-091-1/+1
| | | | | | | | The thread did not stop when AttributeError occured.
* | service: remove unused variableJan Synacek2013-10-091-4/+3
| |
* | realmd: don't define own ORGIDJan Synacek2013-10-091-1/+1
| | | | | | | | | | There is no reason to define own ORGID. Use the common one. Fixes some compilation warnings.
* | fan: coverity fixesMichal Minar2013-10-091-48/+41
|/
* Use PG_ComputerSystem by default.Jan Safranek2013-10-0920-42/+42
| | | | | | | And get rid of sblim-cmpi-base dependency. It would be nice if our tests have an option to select Linux_ComputerSystem or PG_ComputerSystem in the future...
* hardware: fix buildJan Synacek2013-10-091-2/+0
| | | | | This commit sort of reverts commit 657e5bfee810e4a51b33ffd401aa307862491423.
* logicalfile: more intrinsic methods for LMI_RootDirectoryJan Synacek2013-10-092-3/+56
| | | | Add EnumerateInstances() and GetInstance().
* parse_config: Don't reuse already initialized GError structTomas Bzatek2013-10-091-2/+4
| | | | | | | | | | Setting an error on top of an existing error is considered a programmer's bug, possibly leaking memory. So do proper cleanup before reusing that variable. Also, errors set while retrieving keys and values are not checked anywhere so let's just don't set them. Returned NULL values in case of error should be enough to skip the particular value.
* Service: Fix. Use verify_server_cert=False while connection.Robin Hack2013-10-091-2/+2
|
* Service: Add new test case to QA upstream test.Robin Hack2013-10-091-3/+20
|