7454 Commits

Author SHA1 Message Date
vinay_m
3949fc467c api-ref needs update about 'checksum' image prop
Modified the "Checksum" description as mentioned , it is not computed from
victoria release .
Closes-Bug: #1875629

Change-Id: Id4299c7e02298157ad88971a78fac72a9f0248d0
2022-04-11 22:24:27 +00:00
Zuul
c99c3af4ff Merge "Document new properties used by Ironic" 2022-03-09 16:18:50 +00:00
Zuul
7af4d971fc Merge "Fix warning in the release notes" 2022-03-03 19:12:17 +00:00
Abhishek Kekane
328175298c Fix warning in the release notes
Glance yoga release notes generates one warning and as a result
it will fail to list it on release page [1] like it is
showing for Xena release.

The warning in the test log is;
"The Fixes section of
releasenotes/notes/fix-md-tag-create-multiple-c04756cf5155983d.yaml is
not a recognized section. It should be one of: features, issues,
upgrade, deprecations, critical, security, fixes, other. This
will be an error in a future release."

Rmoved the "Fixes" section from mentioned release note as it is already
included in `yoga-rc1-release-notes-153932161f52a038.yaml`.

[1] https://releases.openstack.org/teams/glance.html#team-yoga-glance

Closes-Bug: #1963282
Change-Id: I0167cd65f37fc744aa686c626739f9563054666c
2022-03-03 16:31:30 +00:00
1dc16586ff Update master for stable/yoga
Add file to the reno documentation build to show release notes for
stable/yoga.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/yoga.

Sem-Ver: feature
Change-Id: Ida380f2352455955eb84a50916653560d232b544
2022-03-03 15:46:49 +00:00
Zuul
d4119be054 Merge "Sync example configs for Yoga" 24.0.0 2022-03-02 01:03:55 +00:00
Zuul
ca6c0681cf Merge "Change default value for [wsgi]/python_interpreter" 2022-03-02 01:03:52 +00:00
Brian Rosmaita
daa602baa9 Change default value for [wsgi]/python_interpreter
The default value is being set too early.  We don't want to use
the value of sys.executable at the time the config is generated,
because that's unlikely to map to an existing interpreter in an
actual deployment.

Change-Id: Ic40f582f83e04c6915a3fcb231d6d95ca071c100
Closes-bug: #1962581
2022-03-01 09:44:13 -08:00
Erno Kuvaja
69a4de827f Sync example configs for Yoga
Some updates in configs, especially deprecation message for db
threading.

Change-Id: I62efa836a5e02641ac12ae7d786e1bee79ebb487
2022-03-01 16:14:41 +00:00
Abhishek Kekane
b434adba61 Yoga RC-1 release notes
Change-Id: I99d3b2f55224ec8375be20730ecf76d79a2c2bbe
2022-02-24 14:51:38 +00:00
Zuul
f5776e6c1c Merge "Fix overwriting of existing tags while creating new tags" 2022-02-17 16:01:16 +00:00
Zuul
52af68247e Merge "tests: Remove check for os.set_inheritable" 2022-02-16 20:59:13 +00:00
Zuul
241d442582 Merge "doc: Remove info on running under Python 3" 2022-02-16 20:22:12 +00:00
Zuul
163bf22358 Merge "Added a new API to expose store info" 2022-02-16 17:44:21 +00:00
Zuul
c3b0dfc408 Merge "Remove '__unicode__' magic methods" 2022-02-16 16:08:51 +00:00
Zuul
a23b5f44aa Merge "Remove glance.common.client._encode_headers" 2022-02-16 15:44:41 +00:00
Mridula Joshi
a34764ecac Added a new API to expose store info
This patch adds a new API to glance ``GET /v2/info/stores/detail``
to expose the stores specific details about the store like store
type and other specific store properties.This operation
will be admin only and validated by the new policy rule
``stores_info_detail`` which defaults to admin only

Implements: blueprint expose-store-specific-info
Change-Id: I6882fd2381e6ae245fd8c61bf9f4d52df2b216f5
2022-02-16 05:46:47 +00:00
Mridula Joshi
2a9a4c8e0e Fix overwriting of existing tags while creating new tags
It was observed that md-tag-create-multiple
(/v2/metadefs/namespaces/{namespace_name}/tags) API overwrites
existing tags for specified namespace rather than creating new one
in addition to the existing tags.
This patch resolves the issue by introducing a header 'X-Openstack-Append'
which on being True will append the new tags to existing ones and
if False will continue to overwrite the tags.

Implements: blueprint append-tags
Closes-Bug: #1939169
Change-Id: I29448746b14c542e5fbf0283011968ae1516642e
2022-02-16 05:45:06 +00:00
Zuul
88c43d4715 Merge "Cache management API endpoints" 2022-02-15 19:53:47 +00:00
Zuul
2a22633b3e Merge "Fix set_property_atomic() boolean type casting" 2022-02-15 18:03:21 +00:00
Zuul
21f9739b0d Merge "Add Python 3 only classifier" 2022-02-15 06:52:45 +00:00
Zuul
b085fbecc8 Merge "Remove final six usage" 2022-02-14 20:05:38 +00:00
Erno Kuvaja
87eae327bf Cache management API endpoints
This change adds the new cache API endpoints and their related
new policies.

Implements-bp: https://blueprints.launchpad.net/glance/+spec/cache-api
Change-Id: I69162e19bf095ef11fbac56a1ea2159d1caefba7
2022-02-14 15:14:17 +00:00
Zuul
4f4fc9b15d Merge "Remove six.assertRaisesRegex usage" 2022-02-14 06:46:15 +00:00
Zuul
4c1f2ac4d9 Merge "Remove remaining six.moves usage" 2022-02-14 06:46:12 +00:00
Zuul
0cec33b8b4 Merge "Update migration constant" 2022-02-12 06:34:37 +00:00
Ade Lee
0457ab2086 Make FIPS job non-voting
Temporarily make the FIPS job non-voting till we figure out why
its failing. Restore the non-fips version of the cinder job so
we keep the coverage.

Change-Id: I1a9dbd087cca52798f0d01c62ebb47e37f52d87a
2022-02-11 11:18:24 -08:00
Brian Rosmaita
ba5f556d27 Update migration constant
Update the data migration current release to 'yoga'.  Include a
semver pseudo-header in this commit message so that pbr will
increment the major version number, otherwise
glance.tests.unit.gate.test_data_migration_version will break.

Also add a reminder about this to the release cycle tasks list.

Change-Id: Ibdbeb752d29afeb48628587442577ab139be9ac9
Sem-Ver: api-break
2022-02-10 09:31:16 -05:00
Takashi Kajinami
bf22661596 Add Python 3 only classifier
Python 2 support was removed during Ussuri cycle. This change adds
the classifier to clearly state that only Python 3 is supported.

Change-Id: Ib244469e09e396ea897d1778bb1bad15cebf1f10
2022-02-08 14:06:10 +00:00
Zuul
a42fda92dc Merge "[APIImpact] Quota usage API" 2022-02-08 03:33:58 +00:00
Zuul
43df45f9a6 Merge "Add fips check jobs" 2022-02-07 09:18:00 +00:00
Zuul
d615de6b73 Merge "Remove six.moves.urllib usage" 2022-02-07 04:49:15 +00:00
Ade Lee
0f13754f84 Add fips check jobs
Some jobs have been modified to run to confirm that functionality is
still working when FIPS is enabled on the nodes.

As the FIPS tests currently run on centos nodes, code is added
to the test-setup script to set up the databases correctly.  Also had
to increase the swap space on the nodes; see [0] for an explanation.

The current FIPS jobs run using python 3.6 on centos-8-stream.  We will
modify these to run on centos-9-stream and python 3.9 in a
subsequent patch.

[0] https://review.opendev.org/c/openstack/devstack/+/803706

Change-Id: I060d8247c7b09f63990ea411e6c6a056bb50410d
2022-02-03 13:19:20 -05:00
Dan Smith
f865b8cac7 [APIImpact] Quota usage API
This adds a /v2/info/usage API endpoint which exposes to the user
their current limits and usage.

The discovery API does not (appear to) have existing tests, so this
adds a module for that, although only usage tests are added currently.

Implements: blueprint quota-api
Change-Id: I50c98bac50f815bdb9baae024e77afd388f74554
2022-02-03 09:55:50 -08:00
Zuul
472c1635ca Merge "Remove six.moves.http_client usage" 2022-02-03 09:12:25 +00:00
Zuul
518606a65d Merge "Remove six.moves.range usage" 2022-02-03 08:22:10 +00:00
Zuul
fb875de154 Merge "Replace six.BytesIO, six.StringIO usage" 2022-02-02 21:55:08 +00:00
Zuul
2b6a089d89 Merge "Remove six.text_type, six.binary_type usage" 2022-02-02 21:55:05 +00:00
Dan Smith
753c74c343 Fix set_property_atomic() boolean type casting
In set_property_atomic() we pass an integer query filter for the
deleted field, since most projects use an integer for this column.
However, in glance the column is a boolean, which trips up postgres
since the types are different (mysql and sqlite work fine). This
minor change to use False instead of 0 should fix that for postgres
users.

Change-Id: I5149df76943c1c19f3204b904c0e2d3ef846bdf7
Closes-Bug: #1953063
2022-01-31 08:19:52 -08:00
Stephen Finucane
d95fd8ac61 tests: Remove check for os.set_inheritable
This is available on all supported Python versions.

Change-Id: I76a696e56e04ec47b107af8e169c04138cf45fbb
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2022-01-27 16:39:06 +00:00
Stephen Finucane
eb1fdd8abc doc: Remove info on running under Python 3
There's nothing unusual about this anymore. Python 2 is no longer
supported and Python 3 is the default.

Change-Id: I8cc52a363f75bbcb89699ec65e02ac1c68d772ee
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2022-01-27 16:38:14 +00:00
Stephen Finucane
33874f09cd Remove '__unicode__' magic methods
These don't do anything in Python 3. We should use '__str__' instead.

Change-Id: I3c06744a1de4a65b97556665040bcaa347cdb76b
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2022-01-27 16:37:57 +00:00
Stephen Finucane
87b4b33e86 Remove glance.common.client._encode_headers
This is no longer necessary now that everything is a unicode string.

Change-Id: I809d9ba93ed19a8dd7a7be59e5470c56aca871e7
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2022-01-27 16:37:47 +00:00
Stephen Finucane
33741138d9 Remove final six usage
We also update docs since guidance has necessarily changed here.

Change-Id: I7c24a1aa3545f3499a7a2ce30b73e2656666c764
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2022-01-27 16:37:20 +00:00
Stephen Finucane
f68e04f268 Remove six.assertRaisesRegex usage
Change-Id: I172d640b7155913ad20599fd99825e501ed82631
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2022-01-27 16:37:20 +00:00
Stephen Finucane
931809c037 Remove remaining six.moves usage
Change-Id: Ibca3884e1ea3d0fb170bcc9e70a176d144ee24cc
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2022-01-27 16:37:11 +00:00
Zuul
d7368446e4 Merge "Fix tests on Python3.10" 2022-01-27 16:14:08 +00:00
Stephen Finucane
87ba56161b Remove six.moves.urllib usage
Change-Id: I71be65ef7b8f710e9317419d7b38559b39f461b0
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2022-01-27 14:54:05 +00:00
Stephen Finucane
9679ffc463 Remove six.moves.http_client usage
This is a rather beefy change due to the number of usages of this
import. The changes are trivial though.

Change-Id: I7badeeaca438b0291f4ed86670e7f217e6372c61
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2022-01-27 14:54:05 +00:00
Stephen Finucane
39e667a145 Remove six.moves.range usage
This is the same as the 'range' keyword in Python 3

Change-Id: If3aa008522c24e870b7bf13de32b8ed1b27cb519
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2022-01-27 14:54:05 +00:00