Commit Graph

1825 Commits

Author SHA1 Message Date
jichenjc a90488ed31 Not talking about V2 API code in review doc guide
V2 code is gone , there is no need to talk about this
in our document any more.

Partially implements blueprint remove-legacy-v2-api-code

Change-Id: Ibca00e3e862c1487f0a440fdcc7d11d09026c7a8
2016-05-07 02:40:21 +08:00
Jenkins 7032a171b3 Merge "Add a note for policy enforcement by user_id" 2016-06-22 14:15:01 +00:00
Jenkins 1504459924 Merge "Transform wrap_exception notification to versioned format" 2016-06-22 13:20:36 +00:00
He Jie Xu 2066e43e7f Add a note for policy enforcement by user_id
The policy enforcement by user_id isn't supported by Nova, add a
note to devref to clarify that.

Change-Id: I11aece03f28a8cbe3d37681f49e4325689999142
2016-06-22 14:17:41 +08:00
Jenkins e97ff80042 Merge "Update stable API doc to indicate code removal" 2016-06-21 20:51:51 +00:00
Takashi NATSUME a7cbc90fb1 api-ref: Improve os-instance_usage_audit_log samples
Improve api samples for os-instance_usage_audit_log
and fix a parameter.

Change-Id: I8436a6ab0610e41d8c6c95c55a263fdfbbf58476
Implements: blueprint api-ref-in-rst
2016-06-21 20:30:11 +09:00
Laszlo Hegedus 6329d721ef Transform wrap_exception notification to versioned format
A new versioned notification is emitted from the wrap_exception
decorator.

Change-Id: I8fcbce111537dae6ad3ba0961fb761540ae800ed
Partially-Implements: bp versioned-notification-transformation-newton
2016-06-21 09:39:47 +02:00
Jenkins 2b0557e4ee Merge "Added missed response to test_server_tags" 2016-06-16 01:51:55 +00:00
Sergey Nikitin a7aafd99c3 TrivialFix: Remove extra comma from json
JSON standard does not allow trailing comma.
Because of this comma my local tox -e docs failed.
It's strange that it works in gate and check jobs.

Change-Id: I58bf48c248b1722a730667ec7c5e792e6929d2df
2016-06-14 17:35:35 +03:00
Sergey Nikitin 15a94581a6 Added missed response to test_server_tags
Also other server tags templates were modified
to improve future api ref docs.

Change-Id: Idab0328f9cdbe0d85880209a2b22ffc7df2201a0
2016-06-14 17:06:47 +03:00
Sean Dague d8673cb256 remove processing of blacklist/whitelist/corelist extensions
This removes the facility in the API router to have limited lists of
extensions. From this point forward, what is in Nova is loaded, no
exceptions.

A number of unit tests and fakes have to be updated to pass after
this, as many unit tests were sending small lists of extensions to the
API router to simplify the responses they were getting back. This also
required stubbing out the request db cache in some cases, because
extensions later get content from there to avoid additional db
hits. As well as adjusting a few samples tests which now return more
data because all the extensions are always loaded.

There is much cleanup to happen after this, but this is the smallest
unit to get us over this boundary which will start letting us to
refold extensions back into the base views (and massively simplify the
API code).

This does not yet remove the config options because there is another
place those get used in servers.py and the testing fallout of that is
much bigger.

The reno will come with that patch.

Change-Id: I3e72f5e23ce39148f31dfdb76d18f403c6d04842
2016-06-10 11:37:09 -04:00
Sean Dague 43f69041e9 fix OS-SCH-HNT:scheduler_hints location in sample
OS-SCH-HNT:scheduler_hint is actually a top level attribute, because
of historical accident in the yesteryear of v1 (and thus v2 and
v2.1). One day we should fix this.

Change-Id: I34c105628e274dcc2f8101514f95b9032b2b9f71
2016-06-10 11:37:09 -04:00
Jenkins 606c6398d0 Merge "Enable all extension for all remaining sample tests" 2016-06-10 15:09:43 +00:00
Jenkins c867b3b85d Merge "Do not register notification objects" 2016-06-10 10:49:10 +00:00
ghanshyam f44d1aff9d Enable all extension for all remaining sample tests
As extensions options has been deprecated, API sample tests
should run against all extension enable.

This commit enables all extensions for all the remaining sample tests
and remove extensions specific tests and sample files.

Also remove extension setting specific logic from base test class
along with TODOs.

Partially implements blueprint api-sample-tests-with-all-extensions

Change-Id: I66b593760789e5b3b92137a672246f8d91e44cba
2016-06-10 06:03:02 +00:00
Jenkins 6ff71e5e6a Merge "Move notification related code to separate package" 2016-06-09 23:00:59 +00:00
Jenkins df69d91c36 Merge "Enable all extension for remaining server API tests" 2016-06-09 14:41:40 +00:00
Jenkins d6fde8a409 Merge "Enable all extension for server API tests part-1" 2016-06-09 14:40:04 +00:00
Jenkins 5bc335a891 Merge "Enable all extension for server actions sample tests" 2016-06-09 13:01:36 +00:00
Jenkins 7b7ae73e63 Merge "Enable all extension for Flavor API sample tests" 2016-06-09 13:00:30 +00:00
ghanshyam 08f18502b4 Enable all extension for remaining server API tests
As extensions options has been deprecated, API sample tests
should run against all extension enable.

This commit enables all extensions for remaining server API tests
and remove its specific extensions tests and sample files.

Partially implements blueprint api-sample-tests-with-all-extensions

Change-Id: I3cf5762477b8b77bec4e6cb8f7119c62df7c706a
2016-06-09 08:53:32 -04:00
ghanshyam f26f18e20c Enable all extension for server API tests part-1
As extensions options has been deprecated, API sample tests
should run against all extension enable.

This commit enables all extensions for server API tests and remove its specific
extensions tests and sample files.

Partially implements blueprint api-sample-tests-with-all-extensions

Change-Id: I7e12a4491738c2908c1dd134c05f38e0db497ee7
2016-06-09 08:53:30 -04:00
Jenkins 2edb4bb8ed Merge "Update Support Matrix" 2016-06-09 10:25:15 +00:00
ghanshyam 30cfa1db47 Enable all extension for server actions sample tests
As extensions options has been deprecated, API sample tests
should run against all extension enable.

This commit enables all extensions for server actions tests and
remove its specific extensions tests and sample files.

Partially implements blueprint api-sample-tests-with-all-extensions

Change-Id: I88a293958c4c8a1b2c50a837c23bcdda8010e075
2016-06-09 11:13:19 +09:00
ghanshyam 8291e5e247 Enable all extension for Flavor API sample tests
As extensions options has been deprecated, API sample tests
should run against all extension enable.

This commit enables all extensions for Flavor API tests and remove its specific
extensions tests and sample files.

Partially implements blueprint api-sample-tests-with-all-extensions

Change-Id: I9fc496a6a05f794a31b0b361cc98d2f4b2f79818
2016-06-09 10:25:21 +09:00
Balazs Gibizer 520ee65a55 Do not register notification objects
Only registering the notification objects during unit test.
Notification objects are never used in the Nova RPC interface
and shall not be mixed with such objects.

Change-Id: Iba9079bb204e6ef1302529ac159199ab9fa6272b
2016-06-08 11:32:53 +02:00
Balazs Gibizer 5e074a59d2 Move notification related code to separate package
To be able to separate the versioned notification related
object model from the nova internal object model a new
nova.notification.object package is introduced.

As nova had nova/notifications.py already in the tree
the code from that file is moved into the new nova.notification
package as a first step.

Implements: bp versioned-notification-transformation-newton
Change-Id: I315f548180c260c22a2ebcf7b7cb56d284b6e580
2016-06-08 11:32:53 +02:00
Sylvain Bauza 7aa2285e72 API change for verifying the scheduler when live migrating
After modifying the evacuate action, we now add a new microversion
change for modifying the live-migrate call so that the scheduler is
called when the admin user provides an hostname unless the force
field is provided.

APIImpact

Implements: blueprint check-destination-on-migrations-newton

Change-Id: I212cbb44f46d7cb36b5d8c74a79065d38fc526d8
2016-06-06 11:44:06 +02:00
Sylvain Bauza 86706785ff API change for verifying the scheduler when evacuating
Adding a new microversion for changing the evacuate action behaviour
to call the scheduler anyway unless the admin user provides a force
flag that then keeps the previous behaviour by forcing the conductor
to call the destination without verifying it.

Implements: blueprint check-destination-on-migrations

APIImpact

Change-Id: I9ecbe3d481bf17b12072511da4bb106ff1b6404e
2016-06-02 15:03:39 +02:00
Pavel Kholkin 228e916cdd Microversion 2.28 changes cpu_info string to JSON object
After this microversion Nova API the GET request to
/v2.1/os-hypervisors/{hypervisor_id} responses cpu_info
as regular JSON object instead of string.

Implements blueprint nova-api-hypervsor-cpu-info

Change-Id: I14db9017f69e70e759cc80d031f76af8be179e45
2016-06-01 16:25:17 +00:00
Takashi NATSUME 3838f9cd7f api-ref: Add a sample test for os-interface
In order to add an example creating an interface with
net_id and fixed_ips, add the sample test for it.

Change-Id: I6b2567db82d000e4b1cdf46020ce1b57103c3f46
Implements: blueprint api-ref-in-rst
2016-05-27 12:48:36 +00:00
Jenkins 220439fcd6 Merge "Make available to build docs with python3" 2016-05-26 17:24:03 +00:00
Chris Dent bd199e3f9b Support for both microversion headers
In this change the new OpenStack-API-Version headers is allowed,
but not required, for requesting a microversion.

Both headers are accepted in the request and both headers are sent in
the response (both the header and its value, and the addition to the Vary
header).

Many tests which explicitly use a microversion header have been
updated to use both. This change is not 100% as most of the tests
are testing the handling of the value of the header, not which
header is involved.

Partially-Implements: blueprint modern-microversions
Change-Id: I68da13b5ba0c2f3357523e765a5b9db81899daf1
2016-05-25 21:41:27 +00:00
Yosef Hoffman 74d6c42a1f Update Support Matrix
HyperV: Nova serial console access support [1] has been merged
successfully. Update support matrix accordingly.

[1] https://review.openstack.org/145004

Change-Id: Ie6792e91c5c6c24d4af448605e4bb7d245bf41a8
Closes-Bug: #1584199
2016-05-23 21:57:03 -04:00
Andrey Volkov 9053a4685b Make available to build docs with python3
On Ubuntu 16.04 a tox package is for python3 by default
and this causes errors in building docs in tox enviroment.

In these changes iterators are replaced with lists where it's needed.
Also external command calls result are decoded from bytes to unicode.

Change-Id: I88ef54405b4bc13c269bdda55ae8289676311ee1
2016-05-23 15:30:20 +03:00
Lucian Petrut 3f96f3039a Hyper-V: Implement nova rescue
The root disk image is moved to a separate disk slot while the
rescue image will take it's place. If the instance requires it,
a temporary config drive is created as well.

Unrescuing the instance will move the root disk image back in
place, removing temporary images.

DocImpact

Implements: blueprint hyper-v-rescue

Change-Id: I6059ae35a77d675f54b98b2b43b5762e1d24365b
2016-05-21 02:15:04 +03:00
Jenkins 101cbb9e39 Merge "docs: link to Laski's cells talk from the Austin summit" 2016-05-17 10:17:08 +00:00
Timofey Durakov 86a8006202 force_live_migration remove redundant check
During force_live_migration operation there are 2
checks of migration status, one on api layer and one on
compute side, second one requires rpc request to be done
and also to query the db. This check could be removed as additional
one doesn't guarantee that live_migration is not already completed,
also is very small window between api and compute side.
Target compute host is now taken from migration object rather
then instance.host field, which allows to guarantee that nova will not
pause already migrated instance.

Change-Id: I51585302e898251e26cbf311aeac38a0ec329001
2016-05-11 16:54:27 +03:00
He Jie Xu 2f4f098c64 Add api-sample test for showing quota detail
The method of showing quota detail is missing the api sample test.
This patch adds that.

Part of bp:api-ref-in-rst

Change-Id: I943af1d856f890eab4c34674d251f698ee84a836
2016-05-09 10:49:22 +08:00
Jenkins eaa72fdd73 Merge "Fix typo in support-matrix.ini: re(set)=>(re)set" 2016-05-06 18:32:14 +00:00
jichenjc 20cbfa0119 Update stable API doc to indicate code removal
V2 API is totally removed, we can update document to tell this
to reader, keep this document might be helpful to some users
who are new to V2.1(legacy)/V2.1 concept.

Partially implements blueprint remove-legacy-v2-api-code

Change-Id: Idb67a34d89acaeb3f87ffb7e6c35f2a171a3fc76
2016-05-05 18:58:32 +08:00
He Jie Xu 73eda1cb7d Remove the legacy v2 API test scenarios from API sample tests
This patches from the test scenarios for the legacy v2 from API
sample tests. There still have some codes for legacy v2 which should
be cleanup, but that can be done later patches. This patch just stop
the test on the legacy v2 API.

Partially implements blueprint remove-legacy-v2-api-code

Change-Id: I38626e5a4aa98cbfd7b65b5eb0edbcae96e5b3f2
2016-05-04 15:49:52 +08:00
Jenkins 035fed4e9c Merge "Fix doc build if git is absent" 2016-05-04 00:14:36 +00:00
Matt Riedemann 409085a8c0 docs: link to Laski's cells talk from the Austin summit
Andrew Laski gave a nice presentation at the Austin Newton summit
of cells v1 and v2, along with work complete and what's being
worked on. This fits nicely into our documentation on cells and is
good to watch before reading further in detail.

Change-Id: I4c0245c000bb74c159fc02c36a83a11f145208a3
2016-05-02 12:23:08 -04:00
Eric Fried 9077837805 Fix typo in support-matrix.ini: re(set)=>(re)set
In [operation.set-admin-password], the parens in the following:

mechanism to re(set) the password

...imply it can be read as:

mechanism to re the password

...or

mechanism to reset the password

The former is obviously not as intended.

Change-Id: I696658a45d220a13a509d4f904d6b0fb996d7925
2016-04-29 15:14:42 -05:00
Atsushi SAKAI 340b7e9404 [doc] fix 5 typos
tweek        => tweak
adminstrator => administrator
mulitple     => multiple
definied     => defined (2-locations)

Change-Id: Ibe2c04e1b225515f7a6c83b5a4a8d91e8385140a
2016-04-28 20:40:18 +09:00
Jenkins 134514f283 Merge "Fixed typo in word "were"" 2016-04-25 19:01:31 +00:00
Jenkins af9f2d5161 Merge "Add 415 to list of exceptions for microversions devref" 2016-04-22 23:04:06 +00:00
Gábor Antal 24d49c67a0 Fixed typo in word "were"
In how_to_get_involved.rst file there is a typo
in the word "were" as it is written as "ware"

Change-Id: Ib8338d7b89737f115e1dd74c0d7d6239690b631f
2016-04-22 14:58:24 +02:00
Jenkins d151ece252 Merge "Add rebuild action descriptions in support-matrix" 2016-04-21 13:28:43 +00:00