Python 2 has been deprecated for almost two years, and has not been
guaranteed to work with glance_store for a while. This patch removes all
traces of six, unicode strings and Python 2 tweaks.
Co-Authored-By: Cyril Roelandt <firstname.lastname@example.org>
Cinder introduced new attachment API flow in microversion 3.27
(also attachment_complete added in mv 3.44 and support for passing
mode added in mv 3.54) which provides a clean interface to
interact with cinder for attachments and is also required for
multiattach volume support (Related future work).
Nova uses it since a long time and is proven to be stable,
this patch implements the same for glance.
The create volume and delete volume calls are also moved to
cinder_utils file to use the generic exception handler
and keep similar code together for consistency.
Partially Implements: blueprint attachment-api-and-multiattach-support
Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems
Update Sphinx version as well.
Disable openstackdocs_auto_name to use 'project' variable as name.
Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.
Remove docs requirements from lower-constraints, they are not needed
during install or test but only for docs building.
openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.
With cinder configured as glance store and nfs as cinder backend,
if we create multiple images concurrently into the same share,
there might be race conditions.
This patch ensures a lock per export to avoid the race conditions.
This patch also introduces a reference counting mechamism for unmounting
which will unmount the share if no active thread/process is using it.
Make a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
know about the requirement
- Remove obsolete sections from setup.cfg:
* Wheel is not needed for python 3 only repo
- Update classifiers
- Update requirements, no need for python_version anymore
Revive the S3 driver that was supported up to Mitaka and add multiple
store support to correspond with the features added to glance_store from
Newton to U cycle. In addition, the use of the S3 SDK used by the Mitaka
S3 driver has been deprecated, so this implementation will be changed
to use the new version.
Implements: blueprint re-support-s3-driver
openstack-dev was decomissioned this night in https://review.openstack.org/621258
Update openstack-dev to openstack-discuss
Co-authored-by: LeopardMa <email@example.com>
Change Iac83c515e12ec953f4814e7cbeeca33c034d7497 added a statement,
agreed upon at the Ocata design summit, concerning the use-at-your-
own-risk nature of glance_store. This patch updates the glance_store
docs to carry the same disclaimer.
This patch adds a doc8 check of .rst files to the current pep8 check.
It includes fixes to the .rst files that didn't pass the check.
Co-authored-By: Nguyen Van Trung <firstname.lastname@example.org>
html_last_updated_fmt option is interpreted as a
byte string in python3, causing Sphinx build to break.
This patch makes it utf-8 string.
When building packages if git is absent, then we should not set
html_last_updated_fmt. It can still be set via the -D switch
when building with sphinx-build.
When docs are generated with pbr command 'warnerrors = True'
there are many doc problems that are shown. This patch fixes
As per the latest communication sent to openstack-dev, this commit
adds the list of drivers and maintainers to the glance_store
documentation. The drivers listed here are considered supported by the
overall community but mainly by the listed maintainers.
Drivers that currently exist in the source tree that are not listed here
will be marked as deprecated following what was communicated in the
7b9bec7 Updated from global requirements
be3d7a6 Remove useless config.py file
b709dd6 vmware: check for response body in error conditions
6993aac remove default=None for config options
341527c Updated from global requirements
2142bd3 Imported Translations from Zanata
fdd725e Updated from global requirements
aa53ea6 Updated from global requirements
d59254e Remove deprecated glance_store opts from default section
6019576 Updated from global requirements
845254f Improving GlanceStoreException
5db9852 Activate pep8 check that _ is imported
a031745 '_' is used by i18n
cc36d53 VMware: Fix missing space in error message
c2b8702 Handle swift store's optional dependency
f37947a Fix swift store tests for latest swiftclient
caf646a Catch InvalidURL when requesting store size
$ git log --oneline --no-merges 0.8.0..HEAD
eb2ab17 Updated from global requirements
caa3d20 Imported Translations from Transifex
e3b6d64 Add proxy support to S3 Store
3f5a37c Prevent glance-api hangups during connection to rbd
This adds release notes for the following commits:
$ git log --oneline --no-merges 0.5.0..HEAD
9d5ceab Drop py26 support
752f9ca Disable propagating BadStoreConfiguration
78984a8 Sync up with global-requirements
f33fe43 Handle optional dependency in vmware store
This adds release notes for the following commits:
$ git log --oneline --no-merges 0.4.0..HEAD
b0798ac Drop use of 'oslo' namespace package
751f9ae Fix RBD delete image on creation failure
73bf032 Use is_valid_ipv6() from oslo.utils
5c71f1d Properly instantiate Forbidden exception
19fede3 Update README to work with release tools
e8884d2 Remove ordereddict from requirements
dc378a7 gridfs: add pymongo to test-requirements and update tests
cddecb1 Add release notes for 0.1.10-0.3.0
774d9ac Only warn on duplicate path on fs backend
63fcfd5 Propagate BadStoreConfiguration to library user
4d8a752 Update oslo libraries
4fba478 Initialize vmware session during store creation
$ git log 0.3.0..HEAD --no-merges --oneline
c89bfe2 Fix intermittent failure in test_vmware_store
f98018c Deprecate the gridfs store
6aa9dd1 Remove incubative openstack.common.context module
4f05481 Update help text with sample conf
2454639 Use oslo_config.cfg.ConfigOpts in glance_store
5121910 Make dependency on boto entirely conditional
b8d6263 Move from oslo.utils to oslo_utils (supplement)
affcd80 Fix timeout during upload from slow resource
8bd848d Throw NotFound exception when template is gone
89e8884 Correct such logic in store.get() when chunk_size param provided
Remove intersphinx from the docs build as it triggers network calls that
occasionally fail, and we don't really use intersphinx (links other
sphinx documents out on the internet)
This also removes the requirement for internet access during docs build.
This can cause docs jobs to fail if the project errors out on