Commit Graph

1479 Commits

Author SHA1 Message Date
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
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
Zuul 541593e57e Merge "Check if stdin has isatty attribute" 2022-07-07 16:09:21 +00:00
Zuul 507f16ee16 Merge "Bump tox minversion to 3.18.0" 2022-07-07 16:09:19 +00:00
Benedikt Loeffler 8df9328a60 Check if stdin has isatty attribute
When the stdin is closed, it has no isatty atrribute which leads to a KeyError.

Closes-Bug: #1980890
Change-Id: If9a3bf68b8dfd953b346697241166578d18bb563
2022-07-07 02:55:10 +02:00
Takashi Kajinami be26283a37 Bump tox minversion to 3.18.0
Since tox 3.18.0, the whitelist_externals option has been deprecated in
favor of the new allow_list_externals option[1].

This change bumps the minversion of tox so that we can replace
the deprecated option.

[1] https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23

Change-Id: I76f328b8bed1338ab5496d21e54a4b0ff9251147
2022-05-22 22:34:01 +09:00
Ghanshyam Mann be8f394ab1 Update python testing as per zed cycle teting runtime
In Zed cycle, we have dropped the python 3.6/3.7[1] testing
and its support. Moving the py36 job to py38 based as well as
updating the python classifier also to reflect the same.

[1] https://governance.openstack.org/tc/reference/runtimes/zed.html

Change-Id: I9b3a05c708d53d1e7775eefdac802392fd18bc24
2022-05-10 19:11:11 -05:00
Zuul 0b8c28986d Merge "Documentation: Add options for "glance image-import"" 2022-05-05 16:01:00 +00:00
Zuul 68d18dc2f2 Merge "glance help <subcommand>: Clearly specify which options are mandatory" 2022-05-05 16:00:57 +00:00
whoami-rajat cf7504e795 Add doc and test for verbose parameter
We currently have support to show verbose output for image-list
with the command ``glance --verbose image-list`` but there is
no documentation about it.
This patch adds the documentation and a test to run it via CLI.

Closes-Bug: #1969565
Change-Id: Ic6db4f5ab2fecded373b044aa002f9a9bc262513
2022-04-21 14:34:42 +05:30
Zuul 2bb489fe96 Merge "Remove lower-constraints.txt" 2022-03-11 19:57:05 +00:00
Zuul fa7d4bf42a Merge "Update master for stable/yoga" 2022-03-02 18:01:40 +00:00
Brian Rosmaita 6c8108ea33 Fix functional CI job
The glanceclient-dsvm-functional job is currently running unit
tests, whereas it should be running the functional tests.  Fixed
by honoring the path in .stestr.conf like other trees.

Also removed tox.ini from the list of irrelevant-files for this
job, because as it turns out, it is relevant.

Change-Id: I59773caa00ff0dfc970c0e4d45aa5d8ae006b1c6
2022-02-25 13:31:42 -08:00
OpenStack Release Bot b369f75d9a Update master for stable/yoga
Add file to the reno documentation build to show release notes for
stable/yoga.

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

Sem-Ver: feature
Change-Id: Iffb4d1e400b000e4bcedb7e14515a9b9f09b9e05
2022-02-24 14:55:11 +00:00
Zuul 626c50061f Merge "Release notes for 3.6.0" 2022-02-23 15:21:34 +00:00
Abhishek Kekane ac0324c10d Release notes for 3.6.0
Change-Id: I1b441808672c3e362175d20f1d1f282b7f5d70a9
2022-02-22 20:43:20 +00:00
Erno Kuvaja 62f4f67d1d Add support for Cache API
This change provides support for the Cache API changes and
deprecation path for glance-cache-manage command.

Change-Id: I6fca9bbe6bc0bd9b14d8dba685405838131160af
2022-02-22 16:39:33 +00:00
Zuul 63bb03a145 Merge "Add an optional parameter --append" 2022-02-17 18:51:52 +00:00
Zuul 683b694fff Merge "Add an optional parameter --detail" 2022-02-16 19:32:15 +00:00
Mridula Joshi b8863535a8 Add an optional parameter --append
This patch will add an optional parameter --append to the glanceclient
command md-tag-create-multiple to provide the facility of appending
the tags.
If the parameter is present  it will append the tags to existing one,
else it will overwrite the existing tags.

Depends-On: https://review.opendev.org/c/openstack/glance/+/804966
Change-Id: I1841e7146da76b13f4cd8925e19f59d0eaf08f7a
2022-02-16 14:00:28 +00:00
Mridula Joshi 282ce9c209 Add an optional parameter --detail
This patch appends th --detail parameter to the ``stores-info``
command. With sufficient permissions, display additional
information about the stores.

Depends-On: https://review.opendev.org/c/openstack/glance/+/824438
Change-Id: I6ae08ab3eaab0c2b118aa7607246214b28025dfe
2022-02-02 14:31:44 +00:00
Dan Smith 3f001f5f11 Add support for usage API
This is really a very simple activity of fetching and showing the
results of the usage API in table form for the user.

Depends-On: https://review.opendev.org/c/openstack/glance/+/794860
Change-Id: I3d9360785a759e4a6e7905710400baea80776052
2022-01-31 13:27:54 -08:00
vihithad23 73aaef4286 Documentation: Add options for "glance image-import"
Closes-bug:#1886537
Change-Id: I66d99be1ec06806494c5504c467dff759dd38f2d
2022-01-13 01:45:22 +01:00
Zuul b4c3be8aac Merge "Replace deprecated UPPER_CONSTRAINTS_FILE variable" 2022-01-11 17:48:34 +00:00
Zuul a157587b73 Merge "Updating python testing classifier as per Yoga testing runtime" 2021-12-20 18:30:23 +00:00
Cyril Roelandt 91ae9347db glance help <subcommand>: Clearly specify which options are mandatory
Earlier glance help <subcommand> was listing required arguments as
optional arguments in help text. Added new argument group to list
required argument properly.

$ glance help stores-delete

Example before this change:
usage: glance stores-delete --store <STORE_ID> <IMAGE_ID>

Delete image from specific store.

Positional arguments:
  <IMAGE_ID>          ID of image to update.

Optional arguments:
  --store <STORE_ID>  Store to delete image from.

After this change:
usage: glance stores-delete --store <STORE_ID> <IMAGE_ID>

Delete image from specific store.

Positional arguments:
  <IMAGE_ID>          ID of image to update.

Required arguments:
  --store <STORE_ID>  Store to delete image from.

Change-Id: I51ea4c43fa62164ed43e78d1ae0fb0cb2521fc83
Closes-Bug: #1933390
2021-12-14 15:14:10 +00:00
Ghanshyam Mann e1b5e72120 Updating python testing classifier as per Yoga testing runtime
Yoga testing runtime[1] has been updated to add py39
testing as voting. Unit tests update are handled by the
job template change in openstack-zuul-job

- https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/820286

this commit updates the classifier in setup.cfg file.

[1] https://governance.openstack.org/tc/reference/runtimes/yoga.html

Change-Id: Ibde540f7950a5ea27af5327dfa662ee9187171c8
2021-12-14 02:34:40 +00:00
XinxinShen 51c5c674c5 Replace deprecated UPPER_CONSTRAINTS_FILE variable
UPPER_CONSTRAINTS_FILE is old name and deprecated

[1] https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file

Co-Authored-By: Cyril Roelandt <cyril@redhat.com>
Change-Id: I8aec0f3ab5b33c6ee1ccd0fafafc7c3e447082db
2021-12-10 21:09:47 +00:00
Cyril Roelandt 3ba81da325 Remove lower-constraints.txt
Change-Id: If4881229935d6f2ca0f1632cc9a9ad473f8de33e
2021-12-10 17:45:39 +01:00
Zuul 8aac1597cd Merge "Fix pygments style" 2021-12-10 15:51:35 +00:00