This commit is part of a series to retire the Packaging Deb
project. Step 2 is to remove all content from the project
repos, replacing it with a README notification where to find
ongoing work, and how to recover the repo if needed at some
future point (as in
https://docs.openstack.org/infra/manual/drivers.html#retiring-a-project).
Change-Id: Ibb0cc03c6212d0992aa31a859a1126d6c3c610c5
Most of the drivers return a string as the value of device['path']
which is then opened and returned as a file-like object. When the
volume driver type is 'rbd', the volume of device['path'] is already
a file-like object that can be returned directly. This patch adds
code to handle this special case.
Change-Id: I0c73a740505420c48a1d1ec7d21449fb8848f6ff
Closes-bug: 1643516
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.
Change-Id: I8eb08b739d01aa38596d1c92aad9f98cb0ae1eb2
Closes-Bug: #1693670
Currently, when using the Cinder backend, Glance
tries to execute os-brick commands directly using
"privsep-helper". They should be launched via
"glance-rootwrap".
Depends-On: Ib7923543862275629d86a0fa76baa88722493bad
Change-Id: I26d9474d4aadcc0e58e2fce746708f148138c71f
If rbd driver tries to unprotect snapshot which is already
unprotected, rbd lib raise InvalidArgument exception.
Rbd driver in glance_store will now handle such exception
and will continue deleting snapshot and image in such case.
Change-Id: I612b4421d5065dde002e3c0e0cb22537d2467adb
Closes-Bug: #1686063
1.As mentioned in [1], we should avoid using
six.iteritems to achieve iterators. We can
use dict.items instead, as it will return
iterators in PY3 as well. And dict.items/keys
will more readable. 2.In py2, the performance
about list should be negligible, see the link [2].
[1] https://wiki.openstack.org/wiki/Python3
[2] http://lists.openstack.org/pipermail/openstack-dev/2015-June/066391.html
Change-Id: I225da4f95187387007df11c91047497a2a93e862
The glance_store configuration options: ``sheepdog_store_address``
and ``vmware_server_host`` accept both IP addresses and hostnames.
Since there was no specific OSLO opt type to support this, we were
using ``StrOpt``. The change [1] that added support for
``HostAddressOpt`` type was merged in Ocata and became available for
use with oslo version 3.22.
This patch changes the opt type of these 2 glance_store configuration
options to use this more relevant opt type - HostAddressOpt.
[1] I77bdb64b7e6e56ce761d76696bc4448a9bd325eb
Change-Id: I43fec064815395b8a57e7ef21e43dcbe4d41066e
This change fixes the issue by setting filesystem_store_datadir
and filesystem_store_datadirs to None (missing values).
Closes-Bug: 1657710
Change-Id: Ida5bee9682e24befd63bd2b4b2107ee84eac1a1b
Since pbr already landed and the old version of hacking seems not
work very well with pbr>=2, we should update it to match global
requirement.
Partial-Bug: #1668848
Change-Id: I488f5c7232e8e172d316f7d3059cdf6ead67e906
SafeConfigParser is deprecated in Python 3.2 and log warning
like " DeprecationWarning: The SafeConfigParser class has
been renamed to ConfigParser in Python 3.2. This alias will be
removed in future versions. Use ConfigParser directly instead."
So use ConfigParser in Python 3.2+.
We don't support Python 2.6 now, so don't need set dict_type manually.
Closes-Bug: #1618666
Change-Id: I53fba2317b4621488cb602c7f9f7b231f2dd80d7