89 Commits

Author SHA1 Message Date
Andreas Jaeger
a705bfd7bf Stop using intersphinx
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
warnings.

Change-Id: I71e941e2a639641a662a163c682eb86d51de42fb
Related-Bug: #1368910
2014-09-13 09:24:36 +02:00
Jenkins
c7e2433d4b Merge "Work toward Python 3.4 support and testing" 2014-09-12 01:06:59 +00:00
Jenkins
b3aaf97102 Merge "Configure the stores explicitly" 2014-09-11 23:51:41 +00:00
Jenkins
0594ee6999 Merge "Add entry-point for oslo.config options and update registering logic" 2014-09-11 16:49:06 +00:00
Zhi Yan Liu
d6a5dde0ea Add entry-point for oslo.config options and update registering logic
1. The change exposed all options of store and driver by oslo.config
entry-point.
2. Refactor store and driver options registering logic to leverage this
unified option discover function.

Change-Id: Ibbd0f27abd0c0eb9a88d8d30de1e89264a11f53d
Signed-off-by: Zhi Yan Liu <zhiyanl@cn.ibm.com>
2014-09-10 09:44:29 +08:00
Arnaud Legendre
3581110045 Configure the stores explicitly
The store configure() method is being called two times: on one hand
in the store constructor and also explicitly in the create_stores()
method.

Since the configure() method can contain remote calls, it is better
to avoid calling it more than once, especially, when it doesn't add
any value.

Change-Id: I6f39dfa7fd3d0ef7ff4fc2a9ebbebdfb0cf114a1
2014-09-09 15:45:06 -07:00
OpenStack Proposal Bot
560f244a39 Imported Translations from Transifex
Change-Id: Ib3d4ee3feaf22d11c01b51cd8217edf0ef4fe44d
2014-09-09 06:10:54 +00:00
Jenkins
f607390a3e Merge "Return the right filesize when chunk_size != None" 2014-09-09 00:40:53 +00:00
Flavio Percoco
699020e0e9 Return the right filesize when chunk_size != None
The filesystem store kept returning the full file size even when
chunk_size was not None. This patch fixes that issue.

Change-Id: Ifa7d08cabe4485e1f9f4bf2d21ce7e307236104b
2014-09-08 15:44:29 +02:00
Zhi Yan Liu
706f911271 Allowing operator to configure a permission for image file in fs store
In this way the user other service used, e.g. Nova, who consumes the
image could be the exclusive member of the group that owns the files
created.

Closes-bug: 1264302
Related-Id: I4d543d205b0805fe00dcab1b0872c0a5e0f97a5f
Change-Id: Iec8396f92ed11531dccb82957da2455ca333430a
Signed-off-by: Zhi Yan Liu <zhiyanl@cn.ibm.com>
2014-09-08 11:30:17 +08:00
Flavio Percoco
526514d191 Align swift's store API
swift's store get method was lacking of 2 keyword arguments. This patch
adds them to the API.

Change-Id: I8f67380b4ca07261bc3d4e6fbd201189d1087a96
2014-09-05 14:31:57 +02:00
Flavio Percoco
ce6c076561 Add OPTIONS attribute to swift.Store function
Swift uses a function to wrap the final store instance and choose
between a SingleTenant/MultiTenant store. This patch adds the `OPTIONS`
attribute, found in all other store classes, in order to be able to
register the store options without actually creating an instance of the
Store - just like in every other store.

Iterate over swift/utils.py options, in order to add a deprecate options
for each one of those.

Change-Id: I581cdf5e8e5c112e129c2f0d62ad2a9caf19383b
2014-09-05 13:01:13 +02:00
Flavio Percoco
6ceda50421 Add missing stores to setup.cfg
Add the missing stores to setup.cfg and add the old stores to keep
backwards compatibility. In addition, raise an error if a store
entry_point is not found.

Change-Id: I41ffff47d26e2c1bf9b89ed3d0f459bca4d9f731
2014-09-05 10:56:07 +02:00
Flavio Percoco
7d15d01898 Set group for DeprecatedOpts
Deprecated options' group must be explicitly set, otherwise it'll lookup
the old option in the group the new one was registered in.

Change-Id: Idd0abd639373d9769ba6c520604f0e46a9b6f1ec
2014-09-05 10:09:35 +02:00
Flavio Percoco
ebd66cf189 Complete random_access for the filesystem store
This patch completes the support for random_access for the filesystem
store. It adds the required tests and modifies `ChunkFile` in a way that
it keeps backwards compatibility and adds support for this feature.

Change-Id: Ifaf6488165616c87debbb86b9dffa780df8c4b5f
Implements-blueprint: restartable-image-download
2014-09-05 10:09:33 +02:00
Jeremy Stanley
bbeaae17d5 Work toward Python 3.4 support and testing
Change-Id: Ie684799808ff42ef6a83810cfeefae9c7b5b2d25
2014-09-03 19:03:40 +00:00
Flavio Percoco
74a472d314 Register store's configs w/o creating instances
Instead of invoking the each store to register the config options, we
should just load the class and access `OPTIONS` from there. The old
attempt for config options registration is kept for other purposes.

Change-Id: I5545c1bd0ff0fd613cd40aadd87aaa4cbf2685ac
2014-09-03 17:53:08 +02:00
Flavio Percoco
340c225eb4 Add deprecated options support for storage drivers
Instead of requiring all storage driver options to be migrated
immediately, provide an upgrade path by supporting all config options
that used to be under the `DEFAULT` section.

Change-Id: Id978830c67f6c93b18e73cc16da92b99702357f5
2014-09-03 13:43:38 +02:00
Jenkins
677feddef2 Merge "Update .gitreview for project rename" 2014-09-02 21:26:11 +00:00
Andreas Jaeger
484918861f Rename locale files for glance_store rename
Rename files from glance.store to glance_store.

Change-Id: I495c46773949d88e92c205d691e95b748c1f369c
2014-08-30 18:50:49 +02:00
Jeremy Stanley
a9e09c325f Update .gitreview for project rename
Change-Id: I45163a7b60154e74ed9c6debdb4db75b56a872cf
2014-08-30 16:43:37 +00:00
Flavio Percoco
a1c59a1575 Rename glance.store to glance_store
Given the existing, known issues, with python namespaces, pip and
setuptools, we've decided to rename glance.store into glance_store.

Change-Id: I3f02ce78b3d64f34744e5116652bfbb4f3062cbf
2014-08-28 10:09:36 +02:00
Flavio Percoco
c2335ed752 Port of 97882f796c0e8969c606ae723d14b6b443e2e2f9
This patch ports 'Unifies how BadStoreUri gets raised and logged' to
glance.store

Change-Id: Ifa638ebdc9c53ea57bd12d33c9df9a78202a681f
2014-08-27 14:19:11 +02:00
Flavio Percoco
a2f204670f Port of 502be24afa122eef08186001e54c1e1180114ccf
This patch ports the above mentioned commit to glance.store

Change-Id: Ib5259a64aff4157da5d32dd092a17314cd3ea311
2014-08-27 12:59:16 +02:00
Flavio Percoco
9d4eda50f2 Fix collection order issues and unit test failures
A randomized PYTHONHASHSEED caused the glance API to return certain data
in a nondeterministic order, breaking some tests. This patch sorts the
returned data before testing against a pre-sorted expected values.

Change-Id: Ie294b64738bd33b31aea915183c30b5b8db2eb65
2014-08-27 12:54:28 +02:00
Jenkins
9360baac78 Merge "Fix development classifier" 2014-08-05 15:51:21 +00:00
Flavio Percoco
7b04f8d33d Fix development classifier
Change-Id: Ie7735ac7b17cf5c9b4b6771ae022152476b1835a
2014-08-05 08:09:21 +02:00
OpenStack Proposal Bot
609b457426 Imported Translations from Transifex
Change-Id: I73da478fc9283d2bd5a7aca4af064b2012a01f0e
2014-08-05 06:00:13 +00:00
Flavio Percoco
a360e0e743 Package glance's package entirely
Instead of listing the glance.store subpackage, it should be done for
the entire `glance` package.

Change-Id: I592931b8e6c0d708b1e0f633fab6bef191b64879
2014-08-04 10:32:13 +02:00
Jenkins
e47b51e0dc Merge "Port swift store" 2014-07-31 12:40:00 +00:00
Flavio Percoco
7b858be0f9 Split CHUNKSIZE into WRITE/READ_CHUNKSIZE
See I4e0c563b8f3a5ced8f65fcca83d341a97729a5d4 for a detailed
explanation.

Change-Id: I7d366f324b2699be0be610c1dde1db7fc4045dfd
2014-07-30 15:37:44 +00:00
Jenkins
732d5e0251 Merge "Add validate_location" 2014-07-30 15:07:00 +00:00
Jenkins
fe729b10a5 Merge "Fix some Exceptions incompatibilities" 2014-07-30 08:56:39 +00:00
Flavio Percoco
219eaa22c2 Port swift store
Change-Id: Ie070eb95b22729e30e7ced359e890e69e590d04c
2014-07-29 16:43:03 +02:00
Flavio Percoco
e9a392c59c Add validate_location
This method was added here: I75af34145521f533dcd6f5fd7690f5a68f3b44b3

Change-Id: I502cdc34b4253627b7dcf13fd06b984539d2e59c
2014-07-29 16:42:35 +02:00
Flavio Percoco
b31b2dab87 Fix some Exceptions incompatibilities
Change-Id: I1f2387dc2655dee47a98cb507428a472b24c7a51
2014-07-29 16:42:35 +02:00
OpenStack Proposal Bot
8cdfcb8416 Imported Translations from Transifex
Change-Id: I2cd472c308152f906d66fd628fb521d551e55be6
2014-07-29 06:00:11 +00:00
Jenkins
7f610d063a Merge "Setup for glance.store for translation" 2014-07-24 12:09:08 +00:00
Andreas Jaeger
4a6518293c Setup for glance.store for translation
Setup configuration for localization and add
initial translation template like it's done for all other OpenStack
projects. Once this is in, the translation bot job
will take care of syncing translations with transifex (already setup).

Note that the proper place for the template is for all python projects
$PROJECT/locale/$PROJECT.pot

Change-Id: If814bcf3e3e98c2d39bfcfd4ffefab308027672c
2014-07-17 15:44:36 +00:00
Flavio Percoco
0937a9ae6e Set the right classifiers in setup.cfg
Mark the library as an alpha library and set the required classifiers
for the target audience.

Change-Id: If240518fb50e17517b1fd2a8b0f041dab5f12b86
2014-07-17 11:53:20 +02:00
Flavio Percoco
8f386b2ed1 Remove version string from setup.cfg
Pypi jobs take care of setting up the version number based on the tag
name.

Change-Id: I56778033497318d54b90c3e43e02933e3c2a0720
2014-07-17 11:53:20 +02:00
Flavio Percoco
2450528776 Add .gitreview to the repo
This patch also removes `swift` related code until we port it.

Change-Id: I5c78af7334cb39e6d32afe7ca342f91c5521d30b
2014-07-17 11:53:18 +02:00
Flavio Percoco
80af4f414a Fix flake8 errors 2014-07-09 15:58:38 +02:00
Flavio Percoco
069f88e8e2 Adopt oslo.i18n 2014-07-07 16:45:12 +02:00
Flavio Percoco
3b3288954e Pull multipath support from glance/master 2014-07-04 16:05:33 +02:00
Flavio Percoco
5a76e55470 Update from oslo-incubator 2014-07-04 16:02:47 +02:00
Flavio Percoco
c2faa38caa Pass offset and chunk_size to the get method
Fixes bug where offset/chunk_size weren't passed to the storage's get
method call.
2014-06-30 10:19:28 +02:00
Flavio Percoco
03b43598d0 Migrate vmware store
The commit migrates vmware store from glance to glance/store
2014-06-25 19:19:48 +02:00
Flavio Percoco
dc26896d03 Move FakeHTTPResponse to a common utils module 2014-06-25 19:18:26 +02:00
Flavio Percoco
269cb5d733 Removed commented code 2014-06-25 19:17:29 +02:00