184 Commits

Author SHA1 Message Date
Zuul
77c6f1010c Merge "Doc8: Stop skipping D001: Line too long" 2019-02-23 22:39:37 +00:00
Lee Yarwood
71ca8578be docs: Add os-migrate_volume_completion api-ref
This admin API is only called externally by Nova at present when
finishing the migration or retype of an attached volume. However for
future reference it would be really useful to have this listed in the
official API reference guide.

Change-Id: I5fad6eb4903784870aa26fa0996a391bbbbb9276
2019-02-20 11:40:30 +00:00
Sean McGinnis
d5b539be36
Doc8: Stop skipping D001: Line too long
This cleans up the cases where we had D001 violations so we can stop
skipping that check in doc8 runs.

Change-Id: Ie52f6ecac1a645fcbcc643b9ca63e033b622d830
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2019-02-19 16:51:56 -06:00
Zuul
3902a2bf28 Merge "api-ref: Correct response body type for show host details" 2019-02-06 23:25:01 +00:00
Zuul
7ac5101d1d Merge "api-ref: add response body for set-image-metadata-for-a-volume" 2019-01-24 11:17:25 +00:00
Zuul
906acbc8a0 Merge "api-ref: fix some issues in volumes interfaces" 2019-01-09 02:40:18 +00:00
yenai
17aa176104 Add missing backup status in API doc
The status 'error_deleting' and 'deleted' doesn't exist in the doc.
Also the status error_restoring is a state of the volume, not backup.
This patch is to add and remove the respective statuses in the doc.

Change-Id: I96cd3d6fba38206a0a2b6c325092903b760b4ed4
2019-01-04 07:05:25 +00:00
Zuul
5ea88854cc Merge "api-ref: add missing volumes_links in list-volume interfaces" 2018-12-19 01:59:32 +00:00
zhufl
eb10e43782 api-ref: add response body for set-image-metadata-for-a-volume
https://developer.openstack.org/api-ref/block-storage/v3/index.html?expanded=set-image-metadata-for-a-volume-detail#set-image-metadata-for-a-volume
"Set image metadata for a volume" interface has response body,
so this is to add response parameter and response example for it.

Change-Id: I8139fd557cb3123dd71ab104e7e36546b862e345
2018-12-10 10:19:17 +08:00
zhufl
7fba6fdc4b api-ref: fix some issues in volumes interfaces
1. group_id is missing from the response of list-voluems and create_volume.

2. shared_targets and service_uuid are new in 3.48

3. migration_status, os-vol-host-attr:host, os-vol-mig-status-attr:migstat,
   and os-vol-mig-status-attr:name_id may not always be present, so they
   should be optional parameters.

https://developer.openstack.org/api-ref/block-storage/v3/index.html?expanded=reset-a-backup-s-status-detail,update-a-backup-detail,create-a-backup-detail#create-a-volume
https://developer.openstack.org/api-ref/block-storage/v3/index.html?expanded=reset-a-backup-s-status-detail,update-a-backup-detail,create-a-backup-detail#show-a-volume-s-details

Change-Id: I11201f2a604818e633eb2000b3c69162c668721d
2018-11-27 13:20:35 +08:00
zhufl
192da355ba api-ref: add missing volumes_links in list-volume interfaces
https://developer.openstack.org/api-ref/block-storage/v3/index.html?expanded=list-accessible-volumes-detail#list-accessible-volumes
https://developer.openstack.org/api-ref/block-storage/v3/index.html?expanded=#list-accessible-volumes-with-details

volumes_links is in the response body of list-volume and
list-volume-with-details when pagination is used. So it should
be an optional parameter.

Change-Id: If61797f9a5cb5c522ed62886f4114d43e7cbbdef
2018-11-09 10:52:18 +08:00
zhufl
cf11b8dfed api-ref: fix response code and data type for volume interfaces
1. https://developer.openstack.org/api-ref/block-storage/v3/?expanded=get-volumes-summary-detail#get-volumes-summary
total_count in "Get volumes summary" should be integer

2. https://developer.openstack.org/api-ref/block-storage/v3/index.html#create-metadata-for-volume
Response code for "Create metadata for volume" interface should be 200.

Change-Id: If278e939a9a580329e24709877c13ed4e70d6180
2018-11-06 16:54:26 +08:00
Felipe Monteiro
cf80d437a8 api-ref: Correct response body type for show host details
Currently [0] claims that "total_volume_gb" in the response body
is of type int -- but it is actually a string, going off the example
response body as well as the API code, which clearly casts the
value to a str() [1].

[0] https://developer.openstack.org/api-ref/block-storage/v3/index.html?expanded=show-host-details-for-a-project-detail#show-host-details-for-a-project
[1] 95d6d49b01/cinder/api/contrib/hosts.py (L169)

Change-Id: I36486724cc30389d371ec0b18b9b7f96883d193c
2018-11-02 09:53:21 -04:00
Zuul
75e4f1e0f3 Merge "api-ref: Change extensions updated type to updated_at" 2018-11-02 13:44:58 +00:00
Zuul
683c795252 Merge "Remove source_replica info from api-ref" 2018-11-02 13:44:56 +00:00
Zuul
5892ccf963 Merge "api-ref: Fix namespace parameter for backend capabilities" 2018-10-26 02:26:05 +00:00
Matt Riedemann
6b852e859f api-ref: cleanup status conditions for backup/restore APIs
The description for the backups API in both the v2 and v3
reference had a generic statement that only available volumes
can be backed up and restored, which is misleading since it
is possible to backup an in-use volume if the force parameter
is used.

This change drops the generic statement from the high-level
description and opts for per-API descriptions about the status
preconditions for backup and restore operations.

The v3 restore reference already mentioned the status precondition
so the only change to that is fixing the bullet list formatting.

Change-Id: Ib6c61af9ced2527884569fa15a848a215dd985b8
Closes-Bug: #1799499
2018-10-23 12:54:36 -04:00
Zuul
e576261f7e Merge "api-ref: fix some inconsistencies in snapshot API" 2018-10-19 19:54:31 +00:00
Zuul
2a1f2c7c5a Merge "api_ref: total_capacity and free_capacity can be float" 2018-10-19 19:54:24 +00:00
zhufl
5c82ba8b4b api-ref: fix some inconsistencies in snapshot API
https://developer.openstack.org/api-ref/block-storage/v3/index.html#list-snapshots-and-details

1. updated_at is missing in the response fields of show-snapshot
   and list-snapshots
2. id's description is "The UUID of the volume transfer.", which
   is incorrect.
3. volume_id's description is "The UUID of the volume.", which is
   not very accurate.
4. os-extended-snapshot-attributes:progress is something like '100%',
   so it should be string, not integer
5. response fields of show-snapshot-metadata is incorrect.
6. metadata is missing in the response example of update-snapshot
7. snapshots_links is missing in the response of list-snapshot

Change-Id: I0f6994c2d2dc27d3d594acdd460e27c338f86a2c
2018-10-16 10:20:47 +08:00
Zuul
4b108bfae2 Merge "api-ref: Add response fields and response example for volume manage" 2018-10-15 18:48:07 +00:00
zhufl
a065af3c27 api-ref: Add response fields and response example for volume manage
https://developer.openstack.org/api-ref/block-storage/v3/index.html#manage-an-existing-volume
Response fields and response example are missing in the
"Manage an existing volume" api ref, this is to add them.

Change-Id: If624b672d1723a7226741da85802de87979f6c12
2018-10-09 15:18:53 +08:00
zhufl
6cf93c2f80 api_ref: total_capacity and free_capacity can be float
Some drivers will report total_capacity and free_capacity
as float, so this is to change the data type description to
include floating point.

Change-Id: Icd206ba3733adf9543a9e1384ef7245e287ee858
2018-10-09 10:10:23 +08:00
Felipe Monteiro
a60fd0a61c api-ref: Fix namespace parameter for backend capabilities
This patch set corrects the namespace parameter for capabilities
api-ref from namespace [0] to namespace_1 which is the correct
one as it is both required and matches the following format
in the view code [2]:

    The storage namespace, such as
    ``OS::Storage::Capabilities::foo``.

[0] 7f7716d584/api-ref/source/v3/parameters.yaml (L1945)
[1] 7f7716d584/api-ref/source/v3/parameters.yaml (L1951)
[2] af41c04d0f/cinder/api/views/capabilities.py (L31)

Change-Id: I0557b32e7e3752e8fcde5dadd621c82fded1e755
2018-10-06 00:28:09 -04:00
Sean McGinnis
0b8bf9b7fc Remove source_replica info from api-ref
With the addition of schema validation and the release of cinderclient
4.0.0 we no longer accept source_replica as a volume creation parameter.
This was part of the short lived replication v1 functionality that was
removed several releases ago and never had support beyond one backend
type for one or two releases and has had no affect for quite a while
now.

Change-Id: Idd848628759884c1e637ca17dc292f776e4adf47
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2018-10-04 14:29:47 +00:00
whoami-rajat
1323ef7383 API-REF:os-quota-sets v2 API reference has the wrong parameters
The request/response parameters for the v2 os-quota-sets API
reference is copied from the compute API and is therefore wrong
for the block storage API:
https://developer.openstack.org/api-ref/block-storage/v2/#quota-sets-extension-os-quota-sets

This patch replaces the wrong response with the correct parameters.

Change-Id: I6df1d60843943c99505a735a6dec4f47270a1c2e
Closes-Bug: #1794125
2018-10-03 23:05:17 +05:30
Zuul
7ca51e9271 Merge "api-ref: clarify volume_type param in volume create API" 2018-10-02 16:57:24 +00:00
Felipe Monteiro
8d161d9d19 api-ref: Change extensions updated type to updated_at
This changes the updated type to be updated_at (the updated
type is just a string whereas updated_at is iso-8601 formatted
string).

This change is consistent with:

* examples for os-extensions in API docs [0]
* Nova API docs for os-extensions [1]

[0] https://developer.openstack.org/api-ref/block-storage/v3/index.html#id6
[1] https://developer.openstack.org/api-ref/compute/#id402

Change-Id: I806dbc66f35fd0d9209c25c35adc2d64f5b9f8ed
2018-09-30 10:25:46 -04:00
zhufl
8fec696bfd api-ref: total/free_capacity should be with postfix _gb
https://developer.openstack.org/api-ref/block-storage/v3/index.html#list-all-back-end-storage-pools
free_capacity and total_capacity in "List all back-end storage pools"
should be free_capacity_gb and total_capacity_gb

Change-Id: Ic0690d12147fa63b903f3442eccde88c1d501711
2018-09-28 15:30:37 +08:00
Zuul
06f3e4e79e Merge "Fix api-ref title levels and index" 2018-09-26 01:54:35 +00:00
Zuul
c61f36be76 Merge "api-ref: add docs for os-migrate_volume API" 2018-09-26 00:58:53 +00:00
Matt Riedemann
3eda3fa7a4 api-ref: clarify volume_type param in volume create API
The volume_type parameter to the volume create API can be
either the volume type name or ID, the cinder-api will look
it up either way. This wasn't obvious from the API reference
and required digging into the code to figure it out. This change
simply clarifies the usage in the API reference.

Change-Id: Iae8c43374dee9767e17252279822ccd2121d8246
2018-09-24 11:13:05 -04:00
Matt Riedemann
00c5d946cd api-ref: mark name as optional in volume create API
The "name" parameter to the volume create API is optional,
this makes the docs reflect that. While in here, I've
renamed volume_name_1 to volume_name_optional so the variable
name is descriptive and dropped the redundant name_8 variable.

Change-Id: Ice42f06112a268b229f770f34096de19eb3447b2
Closes-Bug: #1794115
2018-09-24 10:41:34 -04:00
Zuul
6b13c7ebaf Merge "Update doc for get-pools API" 2018-09-21 13:58:34 +00:00
Matt Riedemann
8f13d2e428 api-ref: add preconditions for volume transfer APIs
This adds the simple pre-conditions for the volume transfer
API (in its various forms) to the API reference. This came
up during discussions about nova server instance ownership
transfer and questioning whether or not in-use volumes could
be transferred and finding the API did not mention that case
at all.

Change-Id: I0bd42dd6a0e291979fb37bcab3823dfde369e7a9
2018-09-11 17:43:05 -04:00
TommyLike
a7dca2e783 Update doc for get-pools API
Update name description for get-pools
API's document.

Change-Id: I403c968e8b0a85d81dc8898153f18e418ca5d289
2018-08-29 09:38:23 +00:00
Matt Riedemann
76cc9bd02b api-ref: add docs for os-migrate_volume API
Adds the v2 and v3 API reference documentation for the
admin-only (by default) os-migrate_volume volume action
API. The only major difference with the v3 API is the
cluster parameter introduced in the 3.16 microversion.

Change-Id: I70f6b2cc4d25ea155ce09ddeec26b995890a2db3
Partial-Bug: #1607539
2018-08-22 20:38:22 -04:00
Sean McGinnis
ecaac074c0
Fix api-ref title levels and index
We had a few instances where the title level used for calls in the
api-ref was wrong, resulting in the api call being hidden inside the
details of another title level.

This fixes title levels to be consistent and adds a missing inclusion to
the v2 index.

Closes-bug: #1787203

Change-Id: I602250117dbf52f9e031e945040b45f089d8602e
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2018-08-15 08:18:28 -05:00
TommyLike
99e925a82a Update document for metadata show API
Instead of "metadata", cinder will add "meta"
into response body of show metadata API.

Change-Id: Id39e3858f860e7f705d1c6ed44307d50fa8ff4b9
2018-08-13 21:56:57 +08:00
Zuul
9bfc74428d Merge "Fix create backup API document" 2018-06-05 00:01:40 +00:00
jeremy.zhang
a6dd458612 Fix api-ref for backup export and import
Add missing paramater description for backup export and import function.

Change-Id: I6408138ac738717c766752f5358025dbe62d7319
2018-05-29 22:51:19 +08:00
junboli
8ee82f04e6 Missing request parameters in update quotas
"backup_gigabytes" and "per_volume_gigabytes" parameters
are supported in api v2, they aren't mentioned in api v2
document[1]. On the other hand both of them are mentioned
in api v3 document[2].

[1] https://developer.openstack.org/api-ref/block-storage/
    v2/index.html#update-quotas
[2] https://developer.openstack.org/api-ref/block-storage/
    v3/index.html?highlight=backup_gigabytes#update-quotas
    -for-a-project

Change-Id: I135efd5c2b4735f5821922643926390976453bf5
Closes-bug: #1727631
2018-05-29 20:03:51 +08:00
TommyLike
1a5b0c0133 Fix create backup API document
Make 'snapshot_id' optional as well as
reword parameter description.

Change-Id: I9ee404a8db5320d2a4cd7b50c2166446169bbba5
2018-05-16 15:29:09 +08:00
Zuul
c93371dc2a Merge "Add missing 'transfer' parameter in API document" 2018-05-02 23:27:10 +00:00
Zuul
283928fe1d Merge "api-ref: modify 'has_dependent_backups' param's description" 2018-05-02 17:29:52 +00:00
TommyLike
181ab96ac8 Add missing 'transfer' parameter in API document
This patch adds the missing parameter 'transfer' to accept
transfer's API document.

Change-Id: I88f0a01ef22be9ff1b483e517f08866a7e1b19ce
2018-05-02 15:57:52 +00:00
lihaijing
1ae1a02933 api-ref: modify 'has_dependent_backups' param's description
Change-Id: Iec37578d367db109ef4d8eb8c07c832402661f75
Closes-Bug: #1766057
2018-04-27 15:33:28 +08:00
Dongcan Ye
8addf353f4 api-ref: Correct the cgsnapshot_id parameter
The cgsnapshot_id parameter in delete and get operations
should in path, and is required.

Change-Id: I5525c05769dcd27ff06d7b1d4c97698f99075f09
2018-04-26 17:08:32 +00:00
Sean McGinnis
e4a41feab3 Clarify sizing when creating vol from source
The api-ref stated new volumes created from a source volume or
snapshot would have the same size as the original, but that is
not the case if a larger size is requested.

Change-Id: Id2e0d53b56d5879026c182521a512dc2cfcd28f7
2018-04-17 17:47:39 -05:00
albertjone
d830328663 fixs grammar problems and unify format in api-ref
Change-Id: Ib83d1cb6def076c0ab06947b681cd10cd03ed002
2018-04-05 02:45:01 +00:00