Commit Graph

898 Commits

Author SHA1 Message Date
Mark McLoughlin 3409c0e26d Normalize API extension updated timestamp format
It's unusual to include a '+00:00' offset in an ISO8601 timestamp
rather than just using the 'Z' suffix. It's also very weird for our
API to be returning timestamps which aren't in UTC.

Let's make these timestamps consistent with other timestamps by
using UTC always and representing that with a 'Z' suffix. Also,
enforce this in the API sample tests by using a new 'isotime' regexp.

A small number of the extensions in the API sample templates
specified the exact timestamp, so templatize those before regenerating
the API samples for GET /extensions.

Full context here:

  http://lists.openstack.org/pipermail/openstack-dev/2014-April/033971.html

Change-Id: Idf429e55e4ae13738ac531a25ce54b20d395410d
2014-04-29 14:50:33 +01:00
Mark McLoughlin 702e57d0d6 Regenerate API samples for GET /extensions
In a subsequent commit, I make a change which requires regenerating
this API sample but doing so shows up a bunch of unrelated changes.
This commit simply regenerates the API sample without any functional
changes to highlight the non-functional sample changes.

Change-Id: I5fafff90f20af17d787039568245f598e500405e
2014-04-29 14:50:06 +01:00
Alex Gaynor b055e16846 Fixed many typos.
These were found using: https://github.com/intgr/topy

Change-Id: Ia4e14508c285d95ab4eaeabbde032ecc5e7c9e4b
2014-04-25 21:47:41 -07:00
Jenkins af9a790daa Merge "Deprecate nova-manage flavor subcommand" 2014-04-25 16:46:46 +00:00
Jenkins 2f4cabff32 Merge "Rename instance_actions v3 to server_actions" 2014-04-24 07:18:42 +00:00
Matt Riedemann a601556684 Deprecate nova-manage flavor subcommand
The nova client already has the following flavor commands:

flavor-access-add    Add flavor access for the given tenant.
flavor-access-list   Print access information about the given flavor.
flavor-access-remove Remove flavor access for the given tenant.
flavor-create        Create a new flavor
flavor-delete        Delete a specific flavor
flavor-key           Set or unset extra_spec for a flavor.
flavor-list          Print a list of available 'flavors' (sizes of
flavor-show          Show details about the given flavor.

This covers what nova-manage flavor was providing so let's deprecate the
legacy nova-manage subcommand and mark it for removal in the K release.

There is not a bug or blueprint for this. The flavor subcommand is
completely duplicated in nova client. It is accessing the database
directly and we want to move to using flavor objects which would go
through conductor. So this could be considered part of the objects
conversion for flavors.

For some other commands like service, db and host it makes sense to
leave those so you can access the database before the api service is
running, but that's not the case for flavors.

UpgradeImpact: nova-manage flavor command is deprecated, use nova client

Change-Id: I8709bc9af4e490142e44c6dc61fd0aaa3a392b68
2014-04-20 09:04:28 -07:00
Aditi Raveesh ff5547883b Allow user to specify image to use during rescue - V2 API changes
This commit includes the V2 changes.
Making changes in v2 API to take an extra parameter rescue_image_ref
as part of the rescue action API.
If specified, this image_ref will be used to rescue the instance.
If the image is not specified, then the base image ref is used by
default.

Partially Implements: blueprint allow-image-to-be-specified-during-rescue

DocImpact

Change-Id: I985b21264841a6a18a66d19ccd41753f78576776
2014-04-10 09:35:57 +00:00
Jenkins 9f7ea62d06 Merge "Remove mention of nova-manage.conf from nova-manage.rst" 2014-04-09 10:44:52 +00:00
Jenkins ac84133985 Merge "Make example 'entry_points' parameter a dictionary" 2014-04-09 02:15:13 +00:00
Matt Riedemann 40bf0ab3e6 Remove mention of nova-manage.conf from nova-manage.rst
As of commit 07ee9639 three years ago nova-manage.conf is no longer
used, so let's clean up the man page.

Closes-Bug: #1304580

Change-Id: Ie061733da4bd0337f510e17b6dd7ca5bae14b7de
2014-04-08 12:05:16 -07:00
Jenkins eb0a84a4b7 Merge "Update docs to reflect new default filters" 2014-04-08 18:43:31 +00:00
Jenkins 6dc1147d2e Merge "Fix description of ServerGroupAffinityFilter" 2014-04-08 13:45:41 +00:00
Russell Bryant 71661a9c05 Update docs to reflect new default filters
Server group scheduler filters were added to the default set of
scheduler filters.  Update the docs to reflect the updated defaults.

Change-Id: I614cf83e419c93038fc4ed7287ec743cedb4860e
Related-bug: #1303983
2014-04-07 16:46:43 -04:00
Jenkins e37a247ac6 Merge "Correct the keypairs-get-resp.json API sample file" 2014-04-04 09:54:15 +00:00
Jenkins da6c417277 Merge "Drop nova-rpc-zmq-receiver man-page" 2014-04-03 19:51:28 +00:00
Jenkins 83b7ce96a1 Merge "Updated development.environment.rst" 2014-04-02 18:35:37 +00:00
uberj 5f31585c8b Make example 'entry_points' parameter a dictionary
Change-Id: Idad5a1b2d6aaee456cdc3a52554c1d7ddd51a696
2014-04-02 10:28:43 -07:00
Gauvain Pocentek 9a35c949b0 Fix description of ServerGroupAffinityFilter
ServerGroupAffinityFilter was used instead of
ServerGroupAntiAffinityFilter in the filter description.

Change-Id: I16721db5a7dcf90e72047dd5ca5a4f55088c147d
2014-04-02 07:37:47 +02:00
Rohan Kanade 045e1b11fd Rename instance_actions v3 to server_actions
* Renames the os-instance_actions v3 plugin to os-server-actions
* Also modifies api specific tests and expected user input JSON
* DocImpact only for v3 Nova api documentation for this plugin.

Closes-Bug: #1206032

DocImpact

Change-Id: Id5049e10f5ef540d0d8e3871d800e9d9cb33da73
2014-04-01 14:59:31 +02:00
Sascha Peilicke 90a61d71cd Drop nova-rpc-zmq-receiver man-page
Doesn't make sense to install and build docs after it was removed.

Change-Id: Ia6193808cca625e83cb3497b5033db5c08dcdd1e
2014-04-01 11:06:33 +02:00
Ghanshyam da3a02243d Correct the keypairs-get-resp.json API sample file
Current keypair sample files 'keypairs-get-resp.json/xml contain
'keypairs' as the first key and that means its sample response
of "list keypairs" API not "get keypair" API.

The tests don't pass a keypair id, so current tests also are for
"list keypairs" API.

Details-
Below API sample files- from their name it looks like these are for
get keypair API. But in actual content of these files are written as
List keypair API response. So it create the confusion that for which
API these API sample file are. Name suggest for GET and content
suggest for LIST Keypair.

    /nova/tests/integrated/api_samples/os-keypairs/
    keypairs-get-resp.json.tpl
    /nova/tests/integrated/api_samples/os-keypairs/
    keypairs-get-resp.xml.tpl

Their API sample test cases are written corrosponding to list keypair
APIs.

This patch correct the above API sample file name from get to list
Keypair APIs.
API Sample test cases names are also modified accordingly.

Partial-Bug: 1298769

Change-Id: I88d894ff9b0f6236221fa922601b641f26a87301
2014-04-01 08:57:06 +09:00
Russell Bryant 7168940296 Add a note about deprecated group filters
The deprecated group filters do not work if both are enabled at the
same time.  Add this in a note in the docs on the different scheduler
filters.

DocImpact
Related-bug: #1296913

Change-Id: Ic0e1b8b59c8a462e193dffb3b0f873d8aa35aa3c
2014-03-28 11:52:19 +00:00
Russell Bryant 2bca0c9011 Add new style instance group scheduler filters
Prior to Icehouse, there was a different type of handling of the
'group' scheduler hint that got lost in the completion of the server
groups API.  This patch completes the code necessary to provide
backwards compatibility with the old behavior.

Previously, the policy for groups was simply based on what scheduler
filters you had enabled.  You could have either the affinity or
anti-affinity filter enabled and that would be applied to all groups.
These filters now act on groups with a policy type of 'legacy'.

New filters have been added that can be enabled simultaneously and act
based on the policy set on the group via the server group API.

DocImpact

Change-Id: Ia65c151396415ca48725cb3c756f33efa01d2fe5
Closes-bug: #1296913
2014-03-27 21:54:02 +00:00
Jenkins dff1a6afa2 Merge "Updated Setting up Developer Environment for Ubuntu" 2014-03-26 11:51:26 +00:00
Pranav Salunke eb92d42536 Updated Setting up Developer Environment for Ubuntu
I saw that there are a few libraries which are required but not
mentioned in the docs.

Change-Id: I47036bb85c1b4c617f14d7534c204df474439513
2014-03-25 18:13:53 +05:30
Santiago Baldassin daedfffd95 Do not add current tenant to private flavor access
Avoid adding the current tenant to the flavor access list when
a private flavor is created. In ordeir to add tenants to the
flavor access list we should use the add_tenant api.

Tempest has to be updated accordingly:
https://review.openstack.org/81551

Documentation has to be updated as well:
https://review.openstack.org/82175

Partially (just for the V2 API rather than V2 and V3)
reverts commit 6ba248635b

Fixes unittest which was added in the original commit so it checks
for the behaviour we have now rather than the behaviour after the
backwards incompatible change which is being reverted.

Change-Id: I731081b6df0d96df1bc1763d214d28c62bbbb51c
Closes-Bug: #1286297
2014-03-25 12:17:17 +10:30
Jenkins 999d9273f4 Merge "Add doc update for 4 filters which is missing in filter_scheduler.rst" 2014-03-21 16:51:33 +00:00
Jenkins 0c97da1d42 Merge "Add API sample files of "unshelve a server" API" 2014-03-20 23:17:35 +00:00
Jenkins 0b4c179fdd Merge "Noted that tox is the preferred unit tester." 2014-03-19 04:23:40 +00:00
Ken'ichi Ohmichi ccb68ab1cd Add API sample files of "unshelve a server" API
Now there are not API sample files of "unshelve a server" and
"shelve-offload" APIs, and OpenStack API documentation also
does not show these APIs.
This patch adds these API sample files.

DocImpact
Closes-Bug: #1285482

Change-Id: Idf797eb6723b94abae71a77c12bc2bb9b330fa28
2014-03-19 08:26:40 +09:00
Jenkins 1d996be01b Merge "Added os-security-groups prefix" 2014-03-18 02:30:26 +00:00
Jenkins 7611173937 Merge "correct the bugs reference url in man documents" 2014-03-10 13:54:30 +00:00
Jenkins dba611e91e Merge "Instance groups: validate policy configuration" 2014-03-10 13:00:19 +00:00
Jenkins b9a9585875 Merge "Fix typo in devref" 2014-03-08 17:10:50 +00:00
Mike Spreitzer f2e06994a5 Noted that tox is the preferred unit tester.
This bug and fix is not about deleting run_tests.sh.
The change to delete run_tests.sh has been abandoned.
Thus the documentation of run_tests.sh remains.

Change-Id: Ia0a883260affc56c148dbebc5e3a49acb36b067e
Closes-Bug: #1282393
2014-03-08 02:47:38 -05:00
Mike Spreitzer 1ad28b5a02 Updated development.environment.rst
Enhanced the discussion of tools/install_venv.py to say that it
installs the items listed in test-requirements.txt as well as
those listed in requirements.txt.

Re-wrapped the relevant paragraph.

Since the change to delete run_tests.sh and tools/install_venv.py
(https://review.openstack.org/#/c/76627/)
has been abandoned, the doc of install_venv.py should still be
accurate.

Change-Id: I5cfd9f179f40b2418129067d0940bfdbf47512cb
Closes-Bug: #1266671
2014-03-08 02:21:59 -05:00
Gary Kotton 26bf8c0dd0 Instance groups: validate policy configuration
Ensure that API does not allow conflicting policies to be configured
on an instance group. More specifically the user should not be allowed
to configured 'anti-affinity' and 'affinity' on the same instance group.

In addition to this a validation will also be done on the policy, that is,
if the policy is not supported then an exception will be raised.

This is part of blueprint instance-group-api-extension.

Change-Id: Id19c55cb60109819429f73e2b28efe7f15cc5194
2014-03-06 23:51:15 -08:00
Debo Dutta aeda1f6e64 Add REST API for instance group api extension
Support the Creation, Read, Delete, and List of server groups.

Refactored the code to use objects (https://review.openstack.org/#/c/38979/
Renamed from "instance group" to "server group".

Implements: blueprint instance-group-api-extension

Change-Id: I650a8f191dea5eab5b4b1828f0b9f65e33edea2a
2014-03-06 23:30:44 -08:00
Dan Smith 388de275cb Add os-server-external-events V3 API
Related to blueprint admin-event-callback-api

Change-Id: I93957840ac251cf6a22474897daf80a164ba35c6
2014-03-06 07:40:43 -08:00
Dan Smith ce936ea5f3 Add os-server-external-events API
Related to blueprint admin-event-callback-api

Change-Id: Ib09d5370622809e4bf1b5825eb9c223a115f7d33
2014-03-06 07:40:43 -08:00
Dan Smith 226fd5080b Fix development environment docs for redhat-based systems
This adds the new libffi-devel dependency to the devref for new
development environment creation.

Change-Id: I63e0302cffe33b05722579e7d9c7122f2f257843
2014-03-05 16:12:11 -08:00
Sahid Orentino Ferdjaoui 5e5000b142 Fix typo in devref
s/differenet/different

Change-Id: I06bb0d9b0c5448ec5491372572e2b98dc3cea9be
2014-03-05 09:36:10 +00:00
jichenjc 35637ff218 Add doc update for 4 filters which is missing in filter_scheduler.rst
DiskFilter
NumInstancesFilter
IoOpsFilter
PciPassthroughFilter
are missing in doc/source/devref/filter_scheduler.rst, add them.

DocImpact

Change-Id: I50868598c9769783e1677c9ec50abf031896af82
Closes-Bug: #1276575
2014-03-05 04:42:54 +08:00
Jenkins 97ab2840e4 Merge "Adds get_console_connect_info API" 2014-03-03 20:21:44 +00:00
Jenkins 80e8555e10 Merge "Fixes api samples for V2 os-assisted-volume-snapshots" 2014-03-03 04:14:33 +00:00
Jenkins 4fa148b42c Merge "Adds create backup server extension for the V3 API" 2014-03-03 01:01:56 +00:00
Chris Yeoh 38ab25ec3b Fixes api samples for V2 os-assisted-volume-snapshots
Corrects the api samples for the V2 os-assisted-volume-snapshots.
The api samples for the create path were incorrect. This patch fixes
them so the documentation for the API will be correct. It doesn't fix
the input validation as it would be a backwards incompatible change.

Closes-Bug: 1286936

Change-Id: I66a9162e637e3d65bcbd7d033c6c173e67178fbe
2014-03-03 10:50:41 +10:30
Simon Chang c19ea390ec Added os-security-groups prefix
Added os-security-groups prefix to the security_groups attribute in json response.

Change-Id: Id2a4a92da0c9751abc5c37f06fc2484ba80a8a09
Closes-Bug: #1223309
2014-03-01 17:23:49 -05:00
Jenkins 93f059b492 Merge "Introduce Guru Meditation Reports into Nova" 2014-03-01 02:39:11 +00:00
Alessandro Pilotti 630a349bc3 Adds get_console_connect_info API
Implements: blueprint hyper-v-rdp-console

Currently graphical console access to Nova instances is limited to
clients which are part of Nova itself (novnc, xvpvnc, spice-html5).
The mentioned clients verify the validity of a console access token
with the following private API:
nova.consoleauth.rpcapi.ConsoleAuthAPI.check_token

The usage of a private API precludes the possibility of employing
external graphical console clients, including FreeRDP-WebConnect, used
to connect to Hyper-V instances via RDP.

This change adds a public API method that wraps the aforementioned
check_token private API. This allows external clients to obtain the
necessary protocol connection information by providing a token
previously obtained with calls to get_vnc_console, get_spice_console
or get_rdp_console.

Includes V2 and V3 API implementations.

Change-Id: Idd1e4f57b16bd1488f3b72bb064cef51321a7c79
2014-02-28 22:05:29 +02:00