741 Commits

Author SHA1 Message Date
Matt Riedemann
59bd2f6adc Import the config drive docs from openstack-manuals
As part of the docs migration from openstack-manuals to
nova in the pike release we missed the config-drive docs.

This change does the following:

1. Imports the config-drive doc into the user guide.
2. Fixes a broken link to the metadata service in the doc.
3. Removes a note about liberty being the current release.
4. Adds a link in the API reference parameters to actually
   point at the document we have in tree now, which is
   otherwise not very discoverable as the main index does
   not link to this page (or the user index for that matter).

Partial-Bug: #1714017
Closes-Bug: #1720873

Change-Id: I1d54e1f5a1a94e9821efad99b7fa430bd8fece0a
2017-10-24 12:22:11 -04:00
Zuul
5b6a76ddad Merge "api-ref: fix server status values in GET /servers docs" 2017-10-18 10:54:57 +00:00
Matt Riedemann
ad1b9360b5 api-ref: add warning about force evacuate for ironic
This adds to the existing warning about forcing a host during
evacuate and mentions how you really really shouldn't be doing
that if the instance is managed by the ironic driver
since those are 1:M with host:node relationships, and since you
can't specify a node when forcing the evacuate, nova will randomly
pick a node from the list for the given host and assign resource
allocations to that node which may already be fully allocated.

Change-Id: I8ae34399d32b2762a67e897807ffa2298e796c4c
2017-10-12 09:36:11 -04:00
Matt Riedemann
e315fcbec9 api-ref: fix server status values in GET /servers docs
The server status values exposed out of the API and used
for filtering when listing instances comes from the values
in nova.api.openstack.common._STATE_MAP. Some of the values
listed in the docs were incorrectly using variable names from
the code, which don't necessarily match the actual value exposed
out of the API.

The compute API server concepts guide actually had this all
correct, so this just updates the API reference.

Change-Id: I30b6f27c6e7fc9365c203b620b311785f8b4b489
Closes-Bug: #1722403
2017-10-11 16:33:15 -04:00
Matt Riedemann
8b62bf6479 api-ref: note that project_id filter only works with all_tenants
The project_id / tenant_id filter parameters when
listing servers is only applied when the all_tenants
filter is used.

Otherwise if an admin is listing servers and specifies
project_id but not all_tenants, they only get back
instances for the admin's project (in the request context).

Change-Id: I9e8fae8fb86604d7394d0dba4d7c75c3fc93033e
Related-Bug: #1185290
2017-10-04 17:34:21 -04:00
Jenkins
5b9009a205 Merge "api-ref: add note about rebuild not replacing volume-backed root disk" 2017-10-04 20:27:55 +00:00
Jenkins
038fe6bdd5 Merge "api-ref: remove redundant preserve_ephemeral mention from rebuild docs" 2017-10-04 20:27:27 +00:00
Jenkins
659b63d84b Merge "fix nova accepting invalid availability zone name with ':'" 2017-10-04 18:54:23 +00:00
Matt Riedemann
ae9542eb7d api-ref: add note about rebuild not replacing volume-backed root disk
We've had several bugs about this over the years, and until we
actually decide to fix it (or not), we should point out the known
limitation that volume-backed root disks are not replaced during
a rebuild.

Like, if you have a volume-backed instance and rebuild with a new
image, the root disk is still the volume with the original image.

Change-Id: I145cab88f782e4b1e630cc432322bc8436413e71
Related-Bug: #1482040
2017-10-03 16:34:26 -04:00
Matt Riedemann
ac1449c28e api-ref: remove redundant preserve_ephemeral mention from rebuild docs
We already mention the preserve_ephemeral parameter in the request
parameters table, including the note that it's only useful for
baremetal instances, so we don't need to mention it again in the
description of the API.

Also adds a space between some list error codes.

Change-Id: I8712f0fdd06eee1bb9af439621481d1c69b6244c
2017-10-03 16:01:46 -04:00
Tetsuro Nakamura
38b25397e8 fix nova accepting invalid availability zone name with ':'
Nova has a legacy hack to allow admins to specify hosts via an
availability zone using az:host:node. That means ':' cannot be
included in the name of an availability zone itself.

However, the aggregate API accepts requests which have
availability zone names including ':'.

This patch checks the availabilty zone name when aggregate is
created or updated and raises an error if it contains ':'.

Change-Id: I9b0d8e8d4b3ab2cb3d578c22fa259e0e7c0d325b
Closes-Bug: #1695861
2017-09-24 15:12:43 +09:00
Jenkins
3268ddc557 Merge "enhance api-ref for os-server-external-events" 2017-09-22 18:53:35 +00:00
Matt Riedemann
781a0286b5 api-ref: fix default sort key when listing servers
The default sort key when listing servers is the
'created_at' field, which is also in the list of
available sort keys in the same description for
this parameter. The 'created' field doesn't exist.

Change-Id: I7a971c421e69cc7a5630454305ee2cddaf0e92d3
2017-09-21 11:01:03 -04:00
Takashi NATSUME
2fce8a1396 Fix the ocata config-reference URLs
Replace the ocata config-reference URLs with
URLs in each project repo.

Change-Id: I48d7c77a6e0eaaf0efe66f848f45ae99007577e1
Closes-Bug: #1715545
2017-09-19 06:38:15 +00:00
jichenjc
3639130ed2 enhance api-ref for os-server-external-events
Trivial Fix
we have cinder / nova interaction for os-server-external-events
now, add this into introduction chapter.

Change-Id: I17ba89682973d78ce9764300eab50b99b09bf976
2017-09-15 06:19:49 +08:00
Sean Dague
f657efcdc5 Revert "Revert "Fix AZ related API docs""
Fix AZ related API docs

While we have a big fat comment in the development docs explaining why it's so
terrible to use default AZ values for either booting an instance or setting
an aggregate AZ metadata, we still have confusing API docs that provide the
wrong name for the AZ...

Fixing that and trying to explain the problem within the docs, too.

This reverts commit 92ca21abd61b6df7fc8bc5ffe7502f03b3eca2dd.

Co-Authored-By: Sylvain Bauza <sbauza@redhat.com>
Co-Authored-By: Stephen Finucane <stephenfin@redhat.com>

Change-Id: Ie4bfe32bbef0f8060bfc0ad4190f262d4a8bd3b2
2017-09-10 13:51:47 -06:00
Chris Dent
92ca21abd6 Revert "Fix AZ related API docs"
This reverts commit 71a7eda44b6da00c05bd3e136d0465086c30e721.

This is breaking the gate due to the change in the az name.

Change-Id: Idd7d1aab113f3d4aba8b1deb6e5dc3871a75aa29
Closes-Bug: #1716247
2017-09-10 16:32:59 +00:00
Sylvain Bauza
71a7eda44b Fix AZ related API docs
While we have a big fat comment in the development docs explaining why it's so
terrible to use default AZ values for either booting an instance or setting
an aggregate AZ metadata, we still have confusing API docs that provide the
wrong name for the AZ...

Fixing that and trying to explain the problem within the docs, too.

Change-Id: I811d0f219142ca435b2b206e9b11ccd5ac611997
Co-Authored-By: Stephen Finucane <stephenfin@redhat.com>
2017-09-08 16:21:54 +01:00
Andreas Jaeger
4e6eec5c9b Fix broken URLs
Fix broken nova URLs that linked to the old developer/nova places and
use the new link instead.

Change-Id: Ideb50626e140201dded19fc82584440f1a407e47
2017-09-07 15:42:31 +02:00
Matt Riedemann
a4609a834b api-ref: add warnings about forcing the host for live migrate/evacuate
Bypassing the scheduler during a live migration or evacuation
is not something we want people to be doing as it can easily fail
if the specified host is already full or doesn't provide something
required by the instance, plus it's a nightmare for tracking allocations
in the Placement service when we're bypassing the scheduler.

Because of this, we should have some warnings in the API reference
about doing this, which this patch adds.

Change-Id: I85e7c2677f4d5eccc1e7f349de06960b53ef148d
2017-08-31 16:07:22 -04:00
Matt Riedemann
fa4870f87f api-ref: fix key_name note formatting
Also fixes up some of the grammar in the note itself.

Change-Id: I7920428217b8b07fd72768a475ff407a1aabca2c
2017-08-23 10:04:34 -04:00
yushangbin
76323b39db Correct statement in api-ref
Change-Id: Idc69876695e04d85df942ea2374d89342b27dc0f
2017-08-21 11:33:34 +08:00
Jenkins
9a66d039a1 Merge "add description about key_name" 2017-08-10 13:12:18 +00:00
Matt Riedemann
67f7b96b22 api-ref: requested security groups are not applied to pre-existing ports
When creating a server, you can request security groups and
pre-existing ports, but the security groups are only applied to
any new ports that nova creates, not the pre-existing ones that
the user passes in. This change makes a note of that in the API
reference.

Change-Id: I0ea6891f10f021b0ed752200417e87d7e9bfda31
Related-Bug: #1707319
2017-07-31 12:36:52 -04:00
Matt Riedemann
edeec02963 api-ref: fix security_groups response parameter in os-security-groups
The 'security_groups' parameter in the GET /os-security-groups API
is not optional and we don't need information about the name
attribute. The "security_groups" parameter being used is actually
for the create server API.

Change-Id: I63bb8fc433b56a3f2b80cfafab37b103fe3a27d9
2017-07-31 12:36:30 -04:00
jichenjc
9a36e7cda4 add description about key_name
add description about key_name, which tells user 'null' is not
accepted parameter.

this is ths solution that other than change the code.

Change-Id: Id84c7803fdd44961497cd35c15ece98e2852d4f6
Related-Bug: 1700825
2017-07-28 01:48:56 +08:00
Anne Gentle
d90a35ef65 API ref: associate floating IP requires Active status
- There is no available status.

Change-Id: If1a2696e63830ae38b4a0c4e2488fb16d33650d8
Closes-bug: 1618883
2017-07-25 16:11:00 +00:00
Jenkins
15cac9d7e5 Merge "Handle uuids in os-hypervisors API" 2017-07-20 01:03:27 +00:00
Jenkins
d3e6b94eb9 Merge "Use uuid for id in os-services API" 2017-07-20 01:02:42 +00:00
Jenkins
58506516ff Merge "api-ref: Fix an expand button in os-quota-sets" 2017-07-20 00:55:16 +00:00
Jenkins
e4669f4dc7 Merge "api-ref: fix max_version for deprecated os-quota-class-sets parameters" 2017-07-19 17:35:13 +00:00
Jenkins
28fe91ffea Merge "Do not mention that tags are case sensitive in docs" 2017-07-19 17:32:57 +00:00
Jenkins
dd9dd7e2df Merge "Correct the description of 'disable-log-reason' api-ref" 2017-07-19 17:24:40 +00:00
Jenkins
c7d734d2a9 Merge "api-ref: Verify parameters in os-migrations.inc" 2017-07-19 16:29:39 +00:00
Takashi NATSUME
1a0a04dc05 api-ref: Fix an expand button in os-quota-sets
If section reference name is changed not to overlap,
when the 'List Default Quotas For Tenant' API section
is collapsed, it cannot be followed by users.
So the reference is changed to the 'os-quota-sets' chapter.

Change-Id: Ic61b38cabde3b3225f778833f0e7aae6acf5eabc
Closes-Bug: #1705191
2017-07-19 16:32:43 +09:00
ghanshyam
1503eff452 Correct the description of 'disable-log-reason' api-ref
'disable-log-reason' API action disable the compute service and
log the disabled reason. But api-ref statement sounds like this API
only log the disable reason.

Correcting description to convey the clear behavior of API.
Closes-Bug: #1702310

Change-Id: I5e1b97ed482d62477d87c96c9914e6f88c041b8b
2017-07-19 04:53:02 +00:00
Matt Riedemann
22f4aedb85 Do not mention that tags are case sensitive in docs
Because MySQL is case insensitive by default, and this
is something that depends on the database backend in the
cloud, let's not mention that tags are case sensitive in
the API.

Change-Id: I6efa9d6a5c598ac7a5c898d63b6a4b1934560b80
Related-Bug: #1538011
2017-07-18 17:47:22 -04:00
Matt Riedemann
90c6e256b8 api-ref: fix max_version for deprecated os-quota-class-sets parameters
The max_version on the fixed_ips, floating_ips, networks,
security_groups and security_group_members parameters for the
os-quota-class-sets API should be capped at 2.49, not 2.50.

This is a bit confusing but it works the same as max_version
works in the API code, i.e. the max version is the highest
version you can request that parameter on that API and it
will work. 2.50 was wrong because in 2.50 we don't accept
or return those parameters.

This is similar to the network-related resource deprecation
in the os-quota-sets API with the 2.36 microversion. The API
reference for those parameters in os-quota-sets use
max_version: 2.35.

Change-Id: Ib3e3cdc1ba57172fce1b03a0e77302c3edf9f0dc
Closes-Bug: #1705115
2017-07-18 17:15:49 -04:00
Matt Riedemann
622bfb2e95 Handle uuids in os-hypervisors API
There are quite a few changes here as this is not only handling
uuids for the hypervisor id but it's also a refactor in several
APIs for consistency.

The main changes are detailed in the REST API Version History
doc in this change, but to summarize the changes:

* Hypervisor and service IDs are handled as the UUIDs for those
  resources; this is necessary for accurately working with these
  resources across multiple cells.
* The 'servers' and 'search' routes are deprecated and folded into
  the index and detail methods as query parameters, validated using
  json schema.
* The show method will also be able to return the list of servers
  hosted on the given hypervisor using the with_servers query
  parameter.
* The marker used when paging over lists of hypervisors is the
  compute node UUID.
* Using the hypervisor_hostname_pattern query parameter will not
  work with paging parameters.
* API reference docs are updated for the detailed changes.
* Functional and unit tests are provided for all changes.

Part of blueprint service-hyper-uuid-in-api

Change-Id: I828350c179df8bcfa4739910abeafaba2f96982b
2017-07-18 17:08:01 -04:00
Dan Peschman
2f7bf29d47 Use uuid for id in os-services API
This patch introduces a new microversion to identify services by uuid
instead of id, to ensure uniqueness across cells. GET /os-services
returns uuid in the id field, and uuid must be provided to delete a
service with DELETE /os-services/{service_uuid}.

The old PUT /os-services/* APIs are now capped and replaced
with a new PUT /os-services/{service_uuid} which takes a uuid path
parameter to uniquely identify the service to update. It also restricts
updates to nova-compute services only, since disabling or forcing-down
a non-compute service like nova-scheduler doesn't make sense as it
doesn't do anything.

The new update() method in this microversion also avoids trying to
re-use the existing private action methods like _enable and _disable
since those are predicated on looking up the service by host/binary,
are confusing to follow for code flow, and just don't really make sense
with a pure PUT resource update method.

Part of blueprint service-hyper-uuid-in-api

Co-Authored-By: Matt Riedemann <mriedem.os@gmail.com>

Change-Id: I45494a4df7ee4454edb3ef8e7c5817d8c4e9e5ad
2017-07-18 15:39:57 -04:00
Jenkins
430ec6504b Merge "Support tag instances when boot(4/4)" 2017-07-18 16:31:31 +00:00
Jenkins
62f4d60362 Merge "api-ref: mention disk size limitations in resize flavor" 2017-07-18 11:44:58 +00:00
Takashi NATSUME
319656dd11 api-ref: Verify parameters in os-migrations.inc
Change-Id: I6baeecc4c2d62c3c39d856f5b659cb986a00b724
Implements: blueprint api-ref-in-rst-pike
Closes-Bug: #1668747
2017-07-18 00:38:40 +00:00
Kevin_Zheng
b50b5a660e Support tag instances when boot(4/4)
This is the 4th patch of the series,
this patch adds a new microversion
in API to support adding tags when
booting instances.

Implemetes: blueprint support-tag-instance-when-boot

Change-Id: Ifcaaf285c8f98a1d0e8bbbc87b2f57fbce057346
2017-07-17 15:59:42 -04:00
Jenkins
56c4d684bf Merge "Fix the releasenote and api-ref for quota-class API" 2017-07-17 17:28:41 +00:00
Matt Riedemann
a48f124caf api-ref: mention disk size limitations in resize flavor
In the resize API reference, mention that the specified flavor
must have a disk size greater than or equal to the current
instance flavor. This is something that doesn't get checked
in the API so it results in a failure on the compute service
which is not obvious to the API user since the instance goes
back into state 'ACTIVE'.

Change-Id: I33fc92ffa346b908a8e4f95da16a68040cfc678e
2017-07-15 18:08:26 -04:00
Jenkins
83e234a6e9 Merge "Fix typo" 2017-07-14 07:18:59 +00:00
Jenkins
ac20980702 Merge "api-ref: Add missing parameters in limits.inc" 2017-07-13 17:45:32 +00:00
He Jie Xu
d0f91817eb Fix the releasenote and api-ref for quota-class API
This patch marks the network related quota in the quota-class API
as deprecated in the 2.50 microversion. Also rewrite the release note for
2.50 microversion, change to describe the API change instead of the history.

Change-Id: Ida5518b7d43e85d9f30b11ed2819025a190aefd6
2017-07-13 07:05:22 +00:00
zhangdebo1987
258f3d52f5 Fix typo
Fix typo.

Change-Id: I3061e7d59ad9637063c71d8a879058d9e8e5b203
2017-07-13 11:40:43 +08:00