673 Commits

Author SHA1 Message Date
Takashi NATSUME
d04ddb0a2b api-ref: Fix missing parameters in API Versions
Add 'updated' and 'media-types' explicitly
in parameter tables.

Change-Id: I3e9f3374d4183d7ef7d3cb55cc95a4499ab20d49
Closes-Bug: #1634668
2017-06-28 03:01:10 +00:00
Jenkins
a43d1b17e2 Merge "Update api-ref to indicate swap param" 2017-06-22 17:28:23 +00:00
jichenjc
34f0259a5e Update api-ref to indicate swap param
swap output is actully an empty string ('') now when query
flavor if the swap is 0, so we need indicate that before we
sort out any conclusion (whether we need fix it or not).

Change-Id: I5a5397479dd894f90dad9a1de509a50f6b3b5477
Related-Bug: 1436683
2017-06-22 14:38:02 +00:00
Jenkins
d59d762fa7 Merge "api-ref: fix hypervisor_hostname description for Ironic" 2017-06-20 18:51:16 +00:00
Jenkins
8a7a2b8f92 Merge "api-ref: cleanup PUT /os-hypervisors/statistics docs" 2017-06-20 00:35:25 +00:00
Jenkins
8069fc8ce4 Merge "api-ref: fix unshelve asynchronous postconditions typo" 2017-06-19 17:41:14 +00:00
Jenkins
bc4c91e7be Merge "Amend api-ref for multiple networks request" 2017-06-19 14:28:13 +00:00
Matt Riedemann
f178d0d4b8 api-ref: fix unshelve asynchronous postconditions typo
This section is talking about unshelve, so the asynchronous
postconditions section should be talking about unshelve.

Change-Id: I44bf3fbfc60225dcdb9d3d9c018f66cf49f8cbdc
2017-06-19 09:24:52 -04:00
Matt Riedemann
b541f71d0f api-ref: fix hypervisor_hostname description for Ironic
The hypervisor_hostname shown in the os-hypervisors and servers
APIs is actually the Ironic node uuid, not a name. This comes
from the Ironic virt driver _node_resource method which eventually
gets used in the resource tracker to set the ComputeNode
hypervisor_hostname field, which is used to also set the instance.node
value in the ResourceTracker later during the instance claim.

The confusion probably lies in the fact that the variable passed
around the code is also referred to as "nodename", but in the case
of Ironic it's not actually a hostname, it's a uuid.

Change-Id: Ic639abe9989b282bad71581bb861314619c0f48b
Closes-Bug: #1698000
2017-06-15 14:20:15 -04:00
Matt Riedemann
298565a762 api-ref: cleanup PUT /os-hypervisors/statistics docs
There are two changes here:

1. It is important to state that this API only returns a summary
   of compute node/service statistics for *enabled* nova-compute
   services. The DB API query filters out disabled compute services.

2. Fixes a typo in the description of the hypervisor_statistics
   parameter.

Change-Id: Iee28147b701ab42eb07d344cd2f4cb157b74b2f2
2017-06-15 00:32:47 +00:00
Matt Riedemann
a9ba1be7b7 api-ref: fix misleading description in PUT /os-services/disable
The PUT /os-services/disable API does not actually check the
request body for a reason why the service is being disabled.
That's what PUT /os-services/disable-log-reason is for.

This removes that incorrect part of the API description.

Closes-Bug: #1697787

Change-Id: I7a0bbdad842e5d420085777d4fe2f9e6d3e94360
2017-06-13 18:42:42 -04:00
Kevin_Zheng
ebb245edc2 Add missing query filter params for GET /os-services API
The GET /os-services API takes "host" and "binary" query filter
parameters:

3a5d592e60/nova/api/openstack/compute/services.py (L54-L58)

And novaclient exposes those filters:

https://docs.openstack.org/cli-reference/nova.html#nova-service-list

But they aren't documented in the API reference:

https://developer.openstack.org/api-ref/compute/?expanded=list-compute-services-detail#list-compute-services

Change-Id: I0ed35404d93475538326d3020754a6f97f25d08c
Closes-bug: #1697563
2017-06-13 08:19:31 +00:00
Sylvain Bauza
7d7cc94221 Amend api-ref for multiple networks request
Since there are chances that the guest OS won't honor the order of networks
and assign NIC#1 to the second requested network, we say to our users to
rather use device tagging and metadata querying.
Amending the api-ref to mention explicitly that Nova doesn't support NIC
ordering although there are codepaths for that which try that.

Change-Id: Id134f7745111ccd12695bb041fcce182e833126a
Related-Bug: #1696664
2017-06-09 11:48:24 -04:00
Jenkins
55a363cd1c Merge "api-ref: fix type for hypervisor_marker" 2017-06-08 19:26:33 +00:00
Matt Riedemann
4404c4444c api-ref: fix type for hypervisor_marker
The marker for paging over hypervisors (compute nodes) is the
integer id field (compute_nodes.id column). This corrects the
type in the API reference parameters.

Change-Id: If925929171a2d7a1fbd0a8926e550512915c24a3
Closes-Bug: #1696554
2017-06-07 20:18:24 -04:00
Vu Cong Tuan
0808398487 Fix html_last_updated_fmt for Python3
html_last_updated_fmt option is interpreted as a
byte string in python3, causing Sphinx build to break.
This patch makes it utf-8 string.

Changing Popen to .check_output because of 3 reasons:
1. check_output() will raise CalledProcessError if
the called process returns a non-zero return code.
2. For consistency with keystone [1] and cinder [2]
3. It makes the code look much better.

[1] https://review.openstack.org/#/c/457142/
[2] https://review.openstack.org/#/c/433081

Change-Id: Ia3e792c512da46c2b92d3ad9ec1657849d379052
2017-06-07 21:05:12 +00:00
Jenkins
f42ecdf88f Merge "Fixed some nits for microversion 2.48" 2017-06-06 23:27:49 +00:00
Jenkins
80a6f44e12 Merge "Update server create networks API reference description for tags" 2017-06-06 18:06:37 +00:00
Sergey Nikitin
41d6d77897 Fixed some nits for microversion 2.48
The main piece of code for microversion 2.48 was merged.
This patch fixes some nits in docs and error messages.

Change-Id: I8bc5010c255494d4e1bf36272215422991264c6d
2017-06-06 13:34:17 +00:00
Sergey Nikitin
a944838993 Standardization of VM diagnostics info API.
Before this patch, VM diagnostics response was just a
'blob' of data returned by each hypervisor. New API
version makes diagnostics response standardized.
New response has a set of fields which each hypervisor
will try to fill. If hypervisor unable to provide a
specific field then this field will be reported as 'None'.

Tempest tests: I7757c5beeea3d3b0bc15a51cafc5ea2ada65e76c

DocImpact: admin guide docs should be updated to mention
standardized version of the diagnostics response

blueprint: restore-vm-diagnostics

Change-Id: If0b1493cc5c1c7f0d9896dd68342ad4dea4f7da2
2017-06-05 07:45:51 +00:00
Chris Friesen
90636e0f33 show flavor info in server details
Add a new microversion to change the flavor field in the server
details to display a subset of the flavor information instead of
just a link to the original flavor.

This is more reliable since it shows the actual instance size, while
the flavor may have been deleted/recreated in the meantime or the
flavor extra-specs may have been modified.

Implements: blueprint instance-flavor-api
Change-Id: If646149efb7eec8c90bf7d07c39ff4c495349941
2017-06-02 12:09:24 -04:00
Matt Riedemann
60b55ad1d9 Update server create networks API reference description for tags
Artom ruined my day by pointing out that with microversion 2.37
and specifying the enum "auto" for the networks entry in a server
create request, you can't also apply a device tag to the port
that's auto-created for the server.

This change updates the networks API reference parameter description
to note that wrinkle since it's not obvious otherwise without looking
at the API schema.

Change-Id: I1e39aa5a41befb24bb947be060f43f0a96134139
2017-06-01 16:30:48 -04:00
Jenkins
dd1a3ac5ae Merge "libvirt: remove glusterfs volume driver" 2017-05-26 19:19:04 +00:00
Jenkins
ff0ec7411b Merge "fix typo" 2017-05-24 18:51:02 +00:00
Jenkins
b0eb100c86 Merge "Repair links in Nova documentation" 2017-05-24 18:46:05 +00:00
Vu Cong Tuan
605d617d55 Repair links in Nova documentation
Some reference links are out of date.
There's 404 error when trying to access them.

For example:
http://developer.openstack.org/api-ref/networking/
v2-ext/index.html#security-groups-security-groups

Change-Id: Iead6a6f32cdb2c9067bb5425333ad043514edbce
2017-05-23 17:17:52 +07:00
Takashi NATSUME
b68e25a0f0 api-ref: Fix parameter order in os-services.inc
The fields added in microversions should be at the end (*1).
So fix 'forced_down' parameter added in microversion 2.11.

*1: https://wiki.openstack.org/wiki/NovaAPIRef

TrivialFix
Change-Id: I060cfa2a114e8ce7538554c18095a83cfc2ced10
Implements: blueprint api-ref-in-rst-pike
2017-05-23 18:23:38 +09:00
fuzk
24b1660f07 fix typo
Change-Id: Ib6c3571a91b2c3a2e167f4d39b993984fa246a72
2017-05-23 08:32:38 +08:00
Jenkins
ffd6a42c00 Merge "api-ref: Example verification for servers-actions.inc" 2017-05-22 13:56:51 +00:00
Takashi NATSUME
cbf83a01fb api-ref: Example verification for servers-actions.inc
* Example for the rebuild action

  The functional test is modified and
  the example is replaced with v2.26 examples.

* Example for the rescue action

  The example in API reference is replaced with
  the example with 'rescue_imgae_ref'.

Parameters for the rebuild action and the rescue action
are also fixed.

The patch completes the parameter verification and
the example verification of servers-actions.inc.

Change-Id: Iaf8808b13d1fdfead50da4cd447b3893578f76dd
Implements: blueprint api-ref-in-rst-pike
2017-05-22 00:19:19 +00:00
Matt Riedemann
5c5bc57d2b libvirt: remove glusterfs volume driver
Cinder deprecated the GlusterFS volume driver
in Newton and deleted it in Ocata:

I10c576602dd0e65947d1a1af5d04b8ada54f4625

Since it's unused, unmaintained and unsupported in
Cinder we should remove it from the libvirt driver.

This also removes the related configuration options.

A note is left in the code since I'm unsure if anything
relies on checking for the netfs disk source_protocol which
was added at the same time as the glusterfs support in
Ic6dd861b40b692b25df67c9d5b63fd436c690fde.

Change-Id: I2745f5578646ec994b53f6b5c0a5f62637b0948a
2017-05-19 14:51:42 -04:00
James Penick
53d27dea0d fix typo in parameter type definition
project_id_instance_action "required" was "ture" instead of "true"

Change-Id: I38dde136bf44c83d9224fc32f38d4ab423d5fb36
2017-05-11 15:42:56 +00:00
Takashi NATSUME
5532d6f404 Add a functional test for 'removeFloatingIp' action
Add a functional test for 'removeFloatingIp' action.
Rename the example file for 'addFloatingIp' action
to clarify that it is a request body example.

Change-Id: Ic865318fa640eb17d1317fb3d5f064788ebf44e7
2017-05-08 19:32:53 +00:00
Jenkins
c94f34a3d5 Merge "Fix units for description of "flavor_swap" parameter" 2017-05-07 21:01:30 +00:00
Jenkins
4d552d6bf6 Merge "Verify project id for flavor access calls" 2017-05-05 21:29:25 +00:00
Jenkins
9e35b6770a Merge "api-ref: Fix unnecessary description in servers-admin-action" 2017-05-05 17:53:09 +00:00
Sean Dague
1f120b5649 Verify project id for flavor access calls
This includes project id verification for flavor access calls.

Closes-Bug: #1544989

Implements bp:validate-project-with-keystone

Change-Id: I2620c3ebc2a6dc131946602f8aa36ec0b6e782e0
2017-05-04 18:23:17 -04:00
Jenkins
a818049554 Merge "Remove cloudpipe APIs" 2017-05-04 17:05:54 +00:00
Matthew Treinish
acdc2da0e3 Remove cloudpipe APIs
This commit removes the cloudpipe API from nova. This has been
deprecated since change I415760ff634dd85974f0c3f79e788e633852efb5 and no
longer works without nova-cert and the pending removal of the deprecated
nova-network.

Implements bp remove-nova-cert
Change-Id: Ifd1fb13a5953cc66f9cc2561d30a9efcd3f4c92e
2017-05-04 16:13:45 +08:00
Jenkins
d1f620b1eb Merge "api-ref: Fix parameters in servers-action-console-output" 2017-05-03 21:11:06 +00:00
Jenkins
2b54ce7596 Merge "api-ref: Use 'note' directive" 2017-05-03 21:04:50 +00:00
Chris Friesen
5cf09afb2c Fix units for description of "flavor_swap" parameter
The swap size as specified in a flavor is in units of MiB, not GiB.

Change-Id: I1215630e4dacf0d96e3d028763bdb4380d1f7999
2017-05-02 11:56:14 -06:00
Takashi NATSUME
9d6913d9f0 api-ref: Fix unnecessary description in servers-admin-action
The action to change the administrative password is not
included in servers-admin-action.inc.
So the description related to the action is removed.

Change-Id: I942aaea755375822e9f5ac9e29287de0c08dc573
Implements: blueprint api-ref-in-rst-pike
Closes-Bug: #1686917
2017-05-01 04:28:58 +00:00
Takashi NATSUME
7707723e7b api-ref: Fix parameters in servers-action-console-output
Change-Id: I0604db813f4e8830110006c6636c7b9094ad75fb
Implements: blueprint api-ref-in-rst-pike
2017-05-01 04:27:13 +00:00
Takashi NATSUME
e5364a1fd1 api-ref: Use 'note' directive
Change-Id: I07326c016ef1e4b9769975db263a736a07ca386d
Implements: blueprint api-ref-in-rst-pike
2017-05-01 04:24:36 +00:00
Matthew Treinish
2bcee77e3b
Remove nova-cert
This commit removes nova-cert which has been deprecated since change
Id7a1fc943cbe6d860a50d3cc776717b55351004b. The APIs have been hard coded
to return a 410 whenever they're called now. For the API ref a new
section for obsolete apis is added to the bottom of the page and the
certificates api ref is moved there.

Implements bp remove-nova-cert

Change-Id: I2c78a0c6599b92040146cf9f0042cff8fd2509c3
2017-04-27 22:28:01 -04:00
Jenkins
eeb1bfcec8 Merge "2.45: Remove Location header from createImage and createBackup responses" 2017-04-25 22:28:38 +00:00
Jenkins
f0743a23ed Merge "api-ref: Nova Update Compute services Link" 2017-04-25 21:16:17 +00:00
Jenkins
b302ec75da Merge "api-ref: Fix a parameter description in servers.inc" 2017-04-25 21:15:41 +00:00
Jenkins
a1eab9e40b Merge "Rework descriptions in os-hypervisors" 2017-04-25 21:15:06 +00:00