| Commit message (Collapse) | Author | Age | Files | Lines |
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This adds explicit dependencies for the stores in the extras section.
Users can now install glance_store and specify which backends to install
dependencies. For example:
$ pip install glance_store[swift]
should install glance_store and the dependences to use the swift store
(currently python-swiftclient and httplib2).
This has a number of benefits, primarily that if the dependencies for a
particular store change, the installation process should remain the
same.
Change-Id: I94d75e3d52c9e3e9f7a741a079d25b1bdff29b27
|
| |
| |
| |
| |
| |
| |
| | |
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure
Change-Id: I7a1208166fdf13ef3a1af396af26c5b0b3712a5a
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is the easiest way to support v3 authentication in the swift backend. It
allows us to specify that we want v3 authentication and provide the extra
authentication attributes to swiftclient.
It allows specifying auth_version via individual authentication references so
that you can mix v2 and v3 authentication.
Ideally in future we would move to a session orientated solution. In which case
we will need to handle the existing options in a backwards compatible way and
so I don't think that the extra arguments will cause any additional problems
there.
Change-Id: Ifb7c9be805689e938ff0e99a18fa220993862001
|
|
|
|
|
|
|
|
|
|
|
|
| |
Commit 99de02ee1c6c8e73eb81b440fac26bb64dfdaa2f reads the features value
from ceph.conf and rados.Rados.conf_get returns a str but librbd.create
expects an int, so if there is a feature defined in ceph.conf we don't
cast it to int and fail to create the image with a TypeError coming from
librbd.create.
Closes-Bug: #1475811
Change-Id: I120451c4ab4ecb989d2cd031f260fdcc73d1ff3f
|
|\ |
|
| |
| |
| |
| | |
Change-Id: I67f8ab0ba636c70b85251fa028473f55f7b2810d
|
| |
| |
| |
| |
| |
| |
| |
| | |
Remove py33 from tox.ini and remove Python 2.6 classifier from
setup.cfg. OpenStack doesn't support Python 2.6 and 3.3 anymore. There
is no py26 nor py33 gate.
Change-Id: Ic16862afda5291778145f30f5bd93b608b226462
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This was never a real part of the mock api, but mock was happily mocking
it out and letting the tests pass. The new mock release made this
behaviour break, causing tests to fail on all patches. This patch
replaces instances of assert_called_once with an assert of the mock's
call_count.
Change-Id: I41ea0456acda86147ce3a7da0311e926782b4542
Closes-Bug: #1473369
|
|\ \ |
|
| |/
| |
| |
| |
| |
| |
| | |
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure
Change-Id: I5d94bb468b1f81a206c7c594faf72f3ee19e38c3
|
|\ \ |
|
| |/
| |
| |
| | |
Change-Id: I4d5f88d64e5a0288e3d97c1b6e5be79a86c3caf7
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Add image operation failed will lead to rollback operation,
delete this image if it was created.
If this operation throws some exception, previous one will be
overwritten so that we cannot elegantly trace the problem occurs.
We could log failed exception info before rollback operation.
Change-Id: Ic26a63f760d103a561cd4766b7497b34a0b14fc1
modified: glance_store/_drivers/rbd.py
|
|\ \ \ |
|
| | |/
| |/|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This catches import errors around cinderclient imports in the cinder store.
Since python-cinderclient was moved to test-requirements.txt, it is not
installed in the main glance gate jobs. This caused a lot of errors in the
logs, which should be avoided.
Change-Id: Iec6ac7020f66f9f9728d6cf4452127b8d55a8b2d
Closes-Bug: #1471063
|
|\ \ \ |
|
| | |/
| |/|
| | |
| | |
| | |
| | |
| | | |
* Use bytes to handle image content
* Replace StringIO.String with six.BytesIO
Change-Id: I9304126f94579b1281d70ae2446927269de10641
|
|\ \ \
| |_|/
|/| | |
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* On Python 3, don't encode the access and secret keys to UTF-8: keep
unicode
* Replace StringIO.StringIO with six.BytesIO for image content
* Replace StringIO.len with BytesIO.tell(), the len attribute has been
removed in Python 3
* Use byte strings to handle image content
Change-Id: I7cd07a68c9da2f1450a804b198c3840a9662ba69
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | | |
This should be with the other optional backend specific dependancies.
Change-Id: I016f2a6bbf0b5dff88011dceb36b82c09c3525a7
|
|\ \ \ |
|
| | |/
| |/|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* On Python 3, swift_retry_iter() now uses seek()+tell() to get the
length of a BytesIO object instead of getting the len attribute,
because the len attribute has been removed in Python 3.
* Replace six.StringIO with six.BytesIO for image content
* Use bytes to handle image content
* Replace int / 2 with int // 2 to use integer division
Change-Id: I0972df318002a6f91c3ef7ddc91330c635ba7e41
|
|\ \ \ |
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
On random gate jobs gate-glance_store-python27 would fail with exception
"swiftclient.exceptions.ClientException: Object DELETE failed" on test
test_delete_with_some_segments_failing in tests.unit.test_swift_store.
Error would happen when test_image_id's UUID ended in 001 or 003 as
fake_delete_object method had a bug.
Change-Id: If279d19d38507e12087b412a6f367850bd9bfb6f
Closes-Bug: #1442517
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The arguments "container" and "obj" are not named arguments in swiftclient, and
a pending change to python-swiftclient [1] is thus always failing in the gate.
Co-Authored-By: Clay Gerrard <clay.gerrard@gmail.com>
[1]: https://review.openstack.org/#/c/189815/
Change-Id: I3f4e3eb8d91edbfd10dc2233e3e83a3f90313cac
|
|/ /
| |
| |
| |
| |
| |
| | |
This patch enables reading rbd_default_features from ceph.conf for rbd
features configuration, falling back to layering if nothing is found.
Change-Id: Iedbd250b74c7ff191e52d0554f46504dda3568a5
|
| |
| |
| |
| |
| |
| |
| | |
We're moving glanceclient tests into the analogous directory, so we
should standardize and do the same in glance_store.
Change-Id: Icdcca1bd55be2d1ba8546bebf7ca1db72c183198
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* Use six.moves to get builtins, configparser, http_client
and urllib modules
* Replace StringIO.StringIO with six.StringIO
* Replace reload(mod) with moves.reload_module(mod)
Patch generated by the six_moves, stringio and urllib operations of the
sixer tool version 0.4:
https://pypi.python.org/pypi/sixer
Manual changes:
* test_vmware_store: add _mock_http_connection() helper method to
factorize code mocking http_client.HTTPConnection
* Reformat some lines to respect the constraint of 80 columns
* Replace reload() with imp.reload_module()
* Replace httplib with six.moves.http_client in mock.patch()
Change-Id: I5a065c0778436a12db90ac3b929fa840f3e86665
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Use bytes to handle image content
* Replace StringIO.StringIO with six.BytesIO for image content
Change-Id: I5ec4b8a685e95a701f6e8497695bd672dc22ec5e
|
|\ \ \
| |_|/
|/| | |
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| | |
On Python 3, exception messages are unicode strings. There is no need to
decode them.
Skip the test on the "ignore" error handler on Python 3, it's specific
to Python 2.
Change-Id: Ieec9e1e1f7a0fc901271fd74eca357fe1cf6a975
|
|\ \ |
|
| | |
| | |
| | |
| | | |
Change-Id: I7ed1c2e68630871c58521639cdc51b987769e48e
|
|\ \ \
| |/ /
|/| | |
|
| |/
| |
| |
| | |
Change-Id: Ie0f6c2a04f6ffb2b5b29705b1dcadf589ae6630e
|
|\ \ |
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* Replace it.next() with next(it)
* Replace dict.iteritems() with six.iteritems(dict)
* Replace unicode with six.text_type
* Replace dict(d1.items() + {'Cookie': cookie}.items()) with:
d3=dict(d1); d3['Cookie'] = cookie
* Replace map(func, parts) with [func(part) for part in parts]
* Open file in binary mode (not in text mode) to load JSON using
jsonutils.load()
* Avoid using dict.keys()[0] or dict.values()[0]: on Python 3, keys()
and values() methods of dictionaries return iterators, not lists
For more information on Python 3, see:
https://wiki.openstack.org/wiki/Python3
Change-Id: Ib09a3367d8dcb664911a0b187da9e363a96727fd
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
Change-Id: Iacdea33f8fd2f83fe8b92d0684a3637cef64a4b1
|
|/
|
|
|
|
|
| |
As per discussions happening upstream and as announced here:
http://lists.openstack.org/pipermail/openstack-dev/2014-November/051551.html
Change-Id: Ifa089d5d9deff051fb3b7053135819183e800908
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
oslo_vmware is an optional dependency for glance_store. Hence, we
should be able to register the store options even if the library
is not installed. There are two problems addressed here :-
1. The import error was not handled.
2. One of the store opt referenced a constant from the library.
Change-Id: I234a935f33e1cf8c3d6123994447bfca2365c3bb
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Commit I1d4f95cba47d21f1eb7e580314d01ac8d3481586 propergates
BadStoreConfiguration to the consumer of glance_store. This breaks
backwards compatibility for existing glance installations, however. This
patch disables it for the time being.
Change-Id: I46e1e38bf0b3ba9f78b4e553178b49bee929e0fd
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Change Ib41b0c482edf39017f26e483cd3661ca5b540133 adds glance_store to
projects.txt in the requirements repo so glance_store will start getting
automatic requirement updates when global-requirements is updated.
This is the preliminary sync for the master branch.
Closes-Bug: #1454695
Change-Id: I687ca6ee820aad2d9a19801248ae86e7198ee556
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
Change-Id: I25b165a9f04b155fe6471665ab346be76963316f
|
|\ \ |
|