40504 Commits

Author SHA1 Message Date
Sean Dague
0e5aa68f16 api-ref: complete verification of baremetal api
This cleans up the baremetal proxy, which was horribly inaccurate (the
paths weren't right after the method verification)

A warning is stuck in the preamble, we really don't want people using
this. Parameters are documented as best as we could from Nova
source. Honestly, people should just talk to ironic directly and use
their docs.

Part of bp:api-ref-in-rst

Change-Id: I66e85f414e5f0edbf052ba56691294a94615c619
2016-05-18 21:20:33 +00:00
Jenkins
cdfbb9a668 Merge "pci: create PCI tracker in RT._init_compute_node" 2016-05-18 03:56:14 +00:00
Jenkins
b9a352dace Merge "Move config options from nova/api directory (5)" 2016-05-18 03:17:24 +00:00
Jenkins
39d60220f7 Merge "Cleanup validation logic in _get_requested_networks" 2016-05-17 22:09:15 +00:00
Jenkins
a1f74c7dba Merge "Config options: centralize cache options" 2016-05-17 20:00:58 +00:00
Jenkins
42746aef96 Merge "Add a RequestSpec generation migration script" 2016-05-17 17:25:06 +00:00
Jenkins
1fe2508682 Merge "deprecate "default_flavor" config option" 2016-05-17 16:43:12 +00:00
EdLeafe
b6dd96c342 Move config options from nova/api directory (5)
This is the fifth and final patch moving config options from the
nova/api directory. In this patch, the deprecated options from the
legacy_v2 directory have been moved to nova/conf/legacy_v2.py. A
subsequent patch will enhance the help text for these options.

Blueprint centralize-config-options-newton

Change-Id: I3fdff0d3c0c2f36155ad4f7060395e788b78d150
2016-05-17 13:07:47 +00:00
Jenkins
e9a3bca866 Merge "Config options: remove import_opts from completed section" 2016-05-17 10:21:00 +00:00
Jenkins
adad0a9a13 Merge "Remove deprecated "memcached_server" in Default section" 2016-05-17 10:19:51 +00:00
Jenkins
76fd3d013d Merge "Add a note about egress rules to os-security-group-rules api-ref" 2016-05-17 10:18:15 +00:00
Jenkins
101cbb9e39 Merge "docs: link to Laski's cells talk from the Austin summit" 2016-05-17 10:17:08 +00:00
Jenkins
db02101528 Merge "deprecate "file transfer" feature for Glance images" 2016-05-17 10:16:20 +00:00
Jenkins
575d669318 Merge "api-ref: complete verification for os-flavor-access" 2016-05-17 10:15:30 +00:00
Jenkins
240cedf420 Merge "api-ref: complete verification of servers-action-crash-dump.inc" 2016-05-17 10:10:20 +00:00
Sylvain Bauza
09f2d4d5ec Add a RequestSpec generation migration script
In Mitaka, we began to create and persist a RequestSpec object every time
a new instance was requested. Given that instances that were created before
that commit do not have a related RequestSpec, we needed to check
every time in the conductor methods whether the instance had a request spec
associated with it.

Now that we are in Newton, we can provide an online data migration script
that iterates over all the instances (using a marker), verify if the
RequestSpec object is created, and if not, try to persist into that object
the legacy fields we already know.

The marker uses the request_specs table for persisting itself, and
yes this is a hack, but that's the only solution we agreed for making sure
we were not looping every time on all the instances (which would be a
performance problem). When we finish looping over the instances, we
keep that marker so that the next call to that migration script
would not again iterate over all the instances (using the limit).

Change-Id: I61b9b50436d8bdb8ff06259cc2f876502d688b91
Partially-Implements: blueprint check-destination-on-migrations-newton
2016-05-17 10:57:48 +02:00
Jenkins
52a831e78e Merge "Switch api unit tests to use v2.1 API" 2016-05-17 07:59:05 +00:00
Jenkins
2b538d9a6a Merge "migrate to os-api-ref" 2016-05-17 07:58:06 +00:00
Jenkins
802e63b0fd Merge "config options: move image_file_url download options" 2016-05-17 06:31:14 +00:00
Jenkins
7c8b7943b4 Merge "api-ref: os-certificates.inc method verification" 2016-05-17 06:20:53 +00:00
Jenkins
500f3ddf6e Merge "Add message queue switching through RequestContext" 2016-05-17 02:47:08 +00:00
Ken'ichi Ohmichi
6a09c00cf1 Switch api unit tests to use v2.1 API
TestNeutronSecurityGroupsOutputTest and BootFromVolumeTest were tests
only for legacy v2 API code, and v2.1 API were not tested on the same
test cases. This patch makes the tests work for v2.1 API code for the
test coverage.

In addition, this patch changes a request body of BootFromVolumeTest
because v2.1 API validation detected the bugs of the body like the
following:

* Invalid input for field/attribute volume_id. Value: 1. u'1' is not a 'uuid'"
* Additional properties are not allowed (u'virtual' was unexpected)

Change-Id: I9c2a53679ed6a097b062ba542dddd85a42c9964f
2016-05-16 18:51:57 -07:00
Jenkins
71e4e54f97 Merge "trivial: remove unused argument from a method" 2016-05-17 00:19:26 +00:00
Matt Riedemann
9bc797c80f api-ref: complete verification for os-flavor-access
This completes the parameter, example and body verification
for the os-flavor-access API.

The tenant_id_body parameter description was made more generic
to be able to reuse it here.

Part of blueprint api-ref-in-rst

Change-Id: I78755f0f92f8e742b668102b98ae15d94f8bf941
2016-05-16 12:54:08 -04:00
Jenkins
6a39fad56c Merge "api-ref: parameter verification for os-quota-sets" 2016-05-16 16:12:46 +00:00
melanie witt
bdf984a7ce Add message queue switching through RequestContext
This adds message queue connection information to the RequestContext
which can be used by nova-api to communicate with a targeted cell
message queue with each query.

A function 'get_cell_client' can be called in rpc functions to enable them
to use message queue transport information from a RequestContext. The
function creates a rpc client object dynamically if message queue
connection information is found in the RequestContext and falls back on
the default rpc client.

Example usage:

    def get_cell_client(self, context):
        return rpc.get_cell_client(context, self.client)

    def build_and_run_instances(self, ctxt, instance, host, image, ...)
        cctxt = self.get_cell_client(ctxt).prepare(...)
        cctxt.cast(...)

Implements blueprint cells-mq-connection-switching

Change-Id: Idef670d5b73c9cef8501a0593eccd785b708bd2b
2016-05-16 15:34:35 +00:00
Nikola Dipanov
50e2792efc trivial: remove unused argument from a method
Change-Id: I39217679468168363931704765f7588dfd8136a6
2016-05-16 16:25:06 +01:00
Jenkins
0458f3e78e Merge "api-ref: ips.inc example verification" 2016-05-16 14:54:56 +00:00
Jenkins
14156d1feb Merge "config options: centralize section "database" + "api_database"" 2016-05-16 14:54:08 +00:00
Matt Riedemann
5657dc5006 Cleanup validation logic in _get_requested_networks
'networks' in the server request body is a list of dicts
that can take a fixed_ip, port id or network id. There are
semantic rules for the combinations of these which are checked
in the helper method _get_requested_networks. The network id
validation logic is a bit convoluted where it's placed though,
so this change cleans that up and moves it to it's own method.

Note the main difference in nesting logic. You can't request
a port and network on the same nic (dict entry in the networks
list). So the conditional logic is such that you either have a
port or a network in a single request. Before this change, the
network id validation was happening outside that conditional,
and checked a second time if port was requested before validating
the network id. Since we already have that condition, this
change moves the network id validation under the condition where
a port is not requested (so a network id must be).

There are no test changes since this is just cleaning up the code
and also shows that this doesn't change the overall results of
the validation.

Change-Id: I466f2273a4ce02279b942f7ada264a3da97dfe92
2016-05-16 10:01:12 -04:00
Sean Dague
d790fe0087 api-ref: complete verification of servers-action-crash-dump.inc
This processes all 4 phases of the crash-dump action

* method verified, error codes cleaned up (extra explanation added where appropriate)
* action parameter added
* example verified
* body adds warning and versionadded stanzas

Part of bp:api-ref-in-rst

Change-Id: I6571a3981d25ab4b5459715c9d2061ad19f07f26
2016-05-16 08:50:59 -04:00
Sean Dague
2b7d5dec67 migrate to os-api-ref
os-api-ref is released on pypi now, so we can move to using it instead
of our in tree version. All future extension fixes will happen over
there instead of here.

Change-Id: Iee4b9c94b8b66a5b0481dd0b15beda03328c4f31
Depends-On: I0e615d36a2e5a8fa0d83f20bdcc2c33ad868ebd5
2016-05-16 08:10:14 -04:00
Jenkins
ada6d72275 Merge "api-ref: image.inc - Update method validation" 2016-05-16 11:53:09 +00:00
Jenkins
4b87342b58 Merge "config options: centralize default flavor option" 2016-05-16 11:33:00 +00:00
Sarafraj Singh
cf69f5c664 api-ref: image.inc - Update method validation
1. Arranged all methods in canonical order
2. Validate all methods

Part of bp:api-ref-in-rst

Change-Id: If13ad63f0035e33cc1d9ea31315e64331deb5554
2016-05-16 10:49:23 +00:00
Jenkins
2927298bb3 Merge "api-ref: os-floating-ip-dns.inc method verification" 2016-05-16 10:38:52 +00:00
Markus Zoeller
2811ff43af config options: centralize section "database" + "api_database"
The config options of the "nova.conf" section "database" and
"api_database" got moved to the new central location
"nova/conf/database.py". Also the database related options which are
in DEFAULT section.

Follow up changes will improve the help texts.

bp centralize-config-options-newton

Change-Id: Iaba9b49490fea4950bb25eed3ba1252db206f3c9
2016-05-16 10:20:51 +00:00
Kevin_Zheng
2813c837f6 api-ref: parameter verification for os-quota-sets
checked parameters

Part of bp:api-ref-in-rst

Change-Id: I0c43e83214aa4a0a54d553ab5c2ef79413753664
2016-05-16 14:48:06 +08:00
Jenkins
9a05d38f48 Merge "force_live_migration remove redundant check" 2016-05-15 08:49:37 +00:00
Matt Riedemann
31e798dc21 Add a note about egress rules to os-security-group-rules api-ref
There have been at least a couple of bugs about not being able
to create egress security group rules in Nova, which is because
nova-network does not support them. Neutron does, but Nova does
not proxy this to Neutron, nor will it.

So add a note in the api-ref docs for creating security group
rules about the egress rule limitation with nova-network.

Change-Id: Idc79cd1718b52db8611fd108b23f176f925221a6
Related-Bug: #1579749
Related-Bug: #1267140
2016-05-14 11:48:14 -04:00
Jenkins
a4f5ac3567 Merge "Follow-up for the API config option patch" 2016-05-14 02:47:02 +00:00
Jenkins
17367af1cf Merge "Remove fake_imagebackend.Raw and cleanup dependent tests" 2016-05-14 01:07:18 +00:00
Jenkins
a551b9a161 Merge "Remove unused arguments to images.fetch and images.fetch_to_raw" 2016-05-14 01:06:02 +00:00
Jenkins
4e0e2e499f Merge "Improve the help text for the API options (4)" 2016-05-14 00:54:38 +00:00
Jenkins
76c3bf32df Merge "Improve the help text for the API options (3)" 2016-05-14 00:53:21 +00:00
Jenkins
04f0f7c549 Merge "Improve the help text for the API options (2)" 2016-05-14 00:42:32 +00:00
Jenkins
55007a0375 Merge "Improve the help text for the API options (1)" 2016-05-14 00:34:08 +00:00
EdLeafe
af36b0d704 Follow-up for the API config option patch
There were a few comments and suggestions for improvements in the
wording for the recent series of patches that added improved help text
to the API config options. Rather than hold up those patches, this
follow-up patch cleans up those issues.

Blueprint centralize-config-options-newton

Change-Id: I512ea8c2be383e1abef7580e32deaa40e2c76c60
2016-05-13 23:04:03 +00:00
Sean Dague
94010b52ff api-ref: reorder parameters.yaml
This reorder's parameters.yaml to the correct sort order, and turns
the info message about incorrect ordering into a warning. After this
lands parameters.yaml changes will always require that the items stay
in the sorted order enforced by the extension.

Part of bp:api-ref-in-rst

Change-Id: Ib890d369a8b50a8cd920f7b19ef13f44b3e657df
2016-05-13 16:51:23 -04:00
Jenkins
a4113da58b Merge "Add online migration to store keypairs with instances" 2016-05-13 20:17:04 +00:00