Commit Graph

7844 Commits

Author SHA1 Message Date
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
OpenStack Release Bot 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
Michal Arbet 309ca3aec2 Fix glance-api if cache is disabled
This patch fixes glance when cache is disabled.

Change-Id: I3c3560ba9c87c7098d75173a095642bdd1d7c687
2024-03-08 10:36:11 +01:00
OpenStack Release Bot 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
OpenStack Release Bot 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
OpenStack Release Bot 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 1e683483e7 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
Zuul 2fa64aea03 Merge "Support Stream Optimized VMDKs" 2024-02-16 21:47:31 +00:00
Abhishek Kekane 0bbaec2eeb Introduce centralized database driver for image cache
Added centralized_db driver for image cache which will use
centralized database for storing cache related information.

Related blueprint centralized-cache-db

Change-Id: Iafaaa86666176cc95f77d85a4ab77286f0042bdd
2024-02-16 16:38:06 +00:00
Zuul b4668d5db0 Merge "Replace CRLF by LF" 2024-02-16 05:13:20 +00:00
Zuul 06cc1782e1 Merge "Deprecate the "location_strategy" option" 2024-02-15 20:32:04 +00:00
Cyril Roelandt bd70adf049 Deprecate the "location_strategy" option
Change-Id: Ied8c4366eb1cc2ebf83a96bd824631a4d8af3a00
2024-02-15 17:17:39 +01:00
Zuul e31022bf9d Merge "Drop ineffective options from config file" 2024-02-15 15:17:20 +00:00
Abhishek Kekane 10d663d04d Add required database API(s) for cache
Added required database API methods for cache related
operations.

Related blueprint centralized-cache-db

Change-Id: Iae1f1927566f4bda74c5aeccf464df820cfae9d4
2024-02-15 14:35:05 +00:00