summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Stop silently ignoring invalid 'nova boot --hint' options" into ↵train-em15.1.1stable/trainZuul2019-10-023-10/+44
|\ | | | | | | stable/train
| * Stop silently ignoring invalid 'nova boot --hint' optionsStephen Finucane2019-10-013-10/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. NOTE(stephenfin): This includes the release note first added separately in change I753e9a0cda1e118578373c519cf2fb2dd605a623. [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 (cherry picked from commit 6954aacd54e85859fecde22ac04db1ce7601dd35)
* | Update TOX/UPPER_CONSTRAINTS_FILE for stable/trainOpenStack Release Bot2019-09-201-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/train branch, tests will continue to use the upper-constraints list on master. Change-Id: I3a1c2ca70c5c7f77f9e52a77dd3aac64cb46a9d1
* | Update .gitreview for stable/trainOpenStack Release Bot2019-09-201-0/+1
|/ | | | Change-Id: I60234abeee7c6126bde02c4eec61db24b9246684
* 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
* | Merge "Add --migration-type and --source-compute to migration-list"Zuul2019-08-237-34/+227
|\ \ | |/ |/|
| * Add --migration-type and --source-compute to migration-listMatt Riedemann2019-08-087-34/+227
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The GET /os-migrations API take a migration_type and source_compute filter parameter on the request since the v2.0 API. This adds support for specifying those parameters in the "nova migration-list" CLI and related MigrationManager.list() python API binding methods. A functional test is added which will cover the new options on all three of the decorated do_migration_list shell methods with lower bounds on 2.1, 2.59 and 2.66. Since the only type of migration we can safely generate in a single-node CI job is a resize the test does a resize. As such, _pick_alternate_flavor is moved into the base test class for re-use. Implements blueprint more-migration-list-filters Change-Id: I4be9a06df3e0d40d3990d067ce112247a81b45b4
* | API microversion 2.76: Add 'power-update' external eventSurya Seetharaman2019-08-202-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The 2.76 microversion adds the 'power-update' server external event to the os-server-external-events API. This is an admin-only API by default and this event is currently only used by Ironic as part of updating the power-state of a physical instance, and therefore does not have any CLI or python API binding impacts in the client. Depends-On: https://review.opendev.org/#/c/645611/ Part of blueprint nova-support-instance-power-update Story: 2004969 Task: 34271 Change-Id: I1f5de90e19b7b13c7746fea8bbdf8e09bcb92cff
* | Microversion 2.75 - Multiple API cleanup changesGhanshyam Mann2019-08-205-1/+133
|/ | | | | | | | | | | | | | | | | | Add support microversion 2.75 which implement multiple API cleanup changes. 1. Making server representation always consistent among all APIs returning the complete server representation. - Test cases added. 2. Change the default return value of ``swap`` field from the empty string to 0 (integer) in flavor APIs. - Test cases added. Nova side path: https://review.opendev.org/#/c/666889/ Change-Id: Iec2cfc629dffd53178ef88a31fcd16a3f32e2e27 Partial-Implements: blueprint api-consistency-cleanup
* docs: clarify nova migration-list --host optionMatt Riedemann2019-08-072-4/+4
| | | | | | | | | | The GET /os-migrations API takes both a host and source_compute filter parameter. The former filters on either the source or destination compute, so this change clarifies that in the command help for the --host option. Change-Id: I078add63896c7455be7e3672b7172debb962a5e2
* Update api-ref locationAndreas Jaeger2019-07-222-2/+2
| | | | | | | | | | | | | | The api documentation is now published on docs.openstack.org instead of developer.openstack.org. Update all links that are changed to the new location. Note that redirects will be set up as well but let's point now to the new location. For details, see: http://lists.openstack.org/pipermail/openstack-discuss/2019-July/007828.html Change-Id: I53120e2ff3ae337a55c4cd0904bc9ad1dd54d082
* Bump the openstackdocstheme extension to 1.20zhangyangyang2019-07-202-19/+0
| | | | | | | | | | | | Some options are now automatically configured by the version 1.20: - project - html_last_updated_fmt - latex_engine - latex_elements - version - release. Change-Id: Icd8404026ff5a73129a22b6c89b5cfd6c57432fb
* Merge "Add Python 3 Train unit tests"Zuul2019-07-171-1/+1
|\
| * Add Python 3 Train unit testsCorey Bryant2019-07-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | This is a mechanically generated patch to ensure unit testing is in place for all of the Tested Runtimes for Train. See the Train python3-updates goal document for details: https://governance.openstack.org/tc/goals/train/python3-updates.html Change-Id: I2ed3c89b4e571f3e4b69287d1844b26cf4d0268d Story: #2005924 Task: #34226
* | doc: Clarify versioned wrapped methodTakashi NATSUME2019-07-161-2/+2
| | | | | | | | | | | | | | The 'versioned wrapped shell method' is a bit unclear. So fix it and add more description for it. Change-Id: Ie50453b73adf1df5a77a582cc40612c5213c04d5
* | Merge "Add a guide to add a new microversion support"Zuul2019-07-153-0/+73
|\ \
| * | Add a guide to add a new microversion supportTakashi NATSUME2019-07-093-0/+73
| | | | | | | | | | | | | | | | | | Add a contributor guide for adding a new microversion support. Change-Id: I5e7699b6afbecf1e22cdc059a36832c144fc8e2f
* | | Merge "Deprecate cells v1 and extension commands and APIs"Zuul2019-07-158-13/+109
|\ \ \
| * | | Deprecate cells v1 and extension commands and APIsTakashi NATSUME2019-07-108-13/+109
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The API extension has been deprecated since 12.0.0 Liberty release (*1) and the cells v1 has been deprecated since 16.0.0 Pike release (*2) in the nova side. The API extension has already been removed (merged into main controllers and schema) since 19.0.0 Stein release (*3) and the cells v1 APIs has already been removed since Iddb519008515f591cf1d884872a5887afbe766f2. In the python-novaclient side, deprecate commands and API bindings related to the API extension and the cells v1 at first. Then the CLIs and API bindings will be removed in the first major release after Nova 20.0.0 Train is released. *1: I084444b11dceda7cf8f88c157aa67d36490fce49 *2: I1a173f7ce0715e684850e030c358e8175fa8724c *3: https://review.opendev.org/#/q/topic:bp/api-extensions-merge-stein Change-Id: I8dc4df95ac7f6974c5280e4107e449d04cd1402e Closes-Bug: #1835699
* | | Merge "Remove deprecated methods and properties"Zuul2019-07-155-115/+27
|\ \ \
| * | | Remove deprecated methods and propertiesTakashi NATSUME2019-07-045-115/+27
| |/ / | | | | | | | | | | | | | | | Remove deprecated methods, properties and unused classes. Change-Id: I16e0b6e55a9c9da04c4582f9be672018d37bf368
* | | Merge "Add host and hypervisor_hostname to create servers"14.2.0Zuul2019-07-127-4/+242
|\ \ \
| * | | Add host and hypervisor_hostname to create serverszhu.boxiang2019-07-087-4/+242
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds the --host and --hypervisor-hostname options to the nova boot command and related python API bindings. Depends-On: https://review.opendev.org/#/c/645520/ Change-Id: If16d00b75f4d5f2b96aa6e3f32a973108049d928 Blueprint: add-host-and-hypervisor-hostname-flag-to-create-server
* | | | Merge "Add irrelevant files in dsvm job again"Zuul2019-07-101-0/+4
|\ \ \ \ | |_|/ / |/| | |
| * | | Add irrelevant files in dsvm job againTakashi NATSUME2019-06-301-0/+4
| |/ / | | | | | | | | | | | | Change-Id: I0338ea22cce6435cfebfabc117f4613d0b4de33d Closes-Bug: #1833338
* | | Merge "Modify the url of upper_constraints_file"Zuul2019-07-031-4/+4
|\ \ \
| * | | Modify the url of upper_constraints_file翟小君2019-07-031-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As described at [1]. [1] http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html Change-Id: I76c9f982ff6cf46db25f626575257af483e3434e
* | | | Merge "Add Python 3 Train unit tests"Zuul2019-07-023-3/+3
|\ \ \ \ | |_|_|/ |/| | |
| * | | Add Python 3 Train unit testspengyuesheng2019-07-023-3/+3
| | |/ | |/| | | | | | | | | | | | | | | | See the Train python3-updates goal document for details: https://governance.openstack.org/tc/goals/train/python3-updates.html Change-Id: I691d7994070012af62d20d15809b7c4f143909a8
* | | Blacklist sphinx 2.1.0 (autodoc bug)pengyuesheng2019-07-011-1/+1
|/ / | | | | | | | | | | | | See https://github.com/sphinx-doc/sphinx/issues/6440 for upstream details Depend-On: https://review.opendev.org/#/c/663060/ Change-Id: I3594f05a2eb189395d4b691c47e1e0764fa0fe44
* | Revert "Add irrelevant files in dsvm job"Matt Riedemann2019-06-241-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 52ae954bd09bbb1536bc03b0be334d02e66fe93c. The change ignored way too many things that should be run through the functional dsvm job, such as changes to the functional tests themselves, requirements, setup.cfg and tox.ini changes. The bug was about not running the dsvm functional job on docs changes and then went much further and clearly not much thought was put into what was being ignored and if it should have been, so let's just revert and have a do-over. Change-Id: Ie78badfeed7e51f1786eb5041010c7d17b02e412
* | Add irrelevant files in dsvm jobTakashi NATSUME2019-06-191-0/+9
| | | | | | | | | | Change-Id: I25235eae93d2be6c83fbe9676304a03cfe187865 Closes-Bug: #1833338
* | Fix duplicate object description errorTakashi NATSUME2019-06-191-0/+1
|/ | | | | | | | Add a directive option flag :noindex: in reference/api/index.rst. Change-Id: Ifa5cf9820be29f498c218105272837cac50cb643 Closes-Bug: #1833327
* Merge "Blacklist python-cinderclient 4.0.0"Zuul2019-06-051-1/+1
|\
| * Blacklist python-cinderclient 4.0.0翟小君2019-06-041-1/+1
| | | | | | | | | | | | | | | | This release of the Cinder client broke support for the v3 volume-transfer APIs unless microversion 3.55 or higher was requested. Depends-On https://review.opendev.org/#/c/587877/ Change-Id: I917b0a47896fcac3edab4b8e55bde71a0aa55632
* | Bump openstackdocstheme to 1.30.0翟小君2019-06-041-1/+1
|/ | | | | | ...to pick up many improvements, including the return of table borders. Change-Id: I59c62ad129462c94bc4cc815101fb31ff062d2e3
* Merge "Add a description of --on-shared-storage"Zuul2019-05-281-1/+5
|\
| * Add a description of --on-shared-storageTakashi NATSUME2019-05-271-1/+5
| | | | | | | | | | | | | | | | Add a description of --on-shared-storage option in the 'nova evacuate' command in the CLI reference. Change-Id: I4069b804b434b70ee6d0098831af748e47913ce3 Closes-Bug: #1829932
* | Merge "Allow searching for hypervisors and getting back details"14.1.0Zuul2019-05-274-3/+56
|\ \ | |/ |/|
| * Allow searching for hypervisors and getting back detailsMatt Riedemann2019-05-184-3/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The 2.53 microversion allows listing hypervisors with details and filtering on a hypervisor_hostname substring pattern match. This makes the python API binding HypervisorManager.search method allow that as well by adding a new 'detailed' boolean kwarg which defaults to False for backward compatibility for the /search and /servers routes before 2.53, but allows searching and getting detailed results back as well. Change-Id: I81fa4520af3cc7f1298c262f4fdc4e15fbc6d7ba
* | Merge "Set the lower limit of api_version for volume_type"Zuul2019-05-232-1/+29
|\ \
| * | Set the lower limit of api_version for volume_typezhangbailin2019-05-232-1/+29
| |/ | | | | | | | | | | | | | | | | | | | | In boot server API, the volume_type is supported by microversion 2.67. Therefore, the lower limit of the volume_type should be added to the CLI command, otherwise an exception will occur. Co-Authored-By: Eric Xie <eric_xiett@163.com> Closes-Bug: #1829854 Change-Id: Ie909c16568b017ca0acc802194140da7bece76c5
* | Merge "Allow passing negative values for the locked search_opt in ↵Zuul2019-05-232-2/+24
|\ \ | |/ |/| | | cs.servers.list"
| * Allow passing negative values for the locked search_opt in cs.servers.listSurya Seetharaman2019-05-222-2/+24
| | | | | | | | | | | | | | | | | | | | | | | | This patch adds support for novaclient to pass the "locked" search_opts with a "False" value upto the server side. This is required for the OSC change[1] to support the "unlocked" filter parameter. [1] https://review.opendev.org/#/c/659124/ Related to blueprint add-locked-reason Change-Id: I0907f4ad2decb308c9db8b0cf9e7962bf1b517b5
* | Merge "Optimize limit option docs string description for novaclient"Zuul2019-05-178-2/+31
|\ \
| * | Optimize limit option docs string description for novaclientchenke2019-05-178-2/+31
| | | | | | | | | | | | Change-Id: I85ee36b0447869771782d1059957a46447940b59