summaryrefslogtreecommitdiffstats
path: root/src/software
Commit message (Collapse)AuthorAgeFilesLines
...
* software: do not allow infinite resurrectionsMichal Minar2013-11-191-9/+28
| | | | | | | | | | Some jobs may not be completable on some machines. With current algorithm, in case of worker process failure, the terminated process is resurrected and job is restarted. This patch takes into account the number of resurrections done during processing of single job. If this number exceeds some limit, job is thrown away and exception is raised. Resolves: rhbz#1031132
* software: really do unlockMichal Minar2013-11-191-0/+1
| | | | | | | | Cached YumBase instance may keep some objects with active connection to files in yum package database. We need to clean them when unlocking database in order to allow other processes to operate. Resolves: rhbz#1028535
* software: fixed package filteringMichal Minar2013-11-191-1/+1
| | | | | | | When searching for package with a partial name match, other filtering properties were ignored. Resolves: rhbz#1030999
* software: allow tilde presence in package versionKlaus Kämpf2013-11-191-4/+4
| | | | | | | | OpenSUSE distribution uses tilde character (~) in version of their packages a lot. This patch allows to parse such packages. Resolves: bz#1031345 Reported-by: Klaus Kämpf <kkaempf@suse.de>
* software: reload file configuration when changedMichal Minar2013-11-191-3/+2
| | | | | | | Until now repository configuration was reloaded only at the provider start and when the request related to repositories came. Resolves: rhbz#1030831
* software: better cope with termination requestMichal Minar2013-11-082-4/+22
| | | | | | When cimom is terminated or killed and the provider is requested to clean up, let's stop waiting for separated process to complete its jobs and raise an error instead.
* software: fixed termination of JobManagerMichal Minar2013-11-081-1/+2
| | | | | Let's not process any additional jobs when terminating command has been received.
* software: do a proper clean up when terminatingMichal Minar2013-11-081-0/+3
| | | | | | | Separated process did a clean up only when the session ended. But when cimom is suddenly terminated or killed, process can receive terminating command even during the session. Let's clean up yum database and cached objects when that happens.
* software: fixed shutting down of job managerMichal Minar2013-11-081-7/+10
| | | | | | | | | | | When job manager received None command (which says "shut down") it is was enqueued into priority queue where comparison functions did not count with None as a valid object. This does not have inpact on functionality (job manager and YumWorker terminate anyway) but the terminating message is not written into log due to an AttributeError. This modifies comparison function to accept None and give it the highest priority.
* software: fixed logging of YumWorker processMichal Minar2013-11-081-0/+4
| | | | | | | Separated process disables all loggers when starting up because most of them are not needed anymore. That includes tracing function in lmi.base.cmpi_logging. This logger needs to be reenabled in order for trace messages to be logged.
* software: more efficient listing of associatorsMichal Minar2013-11-081-0/+60
| | | | | | | This greatly speeds up listing of associators of LMI_SoftwareIdentityResource. Packages of particular reposity can now be listed in few seconds (for 2000 pkgs large repository) instead of minutes.
* software: speeded up listing installed packagesMichal Minar2013-11-081-0/+54
| | | | | | | | | Listing of installed packages could take several minutes. With overriden and optimized MI_associators method this is reduced to several seconds. Original method calls GetInstance() on each returned object path which is very time consuming operation in this case. This resolves: rhbz#1005803
* software: fixed returned value of tests runnerMichal Minar2013-11-071-1/+1
| | | | | 0 shall be returned on successful run of tests and 1 otherwise. Not the other way round.
* software: optimalize testsMichal Minar2013-11-071-1/+1
| | | | Limit number of randomly selected packages to speed up tests.
* software: skipped two tests0.4.1Michal Minar2013-11-041-0/+2
| | | | | Skipped two unreliable performed on random packages. This is a temporary solution.
* software: fixed a testMichal Minar2013-11-043-10/+19
| | | | | TargetOperatingSystem property is tested also in TestSoftwareIdentityChecks, let's share the code in util module.
* Prepare 0.4.1 releaseRadek Novacek2013-11-041-1/+1
| | | | Also remove dependency on sblim-cmpi-base
* software: skip unreliable testsMichal Minar2013-11-041-0/+2
| | | | | Few tests of LMI_SoftwareIdentityFileCheck are not reliable on randomly selected package. Let's skip them temporarily.
* software: fixed SoftwareIdentityFileCheckMichal Minar2013-11-041-1/+9
| | | | Make sure to check for correct TargetOperatingSystem for rhel.
* software: fixed referents generatorMichal Minar2013-11-041-2/+2
| | | | | LMI_InstalledSoftwareIdentity generated wrong object paths of SoftwareIdentities. System does not belong into its keys.
* software: refactored testsMichal Minar2013-11-0412-722/+506
| | | | | Base software tests on LmiTestCase from lmi.test.base. Use lmi.shell abstractions instead of plain pywbem.
* software: test improvementsMichal Minar2013-11-041-7/+14
| | | | Do not use packages related to openlmi and CIM for testing purposes.
* software: temporarily disabled dangerous testsMichal Minar2013-11-022-2/+4
| | | | | | | Dangerous tests changing yum package database are not reliable because they operate on dynamically changing repositories. This patch temporarily disables them until custom testing repositories are created for the purpose of software tests.
* software: fix querying repository databaseMichal Minar2013-11-021-1/+1
| | | | | Do not presume that any cache is available before call to yum. If the cache is not there, call fails.
* software: ditched reference to removed system_name propertyMichal Minar2013-10-311-1/+6
| | | | | | | | | system_name property has been removed from BaseConfiguration. This replaces remaining reference with access to ComputerSystem module. Silently ignore the first access to get_system_name() when ComputerSystem instance has not been loaded yet. host property is not mandatory.
* software: use shared ComputerSystem moduleMichal Minar2013-10-3119-166/+72
|
* python: bumped egg versions to 0.4.0Michal Minar2013-10-241-1/+1
|
* python: let's not hardcode version in setupsMichal Minar2013-10-243-2/+31
| | | | | | Let's write openlmi version to the main __init__ module of each python egg at build time. This version information is easily accessible from setup scripts.
* minor test improvementsMichal Minar2013-10-2415-14/+26
|
* Rework documentation.Jan Safranek2013-10-1812-2008/+0
| | | | | | | | | | - Everything is in openlmi-providers/doc/admin directory. - 'make doc' automatically builds documentation of all enabled providers. - Documentation shares one 'conf.py' for sphinx. - All documentation uses the same directory structure. There is only one CMakefile.txt to generate all the docs.
* software: Fix doc theme pathTomas Bzatek2013-10-181-1/+1
| | | | A fallout from commit b60cd25e366d
* software: make the admin documentation the same wayMichal Minar2013-10-1812-6/+6
| | | | | | 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.
* 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.
* Use the same heading, theme and conditional class tree and reference for all ↵Jan Safranek2013-10-171-2/+2
| | | | providers.
* documentation: extended configuration sectionMichal Minar2013-10-151-0/+4
|
* 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
* 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.
* Use PG_ComputerSystem by default.Jan Safranek2013-10-099-25/+25
| | | | | | | 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 admin documentation for softwareMichal Minar2013-10-087-0/+1345
|
* python: version bump of python providersMichal Minar2013-10-081-1/+1
| | | | Bumped version in setups to 0.3.0.
* 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.
* software: url check fix in testMichal Minar2013-10-041-3/+3
| | | | Let's ignore trailing slashes when comparing repository urls.
* software: speeded up testsMichal Minar2013-10-046-0/+12
| | | | | Added AssocClass property to Associator(Name)?s calls which limits the number of association classes being enumerated by cimom to 1.