summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* When creating a client, pass the default loggerwallaby-em17.4.1stable/wallabyRadomir Dopieralski2021-08-141-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 (cherry picked from commit d4399d3d36c456c1001b96178ce9b3e7ec082460)
* Use well named anchor into the microversion historyBalazs Gibizer2021-03-211-1/+1
| | | | | | Depends-On: https://review.opendev.org/c/openstack/nova/+/780401 Change-Id: Ic6667b1b5efe75273035c65aca2c111c90fe8e00 (cherry picked from commit 8cdbb0f999bd6ff712da7d0c3fa04f296a63e74f)
* Update TOX_CONSTRAINTS_FILE for stable/wallabyOpenStack Release Bot2021-03-191-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/wallaby branch, tests will continue to use the upper-constraints list on master. Change-Id: I10b8ee2bb3ba0caaa7bbfad624106a176a5595cc
* Update .gitreview for stable/wallabyOpenStack Release Bot2021-03-191-0/+1
| | | | Change-Id: If5cd85cbdca36bf47f0c8607e5bfafe9be709174
* 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>
* Merge "Remove Babel from lower-constraints.txt"Zuul2020-10-121-1/+0
|\
| * Remove Babel from lower-constraints.txtsongwenping2020-10-121-1/+0
| | | | | | | | | | | | This can be removed because it's no longer a transitive dependency of oslo.i18n. Change-Id: I316363450caff890d67984f1466d3663785baf8f
* | Cleanup py27 supportsongwenping2020-10-121-9/+0
|/ | | | | | Remove py2 stanza from setup.py Change-Id: I7aa67986248fc627c3f36203e0fb653bde2d483f
* Remove the unused coding style moduleswu.shiming2020-09-291-6/+0
| | | | | | | | | | Python modules related to coding style checks (listed in blacklist.txt in openstack/requirements repo) are dropped from lower-constraints.txt as they are not actually used in tests (other than pep8). more info: https://github.com/openstack/requirements/blob/master/blacklist.txt Change-Id: I333bbddf70a4ead1778813a8311969ec372604d3
* Remove install unnecessary packageswu.shiming2020-09-141-2/+0
| | | | | | | The docs and releasenotes requirements migrated to doc/requirements.txt we need not install things from requirements.txt. Change-Id: I9d73c83b0520f724479c0e09b3686d3aab96df71
* Add Python3 wallaby unit testsOpenStack Release Bot2020-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 wallaby. See also the PTI in governance [1]. [1]: https://governance.openstack.org/tc/reference/project-testing-interface.html Change-Id: Ib43ce1fe7ae66f26b3c37bfaa7b58a0043ee26d6
* Update master for stable/victoriaOpenStack Release Bot2020-09-102-0/+7
| | | | | | | | | | | | Add file to the reno documentation build to show release notes for stable/victoria. Use pbr instruction to increment the minor version number automatically so that master versions are higher than the versions on stable/victoria. Change-Id: I0fdaa5f2095d55221336212332d644d256c0c2c7 Sem-Ver: feature
* zuul functional job: drop the custom playbooksvictoria-em17.2.1Luigi Toscano2020-08-185-37/+2
| | | | | | | | The base devstack-tox-functional* jobs now set the required environment (OS_* vars set by devstack) before calling tox. Depends-On: https://review.opendev.org/746235 Change-Id: I7b6d49ea8320e014e2ef444e456f6eea02eca912
* Remove unused codeTakashi Natsume2020-07-312-40/+0
| | | | | | | | The code has not been used since If0161a89877f19f24e91d780cf227fdc48e7e860 . Change-Id: I106404f9d12814fec2ec2bf16cdd100834085912 Signed-off-by: Takashi Natsume <takanattie@gmail.com>
* Add a cleanup for a server in a functional testTakashi Natsume2020-07-281-0/+2
| | | | | | | | | | | | | | A VM instance is created in the following functional test. * novaclient.tests.functional.v2.test_instance_action. TestInstanceActionCLIV262.test_show_actions_with_host However the VM instance is not deleted after the functional test. Add a cleanup for the server in the functional test. Change-Id: I8c2a6f91739d50baa283b37b16de67c542ea691b Closes-Bug: #1889283 Signed-off-by: Takashi Natsume <takanattie@gmail.com>
* migrate testing to ubuntu focal17.2.0Ghanshyam Mann2020-07-112-5/+5
| | | | | | | | | | | | | | | | | | | | | | As per victoria cycle testing runtime and community goal[1] we need to migrate upstream CI/CD to Ubuntu Focal(20.04). Fixing: - bug#1886298 Bump the lower constraints for below deps which added python3.8 support Markupsafe==1.1.1 cffi==1.14.0 greenlet==0.4.15 PyYAML==3.13 Story: #2007865 Task: #40200 Closes-Bug: #1886298 [1] https://governance.openstack.org/tc/goals/selected/victoria/migrate-ci-cd-jobs-to-ubuntu-focal.html Change-Id: I9857dc20057b97a2d0bae5b0b3410fa958bdc74f
* Merge "use stevedore to load extensions"Zuul2020-07-094-17/+26
|\
| * use stevedore to load extensionsDoug Hellmann2020-07-084-17/+26
| | | | | | | | | | | | | | | | | | | | | | Importing pkg_resources causes the app to scan the entire import path for all distributions, not just those providing entry points. The scanner in stevedore will have a cache of the entry point data, making it significantly faster. This will be especially useful in command line programs like python-openstackclient. Change-Id: Ic5eb9401c8ea3bd9624b818e0ffb8dcc13f61559 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
* | Switch legacy Zuul jobs to native Zuul v3 jobsTakashi Natsume2020-07-0811-203/+92
|/ | | | | | | | | | | | | Replace the 'novaclient-dsvm-functional' legacy Zuul job with the 'python-novaclient-functional' native Zuul v3 job. See https://governance.openstack.org/tc/goals/selected/victoria/native-zuulv3-jobs.html for more details. Change-Id: I35b5699b8b0814f2d17a37e024286cd440047ec8 Signed-off-by: Takashi Natsume <takanattie@gmail.com> Co-Authored-By: Andrey Kurilin <andr.kurilin@gmail.com>
* Remove Babel requirement17.1.0qiufossen2020-05-233-16/+0
| | | | | | | | | | | Babel is not needed as requirement, remove it. Remove translation sections from setup.cfg. See also http://lists.openstack.org/pipermail/openstack-discuss/2020-April/014227.html Depends-On: https://review.opendev.org/#/c/730427/ Change-Id: I4d82cfc09d255ad574e44ac303fd187c5348ca47
* Add link to PDF documentAndreas Jaeger2020-05-182-1/+2
| | | | | | | | Switch to openstackdocstheme 2.2.0 that can link to PDF document, enable this with setting openstackdocs_pdf_link. Depends-On: https://review.opendev.org/728938 Change-Id: I103a90d4fa101fd261b2b1a86d0a42b9591accc9
* Switch to newer openstackdocstheme and reno versionsAndreas Jaeger2020-05-152-12/+7
| | | | | | | | | | | | | | Switch to openstackdocstheme 2.1.2 and reno 3.1.0 versions. Using these versions will allow parallelizing building of documents. Update Sphinx version as well. openstackdocstheme renames some variables, so follow the renames. A couple of variables are also not needed anymore, remove them. Remove duplicated variables. Depends-On: https://review.opendev.org/728432 Change-Id: Icb604b31150a1ad6c29a9a4a934ed13f8a0b4976
* Bump hacking min version to 3.0.1Ghanshyam Mann2020-05-121-1/+1
| | | | | | | | | | hacking 3.0.1 fix the pinning of flake8 to avoid bringing in a new version with new checks. bumping the min version for hacking so that any older hacking versions which auto adopt the new checks are not used. Change-Id: I43ddb7bac8b7734f6e4fa4632d4524d454931709
* Remove mock in lower-constraints.txtTakashi Natsume2020-05-021-1/+0
| | | | | | | | | | This is a follow up patch for I4d45ae17f6f84f945f5dd049a929216ce6b6b58e. The 'mock' line has already been removed in test-requirements.txt. So the 'mock' line is removed in lower-constraints.txt. Change-Id: Ic215d48477cfb7441e3bddba969258157468713c Signed-off-by: Takashi Natsume <takanattie@gmail.com>
* Merge "Use unittest.mock instead of third party mock"Zuul2020-04-2715-18/+14
|\
| * Use unittest.mock instead of third party mockTakashi Natsume2020-04-2615-18/+14
| | | | | | | | | | | | | | | | Now that we no longer support py27, we can use the standard library unittest.mock module instead of the third party mock lib. Change-Id: I4d45ae17f6f84f945f5dd049a929216ce6b6b58e Signed-off-by: Takashi Natsume <takanattie@gmail.com>
* | Merge "Remove future imports"Zuul2020-04-272-3/+0
|\ \
| * | Remove future importsTakashi Natsume2020-04-262-3/+0
| |/ | | | | | | | | | | | | | | These particular imports are no longer needed in a Python 3-only world. Change-Id: I405b32c8cdd60fb19270a8f6fe2e2728022f7c6e Signed-off-by: Takashi Natsume <takanattie@gmail.com>
* | doc: Update Testing documentTakashi Natsume2020-04-251-3/+3
|/ | | | | | | | | | The default tox target environments has been changed from Python 3.7 to 3.8 since I093085cf6e85a66f80559eba62f9edf684f5dbea. Update the 'Testing' document. Change-Id: I33b32eb1d88225ae7ad44cbae28edc5c5f9c4925
* Merge "Add py38 package metadata"Zuul2020-04-251-0/+1
|\
| * Add py38 package metadataSean McGinnis2020-04-241-0/+1
| | | | | | | | | | | | | | | | | | Now that we are running the Victoria tests that include a voting py38, we can now add the Python 3.8 metadata to the package information to reflect that support. Change-Id: I3645bf029ee92e9dc93412c522d7694f6a61fc4f Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
* | Merge "Bump default tox env from py37 to py38"Zuul2020-04-241-1/+1
|\ \
| * | Bump default tox env from py37 to py38Sean McGinnis2020-04-241-1/+1
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | Python 3.8 is now our highest level supported python runtime. This updates the default tox target environments to swap out py37 for py38 to make sure local development testing is covering this version. This does not impact zuul jobs in any way, nor prevent local tests against py37. It just changes the default if none is explicitly provided. Change-Id: I093085cf6e85a66f80559eba62f9edf684f5dbea Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
* | Switch to using TOX_CONSTRAINTS_FILETakashi Natsume2020-04-241-4/+4
|/ | | | | | | | | UPPER_CONSTRAINTS_FILE is deprecated. So switch to using TOX_CONSTRAINTS_FILE. See I3f957187ed4f29fcf88db99cb79fb33b21a8dd8d. Change-Id: I1812eb64b1afa8e90f4de8604f3f26075da6332f
* [Community goal] Update contributor documentationGhanshyam Mann2020-04-233-15/+72
| | | | | | | | | | | | | | | | | | | As the Ussuri goal we have an OpenStack project wide contributing documentation template [1]. pyhton-novaclient use its own bug or feature tracking LP and core team is also not exactly same as nova so adding its own contributor guide with keeping common links from nova with python-novaclient specific information. Also the top level CONTRIBUTING.rst template has been changed in the cookiecutter repo[2]. So this patch updates the CONTRIBUTING.rst according to the new template. [1] https://opendev.org/openstack/cookiecutter/src/branch/master/%7b%7bcookiecutter.repo_name%7d%7d/doc/source/contributor/contributing.rst [2] https://review.opendev.org/#/c/696001 Change-Id: Idd35fdf54a92a4a000d0d7776884682c8722854b Story: #2007236 Task: #38541
* Add Python3 victoria unit testsOpenStack Release Bot2020-04-111-1/+1
| | | | | | | | | | | This is an automatically generated patch to ensure unit testing is in place for all the of the tested runtimes for victoria. See also the PTI in governance [1]. [1]: https://governance.openstack.org/tc/reference/project-testing-interface.html Change-Id: I99e3fc9c5a2d8c627e6e083bee157733065546bc
* Update master for stable/ussuriOpenStack Release Bot2020-04-112-0/+7
| | | | | | | | | | | | Add file to the reno documentation build to show release notes for stable/ussuri. Use pbr instruction to increment the minor version number automatically so that master versions are higher than the versions on stable/ussuri. Change-Id: I0ef054d7c3d47d4a86dc2a67f2ef0f584cb96ddf Sem-Ver: feature
* Merge "Microversion 2.87 - Stable device boot from volume rescue"17.0.0Zuul2020-04-102-1/+2
|\
| * Microversion 2.87 - Stable device boot from volume rescueLee Yarwood2020-04-102-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This microversion is used to request a stable device rescue for boot from volume instances and will only succeed when the compute hosting the instance reports the COMPUTE_RESCUE_BFV trait. No changes are required within novaclient so this change only bumps API_MAX_VERSION. Depends-On: https://review.opendev.org/#/c/701430/ Change-Id: I7885b8558db7657abbfe1f45877f52e947f5f655
* | Merge "Microversion 2.86 - Extra spec validation"Zuul2020-04-102-1/+2
|\ \ | |/
| * Microversion 2.86 - Extra spec validationLee Yarwood2020-04-092-1/+2
| | | | | | | | | | | | | | | | | | | | | | This microversion introduces extra spec validation within the API. No changes are required within novaclient so this change only bumps API_MAX_VERSION. Depends-On: https://review.opendev.org/#/c/708436/ Change-Id: Ic8fef7ee363435e9ac728b87d494593fcc6defc0
* | Merge "[Trivial] FUP: Enhanced description for 'server list --config-drive' ↵Zuul2020-04-101-0/+2
|\ \ | | | | | | | | | help"
| * | [Trivial] FUP: Enhanced description for 'server list --config-drive' helpzhangbailin2020-04-101-0/+2
| |/ | | | | | | | | | | | | This commit mainly address comments in [1]. [1]https://review.opendev.org/#/c/718349/4/doc/source/cli/nova.rst@2321 Change-Id: I6010adbc895b4e2438f9f0729e3c89f37a69c8f8
* | FUP: Add volume-update CLI pre V285 testszhangbailin2020-04-102-1/+15
|/ | | | | | | | | This commit mainly to fix some comments from [1]. [1]https://review.opendev.org/#/c/712651/19/novaclient/tests/unit/v2/test_shell.py@4001 Blueprint: destroy-instance-with-datavolume Change-Id: Id809f22d0da2cdedf33a2c0df202f3953fd01673
* Microversion 2.85: Change volume-update CLIzhangbailin2020-04-097-17/+153
| | | | | | | | | | | | | This commit add a new CLI ``nova volume-update [--[no-]delete-on-termination] <server> <src_volume> <dest_volume>`` to update 'delete_on_termination' for an attached volume, that the user can decide whether to delete attached volumes when destroying the server. Depends-On: https://review.opendev.org/#/c/711194/ Change-Id: I1fc64fb6e6611c92c6b72265e1bf4b32e9c45f0a Blueprint: destroy-instance-with-datavolume