Commit Graph

137 Commits

Author SHA1 Message Date
panbalag e0d6e46b52 Added min_version field to 'host_status' in 'api-ref'
Change-Id: I137b99a3e0da1a72151a13c0a21ce9172e57ac8b
2016-08-19 15:19:32 -04:00
Matt Riedemann d727795d66 Add REST API support for get me a network
This adds the 2.37 microversion to the REST API for automatically
allocating a network, i.e. get me a network.

The majority of the changes to the REST API concern request
validation. 'networks' is now required in the server POST body
after this microversion. The 'auto' or 'none' special network
uuid values are used, but if specified, can not be specified
with any other requested network values.

The other special case that is checked is when the minimum
compute service version is not new enough to support this change,
i.e. a Mitaka compute will not have the network API code that
knows how to deal with the special auto/none network IDs. Because
the REST API is checking the service version, the service caches
the service version after the first check. Once all computes are
updated to Newton then a restart of the nova-api service(s) will
be required to flush the cache. A release note is provided for
this situation.

The api-ref docs are also updated for this microversion including
an example API sample request.

The matching Tempest change to test this is here:

I89b18709e0cfbbcbf9be96a91a13a1356cdf85b0

The matching python-novaclient change is here:

I6636ddcd3be7bf393d2d69cc6c1ba5c7d65ff674

Implements blueprint get-me-a-network

Change-Id: I89b18709e0cfbbcbf9be96a91a13a1356cdf85b0
2016-08-15 14:10:42 -04:00
Takashi NATSUME 8e0b98f54e api-ref: Parameter verification for os-simple-tenant-usage.inc
Change-Id: I20adb72e928e8d21696699975953021b38fd31dc
Implements: blueprint api-ref-in-rst
2016-08-04 22:00:26 +00:00
Jenkins 29e03572cb Merge "Strict ImageRef validation to UUID only" 2016-08-04 12:21:30 +00:00
ghanshyam cbd3ec476f Strict ImageRef validation to UUID only
Currently imageRef in server create, rebuild and rescue
operation can be accepted as random url which contains image
UUID and fetch the UUID from that.

As /images proxy APIs are deprecated, and ImageRef in
server creation etc are UUID only and valid against glance.

This patch makes imageRef handling as UUID only and
return 400 if non UUID are requested.

NOTE- Previously nova use to allow the empty string which was
      ok in case of boot from volume.
      We will keep the same behavior of allowing empty string in case of
      boot from volume only and 400 in all other case.

Closes-Bug: #1607229

Change-Id: I49f4da62c1b5b3fd8c5f67039ae113f76722b26c
2016-08-04 02:22:15 +00:00
Takashi NATSUME 9561d47b7a Fix misspellings
adminstrative -> administrative
compatability -> compatibility
specfic -> specific

TrivialFix
Change-Id: Ic1670c2898b24c210e2e615f6cee194fa8cce951
2016-08-01 06:48:19 +00:00
Jenkins 286046b537 Merge "Fixed typos in api-ref and releasenotes directory" 2016-07-29 20:25:36 +00:00
Jenkins e4be1c8c66 Merge "Complete verification for api-ref os-flavor-extra-specs" 2016-07-20 21:06:04 +00:00
Jenkins 6e884cdd6e Merge "Complete verification for os-floating-ips-bulk" 2016-07-20 21:04:51 +00:00
Jenkins f7d9b63c99 Merge "api-ref: os-volumes.inc" 2016-07-20 21:03:42 +00:00
Alex Szarka 2a1aad9de7 Fixed typos in api-ref and releasenotes directory
This patchset fixes the typo errors in api-ref and
releasenotes directories.
TrivialFix

Change-Id: Ib72e5c4ac7539c1b08adc858b9b3a0071cb3c866
2016-07-20 09:08:50 +00:00
Jenkins 3f6ae25b27 Merge "api-ref: merge multiple create to servers.inc" 2016-07-19 01:50:38 +00:00
Pavel Kholkin 47358449d3 Microversion 2.35 adds keypairs pagination support
After this microversion Nova API allows to get several keypairs
with the help of new optional parameters 'limit' and 'marker'
which were added to GET /os-keypairs request.

Partial-Bug: #1599904

Implements blueprint: keypairs-pagination

Change-Id: Idd3757f5be90ec4af1bd1a7ca3f9c20319dbfd33
2016-07-12 19:48:05 +03:00
Jenkins 294c85787b Merge "Add user_id request parameter in os-keypairs list" 2016-07-12 08:38:55 +00:00
Sujitha 05c7b6fa30 Add user_id request parameter in os-keypairs list
Added user_id in request parameter section of the
os-keypairs LIST method api-ref docs.

Closes bug: #1599911

Change-Id: Ibb52663b2890f6d46b125903b438c0142aba92f5
2016-07-11 20:56:05 +00:00
Kevin_Zheng f6ef9b4b28 Parameter verification of os-instance-actions.inc
This patch verifies the parameters of
os-instance-actions.inc

part of bp:api-ref-in-rst

Change-Id: I45f0aae2bdeea7603f8b7dce206bfdb1c4c38ccc
2016-07-06 16:32:34 +08:00
Karen Bradshaw e551452d6c api-ref: os-volumes.inc
-Verified examples, parameters, body text.
-Added snapshot status values, new force parameter
 for snapshots.

Part of: bp/api-ref-in-rst

Change-Id: I0c1d183c5aaf6fb796be30fa5627bd5644ea689f
2016-07-04 15:39:42 +00:00
Jenkins 94c96f226a Merge "api-ref: verify assisted-volume-snapshots.inc" 2016-07-04 14:51:03 +00:00
Sean Dague 039d0628a4 api-ref: merge multiple create to servers.inc
This creates a new way to describe multiple create as a dedicated
create call in the normal servers list. It only lists additional
parameters so that we're not copy / pasting between the 2 lists.

Part of bp:api-ref-in-rst

Change-Id: Ib15f224cf6a9432ae638c8b57a2156cd7b98215d
2016-07-04 13:57:18 +00:00
ghanshyam 26d4c055cc api-ref: verify assisted-volume-snapshots.inc
This completes the verification of os-assisted-volume-snapshots.inc
for all required area(parameter, example, body)

Part of bp:api-ref-in-rst

Change-Id: I9544e9681bcdd83ca5d2bf6b8722db0a71665b8b
2016-07-01 07:23:33 +00:00
liyingjun ec53c6c0ec Microversion 2.33 adds pagination support for hypervisors
When there are thousands of compute nodes, it would be slow to get the
whole hypervisor list, and it is bad for user experience to display
thousands of items in a table in horizon. This patch is proposed to
support pagination for hypervisor by adding `limit` and `marker` to
the list api.

Implements blueprint: pagination-for-hypervisor

Change-Id: Ie7f8b5c733b383f3e69fa23188e56257e503b5f7
2016-07-01 08:47:50 +08:00
stewie925 bc6c3434d9 Complete verification for os-floating-ips-bulk
This includes parameter, example, and body verifications
for api-ref os-floating-ips-bulk.

part of bp:api-ref-in-rst

Change-Id: I507958b4361b65da1cc510b0d81fe55466dd41c3
2016-06-30 08:47:38 -07:00
Artom Lifshitz e83e114e1b Device tagging API support
This patch allows the user to specify a tag for a virtual network
interface and/or block device mapping when booting an instance.

Implements: blueprint bp/virt-device-role-tagging
Change-Id: I89247200f4cf1f644daf476727b4a6acb22b0cf6
2016-06-29 20:55:16 -07:00
Karen Bradshaw 7010aad4e1 api-ref: os-certificates.inc
Verified methods, parameters, body text.
Updated parameters.yaml to include: certificate,
data, private_key.

Part of: bp/api-ref-in-rst

Change-Id: I1003caa6bf52ce158e813481b383544fa550320b
2016-06-29 13:14:12 +00:00
stewie925 09701bebbe Complete verification for api-ref os-flavor-extra-specs
This includes parameter, example, and body verifications
for api-ref os-flavor-extra-specs.

part of bp:api-ref-in-rst

Change-Id: Ifa7766934da95c3b2da20b71a7733883c70f7c80
2016-06-28 19:01:01 -07:00
ghanshyam a41d396152 api-ref: verify images.inc
This completes the verification of images.inc for
all required area(parameter, example, body)

Part of bp:api-ref-in-rst

Change-Id: I47ed4d0b4446a0b45a1df312b84ec6bfdaa134b6
2016-06-24 14:35:23 +00:00
Jenkins c2d59bb043 Merge "api-ref: added docs for microversion 2.26" 2016-06-24 14:23:22 +00:00
Jenkins e594277d58 Merge "api-ref: parameter verification os-agents" 2016-06-24 11:01:58 +00:00
Jenkins 1cc76bd9f8 Merge "api-ref, os-availability-zone.inc" 2016-06-24 10:18:31 +00:00
Jenkins 3aa954ce86 Merge "api-ref, os-services.inc" 2016-06-24 10:12:44 +00:00
Sergey Nikitin 5417d83ec3 api-ref: added docs for microversion 2.26
Part of bp:tag-instances
Part of bp:api-ref-in-rst

Change-Id: Ifd0d518d086719eb248b442359c272b1799544c6
2016-06-23 23:42:39 +03:00
Sean Dague aa0d31848b Add note about preserve_ephemeral limitations
Change-Id: I4534f00dc45fc6aecb533d711385441828aea02c
2016-06-23 09:41:57 -04:00
Jenkins a919ea33c8 Merge "api-ref: docs for microversion v2.28" 2016-06-22 11:43:06 +00:00
Jenkins 0685e7762c Merge "api-ref: console types." 2016-06-21 21:35:04 +00:00
Ronald Bradford 0d450c4695 api-ref: parameter verification os-agents
Change-Id: I7e319ec05489d87cdd5b4a486f3981fc8d8f90a9
2016-06-21 13:48:58 -04:00
Karen Bradshaw 3cdb385dac api-ref, os-services.inc
Verified parameters, examples, body text.
Included v2.11 sample files for GET and PUT
os-services.

Part of: bp/api-ref-in-rst

Change-Id: Ice4fb525d62230b2e20f01789a0aec396835b56b
2016-06-21 11:39:30 -04:00
Pavel Kholkin ebe8fd945b api-ref: docs for microversion v2.28
Part of bp nova-api-hypervsor-cpu-info
Part of bp api-ref-in-rst

Change-Id: I48a5824c653825b9fdc6cd4d5a2f6ade03fff011
2016-06-21 17:40:06 +03:00
Jenkins 8c9df1ec4f Merge "api-ref: parameter verification os-fixed-ips" 2016-06-20 17:38:11 +00:00
Karen Bradshaw a7fa4f426e api-ref, os-availability-zone.inc
Verified parameters, body text, examples.
-Added brief howto for creating an AZ and linked
to Host Aggregates developer documentation.
-Added new hosts object with details about service
 states.
Change-Id: I721628f95d8623591447f88fa68a0f7601823308
2016-06-20 09:43:51 -04:00
Ronald Bradford 37376b9acd api-ref: parameter verification os-fixed-ips
Change-Id: I0140ee7e49ffa39be07fe3f9a6ad24123be2a723
2016-06-17 11:43:17 -04:00
Jenkins aaac7c4f6a Merge "api-ref: Fix parameters in os-instance-usage-audit-log" 2016-06-16 18:22:44 +00:00
Jenkins 100305c2bf Merge "api-ref: parameter verification for os-aggregates" 2016-06-15 22:28:27 +00:00
csatari 32d45f15dc api-ref: console types.
Documentation change in api-ref.

type is added to the parameter lists of Get RDP console, Get serial console,
Get SPICE console, Get VNC console.

Closes-Bug: 1587117
Closes-Bug: 1587118
Closes-Bug: 1587119
Closes-Bug: 1587121

Change-Id: I73823fd6fb0886e2fff0da4838fe868f578bba6d
Signed-off-by: csatari <gergely.csatari@nokia.com>
2016-06-14 15:58:32 +02:00
Jenkins 68209e222f Merge "api-ref: add version 2.3 parameters to servers" 2016-06-14 13:26:38 +00:00
Sean Dague 036833d57c api-ref: add version 2.3 parameters to servers
This adds the microversion 2.3 parameters to servers display calls.

Part of bp:api-ref-in-rst

Change-Id: I71d45fbff2bfca553128b375e6494d003dbc3759
2016-06-14 12:44:13 +00:00
Takashi NATSUME 58785c4a67 api-ref: Fix parameters in os-instance-usage-audit-log
The parameters have been verified in
Ia7af3cab3c0ed82418a6fa140fea061074ccd8b5.
But response parameters are missing, so fix them.
And fix some wrong description.

Change-Id: Ic1a307c405f769cadd037ae45e921d88b6a2bea5
Implements: blueprint api-ref-in-rst
2016-06-14 13:58:54 +09:00
Kevin_Zheng 2057ed76d2 api-ref: parameter verification for os-aggregates
checked parameters

Part of bp:api-ref-in-rst

Change-Id: I8fe3825243f8b94d5c3f382ebc30c342bffafcac
2016-06-12 06:52:28 +00:00
Jenkins e52d84968d Merge "api-ref: verify keypairs" 2016-06-08 15:02:53 +00:00
Sean Dague f06a12623b api-ref: verify keypairs
This verifies all the parts of keypairs, including filling out all the
details for microversion 2.2 and 2.10 which change it.

Part of bp:api-ref-in-rst

Change-Id: Iab88dc75cdb7b5f91e46afd29ee61e38b325e180
2016-06-08 08:23:33 -04:00
Jenkins 74a772398a Merge "api-ref: parameter verification for os-hypervisors" 2016-06-07 20:59:48 +00:00