3793 Commits

Author SHA1 Message Date
Jenkins
f95492711c Merge "Update driver metadata definitions to Juno" 2014-10-07 19:01:23 +00:00
Julien Danjou
581cb4ca43 Switch to oslo.serialization
Change-Id: I983bb5b6e2c7fbbd8556ff0f99212803cb0269e9
2014-10-07 14:58:55 +02:00
Julien Danjou
874e643549 Switch to oslo.utils
Change-Id: I47dc734c6d6e2ab99c25701ae3492acd5e442212
2014-10-07 14:55:57 +02:00
Jenkins
2530cfa81e Merge "hacking: upgrade to 0.9.x serie" 2014-10-07 08:59:24 +00:00
Jenkins
c0fd20a79f Merge "Add missing metadefs for Aggregate Filters" 2014-10-07 03:51:46 +00:00
Jenkins
7b3b4d0829 Merge "Nova instance config drive Metadata Definition" 2014-10-07 03:51:24 +00:00
Jenkins
ff2590dcc9 Merge "Specify the MetadefNamespace.namespace column is not nullable" 2014-10-07 03:50:30 +00:00
Julien Danjou
fadbef8511 hacking: upgrade to 0.9.x serie
Change-Id: I252758fd633662de9659a402c5e3d7e3ce1fae0f
2014-10-06 14:41:03 +02:00
Jenkins
353ae24d34 Merge "Run tests with default concurrency 0" 2014-10-06 11:09:36 +00:00
Jenkins
92c633c3f5 Merge "Refactor test_migrations module" 2014-10-06 11:00:53 +00:00
Jenkins
6266a44294 Merge "Include Metadata Defs Concepts in Dev Docs" 2014-10-03 23:39:18 +00:00
Jenkins
c1188daf75 Merge "Fix glance V2 incorrectly implements JSON Patch'add'" 2014-10-02 23:50:55 +00:00
Jenkins
e588632f98 Merge "Make compute-trust.json compatible with TrustFilter" 2014-10-02 11:59:51 +00:00
Jenkins
d2028eb6dd Merge "Fix bad header bug in glance-replicator" 2014-10-02 09:47:51 +00:00
Jenkins
8243e701f8 Merge "Mark custom properties in image schema as non-base" 2014-10-02 00:51:53 +00:00
Jenkins
116c1de000 Merge "Use identity_uri instead of older fragments" 2014-09-30 22:13:23 +00:00
Jenkins
39773dfaad Merge "Fixes logging in image_import's main module" 2014-09-30 17:15:05 +00:00
Jun Hong Li
4b2304d6bb Fix bad header bug in glance-replicator
When trying to use "glance-replicator livecopy" to replicate the
images from one OpenStack glance to another, it encounters "Bad
header" error for "x-image-meta-virtual-size" header. This is
because this header is not in the whitelist of v1 API headers of
form "x-image-meta-xxx".

Another problem after adding this "x-image-meta-virtual-size" to
header whitelist is that the sqlalchemy fail due to virual_size is
"None", which cannot be converted to int. To fix this problem, we
should avoid converting the None value attribute in GET
/v1/images/detail response to the header of POST /v1/images. I
added the None value check, following what the way in
glance/common/utils.py image_meta_to_http_headers() method.

Closes-Bug: #1373333

Change-Id: I13182c4e3212024a9d5663cefd2951c576961f4f
2014-10-01 00:07:34 +08:00
Jenkins
028b0e77c6 Merge "ignore .idea folder in glance" 2014-09-30 12:35:37 +00:00
Oleksii Chuprykov
868fd6e383 Run tests with default concurrency 0
Setting concurrency to 0 would enable Glance tests to be run using the
the total number of cores on the system rather than by a single one.

This would, by default, speed up the run time of tests for developers
who are not aware about it. Also, any jobs which run these tests for
Continuous Integration would be benefitted without having to deal with
the machine level logic.

Closes-Bug: #1368274

Change-Id: I0842b0c0be1272d479fad9ef7609cd8a29231cb5
2014-09-30 11:37:02 +00:00
Oleksii Chuprykov
e518ab629b Refactor test_migrations module
Refactored migration tests to use OpportunisticTestCase, removed
unused code and ``test_migrations.conf`` file.

The main feature of this approach is to create a new database with
random name for each migration test.  This will avoid migration tests of
race conditions and reduce tests intersection. After this change, database
``openstack_citest`` will be used only for initial connection to the database.

``test_migrations.conf`` file not required anymore, because we create test
database for migration test, so we no longer need to keep database credentials.

Partial-Bug: #1368274

Change-Id: Ib1d6dfae62cc60f814c01d07adc53f68e7c234f6
2014-09-30 14:32:40 +03:00
Travis Tripp
0aab5e2716 Include Metadata Defs Concepts in Dev Docs
The http://docs.openstack.org/developer/glance/
site currently doesn't include the Juno Metadata
Definitions concepts.  This patch adds
an overview of the concepts to this site.

This provides a synopis of the concepts in:
https://github.com/openstack/glance-specs/blob/master/specs/juno/metadata-schema-catalog.rst

DocImpact
Closes-Bug: 1367432
Related-Bug: 1367908
Related-Bug: 1363615
Related-Bug: 1366286
Related-Bug: 1363383
Change-Id: Iad4d388cbbf2f63fa243d04d35032de0cb0bc1b4
2014-09-29 15:49:41 -06:00
Thierry Carrez
16fa669eb8 Open Kilo development
Bump pre-version to 2015.1 to formally open master branch to Kilo
development.

Change-Id: I4b9b78ee45113294eb9d0a9240925e2e2e6901b7
2014-09-29 11:16:37 +02:00
Jenkins
d659161db4 Merge "Remove db_enforce_mysql_charset option for db_sync of glance-manage" 2014-09-26 22:41:44 +00:00
Jenkins
2bab892374 Merge "Add documentation for a new storage file permissions option" 2014-09-26 07:10:20 +00:00
Kamil Rykowski
94c05cbdbb Mark custom properties in image schema as non-base
Currently it is impossible to determine if given image schema property
is base or custom one and knowledge of that can be handy in some
situations.    Proposed change appends to every custom property special
key which determiness that it is not a base property.

Change-Id: I49255255df311036d516768afc55475c1f9aad47
Partial-Bug: #1371559
2014-09-25 14:23:15 +02:00
OpenStack Proposal Bot
1e3717d476 Imported Translations from Transifex
Change-Id: I85f03e91fe5ccd66e4889ceea9efa59d35082425
2014-09-25 06:20:04 +00:00
Jenkins
b46784e7d5 Merge "Add specific docs build option to tox" 2014-09-24 18:00:24 +00:00
Jenkins
82fe844643 Merge "Duplicated image id return 409 instead of 500 in API v2" 2014-09-24 00:35:54 +00:00
Thomas Bechtold
dd9520265b Add specific docs build option to tox
Add doc venv to align with other OpenStack projects (such as keystone,
heat and nova) who are using 'docs' for their doc builds.

Change-Id: I8bccbf9c6b1eae5de9f74396fd5159662ad04149
2014-09-24 00:18:44 +00:00
Georgy Okrokvertskhov
5929511f70 Add documentation for a new storage file permissions option
This patch adds a detailed description for filesystem_store_file_perm option which
was added in https://review.openstack.org/#/c/119529.

Change-Id: Ia567b9d56891940a8170d67d95c1cb318545094e
2014-09-23 15:47:07 -07:00
Jenkins
bf9ed0ea8f Merge "Glance API V2 can't recognize parameter 'id'" 2014-09-23 22:34:45 +00:00
Jenkins
15570e81b6 Merge "Updated from global requirements" 2014-09-23 09:55:12 +00:00
Jenkins
044cbaa1ff Merge "Fixes Error Calling GET on V1 Registry" 2014-09-23 04:02:20 +00:00
OpenStack Proposal Bot
02527bb94d Updated from global requirements
Change-Id: I988b92eeb0bde0372247a27b6148f1b4c982eaa9
2014-09-23 01:55:21 +00:00
Zhi Yan Liu
ee842bbb66 Remove db_enforce_mysql_charset option for db_sync of glance-manage
This is a deprecated option only should be used for migration. As we
scheduled before, now glance removes it out from Juno release.

Change-Id: Ice4ade659307ee5e635a75d6637b4664ee431c20
Signed-off-by: Zhi Yan Liu <zhiyanl@cn.ibm.com>
2014-09-22 21:45:56 +08:00
Roman Vasilets
2b8c7c9595 Fix glance V2 incorrectly implements JSON Patch'add'
According to the RFC for JSON Patch
http://tools.ietf.org/html/rfc6902#section-4.1
the 'add' operation, in the event that the property being
added already exists, should replace the existing value. For backward
compatibility We've fix it only for the latest content type.

Change-Id: Ia4be8b384f8b7f193f139f2206ceea25786b5cc3
Closes-bug: 1250158
DocImpact
Partial-bug: #1277104
2014-09-22 10:16:57 +00:00
Jenkins
18a09024a3 Merge "Change open(file) to with block" 2014-09-22 08:42:36 +00:00
Jenkins
2a6ef672b9 Merge "Sync glance docs with metadefs api changes" 2014-09-22 07:30:09 +00:00
Jenkins
e2e4e60ab3 Merge "Enforce using six.text_type() over unicode()" 2014-09-22 07:30:05 +00:00
Jenkins
16262c1134 Merge "Replaces assertEqual with assertTrue and assertFalse" 2014-09-22 07:11:28 +00:00
Jenkins
009f274eaf Merge "Enabling separated sample config file generation" 2014-09-22 07:01:35 +00:00
Pawel Koniszewski
39e90f29d9 Make compute-trust.json compatible with TrustFilter
Current properties inside compute-trust.json does not match
with how TrustFilter in nova works. JSON provides True/False
boolean values but TrustFilter expects trusted/untrusted/unknown
string values. This patch repairs compute-trust.json to be
compatible with TrustFilter.

Change-Id: I26965a549daf9340621b0f18a1b845b39bac4bd8
Closes-Bug: #1369581
2014-09-22 02:55:26 -04:00
Pawel Skowron
1cdc555d21 replace dict.iteritems() with six.iteritems(dict)
All metadata definition code added should ensure that
six.iteritems is used.

Change-Id: Ic93595ffb2a5a8ed7667028d820fac8debd988e6
Closes-Bug: #1370769
2014-09-18 16:13:41 +02:00
Louis Taylor
70beb11924 Enforce using six.text_type() over unicode()
For python 3 compatibility, this adds a hacking check to prevent the
usage of unicode().

Change-Id: I791bbf251ac0f9615a9bedc2dd295a7982d72e0a
Closes-bug: #1282893
2014-09-18 09:51:04 +00:00
Travis Tripp
ebafdbeef6 Update driver metadata definitions to Juno
vmware and libvirt support different hw_vif_model settings.
This patch updates them so that each namespace can specify
the models they support.

vmware api is updated with the vmware_disktype

Change-Id: Iec5901097c9621a052a930b99d5cbe7872d4f3ff
Closes-bug: 1370767
2014-09-17 17:30:03 -06:00
Louis Taylor
b31d7a4c7a Remove uses of unicode() builtin
Some uses of unicode() appear to have crept into glance's codebase. This
change replaces them with the recommended six.text_type().

Change-Id: I239f91114a921d3276da5cfd96ec1fde10601565
Partial-bug: #1282893
2014-09-17 16:18:49 +00:00
Kent Wang
fc86c348c0 Fixes Error Calling GET on V1 Registry
Calling GET on members in the glance registry no longer returns a
500 Server Error. Since GET isn't supported, it now returns a
405 Method Not Allowed, matching the behavior of members for the
glance api.

Change-Id: I25d7e5f4818a1cdb20788643ae6dd7e277928743
Closes-Bug: #1187395
2014-09-17 07:59:52 -07:00
Jenkins
b68c647168 Merge "Just call register_opts in tests" 2014-09-17 13:06:40 +00:00
Zhi Yan Liu
819f28a0b8 Enabling separated sample config file generation
As a common approach most projects used now and Oslo preferred, this
change enabled sample configuration file generation mechanism for
each Glance services.

This change, as an enhancement, allows generating separated sample
configuration files for each Glance major services, e.g.:

    etc/glance-api.conf.sample
    etc/glance-cache.conf.sample
    etc/glance-manage.conf.sample
    etc/glance-registry.conf.sample
    etc/glance-scrubber.conf.sample

It is different than I94d486d6686815c45705a7a9b00fb26062e1eb63
which only supports generating an unified sample configuration
file to including all Glance available options.

This mechanism  not only can help auditing by packager, milestone
maintainer or developer as a function (testenv) of tox, but also
those separated configuration files could make deployment be easy.
And it helps keeping sample configuration files be update with
code change.

The change added "genconfigs" function as a tox testenv (-egenconfigs),
and it dependes on oslo-config-generator function of oslo.config.

The change doesn't introduce those sample files Glance repo, so
next step is to investigate if we can generate them in gate
automatically when a change was merged.

Related-Change-Id: I15686708fc9460948a58cfea3d18dae40ba1fda9
Related-Change-Id: Iae31856d5886ee78786972d80c7c103c3460a2b3
Related-Change-Id: I76043b08e2872867e5af2a5ac902e4d092fda5c8
Closes-Bug: #1300546
Closes-Bug: #1361963

Change-Id: Ibe03a3fe80b96ca32acb1a6bea7e38e6075951bb
Signed-off-by: Zhi Yan Liu <zhiyanl@cn.ibm.com>
2014-09-17 13:19:00 +08:00