* Update glance from branch 'master'
to 7b6e89155968c531f63e41e05af89a75fceadd06
- Merge "doc: remove trailing dot from hypervisor_type list"
- 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
* Update glance from branch 'master'
to b8375913bf7645d13ba0b8360453527e151c4bdf
- Merge "Replace remaining usage of [DEFAULT] sql_connection"
- Replace remaining usage of [DEFAULT] sql_connection
The previous attempt[1] was incomplete and these was still one usage
left. The deprecated alias was removed from oslo.db[2] and no longer
works.
[1] b6b9f043ffe664c643456912148648ecc0d6c9b4
[2] bf90aed0f7b19441644de2be807ec680ad86b1b1
Change-Id: Ib3b0271057578a64ae556a11224e3b366ddf89bf
* Update glance from branch 'master'
to 835e7f36a52d8ea22052bb59be84ae792499d62b
- Remove unused run_sql_cmd
The run_sql_cmd method in functional tests is not used. The method uses
Engine.execute() method which was removed in 2.0.
Change-Id: I6f9ea1dfd852a2d311e17964da0ea56c052b3fda
* Update glance from branch 'master'
to 0bcd6cd71c09917c6734421374fd598d73e8d0cc
- Merge "Docs: Add info about the cinder store"
- 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
* Update glance from branch 'master'
to ff86f9a5647ce05433a820fac68d11e7c2329b8d
- Merge "Update master for stable/2024.1"
- 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
* Update glance from branch 'master'
to fcdffe22f9576362fe1ca82d9bd46bf0928fe966
- Merge "reno: Update master for xena Unmaintained status"
- 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
* Update glance from branch 'master'
to f61434ca53f77ebd86ef428dcbcbf6673b7f3ce6
- Merge "reno: Update master for wallaby Unmaintained status"
- 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
* Update glance from branch 'master'
to 9977b04964830207986a45e7217ac4749a07f4a5
- Merge "reno: Update master for victoria Unmaintained status"
- 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
* Update glance from branch 'master'
to 309ca3aec26b6dd49b8d955c4900a5c390d14537
- Fix glance-api if cache is disabled
This patch fixes glance when cache is disabled.
Change-Id: I3c3560ba9c87c7098d75173a095642bdd1d7c687
* Update glance from branch 'master'
to 519ce0b94dcc6dad229fbe08d8d21ccdefb6c99e
- Merge "Refresh Glance example configs for caracal m3"
- Refresh Glance example configs for caracal m3
Change-Id: I7490eeaa7352d38fba95c40bbb17bd970887be8b
* Update glance from branch 'master'
to bc2b5326fa8c84ba7115d6df0190dcfc2326e71f
- Merge "Require more specific exception"
- 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
* Update glance from branch 'master'
to 0730be660870b930ef2f213cc79de6cc17d9b046
- Merge "New grenade job to upgrding cache driver"
- 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
* Update glance from branch 'master'
to 9b9111f81996a22527f9622d0707891e445cbd5f
- 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
* Update glance from branch 'master'
to bd955b1189da170c12fe06fbd42556d91313747c
- Merge "Use centralized_db cache driver in tempest jobs"
- 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
* Update glance from branch 'master'
to cd881124cad26cee751ec77f43aa4f7b63955afb
- Merge "Prepare for castellan 4.4.0"
- 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
* Update glance from branch 'master'
to a6b74262a64dfe3ecbb6754d9436740ccf9f703b
- Merge "[minor] Fix doc string for class"
- [minor] Fix doc string for class
Change-Id: I15b19dbbc77e211dff78bb9ba5e7c7210b08a529
* Update glance from branch 'master'
to e53e4bdc24544014454a570d2a720087d038b9e3
- Merge "inject_image_metadata plugin: Fix documentation"
- inject_image_metadata plugin: Fix documentation
The properties and values given to the "inject" option must not be
quoted, otherwise the quotes become part of the values themselves.
Change-Id: Ibcb8b8488253f459f40e6d34f4221832b7ff3839
Closes-Bug: #2028895
* Update glance from branch 'master'
to 9df586a5fe2fd02b4f7497fc9e73b45c4acaf25d
- 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
* Update glance from branch 'master'
to 5bf2f4e7a073ed1c046f541845680484d93d9036
- 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
* Update glance from branch 'master'
to 703cf5ffddc1dcc9a7086b8dff220cf5627d308b
- Merge "[docs] Configure centralized_db cache driver"
- [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
* Update glance from branch 'master'
to 2190d648e7a08dd7bd8c26e0fc5bf7c46d48872c
- Merge "Migrate from SQLite to Centralized db"
- 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
* Update glance from branch 'master'
to 0277b244279bea0b6ea3dd919de0e28fc35a5fcd
- Merge "Move sqlite code in common module"
- 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
* Update glance from branch 'master'
to 6cd955078f802d58d862e2c1a8a24f190bef2590
- Merge "Deprecate glance scrubber"
- 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
* Update glance from branch 'master'
to acd729bbb2cb588509790212a56ec58232af784a
- Merge "Read global config file for cache utilities"
- 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
* Update glance from branch 'master'
to 8651aefa239628877be8e0a5c318a8de11d6221a
- Merge "Introduce centralized database driver for image cache"
- 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
* Update glance from branch 'master'
to 7b40c33cb6e89ca5807e476f49927b32c99ce2bf
- Merge "Add required database API(s) for cache"
- Add required database API(s) for cache
Added required database API methods for cache related
operations.
Related blueprint centralized-cache-db
Change-Id: Iae1f1927566f4bda74c5aeccf464df820cfae9d4
* Update glance from branch 'master'
to 468ebdd2f00a94735b59b61369e53feb33b11413
- 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
* Update glance from branch 'master'
to 02be49c998c578284052e73ec1a6bef7193afc8c
- Merge "Add new tables for cache operations"
- Add new tables for cache operations
Added expand script and model to define `cached_images` and
`node_reference` database tables.
Related blueprint centralized-cache-db
Change-Id: I9991a4e945bd4d231e942096445fd5374ff7ff2a
* Update glance from branch 'master'
to 2fa64aea03c16632fbbaa9d96c50062c0fd2e018
- Merge "Support Stream Optimized VMDKs"
- Support Stream Optimized VMDKs
Stream optimized VMDKs are also monolithic disks images, and start
with the same sparse extend header as normal monolithic sparse files,
so we can parse the virtual disk size in the same manner.
See "VMware Virtual Disks Virtual Disk Format 1.1" p. 17.
> Header and Footer
> The header and the footer are both described by the same SparseExtentHeader
> structure shown in Hosted Sparse Extent Header on page 8.
Closes-Bug: #2052291
Change-Id: I7d63951ff080dc699b8d11babc0a5998d90621e4
Co-Authored-By: Rajiv Mucheli <rajiv.mucheli@gmail.com>
* Update glance from branch 'master'
to b4668d5db0e3096d3d0ef1796936a74f0034681a
- Merge "Replace CRLF by LF"
- Replace CRLF by LF
... because LF is commonly used as newline code.
Change-Id: Ie7a324f14480e68e89f5f673c023fc15f574062e
* Update glance from branch 'master'
to e31022bf9da9c7ea852b497a1ecec886c33d160a
- Merge "Drop ineffective options from config file"
- Drop ineffective options from config file
The following options set in functional tests do not exist.
[DEFAULT] send_identity_credentials
[DEFAULT] send_identity_headers
Change-Id: Ia739af13e0f88d0861e453a4d54ecc626e32b34b
* Update glance from branch 'master'
to 6e6c300822daca9a7c49ac08b4c1141ea6887c21
- Merge "reno: Update master for yoga Unmaintained status"
- reno: Update master for yoga Unmaintained status
The stable/yoga branch has been deleted, so reno can't find its
release notes. Use the yoga-eom tag to indicate the end of the
Glance project's maintenance of the Yoga series.
This strategy 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: I806421d268bbd7a0c5ca2d90147c6afb34566094
* Update glance from branch 'master'
to 7fd459fef29f586d681bf4e3e3639bd061adec9f
- Merge "Deprecate sqlite cache driver"
- Deprecate sqlite cache driver
sqlite cache driver and related configuration options will be
deprecated from this cycle.
Related blueprint centralized-cache-db
Change-Id: I0c1affff05a2a4c2838cfad2b637e7660b056eef
* Update glance from branch 'master'
to 9f896ab03d3516d05d410fc545a6faf7fb7554e2
- Bump hacking
hacking 3.0.x is too old.
Change-Id: I33875c36dbbdb946841f8c583636ccdf88d3331f
* Update glance from branch 'master'
to b6b9f043ffe664c643456912148648ecc0d6c9b4
- Replace usage of deprecated [DATABASE] sql_connection
This option was deprecated in oslo.db a long ago and was removed in
master.
Change-Id: Iba6aa00e4f86fc4b82fa354fddf2fc7d6b47c52f
* Update glance from branch 'master'
to f429b53e0474553992f43c7045498156ee36d5cb
- Merge "Update python classifier in setup.cfg"
- Update python classifier in setup.cfg
As per the current release tested runtime, we test
till python 3.11 so updating the same in python
classifier in setup.cfg
Change-Id: I703ff8cdebd2e929ab775f9b601a8542fb413153
* Update glance from branch 'master'
to 5378396b84755dedbba2a34d2e9c93add8c27176
- Fix test failures with oslo.limit 2.3.0
The oslo.limit 2.3.0 release contains the validation to ensure
the [oslo_limit] endpoint_id option is set[1]. This fixes the test
failures caused by that validation by overriding the option in all
test cases where unified quota implementation is used.
[1] https://review.opendev.org/c/openstack/oslo.limit/+/897509
Closes-Bug: #2049064
Change-Id: I704393892799ee0d5edf45fabe07afe01473e38d
* Update glance from branch 'master'
to 41fa8223b7dda10e2ff310097bb86700f254015e
- Merge "Add Packed Virtqueue extra spec and image properties"
- Add Packed Virtqueue extra spec and image properties
Virtqueue feature was added to the metadata properties for flavor and
images
- Add the hw:virtio_packed_ring flavor extra spec and corresponding
hw_virtio_packed_ring image property.
Nova spec: https://review.opendev.org/c/openstack/nova-specs/+/868377
Depends-On: https://review.opendev.org/c/openstack/nova/+/876075
Change-Id: Ia8caf39467a91431ca85b2a56ec93a60c41a8e7d
* Update glance from branch 'master'
to da70c87a18c1fca88e2a0ad27febb95cc16deb2e
- Merge "api-ref: Fix RST formatting"
- api-ref: Fix RST formatting
The list is currently not displayed properly.
Change-Id: Ie7edcfb18d91ee6e68bdba019b153819235222df
* Update glance from branch 'master'
to 64e6da6fe1c810befab1e5a59230ce8711dce709
- Increase timeout for glance cinder multistore job
Currently the glance cinder multistore job times out from time to
time in 2 hours (and some minutes)[1].
The issue is not specific and generally points to a slow devstack
deployment or a slow tempest run[2] which exceeds the allocated time
provided for the job to complete.
Unless the job is checked thoroughly to determine the areas of
improvement, a short term fix would be to increase the timeout
of job (which might also be the ideal solution if the job is
landing on a system with inferior hardware).
This patch increases the timeout to 10800 seconds i.e. 3 hours.
[1] https://zuul.openstack.org/builds?job_name=glance-multistore-cinder-import&project=openstack%2Fglance&skip=0
[2] https://review.opendev.org/c/openstack/glance/+/899868/1#message-081c737d8747de44669acd1cdc322e347b09d390
Change-Id: I2d21d8b098355a6cc4ceb1de8f9d7fefa19be965
* Update glance from branch 'master'
to db41ce67283b02e3b610b81a3131923d15b3e7a8
- Revert "Make glance-tox-functional-py39-sqlalchemy-tips job non-voting"
This reverts commit caa6e5d965c1467d7df51ceaa29660fe5140f1c3.
Reason for revert:
Sqlalchemy issue is fixed and upper-constraint change is also merged after oslo.utils 6.3.0 release.
Change-Id: I21e3911aaea363dfd2d46974431bf34efd72282d
* Update glance from branch 'master'
to caa6e5d965c1467d7df51ceaa29660fe5140f1c3
- Make glance-tox-functional-py39-sqlalchemy-tips job non-voting
Sqlalchemy issue[1] was breaking this job which is currently fixed
but in order to unblock the gate moving this job to non voting
until the new release for oslo.utils[2]
[1]: https://bugs.launchpad.net/oslo.utils/+bug/2042886
[2]: https://review.opendev.org/c/openstack/releases/+/900382
Change-Id: Idd36655f1e495fe40138b9245c8e4f1f81c89d19
* Update glance from branch 'master'
to 08eedc8c455c0faeda680c54c9994afa4be050a0
- Drop unused pyOpenSSL
glance no longer imports the library directly.
Change-Id: I9e09fa6396a959d97e690a08dc318d3aa0a78cfd
* Update glance from branch 'master'
to 03a14a9b9c3fbbe106d1f2cc1e33fb594a5be963
- Merge "Unset VENV python_interpreter in fips job"
- Unset VENV python_interpreter in fips job
This is set in the parent job, but will be wrong if we are not using
a venv.
Depends-On: https://review.opendev.org/c/openstack/devstack/+/896123
Change-Id: Iab82ccb68821d7e56f7cdb64a3dbafe313f1928b
* Update glance from branch 'master'
to 05dae248ecb3a7ad2b0dab0ca02ee2a55bf25059
- Merge "Remove 'egg_info' configuration"
- Remove 'egg_info' configuration
eggs are dead, long live wheels. We don't use this and it can be
confusing if one builds eggs since the version isn't taken from git
(using pbr) but rather from setuptools/distutils.
Change-Id: Iccfdb7fd0bd65318997c598db7e6cf59d4ac0df0
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* Update glance from branch 'master'
to 5b23334740fa7ac400fc32cb79c1aaff4a366dce
- Merge "Update master for stable/2023.2"
- Update master for stable/2023.2
Add file to the reno documentation build to show release notes for
stable/2023.2.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2023.2.
Sem-Ver: feature
Change-Id: If5b6515d448578f83bf7b2ff8e6d9799420a94d2