Commit Graph

1007 Commits

Author SHA1 Message Date
Jenkins 094f8cd13f Merge "Change v3 shelve to v2.1" 2014-08-31 06:49:44 +00:00
Jenkins b7c63d2462 Merge "Convert v3 server diagnostics plugin to v2.1" 2014-08-31 04:30:03 +00:00
Jenkins 702497d8a6 Merge "Work on document structure and doc building" 2014-08-30 15:42:48 +00:00
Eli Qiao 9daf3bdd87 Change v3 shelve to v2.1
This patch changes v3 shelve API to v2.1 and makes v2
unit tests share between v2 and v2.1.
The differences between v2 and v3 are described on the wiki page
https://wiki.openstack.org/wiki/NovaAPIv2tov3 .

Partially implements blueprint v2-on-v3-api
Change-Id: Ie4cd72d23592fe2bd1a66137b12bb84400ccfc18
2014-08-30 07:00:57 +00:00
Jenkins 8f49b1ed9f Merge "Change v3 keypairs API to v2.1" 2014-08-29 13:27:19 +00:00
Jenkins 62a8e4e47d Merge "Convert deferred_delete v3 plugin to v2.1 API" 2014-08-29 01:46:49 +00:00
Jenkins 3e4ef29cab Merge "Change V3 access_ips extension into v2.1" 2014-08-28 22:44:53 +00:00
Jenkins 0f7de506b3 Merge "Change v3 agents API to v2.1" 2014-08-28 22:03:42 +00:00
Jenkins 2a97e1afe6 Merge "Port simple_tenant_usage into v2.1" 2014-08-28 18:40:13 +00:00
Jenkins 4b4cf81350 Merge "Port os-server-groups extension to work in v2.1/v3 framework" 2014-08-28 13:22:16 +00:00
Jenkins 39a4f9b2bc Merge "Convert create_backup v3 plugin to v2.1 API" 2014-08-28 09:07:47 +00:00
Jenkins 989a54fe3b Merge "Convert multinic v3 plugin to v2.1" 2014-08-28 06:27:37 +00:00
Jenkins 1f6ccc5f62 Merge "filter: add per-aggregate filter to configure max_instances_per_host" 2014-08-28 05:14:20 +00:00
He Jie Xu 65ef524d55 Port simple_tenant_usage into v2.1
The simple_tenant_usage extension is removed from v3 API. For now,
we need porting it back. And also try to share unittests between v2
and v2.1.

Partially implements blueprint v2-on-v3-api

Change-Id: Ie0c36fcd37fb188c1f1b57f04733bfa267b65201
2014-08-28 10:27:25 +08:00
Ghanshyam 3edfac2e86 Convert v3 server diagnostics plugin to v2.1
This patch changes v3 server diagnostics plugin to v2.1 and makes v2
unit tests share between v2 and v2.1.

This patch also delete the V3 server_diagnostics API tests.

The differences between v2 and v3 are described on the wiki page
https://wiki.openstack.org/wiki/NovaAPIv2tov3.

Partially implements blueprint v2-on-v3-api

Change-Id: If10615f3f119dda815d56cf8329619bab502e091
2014-08-27 16:19:17 +09:00
Ken'ichi Ohmichi 590e8abce4 Change v3 keypairs API to v2.1
This patch changes v3 keypairs API to v2.1 and makes v2 unit tests
share between v2 and v2.1.

The differences between v2 and v3 are described on the wiki page
https://wiki.openstack.org/wiki/NovaAPIv2tov3 .

Partially implements blueprint v2-on-v3-api

Change-Id: I1fcb93a00816eab2d87f251b7cf8a8992e920308
2014-08-27 05:46:04 +00:00
Jenkins 58e6eb857a Merge "Change ViewBuilder into v2.1 for servers" 2014-08-27 02:42:56 +00:00
Sahid Orentino Ferdjaoui e31a74f560 filter: add per-aggregate filter to configure max_instances_per_host
Adds a filter AggregateIoOpsFilter which provides the ability
to read from aggregates metadata "max_instances_per_host".

DocImpact
Implements: blueprint per-aggregate-max-instances-per-host
Change-Id: I569aab7842d2c67042b89c75941a4664a599a7f6
2014-08-26 21:39:13 +00:00
Jenkins 4ae0c5224b Merge "filter: add per-aggregate filter to configure disk_allocation_ratio" 2014-08-26 20:21:12 +00:00
Jenkins 7ff2baacb2 Merge "Change v3 admin-password to v2.1" 2014-08-26 16:11:25 +00:00
Sahid Orentino Ferdjaoui 56a9512f14 filter: add per-aggregate filter to configure disk_allocation_ratio
Adds a filter AggregateDiskFilter which provides the ability to
read from aggregates metadata the "disk_allocation_ratio".

DocImpact
Implements: blueprint per-aggregate-disk-allocation-ratio
Change-Id: I79d59fcdfb09e67ed6f12113615c673624b24a19
2014-08-26 12:56:51 +00:00
Jenkins 6792cdc465 Merge "filter: add per-aggregate filter to configure max_io_ops_per_host" 2014-08-26 10:31:36 +00:00
Eli Qiao f9930a85b0 Change v3 extended_status to v2.1
This patch changes v3 extended_status API to v2.1 and makes v2
unit tests share between v2 and v2.1.
Revert v3 changes back to v2.
os-extended-status:* -> OS-EXT-STS:*
The differences between v2 and v3 are descibed on the wiki page
https://wiki.openstack.org/wiki/NovaAPIv2tov3.
Partially implements blueprint v2-on-v3-api

Change-Id: Ieefca1d0e8da831830f43cc83eb50bc7e7f4a10c
2014-08-26 10:11:31 +08:00
Jenkins 44684b795f Merge "Change v3 attach_interface to v2.1" 2014-08-25 17:27:18 +00:00
Eli Qiao 5e6b6b044b Change v3 admin-password to v2.1
This patch changes v3 admin-password API to v2.1 and backport v3
unit test cases to v2.1.
The differences between v2 and v3 are described on the wiki page
https://wiki.openstack.org/wiki/NovaAPIv2tov3

Partially implements blueprint v2-on-v3-api
Change-Id: I167753eddd188120236c51bade549c907c8a8466
2014-08-25 22:09:54 +08:00
Jenkins 85a04f7ee1 Merge "Change v3 extended_server_attibutes to v2.1" 2014-08-25 10:13:16 +00:00
He Jie Xu 0063d17d74 Change V3 access_ips extension into v2.1
This patch changes v3 access_ips API to v2.1 and makes v2
unit tests share between v2 and v2.1.
The differences between v2 and v3 are described on the wiki page
https://wiki.openstack.org/wiki/NovaAPIv2tov3 .

Partially implements blueprint v2-on-v3-api

Change-Id: Id464cbe4a8b7a7749c4f14e4531e4494dd315857
2014-08-25 15:34:15 +08:00
Jenkins 39b3183539 Merge "Convert v3 config drive plugin to v2.1" 2014-08-25 02:43:16 +00:00
Chris Yeoh 07ad7689ee Convert multinic v3 plugin to v2.1
Changes required to have v3 plugin natively support
the v2.1 API.

add_fixed_ip -> addFixedIp
remove_fixed_ip -> removeFixedIp

Removes v3 version of the multinic test and changes to
share use of the v2 unittests code. Backports a v2.1 specific
test.

Partially implements blueprint v2-on-v3-api

Change-Id: Ie01eddf1e772092c291b1475404f87e6e6f47c71
2014-08-25 11:57:48 +09:30
He Jie Xu 73c2c2db69 Change ViewBuilder into v2.1 for servers
This patch changes v3 servers' ViewBuilder to v2.1. And also
change related unittests and api sample tests.

The differences between v2 and v3 are described on the wiki page
https://wiki.openstack.org/wiki/NovaAPIv2tov3.

Partially implements blueprint v2-on-v3-api

Change-Id: Ie68d46daa91ef43c84eeef479c0986d5e7f15719
2014-08-25 10:06:41 +08:00
Ken'ichi Ohmichi 830816cdef Change v3 agents API to v2.1
This patch changes v3 agents API to v2.1 and makes v2 unit tests
share between v2 and v2.1.

The differences between v2 and v3 are described on the wiki page
https://wiki.openstack.org/wiki/NovaAPIv2tov3 .

Partially implements blueprint v2-on-v3-api

Change-Id: I96dd9cd3672c6d584bd0019c385544c08f687e7f
2014-08-25 01:58:23 +00:00
He Jie Xu 69df608fbe Change v3 attach_interface to v2.1
This patch changes v3 attach_interface API to v2.1 and makes v2
unit tests share between v2 and v2.1.

The differences between v2 and v3 are described on the wiki page
https://wiki.openstack.org/wiki/NovaAPIv2tov3.

Partially implements blueprint v2-on-v3-api

Change-Id: If18676604edc8fea41d7888eb6546245163e91c2
2014-08-25 09:55:29 +08:00
Chris Yeoh 09cd943214 Convert create_backup v3 plugin to v2.1 API
Changes required to have v3 plugin natively support the V2.1
API

The create_backup action is reverted back to createBackup

Partially implements blueprint v2-on-v3-api

Change-Id: Ibac7eb2644629f4b9cf0581d9859b97f263972c8
2014-08-25 09:21:01 +09:30
Jenkins d60fce4ac2 Merge "Convert v3 server SchedulerHints plugin to v2.1" 2014-08-24 14:42:39 +00:00
Eli Qiao 409555530a Change v3 extended_server_attibutes to v2.1
This patch changes v3 extended_server_attibutes API to v2.1 and makes v2
unit tests share between v2 and v2.1.
Revert v3 changes back to v2.
os-extended-server-attributes:* -> OS-EXT-SRV-ATTR:*
The differences between v2 and v3 are described on the wiki page
https://wiki.openstack.org/wiki/NovaAPIv2tov3.

Partially implements blueprint v2-on-v3-api

Change-Id: I02b203b62b9e675f71d0ff3880bc9ee051a3b80d
2014-08-24 09:09:58 +08:00
Jenkins 0b98d316df Merge "Fix class name for ServerGroupAffinityFilter" 2014-08-23 11:51:03 +00:00
Jenkins 30dedd1418 Merge "Add api extension for new network fields." 2014-08-23 01:50:01 +00:00
Andreas Jaeger ea86e31a0c Fix class name for ServerGroupAffinityFilter
The class name for ServerGroupAffinityFilter is
ServerGroupAffinityFilter and not ServerGroupAntiAffinityFilter. The
wrong class lead to a wrong display on
http://docs.openstack.org/developer/nova/devref/filter_scheduler.html

Change-Id: I690a60cb70eab4837544ddd0bff6f1264e639592
Closes-Bug: #1360375
2014-08-22 20:23:24 +02:00
Jenkins c0eae77483 Merge "Change 'image_ref'/'flavor_ref' into v2 style for servers" 2014-08-22 07:17:47 +00:00
Jenkins 7d9ec7fd6e Merge "Change 'admin_password' into v2 style for servers extension" 2014-08-22 07:16:30 +00:00
Ghanshyam 3792bd0e43 Convert v3 server SchedulerHints plugin to v2.1
This patch converts v3 server SchedulerHints plugin to v2.1 and makes v2
unit tests share between v2 and v2.1.

The differences between v2 and v3 are described on the wiki page
https://wiki.openstack.org/wiki/NovaAPIv2tov3.

Note- to make V2.1 SchedulerHints extension work in V3 framework,
an extra parameter (request body) is being passed in server_create
function of each extensions.

Partially implements blueprint v2-on-v3-api

Change-Id: I8a0d50efcda6fcd12971a41505127de5987eec18
2014-08-22 14:15:28 +09:00
Chris Yeoh 2c8685b07f Convert deferred_delete v3 plugin to v2.1 API
Changes required to have v3 plugin natively support the V2.1
API

The force_delete action is reverted back to forceDelete

Partially implements blueprint v2-on-v3-api

Change-Id: I0b050d3328338923cf05521b9ef5cc3b1c50a586
2014-08-22 14:23:12 +09:30
Jenkins cbec056e15 Merge "Use rfc3986 library to validate URL paths and URIs" 2014-08-21 16:18:47 +00:00
Ghanshyam 5482e388fa Convert v3 config drive plugin to v2.1
This patch changes v3 config drive plugin to v2.1 and makes v2
unit tests share between v2 and v2.1.

The differences between v2 and v3 are described on the wiki page
https://wiki.openstack.org/wiki/NovaAPIv2tov3.

Partially implements blueprint v2-on-v3-api

Change-Id: Ieed7619f3cb310b25d157ebb07f24468aea1af9d
2014-08-21 16:55:43 +09:00
Chris Yeoh 89a02bed57 Port os-server-groups extension to work in v2.1/v3 framework
Ports v2 os-server-groups extension and adapts it to the v2.1/v3 API
framework. API behaviour is identical with the exception
that there is no support for XML. Also

- unittest code modified to share testing with both v2/v2.1
- Adds expected error decorators for API methods
- Adds api sample tests

Partially implements blueprint v2-on-v3-api

Change-Id: I52e49e6e85a7516e3b184601374e5c987f60a9a0
2014-08-20 17:29:01 +09:30
Vishvananda Ishaya 71fabdc8dc Add api extension for new network fields.
This uses the existing api extension to implement the actual control
of the fields, but the check is based on a new dummy extension
called os-extended-networks.

Api sample tests added for new extension.

DocImpact: Adds an extension that enables extra fields for network
create. The new fields are:
  mtu: int (default flag) if set, nova sets the mtu on bridge. This
       allows network_device_mtu flag to be set per network.
  dhcp_server: ip (default == gateway) if different from gateway, sets
                nova to assume gateway is external.
  enable_dhcp: bool (default true) false will disable dhcp on network.
  share_address: bool (default flag) if specifed, network will have
                 the same dhcp ip on every host. This allows
                 share_dhcp_address flag to be set per network.
  allowed_start: ip if specified, reserves all ips before allowed_start.
  allowed_end: ip if specified, reserves all ips after allowed_end.

Partially-implements blueprint better-support-for-multiple-networks

Change-Id: I577fe5f6560be50106f345a42a826e97d5e7d64c
2014-08-19 11:21:23 -07:00
Ian Cordasco 86356bf6f1 Use rfc3986 library to validate URL paths and URIs
More work needs to be done in rfc3986 to give the user more control over what
they consider to be a valid URI in the context of RFC 3986. For example, a
previous incarnation of these tests checked that "1" and "abc" were invalid
when according to the RFC they are.

Update the API samples and tests to use valid URIs

DocImpact

Change-Id: I288fbaead64990db1053b7a11e82904611b8498f
2014-08-19 11:58:39 -05:00
He Jie Xu 5ed82cf7ed Change 'image_ref'/'flavor_ref' into v2 style for servers
This patch changes 'image_ref'/'flavor_ref' to 'imageRef'/'flavorRef'
that same with v2 api. And also change the related unittest.
The differences between v2 and v3 are described on the wiki page

https://wiki.openstack.org/wiki/NovaAPIv2tov3.

Partially implements blueprint v2-on-v3-api

Change-Id: Ic17334e0a9de89488d5e0c8b75950027d51a3cd4
2014-08-18 09:57:34 +08:00
He Jie Xu af8f401eb5 Change 'admin_password' into v2 style for servers extension
This patch changes 'admin_password' to 'adminPass' that same
with v2 api. And also change the related unittest.

The differences between v2 and v3 are described on the wiki page
https://wiki.openstack.org/wiki/NovaAPIv2tov3.

Partially implements blueprint v2-on-v3-api

Change-Id: Ie5675f98bb15c55a191a207171e2ffe3be8e6deb
2014-08-18 09:55:30 +08:00
Matt Riedemann 6b796597d5 Add graphviz to list of distro packages to install
Commit a507d42cf5 makes the
doc builds fail on warnings, so people are probably going
to be running 'tox -e docs' more often. To run that you
need the graphviz package from the distro, so add it to
the list of packages needed when setting up a development
environment.

Change-Id: I47ffe63fddfbbd73c3fc698490ad07235caaf459
Closes-Bug: #1356983
2014-08-14 10:27:28 -07:00