8004 Commits

Author SHA1 Message Date
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
Zuul
6e6c300822 Merge "reno: Update master for yoga Unmaintained status" 2024-02-15 14:19:26 +00:00
Cyril Roelandt
dd9b3156cd 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
2024-02-15 02:31:36 +01:00
Zuul
7fd459fef2 Merge "Deprecate sqlite cache driver" 2024-02-14 10:16:06 +00:00
23f69bd5c4 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
2024-02-12 19:57:25 +00:00
Abhishek Kekane
b6bd03d4bc 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
2024-02-09 08:40:46 +00:00
Takashi Kajinami
5cf15b68aa Use constants for common rules
The string "rule:context_is_admin" appears multiple times but these can
be replaced by the constant defined in the policy base class.

There are also a few more policy rules repeated but the same approach
allows us to reduce maintaining the same string in multiple places.

Change-Id: I2ffc7c2cb6d0a2fe595d9c36db29b8c3303178e3
2024-02-07 19:35:16 +09:00
Fabian Wiesel
5e7e6bfb80 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>
2024-02-05 12:06:30 +01:00
Takashi Kajinami
1e99767d0e 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
2024-01-31 01:16:12 +00:00
Takashi Kajinami
a62475593a Replace CRLF by LF
... because LF is commonly used as newline code.

Change-Id: Ie7a324f14480e68e89f5f673c023fc15f574062e
2024-01-27 16:55:21 +00:00
Takashi Kajinami
9f896ab03d Bump hacking
hacking 3.0.x is too old.

Change-Id: I33875c36dbbdb946841f8c583636ccdf88d3331f
2024-01-27 16:55:11 +00:00
Takashi Kajinami
b6b9f043ff 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
2024-01-28 01:06:30 +09:00
Cyril Roelandt
71e3c036d7 Deprecate the "glance-cache-manage" command
Change-Id: I5fe40f1ebd6acd25d4ed2e05d20a409511be08af
2024-01-23 17:55:12 +01:00
Zuul
f429b53e04 Merge "Update python classifier in setup.cfg" 2024-01-17 20:18:08 +00:00
Abhishek Kekane
6708fa60e9 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
2024-01-16 03:51:20 +00:00
Takashi Kajinami
5378396b84 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
2024-01-12 00:20:42 +09:00
Ghanshyam Mann
d460333737 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
2024-01-08 20:21:21 -08:00
Zuul
41fa8223b7 Merge "Add Packed Virtqueue extra spec and image properties" 28.0.0.0b2 2023-12-21 16:00:25 +00:00
Zuul
da70c87a18 Merge "api-ref: Fix RST formatting" 2023-12-07 17:21:49 +00:00
Zuul
061e2fb4ee Merge "Deprecate Windows OS support" 2023-12-07 17:21:47 +00:00
Danylo Vodopianov
66566c3286 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
2023-12-05 10:59:18 +02:00
whoami-rajat
64e6da6fe1 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
2023-11-30 12:10:25 +00:00
Takashi Kajinami
a8bed388f2 Deprecate Windows OS support
Unfortunately the Winstackers project has been retired because of no
maintainers[1][2], and OpenStack on Windows host is no longer
maintained.

[1] https://lists.openstack.org/pipermail/openstack-discuss/2022-November/031044.html
[2] https://review.opendev.org/c/openstack/governance/+/886880

Change-Id: Ib4c42b0619254ba4167deb9d06637a8ebdbcdec1
2023-11-27 11:33:37 +09:00
Pranali Deore
db41ce6728 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
2023-11-10 11:00:27 +00:00
PranaliD
caa6e5d965 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
2023-11-09 11:09:11 +00:00
Takashi Kajinami
08eedc8c45 Drop unused pyOpenSSL
glance no longer imports the library directly.

Change-Id: I9e09fa6396a959d97e690a08dc318d3aa0a78cfd
2023-11-06 22:06:39 +09:00
Takashi Kajinami
cab97a6269 Do not load api-paste.ini using oslo.config
We expect that the api-paste.ini file contains pipeline definitions for
paste, which are different from service options. Thus we should not
load this file using oslo.config.

Change-Id: Ic03c5f9295e95bd967ab8d305ed8340b6e69e235
2023-10-19 06:58:02 +00:00
Zuul
03a14a9b9c Merge "Unset VENV python_interpreter in fips job" 2023-09-25 20:04:51 +00:00
Zuul
05dae248ec Merge "Remove 'egg_info' configuration" 2023-09-25 18:55:30 +00:00
Zuul
5b23334740 Merge "Update master for stable/2023.2" 2023-09-25 15:02:51 +00:00
Zuul
db05d6c27c Merge "db: Re-use a single connection" 2023-09-25 14:21:11 +00:00
Zuul
8593179896 Merge "db: Use context, session args for metadef DB APIs" 2023-09-23 11:44:38 +00:00
Dan Smith
359f902518 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
2023-09-22 08:07:19 -07:00
Stephen Finucane
0b29dc9beb zuul: Replace use of deprecated regex syntax
zuul now says:

  All regular expressions must conform to RE2 syntax, but an expression
  using the deprecated Perl-style syntax has been detected. Adjust the
  configuration to conform to RE2 syntax.

Do as we're told.

Change-Id: Iffa8ae6102c547184fab4ed0f6860a5a73da150c
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2023-09-22 12:30:02 +01:00
Zuul
78d0c8545d Merge "db: Trivial parameter swap" 2023-09-22 07:20:12 +00:00
Zuul
551b15008b Merge "Add job to test with SQLAlchemy master (2.x)" 2023-09-22 03:01:15 +00:00
Zuul
88bb1568fc Merge "db: Remove explicit autocommit" 2023-09-21 22:35:10 +00:00
Zuul
169a651b99 Merge "Imported Translations from Zanata" 2023-09-21 13:03:21 +00:00
OpenStack Proposal Bot
3de21de79b Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I9a4b95e34c31bac175d6ba1fa658bd02f31a34ab
2023-09-21 03:56:52 +00:00
Zuul
05d8cafcbd Merge "db: Replace use of update.values parameter" 2023-09-21 02:55:09 +00:00
a36384e9a2 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
2023-09-20 08:59:02 +00:00
Zuul
18813914cc Merge "db: Sync migrations, models" 2023-09-19 19:14:38 +00:00
Zuul
96ab3e976f Merge "db: Drop the convert_unicode, unicode_error flags" 2023-09-19 00:40:21 +00:00
Zuul
46988556ee Merge "Set GLOBAL_VENV to false for centos" 2023-09-18 20:14:08 +00:00