summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* [stable-only] Pin tox <4stable/zedGhanshyam Mann2023-01-081-0/+1
| | | | | | | | | | | | | We pinned tox<4 for stable branches in common jobs and in devstack playbook but that was not enough for python client functional jobs where tox is upgraded to latest by pip. - https://lists.openstack.org/pipermail/openstack-discuss/2023-January/031678.html This commit adds tox<4 pin explicitly in tox.ini Change-Id: I442568a5f5900e593feb2b5527109e0aa79e5aa7
* Update TOX_CONSTRAINTS_FILE for stable/zedOpenStack Release Bot2022-09-091-4/+4
| | | | | | | | | | | | Update the URL to the upper-constraints file to point to the redirect rule on releases.openstack.org so that anyone working on this branch will switch to the correct upper-constraints list automatically when the requirements repository branches. Until the requirements repository has as stable/zed branch, tests will continue to use the upper-constraints list on master. Change-Id: I19a69e8793f6c9d359698cde39b733f09bd993f5
* Update .gitreview for stable/zedOpenStack Release Bot2022-09-091-0/+1
| | | | Change-Id: I433d321df998e3a4f2e554c3b5909c9417c4a0d8
* Fix a fixture for keypairs tests18.1.0Takashi Natsume2022-08-052-7/+12
| | | | | | | | | | | | | This patch is a follow-up for I03570d0a49b73021de91dc50b65b1bbf5d4b878b. The following file is for shell (CLI) tests, so it does not need to be changed anymore. * novaclient/tests/unit/v2/fakes.py Change-Id: I3b1cf5d402b04854177265f2ba429956edb73203 Signed-off-by: Takashi Natsume <takanattie@gmail.com>
* Merge "Add support for 2.92 : keypair import mandatory"Zuul2022-08-025-3/+58
|\
| * Add support for 2.92 : keypair import mandatorySylvain Bauza2022-07-285-3/+58
| | | | | | | | | | | | | | | | | | Now, when creating a keypair, the 'public_key' parameter is now mandatory. Depends-On: https://review.opendev.org/c/openstack/nova/+/849133 Implements: blueprint keypair-generation-removal Change-Id: I03570d0a49b73021de91dc50b65b1bbf5d4b878b
* | Merge "Microversion 2.91: Support specifying destination host to unshelve"Zuul2022-08-026-5/+182
|\ \ | |/
| * Microversion 2.91: Support specifying destination host to unshelveRené Ribaud2022-07-286-5/+182
| | | | | | | | | | | | | | | | | | | | This patch adds ``host`` to novaclient api. This can help administrators to specify a ``host`` to unshelve a shelve offloaded server from 2.91 microversion. Depends-On: https://review.opendev.org/c/openstack/nova/+/831507 Implements: blueprint unshelve-to-host Change-Id: I7efc8f0b0ef159e16cefee761bff5d7e90d0c427
* | Imported Translations from ZanataOpenStack Proposal Bot2022-07-061-2/+32
| | | | | | | | | | | | | | For more information about this automatic import see: https://docs.openstack.org/i18n/latest/reviewing-translation-import.html Change-Id: I9eeb37d4b4771798e09802915c42bf79df9422c0
* | Replace old URLs with new onesTakashi Natsume2022-06-243-4/+4
| | | | | | | | | | Change-Id: I66d76bed4ec19ef7517d88de20fcc32fea635261 Signed-off-by: Takashi Natsume <takanattie@gmail.com>
* | Imported Translations from ZanataOpenStack Proposal Bot2022-06-211-0/+237
| | | | | | | | | | | | | | For more information about this automatic import see: https://docs.openstack.org/i18n/latest/reviewing-translation-import.html Change-Id: I4bd5c1ed4b6bb7c99e7724d77076bfb759bac376
* | Drop lower-constraints.txt and its testing18.0.0Ghanshyam Mann2022-04-294-106/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | As discussed in TC PTG[1] and TC resolution[2], we are dropping the lower-constraints.txt file and its testing. We will keep lower bounds in the requirements.txt file but with a note that these are not tested lower bounds and we try our best to keep them updated. [1] https://etherpad.opendev.org/p/tc-zed-ptg#L326 [2] https://governance.openstack.org/tc/resolutions/20220414-drop-lower-constraints.html#proposal Change-Id: Ibb492285ef7d5357c921035409d6654c80df3725
* | Merge "Remove unnecessary packages in bindep.txt"Zuul2022-04-291-5/+0
|\ \
| * | Remove unnecessary packages in bindep.txtTakashi Natsume2022-04-161-5/+0
| | | | | | | | | | | | | | | Change-Id: I3975e5a67e0a8614ac2d6568e294c32a14f789e9 Signed-off-by: Takashi Natsume <takanattie@gmail.com>
* | | Update python classifier as per testing runtimeGhanshyam Mann2022-04-211-3/+1
|/ / | | | | | | | | | | | | | | | | | | In Zed cycle, we ave dropped the python 3.6/3.7[1] testing and its support. Updating the python classifier also to reflect the same. [1] https://governance.openstack.org/tc/reference/runtimes/zed.html Change-Id: I06ef1e3f73ddf6c7a62e0d1aa0ab6eeb220436f6
* | Add openssl in bindep.txtTakashi Natsume2022-04-101-0/+1
| | | | | | | | | | | | Change-Id: If812bf19a569667b96e4cada106da04346449778 Closes-Bug: 1966551 Signed-off-by: Takashi Natsume <takanattie@gmail.com>
* | Add Python3 zed unit testsTakashi Natsume2022-04-101-1/+1
| | | | | | | | | | | | | | | | | | | | This is an automatically generated patch to ensure unit testing is in place for all the of the tested runtimes for zed. See also the PTI in governance [1]. [1]: https://governance.openstack.org/tc/reference/project-testing-interface.html Change-Id: I12a04dc2f21bfa6af676f93c099f815e6b2cd370
* | Update pre-commit hook, hacking versionsStephen Finucane2022-04-086-26/+26
| | | | | | | | | | | | | | | | | | This was done with 'pre-commit autoupdate'. An invalid message is removed from the requirements.txt files as it no longer applies with pip's new dependency resolver. Change-Id: I01c3ece51f81d67c740e6faca6b77df7c9932435 Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
* | docs: Update docs to reflect deprecation statusStephen Finucane2022-04-065-16/+27
| | | | | | | | | | Change-Id: I56b862305b31916cef143494050e5e08b1ac70b1 Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
* | Deprecate nova CLIStephen Finucane2022-04-063-9/+41
| | | | | | | | | | | | | | | | | | | | | | | | It is time to signal that we're fully committed to delivering a pure OSC experience. Based on the neutron change from 6 (!!) years ago [1] [1] https://github.com/openstack/python-neutronclient/commit/3a64a7a166be25d40436fd40c8351a79267bd3c4 Change-Id: Ib80548e104a751179f36f2a6ebff9916d38fdf1e Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
* | Remove USE_PYTHON3 in .zuul.yamlTakashi Natsume2022-03-281-1/+0
| | | | | | | | | | | | | | USE_PYTHON3 is unnecessary now, so remove it. Change-Id: I2be7877d3b90d8cf94ab63e735d176a548a13a43 Signed-off-by: Takashi Natsume <takanattie@gmail.com>
* | Update master for stable/yogaOpenStack Release Bot2022-03-032-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: I8057ebf8bd5714acb7fd11223ffbfe8504a5f5dd
* Updating python testing classifier as per Yoga testing runtime17.7.0Ghanshyam Mann2021-12-171-0/+1
| | | | | | | | | | | | | | 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: Ic6dbe3ae45089f7947d45dc81eb5d1e29b3d0597
* Fix check job failuresTakashi Natsume2021-12-172-1/+2
| | | | | | | | | | | | | This patch fixes the following failures. * package version conflict in the lower-constraints job * An error about admin endpoint for identity service in the python-novaclient-functional job Closes-bug: 1954916 Closes-bug: 1954917 Change-Id: Ie48dda004aaf5d01d286bdc0d9fe355d58e62d75 Signed-off-by: Takashi Natsume <takanattie@gmail.com>
* Add Python3 yoga unit testsOpenStack Release Bot2021-09-101-1/+1
| | | | | | | | | | | This is an automatically generated patch to ensure unit testing is in place for all the of the tested runtimes for yoga. See also the PTI in governance [1]. [1]: https://governance.openstack.org/tc/reference/project-testing-interface.html Change-Id: Iff5e28efd84750cf7e0ae166b4828339bad5c7c6
* Update master for stable/xenaOpenStack Release Bot2021-09-102-0/+7
| | | | | | | | | | | | Add file to the reno documentation build to show release notes for stable/xena. Use pbr instruction to increment the minor version number automatically so that master versions are higher than the versions on stable/xena. Sem-Ver: feature Change-Id: I62070f8d3fded9f47c03a8c43d3481b2e2aef367
* Microversion 2.90 - Configurable hostnamesxena-em17.6.0Stephen Finucane2021-09-027-38/+333
| | | | | | Change-Id: Icd4362a07196e59bafcdfaff44323ce1386d4f55 Signed-off-by: Stephen Finucane <stephenfin@redhat.com> Depends-On: https://review.opendev.org/c/openstack/nova/+/778550/
* tests: Add missing 'nova update' unit testsStephen Finucane2021-09-022-0/+32
| | | | | | | | | We have functional tests for the 'nova update' commands, but no unit tests to verify e.g. that we can't set a description for the server before microversion 2.19. Add such tests. Change-Id: I9af89655a7e7276446a881fd28d21ddd6581048c Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
* Add pre-commitStephen Finucane2021-09-011-0/+32
| | | | | Change-Id: I66ed7fb2f0b4ef5227bdf40d51e3c15c3a54816a Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
* Microversion 2.89 - os-volume_attachmentsLee Yarwood2021-08-244-1/+35
| | | | | Depends-On: https://review.opendev.org/c/openstack/nova/+/804275 Change-Id: If6275dbd3795047c111ac507a12b034e60029df8
* Use importlib instead of impTakashi Kajinami2021-08-161-4/+9
| | | | | | | ... because the imp module is deprecated since Python 3.4 . Closes-Bug: #1937904 Change-Id: Ia3f83df336fd243c25f7471d56a44370c11bb5e1
* Use Block Storage API v3 instead of API v2Takashi Kajinami2021-07-271-1/+1
| | | | | | | Block Storage API v2 was deprecated during Pike cycle and is being removed during Xena cycle, and current v3 API should be used instead. Change-Id: I4b4c08d65e642866d81d7fd12a7c82162a0b979e
* Merge "Change minversion of tox to 3.18.0"17.5.0Zuul2021-05-211-2/+2
|\
| * Change minversion of tox to 3.18.0Takashi Natsume2021-05-181-2/+2
| | | | | | | | | | | | | | | | | | The patch bumps min version of tox to 3.18.0 in order to replace whitelist_externals by allowlist_externals option: https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23 Change-Id: I75844ded50c0032445dd27b1ced7f214c754e901 Signed-off-by: Takashi Natsume <takanattie@gmail.com>
* | Refactor constructing request bodyTakashi Natsume2021-05-061-24/+27
|/ | | | | | | | | Add a private static method to construct a request body for create requests in the novaclient.v2.volumes.VolumeManager class. Change-Id: I884ad4b471e3d196255901499c75a1a2f0535f65 Signed-off-by: Takashi Natsume <takanattie@gmail.com>
* setup.cfg: Replace dashes with underscoresYuehuiLei2021-05-041-4/+4
| | | | | | | | | | | | | | | | Setuptools v54.1.0 introduces a warning that the use of dash-separated options in 'setup.cfg' will not be supported in a future version [1]. Get ahead of the issue by replacing the dashes with underscores. Without this, we see 'UserWarning' messages like the following on new enough versions of setuptools: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead [1] https://github.com/pypa/setuptools/commit/a2e9ae4cb Change-Id: Ia98a366c65321f76394940be0f9ce2a55dd321d4
* Use py3 as the default runtime for toxzhangboye2021-04-201-1/+1
| | | | | | | Moving on py3 as the default runtime for tox to avoid to update this at each new cycle. Change-Id: Icad6d0d0d375d1995baa603b091be50797210215
* Add unit tests for client loggermelanie witt2021-04-101-0/+12
| | | | | | | | | | | | | Change I53caceb08667eb12e27016731868e8015dd10e34 fixed a bug where we weren't using our novaclient logger default when a logger was not passed to the Client constructor. This adds unit tests to assert the fixed behavior and protect against regression. Related-Bug: #1921388 Change-Id: I9f622c01a6b1abe328a60de6d3e438e68872dd80
* When creating a client, pass the default loggerRadomir Dopieralski2021-03-251-1/+1
| | | | | | | | | | | When a client is created without a logger, novaclient creates a default logger, but it's then not used, because it's not passed to the factory function. Because of that, all novaclient calls are getting logged as 'keystoneauth.session' instead of 'novaclient.v2.client' as they should. Closes-bug: 1921388 Change-Id: I53caceb08667eb12e27016731868e8015dd10e34
* Merge "Add Python3 xena unit tests"Zuul2021-03-201-1/+1
|\
| * Add Python3 xena unit testsOpenStack Release Bot2021-03-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | This is an automatically generated patch to ensure unit testing is in place for all the of the tested runtimes for xena. See also the PTI in governance [1]. [1]: https://governance.openstack.org/tc/reference/project-testing-interface.html Change-Id: I35d282c9b0342a4520c6faf07f65a121c6b9ecb2
* | Merge "Update master for stable/wallaby"Zuul2021-03-202-0/+7
|\ \ | |/
| * Update master for stable/wallabyOpenStack Release Bot2021-03-192-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | Add file to the reno documentation build to show release notes for stable/wallaby. Use pbr instruction to increment the minor version number automatically so that master versions are higher than the versions on stable/wallaby. Sem-Ver: feature Change-Id: I8db7244df81c9474b8e8bcb7ce46b7500d9dca6b
* | Use well named anchor into the microversion historyBalazs Gibizer2021-03-181-1/+1
|/ | | | | Depends-On: https://review.opendev.org/c/openstack/nova/+/780401 Change-Id: Ic6667b1b5efe75273035c65aca2c111c90fe8e00
* Add support for microversion v2.8817.4.0Stephen Finucane2021-03-027-31/+228
| | | | | | | | | | | The key change here is that the 'GET /os-hypervisors/{id}/uptime' API will now returns a HTTP 404 starting in 2.88. The 'GET /os-hypervisors/{id}' will instead now include an 'uptime' value. The 'novaclient.v2.hypervisors.HypervisorManager.uptime' method is updated to handle this. Change-Id: Ib99fbd820a586c14527ff64b319df0b7a44e1b8b Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
* requirements: Remove simplejsonStephen Finucane2021-02-112-2/+0
| | | | | | | | We don't need to support any version of Python that is missing the json stdlib library. Change-Id: I6d13719ef9d4ae40945cfc66c1d0b40018950c58 Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
* Uncap PrettyTableStephen Finucane2021-02-111-1/+1
| | | | | | | | | This is now maintained as a Jazzband project [1]. [1] https://github.com/jazzband/prettytable Change-Id: I9477b1c5bc3bd4979d2cb38df3fc3b541a4b9bf5 Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
* Deprecate agent commands and APIs17.3.0Takashi Natsume2021-01-135-12/+65
| | | | | | | | | | | | | | | | | The os-agents APIs have been removed by the following change. I9512f605dd2b3b0e88c951ed086250d57056303d This patch makes commands related to the APIs deprecated in accordance with the following policy. * https://docs.openstack.org/python-novaclient/latest/contributor/deprecation-policy.html The API bindings related to the APIs remains as they are because python-openstackclient depends on the API bindings. Change-Id: I89d7877e23e8802fe77987a7b24ea247e08d5218 Signed-off-by: Takashi Natsume <takanattie@gmail.com>
* Fix undesirable raw Python errorTakashi Natsume2021-01-043-0/+13
| | | | | | | | | | | | | | | Using the novaclient without a subcommand while passing an optional argument triggers the raw Python error `ERROR: 'Namespace' object has no attribute 'func'`. This bug can be reproduced by issuing the command `nova --os-compute-api-version 2.87`. Added a default value to `func` and an empty value to `command` as placeholders so that a help message is shown instead of the Python error. Change-Id: Ic3e87b67f6d27d40b03d7d8e520fa0f79a4d09e5 Closes-Bug: #1903727 Signed-off-by: Takashi Natsume <takanattie@gmail.com>
* Fix a functional test for 'nova agent-list'Takashi Natsume2021-01-031-2/+10
| | | | | | | | | | | | | | The os-agents APIs have been removed by the following change. I9512f605dd2b3b0e88c951ed086250d57056303d This patch fixes a gate failure. A subsequent patch will make things related to the os-agents APIs deprecated. Change-Id: I9dab95fda5902bf9619393eb2c4a22d9f395d65a Closes-Bug: #1909899 Signed-off-by: Takashi Natsume <takanattie@gmail.com>