diff options
author | whoami-rajat <rajatdhasmana@gmail.com> | 2022-01-25 19:24:30 +0530 |
---|---|---|
committer | whoami-rajat <rajatdhasmana@gmail.com> | 2022-02-07 23:56:17 +0530 |
commit | f3433ed1a5176bff85b3fe04dba2d4c76618a299 (patch) | |
tree | e274106af2360880420a6826e243287a4085e913 /releasenotes | |
parent | 16b9d1f7adc503c4ed1108135a4ef4437abf7fa5 (diff) | |
download | glance_store-f3433ed1a5176bff85b3fe04dba2d4c76618a299.tar.gz |
Cinder store: Wait for device resize3.0.0
When we have an image with size > 1 GB, we follow the following steps
to accomodate the image:
1) Detach the volume
2) extend the volume
3) Attach the volume
4) Open the volume device as a file and resume writing the image
Sometimes due to several reasons (mostly network related), the
size of the device file could mismatch with the actual volume size
(or the backend LUN size). This can happen if the extend was performed
(i.e. the control path) but it takes the time to reflect that into
the mapped device (i.e. the data path). This mismatch can cause the
issue "IOError: [Errno 28] No space left on device".
To avoid this scenario, we check if the device size is less than the
volume size, we wait for the extended LUN to show up in mapped device
and then continue the image writing operation.
Closes-Bug: #1959913
Change-Id: I206580f6be615ebc5e15b546b9c23728d4116a5d
Diffstat (limited to 'releasenotes')
-rw-r--r-- | releasenotes/notes/fix-wait-device-resize-c282940b71a3748e.yaml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/releasenotes/notes/fix-wait-device-resize-c282940b71a3748e.yaml b/releasenotes/notes/fix-wait-device-resize-c282940b71a3748e.yaml new file mode 100644 index 0000000..27b3974 --- /dev/null +++ b/releasenotes/notes/fix-wait-device-resize-c282940b71a3748e.yaml @@ -0,0 +1,7 @@ +--- +fixes: + - | + `Bug #1959913 <https://bugs.launchpad.net/glance-store/+bug/1959913>`_: + Added wait between the volume being extended and + the new size being detected while opening the + volume device. |