2663 Commits

Author SHA1 Message Date
He Jie Xu
6a818ebc19 placement: enable required traits from the flavor extra specs
This patch enables the flavor extra spec 'required:[traits]'. The
admin can specifiy a set of traits that a flavor required.

To enable this, the placement 1.17 is required, it added trait
support in the `GET /allocation_candidates` API. So bump the
minimal placement version requirement to 1.17 and update the
check in cmd `nova-status`.

Implement blueprint request-traits-in-nova

Change-Id: Ia51ace951e9a0402f873ce9751a8cd3c0283db08
2018-01-24 23:35:54 +08:00
Zuul
c03bbc142f Merge "PowerVM driver: ovs vif" 2018-01-17 18:15:26 +00:00
Zuul
73d72b3833 Merge "Remove unnecessary execute permissions in files" 2018-01-17 16:57:24 +00:00
Qing Wu Wang
a31d6b02fc PowerVM driver: ovs vif
This change set adds Open vSwitch VIF support for the PowerVM virt
driver.

Change-Id: If23aeb890c4365014a9f1262647611162f981f12
Partially-Implements: blueprint powervm-nova-it-compute-driver
2018-01-16 19:02:25 -06:00
Zuul
d9ba29fd6e Merge "update_cell allows more than once cell to have the same db/transport url" 2018-01-16 11:12:03 +00:00
Takashi NATSUME
c32ca60283 Remove unnecessary execute permissions in files
TrivialFix
Change-Id: I18c80f375ff0811a69941a0e265f79d5249ef34f
2018-01-15 23:53:01 +09:00
Béla Vancsics
df7442ee5a Transform rescue/unrescue instance notifications
The rescue (instance.rescue.start and instance.rescue.end) and unrescue
(instance.unrescue.start and instance.unrescue.end) notifications are
transformed to the versioned framework.

This patch also fixes the power state of the server
when unrescuing it with the fake compute driver.

Co-Authored-By: Takashi Natsume <natsume.takashi@lab.ntt.co.jp>
Change-Id: Ib1d03c6d693e3b04886c638c956e35809fed8fc2
Implements: bp versioned-notification-transformation-queens
Closes-Bug: #1742133
2018-01-14 02:15:18 +00:00
Zuul
2f52bbc0ab Merge "Update FAQs about listing hosts in cellv2" 2018-01-12 20:40:22 +00:00
Zuul
135a9d709d Merge "Add a warning in 'nova-manage cell_v2 delete_cell'" 2018-01-12 20:40:05 +00:00
Balazs Gibizer
3881f9e1ef Revert "Deduplicate service status notification samples"
This reverts commit 39f9ef719eacb2fbcf0c37680b845152fcff01cc.

The reverted change made the service.update notification sample tests
failing consistently on master. The CI did not catch this problem as
the functional test does not run for changes that only touches
nova/docs. This is a quick fix to unblock the gate and fix the
functional job defintion in a separate patch.

Change-Id: Idabbf70ae46f36be8343c0a00d812cbebf7f7670
Closes-Bug: #1742935
2018-01-12 15:14:49 +01:00
Zuul
2f128404d0 Merge "Deduplicate service status notification samples" 2018-01-12 12:48:31 +00:00
Takashi NATSUME
52e7e6e3e4 Add a warning in 'nova-manage cell_v2 delete_cell'
When deleting a cell, if there are instance mappings to the cell,
the command fails with the following message.

* There are existing instances mapped to cell with uuid UUID.

But even if all instances have been deleted in the cell,
the same message is shown.

So in that case, add a warning that the instance mappings have to
be deleted by 'nova-manage db archive_deleted_rows'
before deleting the cell.

Change-Id: I2a163fb50a7e71ce9f463bc9ddeffe2ea47d1588
Closes-Bug: #1725331
2018-01-12 07:22:32 +00:00
Kevin_Zheng
92a0fc0b9f Add pagination and Changes-since filter support for os-migrations.
This patch adds pagination support and changes-since filter
for os-migrations API.

Users can now use 'limit' and 'marker' to perform paginate
query of running migrations list. Users can also filter the
results according to the migrations' updated time.

The ``GET /os-migrations`` and server migrations APIs will now
return a uuid value in addition to the migrations id in the response,
and the query parameter schema of the ``GET /os-migrations`` API no
longer allows additional properties.

Co-Authored-By: Yikun Jiang <yikunkero@gmail.com>

Implement: blueprint add-pagination-and-change-since-for-migration-list
Change-Id: I7e01f95d7173d9217f76e838b3ea71555151ef56
2018-01-10 14:02:53 -05:00
Lajos Katona
39f9ef719e Deduplicate service status notification samples
This patch refactors the sample files of service-create, service-delete
and service-update notifications to use a common ServiceStatusPayload
sample data.

Change-Id: I708ce5423806d2913e77abbe338aec970a5009dc
2018-01-10 15:29:28 +00:00
Hongbin Lu
df219f666c Update FAQs about listing hosts in cellv2
Document the ``nova-manage cell_v2 list_hosts`` command for listing
hosts in one or all v2 cells.

Change-Id: I46fece55f1647fe7a41906054ad0d6213315187b
Related-Bug: #1735687
2018-01-06 15:08:17 +00:00
Zuul
0010e230cc Merge "Add support for listing hosts in cellv2" 2018-01-03 23:19:40 +00:00
jichenjc
38a8a142a3 Remove 'nova-manage logs' command
This command was deprecated in 16.0.0 and can now be removed.

Change-Id: I980352415a2d812725d53d46eb968abbf443b6b7
2017-12-27 14:58:28 +00:00
Zuul
c864cf677f Merge "Remove 'nova-manage account' and 'nova-manage project'" 2017-12-27 13:43:59 +00:00
Zuul
107fef8992 Merge "Document testing guide for new API contributions" 2017-12-27 11:37:13 +00:00
Zuul
375bd1be5c Merge "Provide example for placement last-modified header of now" 2017-12-23 16:52:31 +00:00
Zuul
5f27402edb Merge "doc: update supported drivers for cpu topology" 2017-12-22 16:49:37 +00:00
Matt Riedemann
749f1ecbc5 Document testing guide for new API contributions
This fills in the TODOs for the unit, functional and
docs part of the API contributor guide.

Since we don't rely on the DocImpact tag in the commit
message for API changes (that tag results in a nova bug
and was meant mostly for making changes to docs external
to the nova repo, which is no longer the case), this
changes that section to just talk about the in-tree docs
that should be updated for API changes.

Change-Id: I9ca423c09185d2e3733357fd47aaba82d716eea4
2017-12-22 08:52:15 -05:00
Zuul
2281532d0e Merge "Delete the TypeAffinityFilter" 2017-12-21 04:51:12 +00:00
Tetsuro Nakamura
a15fc86c29 doc: update supported drivers for cpu topology
Not only libvirt/KVM driver but also libvirt/QEMU works with cpu
topology feature in nova. So we just update the document.

Change-Id: If8f0229072c8518c9301a872b98862687d93a044
2017-12-21 11:58:28 +09:00
Chris Dent
13e3aff7f1 Provide example for placement last-modified header of now
In the comments to I8f0c3006d1bb97d228f73256c58a79235cd12670, a request
for clarification was made on when the last-modified header should
be "now". This adds an example to help things a bit more clear.

Change-Id: I301f17bc7aad9f0037d2b13aa6e493ac9a6abb80
2017-12-20 15:22:49 +00:00
Zuul
dc7805d7db Merge "Deduplicate instance.create notification samples" 2017-12-19 23:51:56 +00:00
Zuul
024ebdccb5 Merge "Update nova-status and docs for nova-compute requiring placement 1.14" 2017-12-19 22:23:47 +00:00
Zuul
e502f0d073 Merge "doc: add note about fixing admin-only APIs without a microversion" 2017-12-19 21:07:14 +00:00
Bernhard M. Wiedemann
c4301ee678 Fix 4 doc typos
Change-Id: Ia718bf84589306efdbad9a5c16e30969d477dfc4
2017-12-19 15:30:45 +01:00
Surya Seetharaman
c34e37eef3 update_cell allows more than once cell to have the same db/transport url
Unlike in nova-manage create_cell, in nova-manage update_cell the check
for the same combination of transport-url and/or database_connection
does not exist. Hence it allows a user to update a cell's transport-url
and/or database_connection to another existing cell's transport/db urls.

Change-Id: Ia5d5566c535d6da3d215392590a2d362e1226424
Closes-Bug: #1729806
2017-12-18 11:10:57 +01:00
Matt Riedemann
ed3c69cb45 Delete the TypeAffinityFilter
Deprecated in Pike:

  I660e0316b11afcad65c0fe7bd167ddcec9239a8b

This filter relies on the flavor.id primary key which will
change as (1) flavors were migrated to the API database and
(2) when a flavor is changed by deleting and re-creating the
flavor.

Also, as noted in blueprint put-host-manager-instance-info-on-a-diet,
this is one step forward in getting us to a point where the only
thing that the in-tree filters care about in the HostState.instances
dict is the instance uuid (for the affinity filters). Which means
we can eventually stop RPC casting all instance information from
all nova-compute services to the scheduler for every instance create,
delete, move or periodic sync task - we only would need to send the
list of instance UUIDs. That should help with RPC traffic in a large
and busy deployment.

Change-Id: Icb43fe2ef5252d2838f6f8572c7497840a9797a1
2017-12-14 17:09:56 -05:00
Zuul
63a038fab9 Merge "Fix some typos in nova doc" 2017-12-14 21:31:53 +00:00
Zuul
6a09908757 Merge "doc: link in some Sydney summit content" 2017-12-14 14:26:19 +00:00
zhufl
915bd8f829 Fix some typos in nova doc
There are some typos in nova doc:
  affinty
  runnning
  containts
  abolute

This is to fix them.

Change-Id: I18e61e41fd31af4885b449dff3f6988b4bc3065b
2017-12-14 12:49:49 +08:00
Zuul
29e453df8e Merge "Deprecate file injection" 2017-12-13 21:08:27 +00:00
Matt Riedemann
4b7a150584 Update nova-status and docs for nova-compute requiring placement 1.14
With change I2f367b06e683ed7c815dd9e0536a46e5f0a27e6c, nova-compute
now unconditionally requires Placement 1.14 to be available (the
client side code doesn't check to see if 1.14 is available before
trying to use it).

This change updates the nova-status check for the minimum required
version of Placement and also starts the "Queens" section of the
Placement upgrade notes docs.

Change-Id: I37415e384d375bc9b548a0223f787a9236286bb0
2017-12-13 15:18:27 -05:00
Zuul
b3a289dd6a Merge "[placement] Add info about last-modified to contrib docs" 2017-12-13 05:35:18 +00:00
Chris Dent
413d50e78e [placement] Add info about last-modified to contrib docs
Add some instructions on how and when to add last-modified headers
when creating a new handler in the placement API.

Change-Id: I8f0c3006d1bb97d228f73256c58a79235cd12670
2017-12-12 15:53:26 +00:00
Matt Riedemann
e6498e6ef1 doc: add note about fixing admin-only APIs without a microversion
This is a follow up to change I947e927802f755ccb25a91efd82cac895779d19e
to document the decision and agreements made in that change about fixing
obvious regression bugs in admin-only APIs without a microversion.

Change-Id: I4051cb465c509db63620ee727654f7c896fab1e8
Related-Bug: #1733886
2017-12-12 10:07:28 -05:00
Matt Riedemann
126c3d4c78 Deprecate file injection
This microversion makes the following changes:

1. Deprecates personality files from POST /servers and the rebuild
   server action APIs.
2. Adds the ability to pass new user_data to the rebuild server
   action API.
3. Personality / file injection related limits and quota resources
   are removed from the limits, os-quota-sets and os-quota-class-sets
   APIs.

Implements blueprint deprecate-file-injection

Change-Id: Ia89eeb6725459c35369e8f790f68ad9180bd3aba
2017-12-12 09:22:21 -05:00
jichenjc
f5dab6e379 Add quiesce and unquiesce in support matrix
quiesce and unquiesce are virt driver and supported in libvirt
we need document those functions into the support matrix
to let admin/user be able to refer to.

Change-Id: If1277cde2aff44b5651154fc05c3cd4377237c60
2017-12-11 08:27:05 +00:00
melanie witt
93ceb7fb5e Add API and nova-manage tests that use the NoopQuotaDriver
These are written in preparation for follow up old-style quotas code
removal that moves the logic for the 'reserved' field from the quota
internals (where it's no longer used) to the API (where it's expected
to be provided until we have a new microversion). These tests will
help catch any unintended change in behavior.

Change-Id: I1f743a8db7d032e09372587622ab64250a05e0f0
2017-12-08 22:11:24 +00:00
Zuul
82acee044e Merge "Fix 'force' parameter in os-quota-sets PUT schema" 2017-12-08 19:27:25 +00:00
Zuul
f942f45c1a Merge "XenAPI: update the picture in Xen hypervisor document" 2017-12-08 12:30:04 +00:00
Matt Riedemann
1772abbb52 doc: link in some Sydney summit content
This adds some links to talks from the Sydney summit to the docs
for cells v2, bug triage, and the metadata service.

While adding a "References" section to the metadata docs, I figured
it was also useful to link to a blog post from mikal about vendordata
since it also includes code samples.

Change-Id: Ifc47a5472db37f5526004d2e00751365a026975a
2017-12-07 22:27:50 -05:00
Hongbin Lu
c7b51a63b0 Add support for listing hosts in cellv2
Add a ``nova-manage cell_v2 list_hosts`` command for listing hosts
in one or all v2 cells.

Change-Id: Ie8eaa8701aafac10e030568107b8e6255a60434d
Closes-Bug: #1735687
2017-12-07 23:38:47 +00:00
Matt Riedemann
9ddbaa15cb Fix 'force' parameter in os-quota-sets PUT schema
A regression was introduced in the 2.36 API microversion where the
'force' parameter was missing from the 'PUT /os-quota-sets/{tenant_id}'
API request schema so users could not force quota updates with
microversion 2.36 or later. The bug is now fixed so that the 'force'
parameter can once again be specified during quota updates. There is
no new microversion for this change since it is an admin-only API.

Change-Id: I947e927802f755ccb25a91efd82cac895779d19e
Closes-Bug: #1733886
2017-12-07 08:59:29 -05:00
Jianghua Wang
2046991c58 XenAPI: update the picture in Xen hypervisor document
Although the document is saying the network provider is neutron,
but the picture still has nova network which is outdated.

Change-Id: I3d33a789a2683eea235c5b5c0a2336b7b51da795
Closes-Bug: #1734841
2017-12-06 22:20:11 -08:00
Zuul
bd93b3266a Merge "Transform instance.resize_revert notification" 2017-12-05 10:03:36 +00:00
stewie925
ac0745babd Transform instance.resize_revert notification
The instance.resize_revert.start and instance.resize_revert.end
notifications are transformed to the versioned framework.

Change-Id: Ia86c8804b284ed4ad72a1993c454ec373c063b99
Implements: bp versioned-notification-transformation-queens
2017-12-04 20:54:39 -05:00