7528 Commits

Author SHA1 Message Date
Abhishek Kekane
a71f7ba44e [APIImpact] Correct API response code for DELETE cache APIs
DELETE /v2/cache/{image_id} and /v2/cache returns HTTP 200 response
code to user but as per proposal it should be HTTP 204. This change
returns HTTP 204 response to user.

Closes-Bug: #1980049
Change-Id: I9d1c25638584fe346e3937d0536413d548d46e8e
2022-06-28 17:31:12 +00:00
Zuul
30cec04ba6 Merge "Update api-ref: versions response for master branch" 2022-06-27 22:57:54 +00:00
Zuul
7deef76685 Merge "Remove options for oslo.db thread pool support" 2022-06-24 07:06:09 +00:00
Takashi Kajinami
08a0a738b3 Remove options for oslo.db thread pool support
Thread pool support in oslo.db was already deprecated[1], and it is not
actually used by Glance.

[1] 74c6bf266e0b86ceb4726cad9268f134d423bae8

Change-Id: I79e934f34f33953c821b6529a34e44dcf2a9688c
2022-06-24 09:20:41 +09:00
Zuul
61619c8f00 Merge "Remove dead code of auth and policy layers" 2022-06-23 15:56:18 +00:00
Cyril Roelandt
53f322f1d8 Bindep fixes for SUSE-like systems
- qemu-img is provided by qemu-tools
- pg_config is provided by postgresql-server-devel

Closes-Bug: #1978869
Change-Id: Ia0e5f52f3841b3306a8776762d18a56c6df1e2f5
2022-06-15 23:07:06 +02:00
Pranali Deore
3790cfd4a1 Remove dead code of auth and policy layers
In Xena we have mangaed to move all policy checks to API layer,
now removing the dead code from policy and authorization layer

NOTE: Some of the code is still being used from policy layer,
hence keeping it there only at this moment.

Change-Id: Ibee749cde20687d8c243cf84ae80b4de67d8ef3d
2022-06-14 10:15:55 +00:00
chenwei
0934cf0305 Update api-ref: versions response for master branch
Closes bug: #1962480

Change-Id: Iba5a720fcd1408dc81f7da8a6b814fe952a5ddf9
2022-06-13 18:28:16 +08:00
Zuul
ebef97d776 Merge "Modify wrong file path in README" 2022-06-09 13:31:04 +00:00
Zuul
3840fa8d3f Merge "glance-manage can purge all deleted rows" 2022-06-07 19:47:54 +00:00
Zuul
005664f015 Merge "Correction in zed milestone 1 releasenotes" 2022-06-06 15:04:26 +00:00
wanghui
3b77c979bd Modify wrong file path in README
Modified path in httpd/README file.
Change-Id: I8b2a8c66e74b01d35e441735bb2d036a69018ad6
2022-06-06 14:21:03 +00:00
OpenStack Proposal Bot
6bd1d14a52 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I788d4d6ab23a9314163490e52ac436ae0856c559
2022-05-26 02:43:09 +00:00
Zuul
5be896935a Merge "Remove workaround for python_exec cannot be None" 2022-05-25 22:29:02 +00:00
Brian Rosmaita
11989a18f4 Bump Image API version to 2.16
This API version increment is due to change I6a875a38bef5, which
corrected the response code for the admin-only API call:
    PUT /v2/cache/{image_id}
The call now returns 202 upon success (it had been returning 200).

The intent of this version bump is to get the attention of operators
to take note of this change; from now on, the call always returns 202
upon success regardless of what API version you request.

Additionally, cleaned up some version tests that had gotten out of
date and were not thoroughly testing version negotiation.

Also, corrected the version negotiation code around the v2.13 API.
The versions response had been modified by change I6882fd2381e6 to
only include v2.13 when the 'enabled_backends' config option had a
value, but the versions negotiation code was not updated to reflect
that.

Change-Id: I0cf35ed7e21497826cd581e59aa58774f030b9f6
Related-bug: #1971521
2022-05-24 11:45:30 -04:00
Brian Rosmaita
6af8b6e51c Remove workaround for python_exec cannot be None
oslo.config 4.5.1 contains change I2e1f187feaf4, which makes
the workaround introduced by change Ic40f582f83e0 unnecessary.

Change-Id: Ib7fc2f2082981b1765e901ca5b277fce08221ba8
Related-bug: #1962581
Related-bug: #1962603
2022-05-23 17:35:29 -04:00
Zuul
2e94e3dc71 Merge "Revert "Disable import workflow in glance cinder jobs"" 2022-05-23 15:05:51 +00:00
Zuul
832377b9fd Merge "Add openstack-tox-functional-py38-fips job" 2022-05-23 09:52:54 +00:00
Zuul
45b729e35e Merge "Add flavor and image options to select emulated virtual tpm" 2022-05-23 09:52:51 +00:00
Rajat Dhasmana
0c15169c37 Revert "Disable import workflow in glance cinder jobs"
This reverts commit d7fa7a0321ea5a56ec130aa0bd346749459ccaf2.

Reason for revert: This is no longer needed as the devstack patch is merged to fix this issue https://review.opendev.org/c/openstack/devstack/+/841804

Change-Id: I214c9a6017f66d3eb6589496726e8c8f895d56aa
2022-05-23 13:55:51 +05:30
Zuul
6edbfb7567 Merge "Add CPU Mode Metadata Def" 2022-05-23 07:51:01 +00:00
Zuul
532e52733c Merge "Revert "Override GLANCE_USE_IMPORT_WORKFLOW in cinder jobs"" 2022-05-23 07:15:32 +00:00
Ghanshyam Mann
b8e6bb0277 Add openstack-tox-functional-py38-fips job
openstack-tox-functional-py36-fips is removed in
https://review.opendev.org/c/openstack/glance/+/841350/
with the plan to be move to py38.

This commit migrate the fips job to py38.

Depends-On: https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/841368
Change-Id: I0e2bca4603a34e39ffdbebaab2fcfad3a9da4241
2022-05-20 00:06:02 +00:00
Zuul
6c504b3210 Merge "Update python testing as per zed cycle teting runtime" 2022-05-19 21:47:33 +00:00
Ghanshyam Mann
d55d250d33 Update python testing as per zed cycle teting runtime
In Zed cycle, we have dropped the python 3.6/3.7[1] testing
and its support. Moving the py36 job to py38 based as well as
updating the python classifier also to reflect the same.

openstack-tox-functional-py36-fips job is left which can be moved
to py38|py39 based once that job is defined in openatck-zuul-jobs
repo.

openstack-tox-functional-py36-fips job will be migrated to py38 or py39
in followup patch as that need openstack-zuul-config changes too.

[1] https://governance.openstack.org/tc/reference/runtimes/zed.html

Change-Id: Id0813d9dc553dd424732079039349b42f6f3201b
2022-05-19 12:56:56 -05:00
Pranali Deore
8ad53ffbde Correction in zed milestone 1 releasenotes
Change-Id: Ia6fa125587cc4eacb4008dbe9ca95a6c11cd7f39
2022-05-19 13:09:08 +00:00
Rajat Dhasmana
f9fad19249 Revert "Override GLANCE_USE_IMPORT_WORKFLOW in cinder jobs"
This reverts commit 025ba83c470fd58425273ad10975a1eb3d095452.

Reason for revert: This is no longer needed as the devstack patch is merged to fix this issue https://review.opendev.org/c/openstack/devstack/+/841804

Change-Id: Ie72a2531172208e32626ad2060737257663eba46
2022-05-19 08:26:47 +00:00
Zuul
84c7ba3adf Merge "Release notes for Zed Milestone 1" 2022-05-18 19:11:16 +00:00
prithiv
d8a108e7b3 Add CPU Mode Metadata Def
Creates Metadata def for CPU Mode. The allowed
modes are "none", "host-passthrough", "custom"
and "host-model".

Change-Id: Id7a01546334ddea952708143c5dfc7861353f2fc
Closes-Bug: 1636243
2022-05-18 18:04:59 +00:00
Zuul
0633746cf5 Merge "Use show-policy to render default policy in documentation" 2022-05-18 17:22:30 +00:00
Zuul
c8f898af11 Merge "Refresh Glance example configs for Zed milestone 1" 2022-05-18 16:33:38 +00:00
Paul-Emile Element
e89929fde2 Add flavor and image options to select emulated virtual tpm
This commit adds three new flavor/image options to the interface.
The new options will allow the user to select and configure an
emulated virtual TPM in the guest. The new options are:

traits:COMPUTE_SECURITY_TPM_1_2
traits:COMPUTE_SECURITY_TPM_2_0
hw:tpm_model

nova blueprint: add-emulated-virtual-tpm

Change-Id: I1ff51f608b85dbb621814e70079ecfdd3d1a1d22
Signed-off-by: Paul-Emile Element <Paul-Emile.Element@windriver.com>
Signed-off-by: Chris Friesen <chris.friesen@windriver.com>
2022-05-18 16:09:18 +00:00
Pranali Deore
d23cf96ffa Release notes for Zed Milestone 1
Change-Id: I9d1533b357a8078b2f0af65167b37da917d197b4
2022-05-18 14:34:12 +00:00
Zuul
bfcab95ff2 Merge "Delay string interpolations at logging calls" 2022-05-18 14:01:32 +00:00
Lance Bragstad
2b607546e1 Use show-policy to render default policy in documentation
Change-Id: Ie5aa98294f7e0b9bdc46ceaa83316d831310b6bc
2022-05-18 15:10:08 +02:00
Zuul
2a1c10a549 Merge "Migrate CentOS Stream 8 job to CentOS Stream 9" 2022-05-18 12:44:59 +00:00
Pranali Deore
416a56c492 Refresh Glance example configs for Zed milestone 1
Change-Id: If174762b20ae0ddb468757a81dbb38e01f4061e4
2022-05-18 11:21:51 +00:00
Zuul
f01f31a792 Merge "doc: add aarch64 to list of architecture image properties" 2022-05-18 06:50:32 +00:00
Zuul
da3c4a17d6 Merge "add doc about KVM support e1000e vif model" 2022-05-18 06:46:22 +00:00
Takashi Kajinami
ce8fd56e1a Migrate CentOS Stream 8 job to CentOS Stream 9
Some projects like cinder have dropped support for Python 3.6 and are
no longer compatible with CentOS Stream 8 which uses Python 3.6 as
the default runtime.

Change-Id: I48f88c188f830f61c03ec5570cd95731636a0396
2022-05-18 08:36:10 +09:00
Thomas Bechtold
25297043e3 doc: add aarch64 to list of architecture image properties
Images for the aarch64 ARM architecture do have the architecture
property set to aarch64.
This is useful to know when trying to filter by properties like:

openstack image list --property architecture=aarch64

Change-Id: Ib4c0130bee302ee886521b74cf5434a0073cecf6
2022-05-17 21:14:53 +02:00
Zuul
9bc4ea4989 Merge "Override GLANCE_USE_IMPORT_WORKFLOW in cinder jobs" 2022-05-17 14:19:35 +00:00
Dan Smith
35e6c57bc9 Fix failing namespace list delete race
If a namespace is deleted by another client while we are doing a
namespace list operation, we will fail the list with NotFound if we
try to pull the resource_type_associations list. The latter re-queries
the DB for the namespace and will raise NotFound to us. This is
especially bad because the namespace being deleted need not even
belong to the caller of the list, as is the case in a tempest run.

This makes us catch the failure and continue the operation, reporting
no associations so that the client gets a consistent view and no
error.

Closes-Bug: #1973631
Change-Id: I09fc9164a08f42507d2aec44c5b382a72f232571
2022-05-16 12:29:55 -07:00
whoami-rajat
025ba83c47 Override GLANCE_USE_IMPORT_WORKFLOW in cinder jobs
With change[1], we moved glance cinder jobs parent from
tempest-integrated-storage-import to regular
tempest-integrated-storage job but this job also has
import workflow enabled[2].
In this patch we are overriding GLANCE_USE_IMPORT_WORKFLOW
to False in cinder jobs to ensure that import workflow
is disabled in those jobs.
Also removing -import from job names since it's not using
import plugin anymore.

[1] https://review.opendev.org/c/openstack/glance/+/841548
[2] https://opendev.org/openstack/tempest/src/branch/master/zuul.d/integrated-gate.yaml#L195

Related-Bug: #1973136
Change-Id: I2775e007f942feed8fa6ae5e385c03992859edc1
2022-05-16 16:08:07 +05:30
Cyril Roelandt
1962f47ed2 Delay string interpolations at logging calls
This was already fixed in 4889dc1814185380d282ba13167b5f2eb3a4c0a9 but
we did not enforce this rule and reintroduced "bad" string
interpolations. This patch adds a hacking rule to prevent us from doing
this again in the future.

Change-Id: I96d9a157d3887286542859d67138ffdae5a589f1
2022-05-14 03:17:34 +02:00
whoami-rajat
d7fa7a0321 Disable import workflow in glance cinder jobs
Recently, glance-multistore-cinder-import job started failing.
As per the RCA done here[1], the reason is glance is using
import workflow to create images which is an async operation.
As in case of glance cinder configuration, there are a lot of
external APIs (cinder) called like volume create, attachment
create, attachment update, attachment delete etc which takes
time to process hence the image doesn't get available in the
expected time (as per devstack) hence the failure.
Disabling import workflow will cause the images to be created
synchronously which should pass the glance cinder jobs.
To disable import workflow, we are inheriting from
tempest-integrated-storage and not
tempest-integrated-storage-import (which has import plugin enabled).

[1] https://review.opendev.org/c/openstack/glance/+/841278/1#message-456096e48b28e5b866deb8bf53e9258ee08219a0

Closes-Bug: 1973136
Change-Id: I524dfeb05c078773aa77020d4a6a9991a7eb75c2
2022-05-13 11:26:52 +05:30
Zuul
331ce59a50 Merge "Fix tests for logging connection info" 2022-05-10 20:05:32 +00:00
Zuul
575c484e50 Merge "Added cli_opts and cache_opts" 2022-05-10 19:55:04 +00:00
Zuul
b5a6b8c86f Merge "fixed typo in multistore documentation" 2022-05-10 18:22:31 +00:00
Zuul
d7e342932b Merge "[APIImpact] Correct API response code for PUT /v2/cache/{image_id}" 2022-05-10 17:30:45 +00:00