Statistics
| Branch: | Tag: | Revision:

root / lib / storage @ fcbf3d43

Name Size
__init__.py 1.4 kB
base.py 14.1 kB
bdev.py 46.3 kB
container.py 13.9 kB
drbd.py 36.4 kB
drbd_cmdgen.py 15.1 kB
drbd_info.py 15.1 kB
extstorage.py 17.9 kB
filestorage.py 7 kB

Latest revisions

# Date Author Comment
b6e31c23 12/11/2014 12:54 pm Dimitris Aragiorgis

(2.13) Let drbd disks resync during cluster verify

Commit 9b0e86e issues an error during cluster verify if the status
of DRBD is degraded and if the local disk is not UpToDate.

Still in case of a newly created instance or a newly attached disk with
--no-wait-for-sync, if a cluster verify runs it will report errors...

ceaa02e7 12/11/2014 12:54 pm Dimitris Aragiorgis

(2.13) Fix size handling in ExtStorage

Commit 9504487 introduced the Snapshot() method in ExtStrorage,
where the snap_size was erroneously exported to the external
script's environment without making it a string. This patch fixes
that in the following manner: The size/snap_size/grow of a disk are...

0d8f9629 12/11/2014 12:54 pm Dimitris Aragiorgis

(2.13) Let the snapshot script be optional

..for the ExtStorage providers. This way we do not break
compatibility with existing providers that do not implement
such a functionality.

In case an action that is not supported is requested raise
the proper exception....

1ecc03c1 12/11/2014 12:54 pm Dimitris Aragiorgis

(2.13) Support Snapshot() for the ExtStorage interface

The `snapshot` script is added to the interface and the new variables
VOL_SNAPSHOT_NAME and VOL_SNAPSHOT_SIZE are exported to the
environment.

Signed-off-by: Dimitris Aragiorgis <>
Reviewed-by: Hrvoje Ribicic <>

54e2b513 12/11/2014 12:54 pm Dimitris Aragiorgis

(2.13) Introduce Snapshot() method at bdev

Currently the Snapshot() method is used only during
`gnt-backup export` and is only implemented in the LogicalVolume()
class.

This patch makes this method a BlockDev() method, changes its
signature so that it can take both snap_size and snap_name and...

370e96cd 12/11/2014 12:54 pm Ilias Tsitsimpis

(2.13) Implement GetUserspaceAccessUri for ExtStorage

Allow ExtStorage devices to support userspace access.
The 'attach' script of an ExtStorage provider is now allowed to return
more than one line. The first line will contain as always the block
device path. Each one of the extra lines will contain a URI to be used...

1b79725e 12/11/2014 12:54 pm Ilias Tsitsimpis

(2.13) Move ExtStorage code out from bdev

Move the ExtStorage related code out from bdev to a new
file called 'extstorage.py'.

Signed-off-by: Ilias Tsitsimpis <>
Signed-off-by: Thomas Thrainer <>
Reviewed-by: Thomas Thrainer <>...

bbc17d8d 12/11/2014 12:53 pm Klaus Aehlig

(2.11) Make BlockDev subclasses adhere the interface for Create

In commit 702c3270 two new parameters were added to the
Create function of BlockDev. Make subclasses also adhere
this specification.

Signed-off-by: Klaus Aehlig <>
Reviewed-by: Petr Pudlak <>

f0bc8ca6 12/11/2014 12:53 pm Klaus Aehlig

(2.11) Make BlockDev subclasses adhere to new interface

In commit 702c3270 two new parameters were added to the
constructor of BlockDev. Make the subclassess accept these
additional parameters as well.

Signed-off-by: Klaus Aehlig <>
Reviewed-by: Petr Pudlak <>

80ae8687 12/11/2014 12:53 pm Dimitris Aragiorgis

(2.11) Make disk.name and disk.uuid available in bdev

Until now Disk name and uuid was not available on bdev level.
In case of ExtStorage, this info is useful, and may be for other
templates in the future too.

This patch treats the name and uuid object slots just like the size...

View revisions

Also available in: Atom