summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Release 0.4.00.4.0Tomas Bzatek2013-10-152-3/+101
| | | | | | Added journald provider and also missing doc subpackages. Signed-off-by: Tomas Bzatek <tbzatek@redhat.com>
* realmd: Fix documentation theme pathTomas Bzatek2013-10-151-1/+1
|
* journald: Bump revision to 0.4.0 for the upcoming releaseTomas Bzatek2013-10-151-4/+4
|
* documentation: extended configuration sectionMichal Minar2013-10-152-19/+70
|
* documentation: make the build process less pickyMichal Minar2013-10-152-23/+26
| | | | | | Allow to specify workspace directory, where the local git checkouts are located. Also do not depend on installed openlmi-providers-devel package when all we need is in this repository.
* spec: removed duplicit documentation from subpackagesMichal Minar2013-10-151-1/+3
| | | | | | | %doc macro with just file names listed in the main packages causes whole doc directory to be included. That caused the presence of OpenLMI Account documentation both in openlmi-providers and openlmi-account-doc packages.
* 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: Add tests path in a global nosetests.cfgTomas Bzatek2013-10-151-1/+1
|
* 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-159-0/+545
| | | | Also contains simple test suite to test indications.
* journald: Basic provider implementationTomas Bzatek2013-10-1513-0/+1224
| | | | | | | | 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-0921-44/+44
| | | | | | | 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...
* Added documentation of openlmi.conf file.Jan Safranek2013-10-092-0/+66
| | | | | | This applies only to the top level combined documentation, if a provider introduces its own config file and options, it still must be mentioned in the provider's docs.
* 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
|
* hardware: fixed buildMichal Minar2013-10-081-1/+3
| | | | LMI_Processor_Family_Other was undefined
* spec: added openlmi-software-doc packageMichal Minar2013-10-081-2/+18
| | | | Install software's documentation in a separate package.
* added admin documentation for softwareMichal Minar2013-10-087-0/+1345
|
* python: version bump of python providersMichal Minar2013-10-083-3/+3
| | | | Bumped version in setups to 0.3.0.
* Service: Add documentationVitezslav Crhonek2013-10-086-0/+488
|
* logicalfile: fix resource leak and logicJan Synacek2013-10-081-1/+2
|
* software: fixed exception handlingMichal Minar2013-10-041-1/+1
|
* software: docstrings updateMichal Minar2013-10-041-30/+40
|
* software: fix startupMichal Minar2013-10-041-3/+9
| | | | | | It may happen that get_providers are called twice in single python process. Let's prevent an error to be raised due to double instantiation of IndicationManager which is a singleton.