8004 Commits

Author SHA1 Message Date
Stephen Finucane
513311f975 Remove SQLAlchemy tips jobs
The most recent SQLAlchemy and Alembic versions are now in
upper-constraints. As a result, this job has served its purpose and can
be removed. For more information, see [1].

[1] https://lists.openstack.org/archives/list/openstack-discuss@lists.openstack.org/thread/RBHXHTO3GUOOXVSZXD4C2O3TKDOH2QSC/

Change-Id: I96ae5ba24a9e32994f4b7b111a8b56e56db33cbe
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Depends-on: https://review.opendev.org/c/openstack/requirements/+/879743
2024-04-12 11:39:09 +01:00
Christian Berendt
ccd41b1525 doc: remove trailing dot from hypervisor_type list
This is confusing, because after xen you have a dot which can be read
as belonging to the hypervisor type string.

Change-Id: Ibe5da521d80a895b66084c55a993cceebfb68894
2024-04-12 08:45:22 +00:00
Rajat Dhasmana
3f7b51653a Cinder: Remove ambiguous warning
In case of Cinder store, when updating location of a legacy image,
we call cinder store to perform the update.
If the operation fails, we log a warning in glance which states:

"Not able to update location url <url> of legacy image due to unknown issues."

Since glance doesn't have knowledge about the actual issue occurred
during the location update, we log this ambiguous warning which is not
useful for operators to debug the actual issue.

The responsibility of logging the warning should be delegated to
glance store (like done here[1]) since it can point to the right
issue as it knows which operation failed exactly.

This patch removes the warning and further warnings should be added
to glance store only.

[1] https://review.opendev.org/c/openstack/glance_store/+/911005

Change-Id: I24b14812a2a15675beacee720d722c2f3a2b252b
2024-04-08 23:44:20 +05:30
Cyril Roelandt
70d18c868a Docs: be more explicit regarding oslo_limit.endpoint_id
Make sure readers understand where this id comes from.

Change-Id: I2b6425f8a2bce4e47ebb15f4161fa238b3b6c6f9
Closes-Bug: #2059829
2024-04-03 02:41:51 +02:00
Zuul
0bcd6cd71c Merge "Docs: Add info about the cinder store" 2024-03-28 20:34:02 +00:00
Zuul
ff86f9a564 Merge "Update master for stable/2024.1" 2024-03-26 17:34:38 +00:00
Zuul
fcdffe22f9 Merge "reno: Update master for xena Unmaintained status" 2024-03-26 17:34:35 +00:00
Zuul
f61434ca53 Merge "reno: Update master for wallaby Unmaintained status" 2024-03-26 17:34:32 +00:00
Zuul
9977b04964 Merge "reno: Update master for victoria Unmaintained status" 2024-03-26 17:34:28 +00:00
Takashi Kajinami
3d21c1eb9e doc: Remove non-existing auth parameters of glance-cache.conf
These options were deprecated and then removed when the glance-registry
service was removed[2].

[1] 80fef06497c2a1f2e5c7bae4a0e04ab426ec70f7
[2] 30680961994b36ed12713c0f106b661535ce41c6

Change-Id: I519c99afe8bcdfa953c14470670dee690e593ce4
2024-03-25 19:59:36 +09:00
Cyril Roelandt
46a95f77e3 Remove the digest_algorithm option
This option has had no effect since the removal of native SSL support in
06b2465f598c014451c244d47c2ded4f1e2c6947 .

Change-Id: I7ad94bd2be45a25c9c1dccc552fa9110fc4862aa
2024-03-19 23:25:02 +01:00
d9838247d8 Update master for stable/2024.1
Add file to the reno documentation build to show release notes for
stable/2024.1.

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

Sem-Ver: feature
Change-Id: I4b22aeaae7c01c92d3d463bda4c157c6a415ea8b
2024-03-14 19:50:02 +00:00
Youngjun
2862eaef08 refectory: fix comments
- comments that did not match the parameter names have been corrected.
- parameter information included in parameters but remaining in comments has been deleted.

Change-Id: I6bbaaae697f1be560897c7d99234f1e23e710143
Signed-off-by: Youngjun <yj.yoo@okestro.com>
2024-03-12 14:52:36 +09:00
Michal Arbet
309ca3aec2 Fix glance-api if cache is disabled
This patch fixes glance when cache is disabled.

Change-Id: I3c3560ba9c87c7098d75173a095642bdd1d7c687
28.0.0.0rc1 28.0.0 28.0.1
2024-03-08 10:36:11 +01:00
b8f0bd4eb4 reno: Update master for xena Unmaintained status
The stable/xena branch has been deleted, so reno can't find its
release notes.  Use the xena-eom tag to indicate the end of the
Glance project's maintenance of the Xena series.

This strategy is consistent with the way we handled stable/yoga and
was agreed upon at the 8 Feb Glance meeting:
https://meetings.opendev.org/meetings/glance/2024/glance.2024-02-08-14.00.log.html#l-58

Change-Id: I57f167ee0d5a56a0ef2bbd12e4ea683b3b1d7079
2024-03-07 22:10:42 +00:00
6107144789 reno: Update master for wallaby Unmaintained status
The stable/wallaby branch has been deleted, so reno can't find its
release notes.  Use the wallaby-eom tag to indicate the end of the
Glance project's maintenance of the Wallaby series.

This strategy is consistent with the way we handled stable/yoga and
was agreed upon at the 8 Feb Glance meeting:
https://meetings.opendev.org/meetings/glance/2024/glance.2024-02-08-14.00.log.html#l-58

Change-Id: Ib6ede82ce42168191eaa6a49c09178bf4ae8ec70
2024-03-07 22:06:25 +00:00
749c8443c3 reno: Update master for victoria Unmaintained status
The stable/victoria branch has been deleted, so reno can't find its
release notes.  Use the victoria-eom tag to indicate the end of the
Glance project's maintenance of the Victoria series.

This strategy is consistent with the way we handled stable/yoga and
was agreed upon at the 8 Feb Glance meeting:
https://meetings.opendev.org/meetings/glance/2024/glance.2024-02-08-14.00.log.html#l-58

Change-Id: I9d5d597e6debb1c71d72f0720c34714c516ad91b
2024-03-07 22:00:51 +00:00
Rajat Dhasmana
81772be899 Docs: Add info about the cinder store
This patch mentions the following details about the glance cinder
store:

Single store:
Importance of setting the service credentials with the cinder store
configuration options.

Multi store:
1. Mention warning that during store initialization, we require the
credentials in configuration file to validate volume types.
2. Upgrade scenario where the values of configuration parameters
should remain same in single and multi store before and after the
upgrade.
3. Upgrade scenario when single store doesn't contain credentials
in glance config file and we need to transfer Image-Volumes to
service project.

Change-Id: Iff1320f8a4cf0c614f1a71556957a11ccd010147
2024-03-07 19:13:02 +05:30
Zuul
519ce0b94d Merge "Refresh Glance example configs for caracal m3" 2024-03-07 11:03:30 +00:00
Zuul
bc2b5326fa Merge "Require more specific exception" 2024-03-07 09:36:31 +00:00
Pranali Deore
752aab74b1 Refresh Glance example configs for caracal m3
Change-Id: I7490eeaa7352d38fba95c40bbb17bd970887be8b
2024-03-07 07:01:26 +00:00
Pranali Deore
4bfd932266 Release notes for Caracal Milestone 3
Change-Id: I9388014b03e2730587adddffc0939819dc0d1aaa
2024-03-07 06:54:24 +00:00
Zuul
0730be6608 Merge "New grenade job to upgrding cache driver" 2024-03-06 20:56:52 +00:00
Abhishek Kekane
c7cc706a15 New grenade job to upgrding cache driver
This job will verify that upgrading cache driver from sqlite to
centralized database will not have any impact.

Related blueprint  centralized-cache-db

Change-Id: Iafed7342753da73efee2c50079505d88fe8ac4d5
2024-03-06 12:43:28 +00:00
Takashi Kajinami
211fdbab28 Require more specific exception
This is follow-up of 1e683483e72dfc25da81d9b376cf6963f87b0af7 and
replaces the generic Exception asserted in a unit tests by the specific
castellan exception, according to the 4.4.0 release.

This change does not bump minimum required version of castellan because
the version requirement only affects unit tests.

Depends-on: https://review.opendev.org/c/openstack/requirements/+/911059
Change-Id: Id1ed909f179038713d9da2fd72cf39e7fb7c8dfe
2024-03-06 03:20:39 +00:00
Abhishek Kekane
9b9111f819 Make centralized_db cache driver default
Made `centralized_db` cache driver as default driver so that we
can test it using tempest jobs in gate.

Implements blueprint centralized-cache-db
Depends-On: https://review.opendev.org/c/openstack/devstack/+/907110

Change-Id: Id94e93e3ba3fc207b39c7dbff92495805aa0f6f9
2024-03-05 19:35:20 +00:00
Zuul
bd955b1189 Merge "Use centralized_db cache driver in tempest jobs" 2024-03-05 18:37:55 +00:00
Zuul
cd881124ca Merge "Prepare for castellan 4.4.0" 2024-03-04 14:23:16 +00:00
Zuul
6a53883b57 Merge "Deprecate the "glance-cache-manage" command" 2024-03-01 18:35:35 +00:00
Zuul
a6b74262a6 Merge "[minor] Fix doc string for class" 2024-03-01 15:21:49 +00:00
Zuul
e53e4bdc24 Merge "inject_image_metadata plugin: Fix documentation" 2024-03-01 06:50:03 +00:00
Abhishek Kekane
68c3a80291 Use centralized_db cache driver in tempest jobs
Related blueprint centralized-cache-db
Depends-On: https://review.opendev.org/c/openstack/tempest/+/901525
Change-Id: Icd6d79d563c6b5e8f2158bcad9b4f471d72def90
2024-03-01 05:23:55 +00:00
Brian Rosmaita
9df586a5fe Set a lock_path for tests
oslo.concurrency 6.0.0 has relocated the lock_path that is required
for external locks from [DEFAULT] to the [oslo_concurrency] config
section.  Instead of messing with configuration, we can use the
lockutils.set_defaults() method to set this for tests.  So add this
to the BaseTestCase so that it's available for all tests.

Change-Id: I2878b4162dddaf935002c168bc544eb1eff71efd
2024-02-29 16:44:40 -05:00
Abhishek Kekane
5bf2f4e7a0 Fix flaky test related to cache migration
In cache migration unit tests, I was using same cache.db file name
in the setup method which was used by all the tests, which was
causing a issue of deleting a file by other test and resulted
in random failure.

Using random filename to fix this issue permenantly.

Related blueprint centralized-cache-db

Change-Id: I321982013bdf571741a8ef2d0575f65288fff53f
2024-02-29 12:35:00 -08:00
Zuul
703cf5ffdd Merge "[docs] Configure centralized_db cache driver" 2024-02-28 17:05:36 +00:00
Zuul
2190d648e7 Merge "Migrate from SQLite to Centralized db" 2024-02-28 16:33:32 +00:00
Abhishek Kekane
cd9d521923 [docs] Configure centralized_db cache driver
Documented the usage of centralized_db cache driver and
migration process from SQLite to centralized_db on upgrade.

Related blueprint centralized-cache-db

Change-Id: I4404cd0cb9e7a59ea332b0ad2bac354b53c232d4
2024-02-28 14:43:11 +00:00
Zuul
0277b24427 Merge "Move sqlite code in common module" 2024-02-28 06:59:06 +00:00
Zuul
6cd955078f Merge "Deprecate glance scrubber" 2024-02-28 05:13:38 +00:00
Takashi Kajinami
1e683483e7 Prepare for castellan 4.4.0
In castellan 4.4.0, we fixed the wrong exception MockKeyManager.get
raised in case the requested key does not exist. This change interferes
with the way one unit test case ensure a key is gone.

This replaces the asserted exception by generic Exception so that we
can unblock u-c bump now. We can later replace it by the specific and
correct exception (ManagedObjectNotFoundError) once castellan 4.4.0 is
pulled to u-c.

[1] 2cc410f56e7275d982bca95aa65cd11e22fc7c3c

Change-Id: I8cc1420e8b16ce0bc74314fd7b8aabf6e133abd8
2024-02-28 11:28:48 +09:00
Zuul
acd729bbb2 Merge "Read global config file for cache utilities" 2024-02-27 21:57:36 +00:00
Zuul
8651aefa23 Merge "Introduce centralized database driver for image cache" 2024-02-27 21:57:34 +00:00
Abhishek Kekane
781ce28560 Migrate from SQLite to Centralized db
Made provision to migrate existing cache records from
sqlite to centralized db and delete those from sqlite
after successful migration.

Implements blueprint centralized-cache-db

Change-Id: I2a840915bb6d9d72d6379cae09ebec0e51a4a6dd
2024-02-27 18:16:04 +00:00
Abhishek Kekane
591f479442 [minor] Fix doc string for class
Change-Id: I15b19dbbc77e211dff78bb9ba5e7c7210b08a529
2024-02-27 17:28:48 +00:00
Zuul
7b40c33cb6 Merge "Add required database API(s) for cache" 2024-02-27 14:59:26 +00:00
Brian Rosmaita
b059afbe2c Deprecate glance scrubber
Deprecate the glance scrubber utility and its associated
configuration options for removal during the 2024.2 (Dalmatian)
development cycle.

Removal of the scrubber was proposed on the mailing list on
2024-02-01:

https://lists.openstack.org/archives/list/openstack-discuss@lists.openstack.org/thread/33F37CL4NUE3QI6GYBWG5BL5UNBK4L5U/

No objections were raised.

Change-Id: I82d9e7bf3f1f582030ac7729d729a746784c668f
2024-02-26 22:02:24 -05:00
Pranali Deore
468ebdd2f0 Make openstack-tox-functional-py38-fips job non-voting
Temporarily make the openstack-tox-functional-py38-fips
job non-voting till we figure out why its failing.

Change-Id: I8b693a692fc1248c385cfa7d0808ae0283a33781
2024-02-26 08:16:13 +00:00
Abhishek Kekane
21333c1ac8 Move sqlite code in common module
Moved sqlite connection code in new module so that we can use
the same in migration phase. Once sqlite driver is removed then
we can remove this common module as well.

Related blueprint centralized-cache-db

Change-Id: Id34f9ae7a2639023c8b6a7937487e7af5c2dccad
2024-02-20 19:52:39 +00:00
Abhishek Kekane
9c7820740a Read global config file for cache utilities
Made provision to read gloabl glance-api.conf file by
cache-pruner, cache-cleaner command line utility tools
to make those compatible with centralized_db cache driver.

Related blueprint centralized-cache-db

Change-Id: I88d28dd086b6b57bedd9eda73534fa3e05dc8cc6
2024-02-20 19:51:52 +00:00
Zuul
02be49c998 Merge "Add new tables for cache operations" 2024-02-19 20:35:01 +00:00