summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Add explicit dependencies for store dependencies"0.8.0Jenkins2015-08-063-20/+15
|\
| * Add explicit dependencies for store dependenciesLouis Taylor2015-07-293-20/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Imported Translations from TransifexOpenStack Proposal Bot2015-08-056-25/+25
| | | | | | | | | | | | | | For more information about this automatic import see: https://wiki.openstack.org/wiki/Translations/Infrastructure Change-Id: I7a1208166fdf13ef3a1af396af26c5b0b3712a5a
* | Support V3 authentication with swiftJamie Lennox2015-07-224-13/+121
|/ | | | | | | | | | | | | | | | 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
* rbd: make sure features is an int when passed to librbd.create0.7.1Matt Riedemann2015-07-172-1/+23
| | | | | | | | | | | | 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
* Merge "Add .eggs/* to .gitignore"Jenkins2015-07-161-0/+1
|\
| * Add .eggs/* to .gitignoreErno Kuvaja2015-07-091-0/+1
| | | | | | | | Change-Id: I67f8ab0ba636c70b85251fa028473f55f7b2810d
* | setup.cfg: add Python 3 classifiers0.7.0Victor Stinner2015-07-152-2/+3
| | | | | | | | | | | | | | | | 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
* | Remove usage of assert_called_once in mocksMike Fedosin2015-07-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | 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
* | Merge "Imported Translations from Transifex"Jenkins2015-07-093-105/+105
|\ \
| * | Imported Translations from TransifexOpenStack Proposal Bot2015-07-093-105/+105
| |/ | | | | | | | | | | | | For more information about this automatic import see: https://wiki.openstack.org/wiki/Translations/Infrastructure Change-Id: I5d94bb468b1f81a206c7c594faf72f3ee19e38c3
* | Merge "Updated from global requirements"Jenkins2015-07-093-20/+19
|\ \
| * | Updated from global requirementsOpenStack Proposal Bot2015-07-033-20/+19
| |/ | | | | | | Change-Id: I4d5f88d64e5a0288e3d97c1b6e5be79a86c3caf7
* | Merge "logging failed exception info for add image operation"Jenkins2015-07-091-0/+7
|\ \
| * | logging failed exception info for add image operationMingda Sun2015-06-181-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge "Make cinderclient a more optional dependency"Jenkins2015-07-091-3/+9
|\ \ \
| * | | Make cinderclient a more optional dependencyLouis Taylor2015-07-031-3/+9
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge "Port vmware driver to Python 3"Jenkins2015-07-092-39/+51
|\ \ \
| * | | Port vmware driver to Python 3Victor Stinner2015-06-182-39/+51
| | |/ | |/| | | | | | | | | | | | | | | | * Use bytes to handle image content * Replace StringIO.String with six.BytesIO Change-Id: I9304126f94579b1281d70ae2446927269de10641
* | | Merge "Port S3 driver to Python 3"Jenkins2015-07-092-32/+36
|\ \ \ | |_|/ |/| |
| * | Port S3 driver to Python 3Victor Stinner2015-07-022-32/+36
| |/ | | | | | | | | | | | | | | | | | | | | * 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
* | Merge "Move python-cinderclient to test-requirements.txt"Jenkins2015-07-022-2/+3
|\ \
| * | Move python-cinderclient to test-requirements.txtLouis Taylor2015-06-082-2/+3
| | | | | | | | | | | | | | | | | | This should be with the other optional backend specific dependancies. Change-Id: I016f2a6bbf0b5dff88011dceb36b82c09c3525a7
* | | Merge "Port swift driver to Python 3"Jenkins2015-07-022-48/+66
|\ \ \
| * | | Port swift driver to Python 3Victor Stinner2015-06-182-48/+66
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* | | Merge "Fix random test error in swift store delete"Jenkins2015-06-261-2/+2
|\ \ \
| * | | Fix random test error in swift store deleteGorka Eguileor2015-06-181-2/+2
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Do not used named args when using swiftclientChristian Schwede2015-06-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | RBD: Reading rbd_default_features from ceph.confVikhyat Umrao2015-06-182-14/+18
|/ / | | | | | | | | | | | | 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
* | Move glance_store tests into the main packageLouis Taylor2015-06-1217-10/+10
| | | | | | | | | | | | | | 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 fix imports on Python 3Victor Stinner2015-06-1017-120/+124
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* | Merge "Port remaining tests to Python 3"Jenkins2015-06-104-49/+45
|\ \
| * | Port remaining tests to Python 3Victor Stinner2015-05-204-49/+45
| | | | | | | | | | | | | | | | | | | | | * Use bytes to handle image content * Replace StringIO.StringIO with six.BytesIO for image content Change-Id: I5ec4b8a685e95a701f6e8497695bd672dc22ec5e
* | | Merge "Port exception_to_str() to Python 3"Jenkins2015-06-102-4/+13
|\ \ \ | |_|/ |/| |
| * | Port exception_to_str() to Python 3Victor Stinner2015-05-202-4/+13
| |/ | | | | | | | | | | | | | | | | | | 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
* | Merge "Updated from global requirements"Jenkins2015-05-291-1/+1
|\ \
| * | Updated from global requirementsOpenStack Proposal Bot2015-05-281-1/+1
| | | | | | | | | | | | Change-Id: I7ed1c2e68630871c58521639cdc51b987769e48e
* | | Merge "Close a file to fix a resource warning on Python 3"Jenkins2015-05-291-0/+1
|\ \ \ | |/ / |/| |
| * | Close a file to fix a resource warning on Python 3Victor Stinner2015-05-201-0/+1
| |/ | | | | | | Change-Id: Ie0f6c2a04f6ffb2b5b29705b1dcadf589ae6630e
* | Merge "Fix Python 3 issues"Jenkins2015-05-2810-19/+23
|\ \
| * | Fix Python 3 issuesVictor Stinner2015-05-2010-19/+23
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* | Add release notes for 0.6.00.6.0Nikhil Komawar2015-05-281-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | Drop py26 supportFlavio Percoco2015-05-261-1/+1
|/ | | | | | | As per discussions happening upstream and as announced here: http://lists.openstack.org/pipermail/openstack-dev/2014-November/051551.html Change-Id: Ifa089d5d9deff051fb3b7053135819183e800908
* Merge "Handle optional dependency in vmware store"Jenkins2015-05-181-7/+13
|\
| * Handle optional dependency in vmware storeSabari Kumar Murugesan2015-03-271-7/+13
| | | | | | | | | | | | | | | | | | | | 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
* | Merge "Disable propagating BadStoreConfiguration"Jenkins2015-05-182-7/+1
|\ \
| * | Disable propagating BadStoreConfigurationLouis Taylor2015-05-152-7/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Sync up with global-requirementsMatt Riedemann2015-05-133-17/+31
|/ / | | | | | | | | | | | | | | | | | | | | | | 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
* | Add release notes for 0.5.00.5.0Louis Taylor2015-05-121-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge "Fix RBD delete image on creation failure"Jenkins2015-05-042-6/+13
|\ \