Glance stores library
Go to file
whoami-rajat 5f1cee6fa9 Cinder store: Wait for device resize
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
(cherry picked from commit f3433ed1a5)
(cherry picked from commit ea5139be9a)
2022-02-17 18:31:53 +00:00
doc Switch to newer openstackdocstheme and reno versions 2020-05-30 16:57:57 +02:00
etc/glance Add lock per share for cinder nfs mount/umount 2020-05-01 11:35:01 +00:00
glance_store Cinder store: Wait for device resize 2022-02-17 18:31:53 +00:00
releasenotes Cinder store: Wait for device resize 2022-02-17 18:31:53 +00:00
tools Stop to use the __future__ module. 2020-06-02 20:14:52 +02:00
.gitignore Add .stestr to gitignore 2018-01-29 06:26:30 +00:00
.gitreview Update .gitreview for stable/wallaby 2021-03-19 12:51:21 +00:00
.stestr.conf Update tox.ini to conform to the PTI 2018-07-16 04:52:57 +00:00
.zuul.yaml Drop lower-constraints job 2021-08-12 11:01:24 -04:00
LICENSE Copying from glance 2014-01-24 18:30:46 +01:00
README.rst Add release notes link in readme 2019-10-06 14:37:10 +08:00
requirements.txt Fix lower_constraints and requirements 2020-12-18 11:11:40 +00:00
run_tests.sh Don't include openstack/common in flake8 exclude list 2016-07-12 14:27:23 +08:00
setup.cfg Merge "Remove translation sections from setup.cfg" 2020-08-26 09:38:57 +00:00
setup.py Cleanup py27 support 2020-04-05 08:20:21 +02:00
test-requirements.txt Merge "Fix hacking min version to 3.0.1" 2020-08-24 19:31:41 +00:00
tox.ini Drop lower-constraints job 2021-08-12 11:01:24 -04:00

README.rst

Team and repository tags

The following tags have been asserted for the Glance Store
Library:
"project:official",
"stable:follows-policy",
"vulnerability:managed".
Follow the link for an explanation of these tags.

Glance Store Library

Glance's stores library

This library has been extracted from the Glance source code for the specific use of the Glance and Glare projects.

The API it exposes is not stable, has some shortcomings, and is not a general purpose interface. We would eventually like to change this, but for now using this library outside of Glance or Glare will not be supported by the core team.