summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge "do_image_import: fix argument retrieval"HEADmasterZuul2023-05-162-6/+6
|\
| * do_image_import: fix argument retrievalCyril Roelandt2023-04-182-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge "Update master for stable/2023.1"Zuul2023-04-272-0/+7
|\ \
| * | Update master for stable/2023.1OpenStack Release Bot2023-03-012-0/+7
| |/ | | | | | | | | | | | | | | | | | | | | | | 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
* | Tox4: remove skipsdistCyril Roelandt2023-04-181-1/+0
|/ | | | | | | | | 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
* Release notes for 4.3.04.3.0Pranali Deore2023-02-161-0/+9
| | | | Change-Id: I346af48771466c3f9dbaf470f611910ff3dda271
* Merge "Unhardcode the value of DEFAULT_PAGE_SIZE from the tests"Zuul2023-02-094-23/+34
|\
| * Unhardcode the value of DEFAULT_PAGE_SIZE from the testsCyril Roelandt2022-11-144-23/+34
| | | | | | | | | | | | | | | | | | | | 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
* | Merge "Remove unicode-related Python2-only code"Zuul2023-01-128-61/+32
|\ \
| * | Remove unicode-related Python2-only codeCyril Roelandt2022-11-148-61/+32
| | | | | | | | | | | | | | | | | | | | | | | | This commit: - removes the old "u" prefix from all strings - removes the unicode_key_value_to_string function Change-Id: I1da347e31e828fd2359f0935a4da47257116d4cb
* | | Merge "Boolean options: use strict checking"Zuul2023-01-124-1/+26
|\ \ \
| * | | Boolean options: use strict checkingCyril Roelandt2022-11-144-1/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Fix functional tests and docs generationCyril Roelandt2023-01-123-3/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Merge "Replace osc with glance commands"Zuul2022-12-151-3/+3
|\ \ \ \ | |_|_|/ |/| | |
| * | | Replace osc with glance commandsErno Kuvaja2022-09-221-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | the are glance client docs. OSC should have their own section for this. Change-Id: I27123793fdf8f8a82afb909f2cceec71693609ea Closes-Bug: #1990532
* | | | Merge "schema_args: Do not generate option for read-only properties"4.2.0Zuul2022-11-113-19/+15
|\ \ \ \
| * | | | schema_args: Do not generate option for read-only propertiesCyril Roelandt2022-09-263-19/+15
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Merge "Make "tox -edocs" generate the manpage"Zuul2022-11-101-0/+1
|\ \ \ \ | |/ / / |/| | |
| * | | Make "tox -edocs" generate the manpageCyril Roelandt2021-10-051-0/+1
| | | | | | | | | | | | | | | | | | | | Closes-Bug: #911805 Change-Id: Idbf5ddc56c608588cc30616f4a0cc12c2e698b9c
* | | | Switch to 2023.1 Python3 unit tests and generic template nameOpenStack Release Bot2022-09-141-1/+1
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Update master for stable/zedOpenStack Release Bot2022-09-062-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge "Add support for glance-download import method"4.1.0Zuul2022-08-306-20/+232
|\ \ \
| * | | Add support for glance-download import methodPranali Deore2022-08-306-20/+232
| | |/ | |/| | | | | | | | | | Implements: blueprint glance-download-import-support Change-Id: Ia2bfad82bccf9acb6103b21112e680c44e295d39
* | | Bump default pagesizeErno Kuvaja2022-08-263-3/+3
|/ / | | | | | | | | | | | | | | | | | | | | | | 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
* | Delete python bytecode before every test runCyril Roelandt2022-08-021-0/+1
| | | | | | | | | | | | | | | | | | | | 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
* | Remove incorrect note from requirements files4.0.1Stephen Finucane2022-07-122-8/+0
| | | | | | | | | | | | | | | | | | | | 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>
* | Uncap warlockStephen Finucane2022-07-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | 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
* | Merge "Check if stdin has isatty attribute"Zuul2022-07-072-3/+3
|\ \
| * | Check if stdin has isatty attributeBenedikt Loeffler2022-07-072-3/+3
| | | | | | | | | | | | | | | | | | | | | When the stdin is closed, it has no isatty atrribute which leads to a KeyError. Closes-Bug: #1980890 Change-Id: If9a3bf68b8dfd953b346697241166578d18bb563
* | | Merge "Bump tox minversion to 3.18.0"Zuul2022-07-071-2/+2
|\ \ \ | |/ / |/| |
| * | Bump tox minversion to 3.18.0Takashi Kajinami2022-05-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Update python testing as per zed cycle teting runtime4.0.0Ghanshyam Mann2022-05-103-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge "Documentation: Add options for "glance image-import""Zuul2022-05-051-0/+27
|\ \ \
| * | | Documentation: Add options for "glance image-import"vihithad232022-01-131-0/+27
| | | | | | | | | | | | | | | | | | | | Closes-bug:#1886537 Change-Id: I66d99be1ec06806494c5504c467dff759dd38f2d
* | | | Merge "glance help <subcommand>: Clearly specify which options are mandatory"Zuul2022-05-052-1/+16
|\ \ \ \ | |_|/ / |/| | |
| * | | glance help <subcommand>: Clearly specify which options are mandatoryCyril Roelandt2021-12-142-1/+16
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Add doc and test for verbose parameterwhoami-rajat2022-04-212-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge "Remove lower-constraints.txt"Zuul2022-03-113-81/+0
|\ \ \
| * | | Remove lower-constraints.txtCyril Roelandt2021-12-103-81/+0
| | | | | | | | | | | | | | | | Change-Id: If4881229935d6f2ca0f1632cc9a9ad473f8de33e
* | | | Merge "Update master for stable/yoga"Zuul2022-03-022-0/+7
|\ \ \ \
| * | | | Update master for stable/yogaOpenStack Release Bot2022-02-242-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | Fix functional CI jobBrian Rosmaita2022-02-252-2/+1
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Merge "Release notes for 3.6.0"3.6.0Zuul2022-02-231-0/+51
|\ \ \ \
| * | | | Release notes for 3.6.0Abhishek Kekane2022-02-221-0/+51
| | | | | | | | | | | | | | | | | | | | Change-Id: I1b441808672c3e362175d20f1d1f282b7f5d70a9
* | | | | Add support for Cache APIErno Kuvaja2022-02-226-1/+491
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | This change provides support for the Cache API changes and deprecation path for glance-cache-manage command. Change-Id: I6fca9bbe6bc0bd9b14d8dba685405838131160af
* | | | Merge "Add an optional parameter --append"Zuul2022-02-173-8/+35
|\ \ \ \
| * | | | Add an optional parameter --appendMridula Joshi2022-02-163-8/+35
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Merge "Add an optional parameter --detail"Zuul2022-02-163-4/+63
|\ \ \ \
| * | | | Add an optional parameter --detailMridula Joshi2022-02-023-4/+63
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Add support for usage APIDan Smith2022-01-315-0/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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