| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
| |
singletonmixin python module moved under openlmi.common from software
source tree. This allows it to be shared be other OpenLMI projects.
|
| |
|
|
|
|
|
|
|
| |
added provider:
* LMI_SoftwareInstallationServiceAffectsElement
associating SoftwareInstallationService to Linux_ComputerSystem
and SoftwareIdentity
|
|
|
|
|
|
| |
new providers:
* LMI_AssociatedSoftwareInstallationServiceCapabilities
* LMI_HostedSoftwareInstallationService
|
| |
|
| |
|
|
|
|
|
| |
fixed a typo and speeded up get_instance of
LMI_InstalledSoftwareIdentity
|
|
|
|
| |
removed redundant spaces in mof
|
|
|
|
|
| |
readded _replies dictionary to YumDB client to cache answers from YumWorker
process, that can change the order of jobs to process
|
|
|
|
| |
updated README
|
|
|
|
|
|
|
|
|
|
| |
providers added:
* LMI_AffectedSoftwareJobElement
* LMI_AssociatedSoftwareJobMethodResult
* LMI_OwningSoftwareJobElement
* LMI_SoftwareMethodResult
subclassed job classes defined in LMI_Jobs.mof
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| | |
|
| |
| |
| |
| | |
welcome 2013! in our source code
|
| |
| |
| |
| | |
to avoid id collisions with other OpenLMI classes
|
| |
| |
| |
| |
| |
| | |
new providers:
LMI_SoftwareInstallationJob
LMI_SoftwareInstallationService
|
| |
| |
| |
| | |
simplified writing references() method of any association provider
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| | |
now it's possible to list and manage repositories
|
| | |
|
| | |
|
| |
| |
| |
| | |
job could not be finished on rare occasions
|
| | |
|
|/
|
|
|
| |
currently only a subset of Software Inventory profile is supported
* listing available packages
|
|
|
|
|
|
| |
made tracing message for function exit match the entry one
added threading related logging for YumDB
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
* handle '*' in yum repolist
* select pkg database from 5 times required number of packages
|
| |
|
|
|
|
|
| |
all methods, functions and modules including 'test' in their name
and not intended to be run by nosetests renamed
|
|
|
|
| |
fixed syntax error
|
|
|
|
|
| |
Wrong package could be selected for update due to wrong sorting
mechanism.
|
|
|
|
|
|
|
|
|
| |
All tests are invocable from single script called "run_tests.py" and
as standalone-modules as well.
Its behaviour is modifiable through environment variables according
to TestGuidelines. run_tests.py can be passed arguments instead.
Package database is not fixed anymore. Instead it's generated
automatically for system, where tests are triggered.
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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'
|
| |
|
| |
|
| |
|
|
|
|
|
| |
This is aimed to be a common package for all openlmi python providers.
It allows using fully-qualified imports in provider source packages.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Checkum property of LMI_SoftwareFileCheck had different type than
in base class. This prevented registration.
- Solved by renaming:
Checksum -> FileChecksum
ExpectedChecksum -> ExpectedFileChecksum
ChecksumType -> FileChecksumType
fixed filtering of found available and installed packages
- search by nevra replaced with search for particular keys
|
| |
|
| |
|
|
|
|
|
| |
corrected some corner cases, when getting/modifying instance with
wrong or missing keys
|
|
|
|
| |
bumped version
|
|
renamed LMI_Yum* to LMI_Software*
removed attributes GroupString and LicenseString from LMI_SoftwarePackage
modified attributes Group, Architecture and License of
LMI_SoftwarePackage to return string instead of Uints
- because values and valuemaps would need frequent updates
|