summaryrefslogtreecommitdiffstats
path: root/src/software/openlmi
Commit message (Collapse)AuthorAgeFilesLines
* fixed GetInstance on AffectedSoftwareJobElementMichal Minar2013-05-101-1/+1
| | | | | passed wrong parameter to function, when handling association to Linux_ComputerSystem
* fixed method invocation of SoftwareInstallationServiceMichal Minar2013-05-101-11/+10
| | | | | Undefined variable used in logging statement would generate error for installation from URI.
* support for method parameters and pre/post indicationsMichal Minar2013-05-108-76/+305
| | | | | | | | Added input and output parameters to LMI_SoftwareInstallationJob. Added PreCallIndication and PostCallIndication properties to LMI_SoftwareMethodResult containg CIM_InstMethodCall indication instances - that are rather useless but mandatory by Job Control Profile.
* fixed output parameter name of GetError methodMichal Minar2013-04-261-1/+1
|
* Revert "Merge branch 'software-indications' of ↵Michal Minar2013-04-261-1/+1
| | | | | | | ssh://git.fedorahosted.org/git/openlmi-providers into software-indications" This reverts commit 0f9da4ac91a0acb2c53d19ca1ec345c07a5043fb, reversing changes made to 217acf2c624b99db7335acb0aa50d92efcb368a8.
* updated doc comments for cimom callbacksMichal Minar2013-04-261-4/+62
| | | | | cimom callbacks for filter enablement have misleading param names and miss proper doc
* modified indication filtersMichal Minar2013-04-262-75/+13
| | | | | | | | | | | | | | | | | | And moved software static filters to shared JobManager. Indication filters now reflect the name of indication class, which is instrumented by particular provider. This ensures, that cimom knows, which provider to call and does not bother the others. So instead of selecting indication instances from general class CIM_InstModification, it will be LMI_SoftwareInstModification. This is a common pattern for indication queries. Avoided another shortcoming of sfcbmof parser: /* comment */ something useful is also ignored :-( Static filters of JobManager made more generic for any provider to use. Software jobmanager is now using them. This reduces redundation of code.
* fixed error handling upon method params checkMichal Minar2013-04-261-1/+1
|
* fixed enumeration of repository associationsMichal Minar2013-04-221-2/+2
|
* logging improvementsMichal Minar2013-04-113-8/+31
| | | | | this relates mostly to YumWorker separated process that does not use cmpi_logging
* added support for indications to software providersMichal Minar2013-04-115-5/+46
| | | | | | | Only static indication filters listed in mof/LMI_SoftwareIndicationFilters.mof are supported. They should be installed at rpm package installation, so user can use them for subscriptions.
* docu updated and fixed on some placesMichal Minar2013-04-115-8/+104
| | | | also some tab/spaces fixes
* added LMI_ to classnames prefix for to key propertiesMichal Minar2013-04-118-19/+19
| | | | | | | | | | | previous pattern of key properties: LMI:ShortClassName:* replaces with LMI:FullClassName:* where FullClassName = "LMI_" + ShortClassName
* added indication manager to openlmi.commonMichal Minar2013-04-111-4/+229
| | | | | | | | | | | | IndicationManager python module is useful for many providers across OpenLMI project. That's why it's landing in openlmi.common subpackage from openlmi-storage. It supports checking for static filters IndicationManager allows to check and install static filters at broker at runtime - but it should be avoided filters should work also under sfcbd
* moved singletonmixin module to shared subpackageMichal Minar2013-04-082-562/+2
| | | | | singletonmixin python module moved under openlmi.common from software source tree. This allows it to be shared be other OpenLMI projects.
* added association providerMichal Minar2013-03-263-0/+388
| | | | | | | added provider: * LMI_SoftwareInstallationServiceAffectsElement associating SoftwareInstallationService to Linux_ComputerSystem and SoftwareIdentity
* new association providersMichal Minar2013-03-264-0/+508
| | | | | | new providers: * LMI_AssociatedSoftwareInstallationServiceCapabilities * LMI_HostedSoftwareInstallationService
* fixed get instance of AffectedSoftwareJobElementMichal Minar2013-03-261-3/+13
|
* added LMI_SoftwareInstallationServiceCapabilities providerMichal Minar2013-03-263-0/+522
|
* minor enhancementsMichal Minar2013-03-262-9/+5
| | | | | fixed a typo and speeded up get_instance of LMI_InstalledSoftwareIdentity
* small comments and spaces cleanup, removed tabsMichal Minar2013-03-262-18/+5
| | | | removed redundant spaces in mof
* fixed concurrency issueMichal Minar2013-03-261-5/+25
| | | | | readded _replies dictionary to YumDB client to cache answers from YumWorker process, that can change the order of jobs to process
* added new providersMichal Minar2013-03-216-0/+1157
| | | | | | | | | | providers added: * LMI_AffectedSoftwareJobElement * LMI_AssociatedSoftwareJobMethodResult * LMI_OwningSoftwareJobElement * LMI_SoftwareMethodResult subclassed job classes defined in LMI_Jobs.mof
* various enhancementsMichal Minar2013-03-2114-134/+159
| | | | | | | | | | | | | | consistent access to Package's version and release attributes - all 'ver' and 'rel' replaced to full names added tracing decorators to some functions providers having Values class under core subpackage now reference it with self.values property Identity.pkg2model now accepts also nevra as string removed tabs in source code
* Merge remote-tracking branch 'origin/master' into software-smashMichal Minar2013-03-2031-623/+623
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/software/cli/software.py src/software/openlmi/__init__.py src/software/openlmi/software/LMI_HostedSoftwareIdentityResource.py src/software/openlmi/software/LMI_SoftwareFileCheck.py src/software/openlmi/software/LMI_SoftwareInstalledPackage.py src/software/openlmi/software/LMI_SoftwarePackage.py src/software/openlmi/software/__init__.py src/software/openlmi/software/cimom_entry.py src/software/openlmi/software/core/ComputerSystem.py src/software/openlmi/software/core/SoftwareFileCheck.py src/software/openlmi/software/core/SoftwareInstalledPackage.py src/software/openlmi/software/core/SoftwarePackage.py src/software/openlmi/software/core/SoftwarePackageChecks.py src/software/openlmi/software/core/__init__.py src/software/openlmi/software/util/__init__.py src/software/openlmi/software/yumdb/__init__.py src/software/openlmi/software/yumdb/errors.py src/software/openlmi/software/yumdb/jobs.py src/software/openlmi/software/yumdb/packagecheck.py src/software/openlmi/software/yumdb/packageinfo.py src/software/openlmi/software/yumdb/process.py src/software/test/base.py src/software/test/rpmcache.py src/software/test/run.py src/software/test/test_software_file_check.py src/software/test/test_software_installed_package.py src/software/test/test_software_package.py
| * Happy New Year! (better later than never)Jan Synacek2013-03-1320-20/+20
| |
* | happy new yearMichal Minar2013-03-2029-29/+29
| | | | | | | | welcome 2013! in our source code
* | changed LMI:* prefixes in key propertiesMichal Minar2013-03-202-5/+5
| | | | | | | | to avoid id collisions with other OpenLMI classes
* | added new providers, allowed for asynchronous jobsMichal Minar2013-03-2023-361/+4680
| | | | | | | | | | | | new providers: LMI_SoftwareInstallationJob LMI_SoftwareInstallationService
* | added association providers for SoftwareIdentityResourceMichal Minar2013-03-045-90/+440
| | | | | | | | simplified writing references() method of any association provider
* | lot of bugfixes in communicationMichal Minar2013-02-2611-188/+399
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | communication: * now the client can detect YumWorker's early termination and restart it * session level is counted on client and server side - this allows to restore session state, when process is restarted * minimized session nesting on server to 1 at max - thanks to counter on client side - reduces communication traffic * improved logging api changes: * PackageInfo's pkgid renamed to objid * Repository's name renamed to repoid caption renamed to name * added include_repos and exclude_repos to YumDB methods, where it makes sense other bugfixes: * fixed issues with repo enable * assigning None to Instance properties with CIMProperty values instead of skipping the value assignment to prevent using old reference to value allowed for repository management - enable/disable allowed to list/filter packages of particular repositories added filter for packages to match those belonging to repository testing: * improved testing speed using run.py script * removed unfinishable tests
* | added LMI_SoftwareIdentityResource providerMichal Minar2013-02-189-3/+1368
| | | | | | | | now it's possible to list and manage repositories
* | disabled devel - loggingMichal Minar2013-02-141-2/+2
| |
* | more code shared thanks to path checking partitioningMichal Minar2013-02-133-19/+35
| |
* | fixed wrong thread synchronizationMichal Minar2013-02-132-4/+11
| | | | | | | | job could not be finished on rare occasions
* | new association provider LMI_InstalledSoftwareIdentityMichal Minar2013-02-132-1/+313
| |
* | initial phase of rewrite for SMASH profileMichal Minar2013-02-1321-2354/+1457
|/ | | | | currently only a subset of Software Inventory profile is supported * listing available packages
* logging improvementsMichal Minar2013-02-051-0/+11
| | | | | | made tracing message for function exit match the entry one added threading related logging for YumDB
* new subpackage openlmi.common created for sharing codeMichal Minar2013-02-049-214/+11
| | | | | | | | openlmi.common subpackage allows to share code accros various OpenLMI provider packages. Currently there is a cmpi_logging.py module. Resolves: #71 in openlmi trac -- Make common package under openlmi namespace for utilities shared accross python providers.
* rewritten for safe execution of transactionsMichal Minar2013-02-0420-1541/+3239
| | | | | | | | | | | | | | | | | | | | | | | Made separate process openlmi.software.yumdb.process.YumWorker for calls to yum API. Its client openlmi.software.yumdb.YumDB communicates with it via synchronnous queues - uplink and downlink. Resolves: #63 in openlmi trac -- yum API not useable, while changing thread_id) Resolves: #33 in openlmi trac -- Install/remove package Common functionality of providers moved under openlmi.software.core subpackage to make them easily accessible from other providers without cyclic dependencies. Improved logging with cmpi_logging module. openlmi.software.cimom_entry module now is the only module loadable by cmpi-bindings. It sets up providers and maps them by their name. New subpackages: openlmi.software.core openlmi.software.yumdb
* fixed test selection, when launching tests with runMichal Minar2012-12-131-14/+28
| | | | | | | | | | | | | | | | particular tests can be selected like this: * # runs all tests defined by this test case ./run.py -- TestSoftwarePackage * # runs single test defined by TestSoftwarePackage TestCase ./run.py -- TestSoftwarePackage.test_get_instance added comments for each assert made results of tests a lot more readable different file mode for symlinks passes like in rpm -V increased number of packages for testing to 5
* fixed package sorting errorsMichal Minar2012-12-073-8/+5
| | | | | Wrong package could be selected for update due to wrong sorting mechanism.
* fixed most of pylint errorsMichal Minar2012-11-295-480/+454
| | | | | | | | | also modified mof, so it's better parseable greatly reduced pylint errors and warnings LMI_SoftwareInstalledPackage now returns reference to Linux_ComputerSystem instead of CIM_ComputerSystem
* added pylintlmi checker for python source checkingMichal Minar2012-11-289-0/+3133
pylintlmi uses pylint (python source code checking utility) - giving it custom configuration for openlmi project and plugins with additional checks for usage see src/software/README renamed directory "src/software/providers" to "src/software/openlmi/software" * allows installation to custom PYTHONPATH together with openlmi-python egg * that also allows running pylint on sources in devel directory without messages like: W0403: 28,0: Relative import 'openlmi.software.core', should be 'openlmi.software.openlmi.software.core' E0611: 28,0: No name 'software' in module 'openlmi' F0401: 28,0: Unable to import 'openlmi.software.core'