summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add a cleanup for a server in a functional testussuri-em17.0.1stable/ussuriTakashi Natsume2020-07-291-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> (cherry picked from commit 1ce9edcd73c6da9dd4dcded12747957fc297cb21)
* Switch legacy Zuul jobs to native Zuul v3 jobsTakashi Natsume2020-07-1011-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> (cherry picked from commit b7ae8c75cb8c34e2c6ab81a4f6b60fd937ec7f98)
* Update TOX/UPPER_CONSTRAINTS_FILE for stable/ussuriOpenStack Release Bot2020-04-181-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/ussuri branch, tests will continue to use the upper-constraints list on master. Depends-on: https://review.opendev.org/#/c/715272/ Change-Id: I0e3bdf426c1716fd996e64e386136440d30dd0ce
* Update .gitreview for stable/ussuriOpenStack Release Bot2020-04-111-0/+1
| | | | | | Depends-on: https://review.opendev.org/#/c/715272/ Change-Id: Icdc0f86f5fb6221a0e11ecbece3130814ce7481e
* 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
* Make 'server list --config-drive' a boolean optionStephen Finucane2020-04-086-34/+52
| | | | | | | | | | | | Instead of passing through whatever the user provides and exposing this bug in the REST API, simply make the opt a boolean one in expectation of a day where the API issues have been resolved. This also introduces machinery necessary to use more of these types of opts in the future. Change-Id: I9033540ac65ac0ee7337f16bdd002060652092ea Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
* Microversion 2.84 - action event fault detailszhangbailin2020-04-082-1/+2
| | | | | | | | | | | | | | | This patch adds support for microversion 2.84 "Expose instance action event details out of the API" [1]. [1] https://review.opendev.org/#/c/694430/ No changes are required in the novaclient side, so just increment the microversion. Depends-On: https://review.opendev.org/#/c/694430/ Implements blueprint action-event-fault-details Change-Id: I1d71284de9a5f25f4554dd2ec7291d5706381de7
* Microversion 2.83 - Add more filters for the nova list commandVictor Coutellier2020-04-077-8/+183
| | | | | | | | | | | | | | | | | | | Add these new filters, admin-only until microversion 2.82: - availability-zone - config-drive - key-name - power-state - task-state - vm-state - progress Existing user filter will be available to non admin since microversion 2.83. Part of blueprint non-admin-filter-instance-by-az Change-Id: Id2b5e600c0a41790830823031b20983808cb5ace
* Update to hacking 3.0Andreas Jaeger2020-03-311-1/+1
| | | | | | | Hacking 3.0 was just released with minor changes, update to the new version. Change-Id: Id3c08f718899343b3ec12a8b53e1e08a5eba42f8
* Microversion 2.82 - nova cyborg interactionTakashi Natsume2020-03-122-1/+2
| | | | | | | | | | | | | This patch adds support for microversion 2.82 "Define Cyborg ARQ binding notification event" (*). *: I7a626544d8221dc0eeb5672986ca897ce4718be8 No changes are required in the novaclient side, so just increment the microversion. Change-Id: I3a8a2f8b5ced5519082f0b7609702d4f62be88ac Implements: blueprint nova-cyborg-interaction
* Don't print user_data for 'nova show'Stephen Finucane2020-02-263-2/+7
| | | | | | | | | | User data is a blob of data that the user can specify when they launch an instance. It's generally binary data, which means it's not something we should show by default on the CLI. Stop doing that. Change-Id: If8f6cc040d0077a7902a5fd425e67d74d7925a46 Signed-off-by: Stephen Finucane <sfinucan@redhat.com> Closes-Bug: #1669140
* Random cleanupsStephen Finucane2020-02-217-266/+18
| | | | | | | | Remove some cruft from Sphinx config files, drop the use of 'u' prefixed strings, which are unnecessary in Python 3, and generally tidy stuff up. Change-Id: Ib0f33576e160ec842d7fc82b4fcfee99829623d7 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* Bump to hacking 2.xStephen Finucane2020-02-217-11/+11
| | | | | | | This is compatible with Python 3-only syntax. Change-Id: I462f4242b9a5f8d8cd6b0cb3d328dfd9d93ba200 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* Remove sixStephen Finucane2020-02-2130-371/+278
| | | | | | | | Mostly a find-replace job. Let's do this now so we don't have to carry it for the next decade. Change-Id: I7bef9fb7c6895f746cee1aca6522786f38b9857c Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* tox: Configure 'ignore_basepython_conflict'Stephen Finucane2020-02-211-13/+14
| | | | | | | | | | | | | | Resolves the following warning: UserWarning: conflicting basepython version (set 37, should be 36) for env 'py36';resolve conflict or set ignore_basepython_conflict and makes sure we're testing with what we should be. Some random indentation is fixed while we're here. Change-Id: I6f3e98cc33731f528a3a755300f1fcc65c6b53ff Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* setup.cfg: Various Python 3 fixesStephen Finucane2020-02-211-6/+3
| | | | | | | | | | | Now that we've dropped Python 2 support, we shouldn't be stating that we support universal (Python 2 and 3) wheels. We should also use the proper setuptools machinery to prevent people accidentally installing novaclient in a Python 2.7 environment. Resolve both issues, removing an unused 'upload_sphinx' section in the process. Change-Id: Icee145f44a42c233008b3328f52a3eec933101e0 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* trivial: Remove 'u' prefix from stringStephen Finucane2020-02-211-1/+1
| | | | | | | | | | | It looks like nova is using 'repr()' in some validation error logging. On Python 2.7, this would result in unicode strings (which most web apps use) being output as "u'foo'", while in Python 3 these would just be "'foo'". Since nova only supports Python 3 now, we only have to support the Python 3 string formatting variant in our tests too. Change-Id: I546c06a3251e86f39e2e7db48e04ec382c8da854 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* doc: Update Testing documentTakashi NATSUME2019-11-261-9/+3
| | | | | | | | | Python 2 support has been dropped since If678d77b8da69121b0075bfbc4216531be25da6a. Update the 'Testing' document. Change-Id: Ic263943b1d6110925b9c9849c01b0d52d41a8351
* Merge "Add minor version [21] to the test_versions"Zuul2019-11-131-3/+6
|\
| * Add minor version [21] to the test_versionszhangbailin2019-10-221-3/+6
| | | | | | | | | | | | | | | | | | | | | | In v2.21, the os-instance-actions API returns information from deleted instances. This change does not involve changes to novaclient, but since novaclient does not add support for v2.21, it does not match API_MAX_VERSION when executing unit tests (novaclient.tests.unit.v2.test_shell.ShellTest.test_versions). Closes-Bug: #1848110 Change-Id: Ib1ad244bb059bb86a9f3025d4bc16c20946433d0
* | doc: Fix supported version descriptionsTakashi NATSUME2019-11-061-1/+6
| | | | | | | | | | | | | | | | Fix the version that the 'nova server-topology' command was added. Add some missing descriptions about supported versions. Change-Id: I32f9eca87c90211b0172b040649aad105298846b Closes-Bug: #1851443
* | Stop supporting and testing python2Eric Fried2019-10-255-22/+8
| | | | | | | | Change-Id: If678d77b8da69121b0075bfbc4216531be25da6a
* | Switch to Ussuri jobskangyufei2019-10-221-1/+1
| | | | | | | | Change-Id: I4e04d090e8b0f7f99170c09a450cb1bd12d4acb7
* | Merge "Add functional test for migration-list in v2.80"16.0.0Zuul2019-10-191-0/+13
|\ \
| * | Add functional test for migration-list in v2.80zhangbailin2019-10-171-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | In microversion 2.80 add the functional test for the `nova migration-list` CLI. part of bp add-user-id-field-to-the-migrations-table Change-Id: I3cfe37b412971dfff4b217fc7cc6cfdf1b118ce0
* | | Add aggregate-cache-images command and client routinesDan Smith2019-10-189-1/+144
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds the ability to request image precache support for an aggregate in support of the matching server feature. Related to blueprint image-precache-support Depends-On: https://review.opendev.org/#/c/687140 Change-Id: Id354ccfa99e500a598685e6b794c12160ea2a990
* | | Add images.GlanceManager.find_images() bulk queryDan Smith2019-10-184-2/+80
|/ / | | | | | | | | | | | | | | This adds a bulk query method to GlanceManager that takes multiple image names or ids and attempts to query glance for all of them in fewer requests than one-per-image. Change-Id: I1c6ce27b65920356df6b7001c581a2922765ce0c
* | Microversion 2.80: Add user_id/project_id to migration-list APIzhangbailin2019-10-168-10/+263
|/ | | | | | | | | | | | | | Add ``user_id`` and ``project_id`` to the ``GET /os-migrations`` API, and it can called ``--user-id <user_id>`` and/or ``--project-id <project_id>`` by ``nova migration-list`` CLI. Showing the ``user_id`` and ``project_id`` when using api_version>=2.80 with the server-migration-list or server-migration-show APIs. Depends-On: https://review.opendev.org/#/c/674243/ Part of blueprint add-user-id-field-to-the-migrations-table Change-Id: I11343ca265ab2b6b6f46877897d8223ef340c258
* PDF documentation buildAkihiro Motoki2019-10-119-21/+34
| | | | | | | | | Also reorganizes the document structure to match both HTML and PDF docs. Story: 2006100 Task: 35143 Change-Id: Ie3f38e2ecf52e6a6cbd52bb36196e6f589f1ca0f
* Merge "Clarify --migration-type migration value as cold migration"Zuul2019-10-093-6/+9
|\
| * Clarify --migration-type migration value as cold migrationMatt Riedemann2019-08-263-6/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a follow up to a review discussion [1] where the "migration" value for the --migration-type option is for a cold migration. This change just updates docs and help strings. An alternative is changing "migration" as a valid value to "cold-migration" (or accept both) and under the covers treat "cold-migration" as "migration" for the actual API call. [1] https://review.opendev.org/#/c/675117/3/novaclient/v2/shell.py@5430 Related to blueprint more-migration-list-filters Change-Id: I6baa6af8731252e3c4976db06f0ca9cdfcb5e2f1
* | Remove cells v1 and extension commands and APIsTakashi NATSUME2019-10-0411-421/+8
| | | | | | | | | | | | | | | | | | | | | | | | The following CLIs and their backing API bindings which have been deprecated since 20.0.0 Train release have now been removed. - list-extensions - cell-capacities - cell-show Change-Id: I8e6edf1e4c1bf12d51ed993363129b4f4c3aa36c
* | Add release note for bug 1845322Stephen Finucane2019-10-011-0/+6
| | | | | | | | | | | | | | | | | | | | | | In change I0f9f75cba68e7582d32d4aab2f8f077b4360d386, we modified the behavior of the ``--hint`` option for the ``boot`` command. We want to backport this so add a release note to alert users to the change in behavior. Change-Id: I753e9a0cda1e118578373c519cf2fb2dd605a623 Signed-off-by: Stephen Finucane <sfinucan@redhat.com> Related-Bug: #1845322
* | Stop silently ignoring invalid 'nova boot --hint' optionsStephen Finucane2019-09-272-10/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The '--hint' option for 'nova boot' expects a key-value pair like so: nova boot --hint group=245e1dfe-2d0e-4139-80a9-fce124948896 ... However, the command doesn't complain if this isn't the case, meaning typos like the below aren't indicated to the user: nova boot --hint 245e1dfe-2d0e-4139-80a9-fce124948896 Due to how we'd implemented this here, this ultimately results in us POSTing the following as part of the body to 'os-servers': { ... "OS-SCH-HNT:scheduler_hints": { "245e1dfe-2d0e-4139-80a9-fce124948896": null } ... } Which is unfortunately allowed and ignored by nova due to the use of 'additionalProperties' in the schema [1] Do what we do for loads of other options and explicitly fail on invalid values. [1] https://github.com/openstack/nova/blob/19.0.0/nova/api/openstack/compute/schemas/servers.py#L142-L146 Change-Id: I0f9f75cba68e7582d32d4aab2f8f077b4360d386 Signed-off-by: Stephen Finucane <sfinucan@redhat.com> Closes-Bug: #1845322
* | Merge "Add a check for --config-drive option on nova boot"Zuul2019-09-255-19/+34
|\ \
| * | Add a check for --config-drive option on nova bootTakashi NATSUME2019-09-185-19/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A value of the '--config-drive' option must be a boolean value on the 'nova boot' command because nova accepts a boolean value only for the 'config_drive' parameter. So add a check for the '--config-drive' option on the 'nova boot' command. Fix a description for 'config_drive' parameter in the 'create' method of the novaclient.v2.ServerManager class. Change-Id: Ic6e65139302fbb662fb6ba60e73633dad8ffb72e Closes-Bug: #1825061
* | | Update master for stable/trainOpenStack Release Bot2019-09-202-0/+7
|/ / | | | | | | | | | | | | | | | | | | | | | | Add file to the reno documentation build to show release notes for stable/train. Use pbr instruction to increment the minor version number automatically so that master versions are higher than the versions on stable/train. Change-Id: I8f59c8a48c571acad43d3639d8331a998330b8a2 Sem-Ver: feature
* | doc: Add support microversions for optionsTakashi NATSUME2019-09-101-0/+2
| | | | | | | | | | | | | | | | | | Add descriptions of support microversions for the '--marker' option and the '--limit' option in the 'nova hypervisor-list' command in the CLI reference. Change-Id: Ie25e848b51fd0220e318393db123c97b4a642091 Closes-Bug: #1616450
* | Microversion 2.79: Add delete_on_termination to volume-attach API15.1.0zhangbailin2019-09-098-3/+144
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support add 'delete_on_termination' field to the voume attach API to support configuring whether to delete the data volume when the server is destroyed. * Updating the ``nova volume-attachments`` command to show the ``delete_on_termination`` value if 2.79 or greater is used. * The '--delete-on-termination' option is added to the `nova volume-attach` CLI. Depends-On: https://review.opendev.org/#/c/673133/ Part of blueprint support-delete-on-termination-in-server-attach-volume Change-Id: I8dcf2fd21a2fd99ca4e05bd953fbbe026be3a619
* | Microversion 2.78 - show server topologyYongli He2019-09-069-1/+153
| | | | | | | | | | | | | | | | | | | | | | Add support microversion 2.78 which adds server topology information in the output of the following new command: nova server-topology Depends-on: https://review.opendev.org/#/c/621476/ Change-Id: I6467d52d2528a37348458baf4842b571a97f3ed2 Implements: blueprint show-server-numa-topology
* | Merge "Microversion 2.77: Support Specifying AZ to unshelve"15.0.0Zuul2019-08-299-4/+133
|\ \
| * | Microversion 2.77: Support Specifying AZ to unshelvezhangbailin2019-08-289-4/+133
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds a new parameter ``--availability-zone`` to ``nova unshelve`` command. This can help users to specify an ``availability_zone`` to unshelve a shelve offloaded server from 2.77 microversion. Depends-On: https://review.opendev.org/#/c/663851/ Implements: blueprint support-specifying-az-when-restore-shelved-server Change-Id: I8bce8f430bc54f03bacc105e37fc8b3bbf2432c2
* | | Follow up for microversion 2.75Takashi NATSUME2019-08-261-1/+1
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a follow-up for microversion 2.75 - Multiple API cleanup changes. The base class of the TestFlavorNovaClientV274 class is the TenantTestBase class. And the base class of the TenantTestBase class is the ClientTestBase class. It is not necessary to use the TenantTestBase class as the base class. So specify the ClientTestBase class directly. TrivialFix Change-Id: I2cb971f46ba697d9386ca61b7f51169f02b605ab