Commit Graph

1285 Commits

Author SHA1 Message Date
Jenkins 8601f1ef4f Merge "Merge V2 and V2.1 functional tests" 2015-03-23 23:18:21 +00:00
Jenkins 597ce275b5 Merge "Fix docs build break" 2015-03-23 18:35:07 +00:00
Jenkins 617d124827 Merge "Switch to newer cirros image in docs" 2015-03-23 16:03:17 +00:00
Jenkins fd6071caea Merge "Fix common misspellings" 2015-03-23 13:37:15 +00:00
Davanum Srinivas 6c2b8bc3c9 Switch to newer cirros image in docs
0.3.0 of cirros is a bit old. Let's switch to
what we test in our CI jobs which currently is 0.3.2

Change-Id: I999063dc0a86335b94376409ddd559e880c54bcc
2015-03-23 10:46:18 +00:00
Martin Kletzander 37d7c7e23b Fix common misspellings
Wikipedia's list of common misspellings [1] has a machine-readable
version.  This patch fixes those misspellings mentioned in the list
which don't have multiple right variants (as e.g. "accension", which can
be both "accession" and "ascension"), such misspellings are left
untouched.  The list of changes was manually re-checked for false
positives.

[1] https://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines

Change-Id: I52a6f641a203185f9005bc0731d15166ad741161
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
2015-03-23 11:05:12 +01:00
ghanshyam e24c2239fb Merge V2 and V2.1 functional tests
Currently v2 and v2.1 have separate functional tests and their
corresponding sample files. As v2 and v2.1 are supposed to be identical,
there is overhead to maintain two set of functional tests and sample files.

We can have one set of tests which can run for both v2 and v2.1.

This commit use the testscenearios to generate the tests one for v2 and one for v2.1
and make v2.1 tests to run against v2.1 plugins by redirecting /v2 endpoint to v2.1
plugins in api-paste.ini

As example this commit merge flavor APIs functional tests between v2 & v2.1.
In V2 flavor API has following extensions
- Flavor_swap
- Flavor_disabled
- Flavorextradata
In V2.1 above extensions have been merged together in flavor plugins

NOTE- As testscenarios is applied in base class. v2 tests will be generated
for all the existing tests but for tests which are not merged yet
their v2 generated tests will be skipped till they gets
merged. After merge, both version tests are expected to pass like
flavor tests in this patch. So you may see lot of skipped tests
which is expected and will gets disappear as tests gets merged.

Change-Id: I0e0262f818c7d7fb15528b16d3225b9578910996
2015-03-23 17:27:55 +09:00
Davanum Srinivas 3a1e3e2c76 Typo in oslo.i18n url
Fix tiny typo

Change-Id: I98decbda782e571ed9533be5cd598b8126d144ee
2015-03-21 21:29:58 -04:00
Davanum Srinivas ae3c635020 Fix docs build break
fix 2 bad json files to get the docs build to succeed.

Closes-Bug: #1434855
Change-Id: I600f5e83bdaf254bcebbd232ec4a2d396041ceb3
2015-03-21 13:23:08 -04:00
Jenkins 59356a4d80 Merge "Fix V2 hide server address functional tests" 2015-03-20 02:19:40 +00:00
Jenkins 95f0e276b3 Merge "Add manual version comparison to microversion devref document" 2015-03-20 00:04:50 +00:00
Jenkins 5ab2a19226 Merge "Move V2 sample files to respective directory" 2015-03-17 18:19:41 +00:00
Jenkins 90df920980 Merge "V2 tests -Reuse server post req/resp sample file" 2015-03-17 18:19:14 +00:00
Jenkins 239f30e114 Merge "V2.1 tests - Reuse server post req/resp sample file" 2015-03-17 18:18:39 +00:00
ghanshyam f2cc1bd7bc Move V2 sample files to respective directory
Some sample files like server, images etc are kept under api_samples/
directory.
As plan is to create clean directory structure for sample files for
V2, V2.1 and microversion, moving these sample files to respective directory
will help to achieve that.

Change-Id: I284d035f6fadb26a94bcb3586f4a8c72942ee423
2015-03-11 07:22:36 +00:00
ghanshyam 83be099a7a V2 tests -Reuse server post req/resp sample file
There are lot of duplicate sample files for server POST req/resp
in functional tests.

This patch reuse the server post req/resp sample file for V2
functional tests.

Change-Id: I4fc5771af9407b9e75cf07682ee1706935a87709
2015-03-11 16:19:40 +09:00
ghanshyam 2f32996c3e V2.1 tests - Reuse server post req/resp sample file
There are lot of duplicate sample files for server POST req/resp
in functional tests.

This patch reuse the server post req/resp sample file for V2.1
functional tests.

Change-Id: I5da924b78780eae64a40ee39ee4fbe1e5b8c3b1f
2015-03-11 15:59:52 +09:00
Jenkins 257b2542d6 Merge "libvirt-numa.rst: trivial spelling fixes" 2015-03-09 23:30:57 +00:00
Alexandre Levine abc656d3d5 Add info for Standalone EC2 API to cut access to Nova DB.
This change adds properties to v2.1
os-extended-server-properties and os-extended-volumes nova APIs
in order to expose information which is required for the standalone
EC2 API implementation (resides on stackforge/ec2-api) to use only
public APIs. Right now this information is taken by directly accessing
internal Nova DB.
It adds proposed microversion v2.3.
It implements the spec "Nova changes required for standalone EC2 API
implementation" in this review: https://review.openstack.org/#/c/153636/

APIImpact
Implements: blueprint ec2-api

Change-Id: I850e51e730c82906f68fddb14fb0004d7091eb91
2015-03-05 19:19:23 +04:00
Jenkins 854d95ec11 Merge "Adds keypair type in nova-api" 2015-03-05 14:41:07 +00:00
Chris Yeoh c836f425bc Adds keypair type in nova-api
X509 certificates are used by Windows for passwordless
authentication (WinRM) in a way which can be considered
consistent with the usage of SSH keys on Linux, as both
are based on public / private keypairs.

Enables nova-api to return the keypair type, updates
nova-api version to reflect the changes and updates the
unit and functional tests to validate the API changes.

Unit tests have been updated to ensure that the keypair
type is not being returned on previous API versions.

Note: x509 keypair implementation is added in the next
commit.

DocImpact - See nova/api/openstack/rest_api_version_history.rst
for details

APIImpact

Depends-On: Id5b210d7afe5c0a590abcbd42b9ff85b071a5c55

Co-Authored-By: Chris Yeoh <cyeoh@au1.ibm.com>
Partially implements: blueprint keypair-x509-certificates

Change-Id: I215662f2f92a01921a866c3218031787a9eaf915
2015-03-04 22:16:37 +00:00
Luiz Capitulino b0c7078648 libvirt-numa.rst: trivial spelling fixes
Change-Id: Ic50d50a50e946e1b060730692038fc69e07e2b93
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
2015-03-04 11:40:11 -05:00
ghanshyam e74b62f26f Remove extended addresses from V2.1 update & rebuild
V2.1 server update and rebuild response contain
'OS-EXT-IPS:type' & 'OS-EXT-IPS-MAC:mac_addr' in address field
which are new attributes compared to V2 response for those API.

These new attributes are found during tempest testing by blocking
additional properties in schema -https://review.openstack.org/#/c/156130/

V2.1 must be identical with V2 and must not contain any new attributes in
response. This commit removes these new attributes from V2.1 API.

Partially implements blueprint v2-on-v3-api

Change-Id: Id5b210d7afe5c0a590abcbd42b9ff85b071a5c55
2015-03-04 16:08:02 +09:00
Jenkins e3255634d1 Merge "Add nova-manage commands for the new api database" 2015-03-04 00:58:28 +00:00
Andrew Laski 6d2840ef6a Add nova-manage commands for the new api database
Adds new 'nova-manage api_db sync' and 'nova-manage api_db version'
commands for working with the new api database for cells.

DocImpact
bp: cells-v2-mapping

Change-Id: I00881db2ecbd559fdac7ad11ac452b0075ccc289
2015-03-03 15:43:20 -05:00
Jenkins fe1a8fe67d Merge "Support specifing multiple values for aggregate keys" 2015-03-03 14:34:31 +00:00
Jenkins 064849bcf0 Merge "Disables pci plugin for v2.1 & microversions" 2015-03-03 14:33:58 +00:00
Chris Yeoh 45591b6da1 Disables pci plugin for v2.1 & microversions
The pci plugin was only ever merged into the v3 (now v2.1 microversions)
and never the v2 API. Since v2.1 i meant to be identical to v2 it should not
appear in v2 either.

This change disables the pci api functionality in v2.1. It will be renabled
soon after microversions is enabled using a microversion bump.

Related-Bug: 1426241
Partially implements blueprint v2-on-v3-api

Change-Id: Ifc1d6f24d5a637270154b996087a98b41133e014
2015-03-03 14:20:42 +10:30
Jenkins 90070af74e Merge "Remove attach/detach/swap from V2.1 extended_volumes" 2015-03-03 03:05:38 +00:00
Sam Morrison 45b385982f Support specifing multiple values for aggregate keys
Currently the following filters are written as though they support multiple values:
 * aggregate_image_properties_isolation.py
 * aggregate_instance_extra_specs.py
 * aggregate_multitenancy_isolation_filter
 * availability_zone_filter.py

This commit adds support to the underlying helper method to support
specifying multiple values separated by a comma.

This change for example allows operators to set multiple tenants by using a comma
separated list.

eg. filter_tenant_id: "tenantid1,tenantid2"

DocImpact:
Closes-Bug: #1413087
Change-Id: I010e85ff4c29171c4be6d7a7209dbf2d55da0b64
2015-03-02 10:09:45 +11:00
He Jie Xu 7007ab20f6 Remove attach/detach/swap from V2.1 extended_volumes
V2.1 must be identical with V2 and must not contain any new attributes
and new method. And those methods have same methods in the volumes
extensions. Those methods are added in the early stage of v3 works,
because the in early stage v3 works decides to delete any volume related
proxy API, then adds those method instead of them. This commit remove
these methods from V2.1 API.

Partially implements blueprint v2-on-v3-api

Change-Id: I20e0498ec187e9feafd2bfb1aa9646426b3609af
2015-03-01 12:30:52 +08:00
Joe Gordon 89c8f028e4 Fix tiny typo in api microversions doc
Change-Id: I977a39d20ae1cc39cd6ba98286461732407f830e
2015-02-27 14:34:31 -08:00
Jenkins cd845661bc Merge "Remove OS-EXT-IPS attributes from V2.1 server ips" 2015-02-27 20:42:05 +00:00
Jenkins 165d37c963 Merge "Remove 'locked_by' from V2.1 extended server status" 2015-02-27 20:41:35 +00:00
Jenkins 92b0adad39 Merge "Remove 'id' from V2.1 update quota_set resp" 2015-02-27 20:41:00 +00:00
Jenkins f4e3effb72 Merge "Add microversion allocation on devref" 2015-02-27 20:37:10 +00:00
Ken'ichi Ohmichi 53cad220b5 Add microversion allocation on devref
We have discussed how to allocate a microversion for each patch
on nova-api meeting and this patch adds the conclusion on the rst.

Partially implements blueprint api-microversions

Change-Id: I1f23294475d60b219d4167cad1650fd768f868a1
2015-02-27 05:53:05 +00:00
Jenkins afc2e675d7 Merge "API: Change the API cpu_info to be meaning ful." 2015-02-27 05:32:02 +00:00
ghanshyam 6931bedb9e Remove OS-EXT-IPS attributes from V2.1 server ips
V2.1 server ips response contain 'OS-EXT-IPS:type' & 'OS-EXT-IPS-MAC:mac_addr'
also which are new attributes compared to V2 response.

These new attributes are found during tempest testing by blocking
additional properties in schema -https://review.openstack.org/#/c/156130/

V2.1 must be identical with V2 and must not contain any new attributes in
response. This commit removes these new attributes from V2.1 API.

Partially implements blueprint v2-on-v3-api

Change-Id: Id9fcce0c9629c3d325b87cf9b35f13f1ba15b13f
2015-02-27 13:14:00 +09:00
ghanshyam 8f98f8205b Remove 'locked_by' from V2.1 extended server status
In case of v2.1, extended server status contain 'locked_by' which does
not match with V2 response.

These new attributes are found during tempest testing by blocking
additional properties in schema -https://review.openstack.org/#/c/156130/

V2.1 must be identical with V2 and must not contain any new attributes in
response. This commit removes this extra attributes from V2.1 API.

Partially implements blueprint v2-on-v3-api

Change-Id: I5c4f6851300510f8fc5342d3bfc596e0ac9f1800
2015-02-27 10:32:32 +09:00
ghanshyam e511410188 Remove 'id' from V2.1 update quota_set resp
In case of v2.1, update quota_set response contain 'id' which does
not match with V2 response.

These new attributes are found during tempest testing by blocking
additional properties in schema -
https://etherpad.openstack.org/p/Removal_new_attribute_V2_1

V2.1 must be identical with V2 and must not contain any new attributes in
response. This commit removes this extra attributes from V2.1 API.

Partially implements blueprint v2-on-v3-api

Change-Id: I7d1d03fadd1eaf90d9e37eb4f1dc330770f9ace9
2015-02-27 01:10:38 +00:00
ghanshyam 1c29a25ca5 Remove accessips attribute from V2.1 POST server resp
In case of v2.1, if "os-access-ips" extension is enabled then server
POST response contain access ips attribute which does not match
with V2 response. V2 server POST response never have access ips attribute.

V2.1 must be identical with V2 and must not contain any new attributes in
response. This commit remove these extra attributes from V2.1 API.

V2 server POST response-
{
    "server": {
        "OS-DCF:diskConfig": "AUTO",
        "adminPass": "ahW3PjQNAu6r",
        "id": "e726f5ae-8179-44ba-bbfb-8a0c52b33095",
        "links": [
            {
                "href": "http://openstack.example.com/v2/openstack/
servers/e726f5ae-8179-44ba-bbfb-8a0c52b33095",
                "rel": "self"
            },
            {
                "href": "http://openstack.example.com/openstack/
servers/e726f5ae-8179-44ba-bbfb-8a0c52b33095",
                "rel": "bookmark"
            }
        ],
        "security_groups": [
            {
                "name": "default"
            }
        ]
    }
}

V2.1 server POST response-
{
    "server": {
        "OS-DCF:diskConfig": "AUTO",
        "adminPass": "zPnp2GseTqG4",
        "id": "8195065c-fea4-4d57-b93f-5c5c63fe90e8",
        "links": [
            {
                "href": "http://openstack.example.com/v3/servers/
8195065c-fea4-4d57-b93f-5c5c63fe90e8",
                "rel": "self"
            },
            {
                "href": "http://openstack.example.com/servers/
8195065c-fea4-4d57-b93f-5c5c63fe90e8",
                "rel": "bookmark"
            }
        ],
        "accessIPv4": "",
        "accessIPv6": "",
        "security_groups": [
            {
                "name": "default"
            }
        ]
    }
}

Partially implements blueprint v2-on-v3-api

Change-Id: Ib9197cc9061bbba0c040f237bb52d12a60a976d7
2015-02-26 07:00:40 +00:00
Chris Yeoh db12ce12ca Add manual version comparison to microversion devref document
Adds information about how to manually compare the requested api version
with what behaviour to exhibit rather than rely on decorators.

Partially implements bp api-microversions

Change-Id: I69919bad4f267f27350df78e70d9fe3ed78b5520
2015-02-26 11:38:00 +10:30
Jenkins 07d3c0d6d1 Merge "Fix "Host Aggregate" section of the Nova Developer Guide." 2015-02-25 14:36:38 +00:00
Jenkins a8b4642983 Merge "VMware: update the support matrix for security groups" 2015-02-25 05:31:11 +00:00
yunhong jiang ab437c0e90 API: Change the API cpu_info to be meaning ful.
Currently the API sample get '?' for the cpu_info, this is really
confusing, it even does not tell the type of the return.

Change it to be more meaningful.

Change-Id: I791beb7502f47dff646a46c08e818c29f9e6cd79
2015-02-24 13:57:49 -08:00
Jenkins 10a7974b3a Merge "Change v2.1 API status to CURRENT" 2015-02-24 08:37:02 +00:00
jichenjc 9295e73e10 Fix a typo of devref document for api_plugin
change rebuilt to rebuild

Change-Id: I92656696b5e39c7b92616403b1f773ab18c3d78c
2015-02-24 02:53:06 +08:00
Jenkins 907b9b757e Merge "Add developer documentation for writing V2.1 API plugins" 2015-03-11 20:33:25 +00:00
Chris Yeoh d4bfab5c1e Add developer documentation for writing V2.1 API plugins
Adds a first cut for some documentation on how to write an API plugin
for V2.1. Note that this is not meant to have exhaustive coverage, and I
will add more detail in future commits. I do welcome suggestions of
other areas which should be included in future doc patches.

Partially implements blueprint v2-on-v3-api

Change-Id: Ibe5a471af357ce21253efeb8beb9ade1c16396f5
2015-02-26 10:02:32 +10:30