Commit Graph

1507 Commits

Author SHA1 Message Date
Zuul 769dd2e78d Merge "reno: Update master for xena Unmaintained status" 2024-03-26 16:26:17 +00:00
Zuul fdad7faf8d Merge "reno: Update master for wallaby Unmaintained status" 2024-03-26 16:26:16 +00:00
Zuul 2c1913a173 Merge "reno: Update master for victoria Unmaintained status" 2024-03-26 15:54:22 +00:00
OpenStack Release Bot 0e798609d8 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: I3473a36a473767531c19463611d3eddb1a676998
2024-03-07 22:11:23 +00:00
OpenStack Release Bot 4ed3b7b5fb 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: I1869021ca2117bd74f13e49c0f76967f3ef42c65
2024-03-07 22:07:12 +00:00
OpenStack Release Bot fc46785039 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: Ib1f22dc701d090e8540aefd995903af143a34594
2024-03-07 22:01:45 +00:00
OpenStack Release Bot 7376aa67cc 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: I9856860976200d82384a39c16484167c1a774506
2024-03-07 15:00:55 +00:00
Zuul f68377600c Merge "reno: Update master for yoga Unmaintained status" 2024-02-15 14:43:06 +00:00
Zuul f07ad89f6c Merge "Bump hacking" 2024-02-15 02:25:50 +00:00
Zuul 7a3ca385da Merge "Exclude tests directory from coverage calculation" 2024-02-15 02:22:42 +00:00
OpenStack Release Bot 42848e0118 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: I604c960eb0b2614efc39d5b5508b15abc8f9d0f2
2024-02-12 19:59:15 +00:00
Pranali Deore 3c5dd2381f Remove incorrect validation for glance-download import method
Since REMOTE SERVICE INTERFACE has default value to 'public',
it doesn't make sense to have validation for the same.

Removing this validation and added few missing tests for
glance-download import method

Closes-Bug: #2051761
Change-Id: I89adf23aac5db4f2c46379546def2f71d7c8e163
2024-01-31 09:57:50 +00:00
Takashi Kajinami 7ddca13fcb Bump hacking
hackihg 3.0.x is too old.

Change-Id: I9d0d19bc6ecf4cb934cce77ce25e89882202dbd6
2024-01-27 23:18:53 +09:00
Takashi Kajinami 597095ffca Exclude tests directory from coverage calculation
Change-Id: I4c9033033fc38a93044da6fb910302635b6c950a
2024-01-25 23:51:51 +09:00
Ghanshyam Mann 2952978676 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: I83a7f6bb7a2069e221e6c8efee31886defcaa93a
2024-01-08 20:21:19 -08:00
OpenStack Release Bot 5f2835fcf0 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: I1d1f147333a10f0a526df83ad88b9cff56020cc3
2023-09-15 14:53:18 +00:00
Pranali Deore 62e6fc8270 Release notes for 4.4.0
Change-Id: I96283b493c60de69f4598fb4470fba5fb117d749
2023-07-06 09:31:39 +00:00
Zuul 881f4e6343 Merge "do_image_import: always pass remote_* to gc.images.image_import" 2023-07-04 18:50:19 +00:00
Zuul f53d6714fd Merge "md-property-create: add a mandatory "--type" option" 2023-06-28 16:41:03 +00:00
Zuul ee9f6c6faf Merge "Bump the CHUNKSIZE to use CPU more efficiently" 2023-06-28 16:41:02 +00:00
Cyril Roelandt 7c2ab837aa Docs generation: mock the six module for autodoc
Currently, tox-edocs fails with the following error message:

Warning, treated as error:
autodoc: failed to import module 'shell' from module 'glanceclient'; the
following exception was raised:
No module named 'six'

We used to install six in the virtual environment through keystoneauth,
but keystoneauth no longer depends on six. Let's mock six completely in
the context of autodoc.

Change-Id: Ibcf0b9698227a2c22fe991b7516ba5dceabfc607
2023-06-07 17:26:33 +02:00
Nobuto Murata 7d78cc4b9d Bump the CHUNKSIZE to use CPU more efficiently
The chunk size used for downloading images was 64KiB for some time. That
is okay for relatively small images but the client side of CPU can be a
bottleneck especially for large images. Bump the default chunk size from
64KiB to 1MiB so we can use the client side CPU more efficiently.

[64KiB chunk size - current]
INFO cinder.image.image_utils Image download 1907.35 MB at 68.61 MB/s
-> ~ 549 Mbps

[1MiB chunk size - patched]
INFO cinder.image.image_utils Image download 1907.35 MB at 132.10 MB/s
-> 1,057 Mbps

Closes-Bug: #2020139
Change-Id: I8b6e19621fc989526b02319d88fcfde88a17eee0
2023-05-19 09:40:22 +09:00
Zuul 8681124fcc Merge "do_image_import: fix argument retrieval" 2023-05-16 17:25:30 +00:00
Cyril Roelandt 1ea41f042c do_image_import: always pass remote_* to gc.images.image_import
In do_image_import, gc.images.image_import may be called from two
different places, depending on the command used ("glance image-import"
or "glance image-create-via-import"). Make sure we always pass the
remote_* arguments to gc.images.import.

Change-Id: I76c6ea00523d93bad900776866de6ba22bc516b4
Partial-Bug: #2012442
2023-05-03 15:38:40 +02:00
Zuul 3fdc74b8f2 Merge "Update master for stable/2023.1" 2023-04-27 22:18:58 +00:00
Cyril Roelandt 320ea4b715 Tox4: remove skipsdist
This option causes the installation of the "glance" command to fail in
the functional tests. We have removed it from glance and glance_store in
the past to improve compatibility with tox>=4.0, so let us do the same
in glanceclient.

Change-Id: Ia5bf8d5f90e9cd98adc65c3fa80ce4c87eebad9c
2023-04-18 22:24:37 +02:00
Cyril Roelandt e2190c4feb do_image_import: fix argument retrieval
The argparse module automatically replaces '-' characters with '_'
characters when converting an option string to an attribute:

«For optional argument actions, the value of dest is normally inferred
from the option strings. ArgumentParser generates the value of dest by
taking the first long option string and stripping away the initial --
string. If no long option strings were supplied, dest will be derived
from the first short option string by stripping the initial - character.
Any internal - characters will be converted to _ characters to make sure
the string is a valid attribute name.»[1]

This means that the value of the "--remote-region" option of the
"image-import" command will be available as "args.remote_region";
"remote-region" would not be a valid attribute anyway.

We make sure to retrieve the proper value for the following
options: --remote-region, --remote-image-id and
--remote-service-interface.

[1] https://docs.python.org/3/library/argparse.html#dest

Change-Id: I1d8c69acd5d61fdc426469cd87d1ace81871e60f
Partial-Bug: #2012442
2023-04-18 03:21:03 +02:00
OpenStack Release Bot 23fe745077 Update master for stable/2023.1
Add file to the reno documentation build to show release notes for
stable/2023.1.

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

Sem-Ver: feature
Change-Id: I4e1a0a7c870e51909aebdc16d02b0062554de49a
2023-03-01 13:19:13 +00:00
Pranali Deore 52fb6b29d8 Release notes for 4.3.0
Change-Id: I346af48771466c3f9dbaf470f611910ff3dda271
2023-02-16 09:19:07 +00:00
Zuul 2d893b12dd Merge "Unhardcode the value of DEFAULT_PAGE_SIZE from the tests" 2023-02-09 15:33:18 +00:00
Zuul 590f793c9f Merge "Remove unicode-related Python2-only code" 2023-01-12 22:39:42 +00:00
Zuul 9b9c677715 Merge "Boolean options: use strict checking" 2023-01-12 22:39:41 +00:00
Cyril Roelandt 6c95122777 Fix functional tests and docs generation
First, fix test_help(). A commit[1], which first appeared in Python
3.10, changes the output of the help feature of argparse. Options used
to be in a section named "Optional arguments:", and they are now in a
section named "Options:".

Second, tox 4 changes the behaviour of tox, and
{toxinidir}/requirements.txt is no longer installed automagically in the
docs virtual environment. This causes autodoc to fail on some imports.
We explicitely add {toxinidir}/requirements.txt to the list of
dependencies to fix this issue.

These issues should be fixed in separate patches, but since they both
block the CI, they depend on each other.

[1] https://github.com/python/cpython/pull/23858

Change-Id: Ia7866390b31f469bdea95624325a13aaf45a496e
Closes-Bug: #2002566
2023-01-12 14:05:25 +01:00
Zuul 0bd9f80c67 Merge "Replace osc with glance commands" 2022-12-15 14:47:31 +00:00
Cyril Roelandt 88e3b0ad98 Boolean options: use strict checking
Boolean options (such as "--protected" for glance md-namespace-update)
should accept a limited amount of valid values, rather than assuming an
"invalid" value means "False".

The following values (no matter the case) will now be interpreted as
True: ‘t’,’true’, ‘on’, ‘y’, ‘yes’, or ‘1’.

The following values (no matter the case) will now be interpreted as
False: ‘f’, ‘false’, ‘off’, ‘n’, ‘no’, or ‘0’.

Change-Id: I0e7942045d883ac398bab4a7a85f2b4ac9b1ed8c
Closes-Bug: #1607317
2022-11-14 17:31:39 +01:00
Cyril Roelandt 4bb406d377 Unhardcode the value of DEFAULT_PAGE_SIZE from the tests
The value of DEFAULT_PAGE_SIZE (20) was hardcoded in multiple places in
the tests, which means all the tests would break should we ever want to
change that value.

Co-Authored-By:	韩春蕾 <1922361860@qq.com>

Change-Id: I6e8dbae32c3a24d3fbeebcea5bfe0dd9ae247035
2022-11-14 12:04:23 +01:00
Cyril Roelandt fc8f9ac2ed Remove unicode-related Python2-only code
This commit:
- removes the old "u" prefix from all strings
- removes the unicode_key_value_to_string function

Change-Id: I1da347e31e828fd2359f0935a4da47257116d4cb
2022-11-14 11:49:33 +01:00
Zuul f41f2c388b Merge "schema_args: Do not generate option for read-only properties" 2022-11-11 15:55:05 +00:00
Zuul 4e7f83e887 Merge "Make "tox -edocs" generate the manpage" 2022-11-10 15:41:27 +00:00
Cyril Roelandt 74fa436657 schema_args: Do not generate option for read-only properties
The schema_args decorator generates command line options based on the
properties defined in a schema. This commit makes sure read-only
properties are skipped during this process, since trying to modify their
value would result in a Glance error.

Closes-Bug: #1561828
Change-Id: I7ccc628a23c9ebdaeedcb9e6d43559f497ce9555
2022-09-26 23:54:06 +02:00
Erno Kuvaja bbfe6cd3be Replace osc with glance commands
the are glance client docs. OSC should have their own section for this.

Change-Id: I27123793fdf8f8a82afb909f2cceec71693609ea
Closes-Bug: #1990532
2022-09-22 14:02:13 +01:00
OpenStack Release Bot 9e8fcdb92e Switch to 2023.1 Python3 unit tests and generic template name
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for antelope. Also,
updating the template name to generic one.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I0b5f6a1b7de16ea9a5ee50bdc72b0bb4ceef1e29
2022-09-14 09:21:09 +00:00
Cyril Roelandt 393e84d30a md-property-create: add a mandatory "--type" option
The "type" property is required when using md-property-create, so there
should be a mandatory option for it, as is the case for "name" and
"title".

Change-Id: I3a118b6f2e375ad60bd4170c5ce0ae284a0c9060
Closes-Bug: #1934626
2022-09-07 18:55:50 +02:00
OpenStack Release Bot a3f13bdcb4 Update master for stable/zed
Add file to the reno documentation build to show release notes for
stable/zed.

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

Sem-Ver: feature
Change-Id: I2c7a8c65882218e927af0ff9771df7276891178e
2022-09-06 13:13:24 +00:00
Zuul f2999ce752 Merge "Add support for glance-download import method" 2022-08-30 14:57:55 +00:00
Pranali Deore 92cd70a224 Add support for glance-download import method
Implements: blueprint glance-download-import-support
Change-Id: Ia2bfad82bccf9acb6103b21112e680c44e295d39
2022-08-30 11:20:40 +00:00
Erno Kuvaja 219568c2a4 Bump default pagesize
Bumping default pagesize to 200. With the previous
default value of 20 glanceclient was doing lots of
extra requests and schema validations.

Based on my tests no performance improvement was
seen over the pagesize of 200.

Change-Id: I6d740ca3a9b32bf5d064d3ea74273bb619b32ad4
Closes-Bug: #1987834
2022-08-26 12:46:20 +01:00
Cyril Roelandt 75218d289e Delete python bytecode before every test run
Because python creates pyc files during tox runs, certain changes in the
tree, like branch switching or file deletion, can create spurious
errors.

Closes-Bug: #1368661

Change-Id: I93917b051039506d99837028700bc03337cf68f6
2022-08-02 18:09:50 +02:00
Stephen Finucane 1b854e1657 Remove incorrect note from requirements files
This hasn't been true since pip 20.3 introduced the new dependency
resolver [1]

[1] https://pyfound.blogspot.com/2020/11/pip-20-3-new-resolver.html

Change-Id: I394f1135a9f3073ebc17ae9662faf6071e868ca8
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2022-07-12 16:21:38 +01:00
Stephen Finucane 508914c181 Uncap warlock
warlock recently had a 2.0.0 release that added support for jsonschema
4.x [1]. We no longer need to cap this.

[1] https://github.com/bcwaldon/warlock/releases/tag/2.0.0

Change-Id: Idb4c33284ec36c6c5938bd9045f9729e4ed6f7ea
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
Depends-On: https://review.opendev.org/c/openstack/requirements/+/849284
2022-07-12 16:21:38 +01:00