Commit Graph

39887 Commits

Author SHA1 Message Date
Jenkins 16cea9cdc5 Merge "Fix json response example heading in api ref" 2016-04-19 18:01:14 +00:00
Jenkins d2d5f10175 Merge "Fix database poison warnings, part 3" 2016-04-19 17:49:44 +00:00
Jenkins 3d4f257aa9 Merge "Remove 40X and 50X from Normal response codes" 2016-04-19 15:02:15 +00:00
Jenkins d3b4bcb78a Merge "Specify normal status code on os-baremetal-nodes" 2016-04-19 14:44:58 +00:00
Jenkins bb64ef88fd Merge "Fix "Creates an aggregate" parameters" 2016-04-19 13:24:40 +00:00
ghanshyam 6f8cda2f39 Fix json response example heading in api ref
Heading for json response example is wrong,
it is json request instead of json response.

Part of bp:api-ref-in-rst

Change-Id: I709b2bf19520eb76e0264c358a2146bb0dbcee2b
2016-04-19 17:56:20 +09:00
Jenkins 654181beeb Merge "Fix hosts and az api samples" 2016-04-19 08:02:43 +00:00
Jenkins 3f0865b22a Merge "Fix "Creates an agent build" parameters" 2016-04-19 06:33:35 +00:00
Jenkins 2848ef3bff Merge "Fix os-service related reference missing" 2016-04-19 02:37:00 +00:00
Jenkins de3aab23dc Merge "fix samples references for 2 files" 2016-04-19 02:35:12 +00:00
Diana Clarke 70de70c71c Fix database poison warnings, part 3
The following warning appears in the unit test logs a number of times.
This patch fixes the warnings in ComputeAPIAPICellUnitTestCase.

    "UserWarning: This test uses methods that set internal oslo_db
state, but it does not claim to use the database. This will conflict
with the setup of tests that do use the database and cause failures
later."

Note that this warning is only emitted once per unit test worker, so new
offenders will show up in the logs each time you fix a test until they
are all gone.

Change-Id: Idcd733df2aafe809cb89f2a1db5df6ad227dd39c
Related-Bug: #1568414
2016-04-18 21:03:58 -04:00
Ken'ichi Ohmichi 05e9f0a0e0 Remove 40X and 50X from Normal response codes
HTTP 40X-50X are not normal response codes at all.
This patch removes them from api-ref.

Part of bp:api-ref-in-rst

Change-Id: I32a29c9e2a3d69720e3a88e17ba36fe45fa902d9
2016-04-18 16:56:11 -07:00
Ken'ichi Ohmichi cf2fb50006 Specify normal status code on os-baremetal-nodes
The api-ref os-baremetal-nodes doesn't contain normal status code,
so this patch adds it for explaining the normal opperation.

Part of bp:api-ref-in-rst

Change-Id: I1e1e9ee37b1a8c0511438fa9a2e447c7d8df8d0f
2016-04-18 16:55:57 -07:00
Ken'ichi Ohmichi b3e1afd087 Fix "Creates an aggregate" parameters
"Creates an aggregate" API supports multiple parameters on a request,
but api-ref doesn.t contain them at all This patch adds them.

The following JSON-Schema is for the API.
https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/schemas/aggregates.py#L32

Part of bp:api-ref-in-rst

Change-Id: I3a58568662d21059bccdcf64cc30dbf3b706db58
2016-04-18 14:25:24 -07:00
Jenkins 807bc5660f Merge "Fix generation of Guru Meditation Report" 2016-04-18 20:32:20 +00:00
Jenkins 79fd7d99b8 Merge "Update servers.inc to be as accurate as api-site" 2016-04-18 19:05:37 +00:00
Jenkins 2b36ad0f42 Merge "Remove nova-manage service subcommand" 2016-04-18 16:10:04 +00:00
Jenkins 1c4bd07b73 Merge "libvirt: serial console ports count upper limit needs to be checked" 2016-04-18 15:37:50 +00:00
Sean Dague afe8c1b3e8 fix samples references for 2 files
This fixes the samples references for ``servers-actions.inc`` and
``servers-multiple-create.inc`` and drops the warnings count to 195.

Change-Id: Id9a2ae98f5ded9ab57bfd3af5fb18357df6bc1d2
2016-04-18 07:15:10 -04:00
Sean Dague 46a1fd17cc Update servers.inc to be as accurate as api-site
This updates servers.inc which had a rough path during conversion. The
GET servers/details was lost entirely.

It updates a number of parameters to distinguish ones that are only in
the queries, as well as fixes references to short names that collided.

It updates the UPDATE call to only specify request parameters which
you can actually update.

It introduces the notation object.field for parameters that are
embedded in other objects. This is a new concept, but one way we can
clear up that the uuid in the parameter list is really networks.uuid.

It also deletes the old hand rolled servers.rst, which drops the
warnings count by nearly 100.

Part of bp:api-ref-in-rst

Change-Id: Ie7693a5888efa913118244a0837e6c0177965d48
2016-04-18 06:40:23 -04:00
Jenkins 044edbe366 Merge "Fix nova opts help info" 2016-04-15 22:18:56 +00:00
Jenkins ed49466d8b Merge "Improved test coverage" 2016-04-15 21:55:20 +00:00
Ken'ichi Ohmichi 93e3784a6e Fix "Creates an agent build" parameters
"Creates an agent build" API supports multiple parameters on a request,
but api-ref doesn.t contain them at all This patch adds them.

The following JSON-Schema is for the API.
https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/schemas/agents.py#L21

Part of bp:api-ref-in-rst

Change-Id: I4b026f691711b11c1918785dff89bf5196c7177d
2016-04-15 14:33:53 -07:00
Jenkins 655922ca66 Merge "Add checks for driver attach_interfaces capability" 2016-04-15 21:26:12 +00:00
Jenkins e95e4cf023 Merge "clean up versions.inc reference document" 2016-04-15 20:03:03 +00:00
Jenkins c41230be03 Merge "Collection of CSS fixes" 2016-04-15 18:52:56 +00:00
Sean Dague 138a3eae7d clean up versions.inc reference document
This fixes a number of issues in the versions.inc reference
document.

Documents all the useful parameters in the response (we really need to
do something about the ones that are not).

Fix links to samples content, and write some text explaining them.

Parametrize the {api_version} GET call, it was weird to list all the
hard coded values there.

Add a couple of inline todos for longer additional references we
should do.

Part of bp:api-ref-in-rst

Change-Id: I56e5e922fca39453d0d9fc062a84daba7cad8cc1
2016-04-15 11:44:00 -07:00
Jenkins 0b9f7538d3 Merge "Add instance/instance_uuid to build_requests table" 2016-04-15 17:44:44 +00:00
Jenkins 8ec98ab1b8 Merge "Fixes unexpectedly passing functional test." 2016-04-15 17:39:58 +00:00
Jenkins d39d37d913 Merge "Remove mox from tests/unit/network/security_group/test_neutron_driver.py" 2016-04-15 17:28:47 +00:00
Sean Dague 40630d731b Collection of CSS fixes
This ensures all parameter tables are 100% wide, even if they have
only a few items with short descriptions. It makes all the tables the
same width.

This moves the link icon into the gutter for the main content, and
makes it hidden by default (only visible on hover) like in the API
site today.

This makes the link + method name div be ``white-space: nowrap`` to
ensure that when the screen gets narrower the Delete button doesn't
fold up on itself.

Part of bp:api-ref-in-rst

Change-Id: I3892e6c8e3c01956d63a33603ba1bf9146d21161
2016-04-15 12:18:44 -04:00
Jenkins 959a5bbcdd Merge "move sphinx h3 to '-' instead of '^'" 2016-04-15 16:01:23 +00:00
Jenkins a8562c88d3 Merge "fix blockquote font size" 2016-04-15 15:59:52 +00:00
Jenkins 2bda625935 Merge "network: make nova to handle port_security_enabled=False" 2016-04-15 15:58:44 +00:00
Michal Pryc 72a0a7c174 Fixes unexpectedly passing functional test.
This fix allows all functional tests passing rather
then one unexpectedly passing:

test_bug_1541691.TestServerValidation.test_name_validation

The bug 1541691 was merged, however test never got updated.

Change-Id: I84597ad5f5ca9ef457f34769e3fe299b780acadd
Closes-Bug: 1570884
Related-Bug: 1541691
2016-04-15 17:21:19 +02:00
Sean Dague 9526462326 move sphinx h3 to '-' instead of '^'
In the sphinx document h3 is supposed to be '-' not '^':

=, for sections
-, for subsections
^, for subsubsections

We have to enforce consistency here because we're processing included
files which all have to agree, otherwise it's a sphinx error.

Part of bp:api-ref-in-rst

Change-Id: Ic6eef5cacb07870f161b04b031e332f2b87aeedc
2016-04-15 07:43:06 -04:00
Sean Dague ccee8b3c13 fix blockquote font size
The blockquote font size is 17.5px in bootstrap where normal text is
14px. This is because blockquote is thought of for doing pull
quotes. However sphinx uses block quote for indented text, and it
should thus be the same as the body text.

Part of bp:api-ref-in-rst

Change-Id: I4135686416d84f5ca113a031534c3486a4c2b1c5
2016-04-15 07:43:06 -04:00
Sean Dague e51b8f43e1 Add 'Show All' / 'Hide All' toggle
This adds a global control that does show / hide of all collapseable
sections. Which is extremely useful in seeing the entire API at once.

Part of bp:api-ref-in-rst

Change-Id: I814e6b2c20c25bf3d4cb4e722bc8157ca0aa1b89
2016-04-15 07:43:06 -04:00
Sean Dague 19712dccce use 'required' instead of 'optional' for parameters
In swagger the attribute for required/optional is 'required', so we've
decided that's a better way to specify our parameters. This changes
the sphinx parser to use that when inserting (optional) into the
table.

We also make all 'path' parameters required, because we never specify
them in a table where they are not. I think them all being required:
false was an artifact of the data processing.

Part of bp:api-ref-in-rst

Change-Id: Ie2d012741d69430546fe1b10c9f16c853acb926a
2016-04-15 07:43:06 -04:00
Sean Dague 5bc00aac40 Fix css references to the glyphicons font
The bootstrap css uses the glyphicons font, but sphinx can't put it
exactly in the same place that bootstrap wants it. So fix the
minimized css to make it available and include those fonts in our
tree.

Part of bp:api-ref-in-rst

Change-Id: Ib45b90966ce12194fcb571c2782b1baed7af2471
2016-04-15 07:43:06 -04:00
Jenkins e726fd98f8 Merge "Fix formatting of rst in parameters.yaml" 2016-04-15 11:26:00 +00:00
Jenkins dd36b6474e Merge "Remove stub_compute config options" 2016-04-15 02:00:58 +00:00
Karen Bradshaw aa9a270159 Fix formatting of rst in parameters.yaml
Change-Id: Ia30d1922a756f4bfefd997ab34c799e1919f2540
2016-04-14 14:35:08 -04:00
Andrew Laski d789f6eef9 Add instance/instance_uuid to build_requests table
New fields keep needing to be added to build_requests in order to
capture all of the relevant instance information necessary. At this
point it's simpler to just embed a serialized Instance object in the db.
A column for that is added, as well as an instance_uuid column for
indexed lookups.

Change-Id: I1628ddd8cb75b4d0a7bbcd2720536c2e0bfc6043
Partially-implements: bp add-buildrequest-obj
2016-04-14 14:21:40 -04:00
Jenkins 7243f122d6 Merge "Add new NeutronFloatingIP object" 2016-04-14 16:31:43 +00:00
Jenkins 874bbf0675 Merge "Updated from global requirements" 2016-04-14 16:30:13 +00:00
Jenkins 909f3cf423 Merge "Fix typo in nova release notes" 2016-04-14 15:43:34 +00:00
Sahid Orentino Ferdjaoui ee7a019826 network: make nova to handle port_security_enabled=False
In somes cases we need to have network without any security rules
applied, unfortunatly nova does not provide way to remove l3
assignements and always at least expose the default security group.
This commit updates code to clear security groups applied to the
network when option port_security_enabled=False is activated on the
network.

Change-Id: I630008a9733624a9d9b59b7aa3b8b2a3f8985d61
Closes-Bug: #1460630
Related-Bug: #1175464
2016-04-14 11:42:39 -04:00
Jenkins 6ae2b4534a Merge "cleanup some issues in parameters.yaml" 2016-04-14 14:17:52 +00:00
Jenkins 177a2c41e9 Merge "Import RST files for documentation" 2016-04-14 14:16:37 +00:00