summaryrefslogtreecommitdiffstats
path: root/src/python/lmi/common
Commit message (Collapse)AuthorAgeFilesLines
* openlmi-python: split python packageMichal Minar2013-07-307-3922/+0
| | | | | | | | | | | Split the openlmi-python package to 2: * openlmi-python-base - lmi namespace - functionality for any OpenLMI related python code - contains packages 'lmi' and 'lmi.base' * openlmi-python-providers - common functionality for OpenLMI providers - contains 'lmi.providers'
* moved logging level option to BaseConfigurationMichal Minar2013-07-231-4/+5
|
* python: added BaseConfiguration singleton classMichal Minar2013-07-231-0/+266
| | | | | | Inspired by StorageConfiguration. It loads configuration from /etc/openlmi/<provider_prefix>/*. It needs to be subclassed for particular set of python providers.
* Allow for waiting for jobs.Jan Safranek2013-07-231-0/+16
| | | | | | | | | | | | | Some storage actions needs to be synchronous (because of SMI-S), but can influence running jobs. Imagine asynchronous job for vgreduce to remove /dev/sda1 from a volume group and while it runs, someone creates new partition table on /dev/sda, which is synchronous, as per SMI-S. The running vgreduce won't be happy and some data might get lost. Solution is to put a job to create new partition table to the job queue as usual, and synchronously wait for the job to finish.
* renamed openlmi namespace to lmiMichal Minar2013-07-046-0/+3639
To comply with lmi shell, which is placed in *lmi* package, and to make our imports shorter, we are renaming *openlmi* namespace to *lmi*.