1103 Commits

Author SHA1 Message Date
Eli Qiao
6007a019cb Port cloudpipe extension to v2.1
This patch ports couldpipe extension from v2 to v2.1,
and have v2 unit test cases shared between v2.1 and v2.
Partially implements blueprint v2-on-v3-api

Change-Id: Id40c637c0fc207e97b1d094805eb0cee6e9cd9c9
2014-10-09 14:05:49 +08:00
Dan Smith
46ed619b9a Remove baremetal virt driver
This patch removes the baremetal virt driver from nova, which was
deprecated in Juno. It does not aim to perform any of the refactoring
we need to do now that the driver is gone, but is intended as a clean
removal of all the baremetal code itself.

Of specific note are the api_samples tests. We didn't have samples to
test the ironic proxy code, so I removed the baremetal ones for show
and index, resetting that extension back to "untested" status as if it
was new.

Tests that stub out ironic interactions and re-introduce those tests
should be added after this patch.

Change-Id: Ia76e41a8a3b7230701872ae7a1975edc3d9ea847
2014-10-08 13:41:37 +00:00
Jenkins
e1d0c79937 Merge "Port fping extension to work in v2.1/v3 framework" 2014-10-08 13:05:39 +00:00
Jenkins
65b4090131 Merge "Add developer policy about contractual APIs" 2014-10-07 23:14:33 +00:00
Jenkins
073c3c8635 Merge "Port extended_ips/extended_ips_mac extension to V2.1" 2014-10-07 04:26:15 +00:00
Chris Yeoh
ccc4efe36f Port fping extension to work in v2.1/v3 framework
Ports v2 fping extension and adapts it to the v2.1/v3 API
framework. API behaviour is identical.

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

Partially implements blueprint v2-on-v3-api

Change-Id: I8dc4ede46826bf6062097a3b4ba6be9a09a1bd12
2014-10-07 13:48:08 +10:30
Jenkins
c66d610799 Merge "Remove the nova-manage flavor sub-command" 2014-10-02 18:38:42 +00:00
Matt Riedemann
84612137ac Remove the nova-manage flavor sub-command
The nova-manage flavor sub-command was deprecated in Juno milestone-1
via commit a601556684f18059e478ba645aff8276c9c78a4a with a note that it
will be removed in Kilo.

This removes it.

Change I4e2399f2fbab2c20299dd62c104b9220c1d36fb2 is to remove the
related Tempest tests.

Change-Id: I1798c8a0697009b3dcebeb818580c8323880e395
2014-10-01 19:36:42 -07:00
Jenkins
dd99a0aacc Merge "Adds openSUSE support for developer documentation" 2014-10-02 02:20:16 +00:00
Jenkins
8200efaa48 Merge "Don't list entire module autoindex on docs index" 2014-10-02 01:50:13 +00:00
Joe Gordon
b70ba400ed Add developer policy about contractual APIs
Document what APIs nova considers to be public contracts, anything not
in this list should be considered a private API.

Clarify the 'API' section to make sure its clear we are talking about
the REST API.

Change-Id: If71adc7a9d5dc1bde79f75d10e67500f6f92b81f
2014-09-30 15:48:05 -07:00
Jenkins
63a7201006 Merge "cmd: update the default behavior of serial console" 2014-09-30 11:11:32 +00:00
Jenkins
1407d06d72 Merge "Fix hook documentation on entry_points config" 2014-09-29 17:01:13 +00:00
Jenkins
c8b615bb2e Merge "Fix "revertResize/confirmResize" for V2.1 API" 2014-09-29 16:59:16 +00:00
Sahid Orentino Ferdjaoui
48e94bf75c cmd: update the default behavior of serial console
When using serial console we are expecting using a plain websocket
so we should to return the 'ws://' scheme as the default one, also
it makes no sense to handle webserving content since currently
nothing has been implemented in favor of this case.

DocImpact: The 'base_url' option serial_console has been updated
Closes-Bug: #1373950
Change-Id: I0d0e4f7060febec5e0a357cd3e8c05486f2afaa5
2014-09-29 10:24:57 -04:00
Jenkins
c0bf2c3276 Merge "Add plan for kilo blueprints: project priorities" 2014-09-29 02:23:40 +00:00
Lars Kellogg-Stedman
1345a6a11d Fix hook documentation on entry_points config
The syntax suggested for adding hooks to nova via setup.py entrypoints is:

    entry_points = {
        'nova.hooks': [
            'resize_hook': your_package.hooks.YourHookClass,
        ]
    },

But this is incorrect. The proper syntax for an entry_points entry is:

    entry_points = {
        'nova.hooks': [
            'resize_hook=your_package.hooks:YourHookClass',
        ]
    },

Change-Id: Id7bc6891dc542d4317e82e15300c7293eb0d17a0
Closes-bug: #1374666
2014-09-28 09:29:39 -04:00
Alberto Planas
a7a4932ccc Adds openSUSE support for developer documentation
Support for openSUSE documentation is updated in this patch.

Change-Id: Id238900382e574836f7832e6907a3e51d62f859d
2014-09-26 10:45:20 +02:00
Jenkins
53a88f3b0b Merge "Add plan for kilo blueprints: when is a blueprint needed" 2014-09-26 08:12:58 +00:00
Ghanshyam
a5147669f4 Port extended_ips/extended_ips_mac extension to V2.1
This patch port extended_ips/extended_ips_mac extension to V2.1

There are difference between V2 and V3 server show/index &
server address index API response listed below-

'address' field of V2->V3 API response-
"OS-EXT-IPS:type" -> "type"
"OS-EXT-IPS-MAC:mac_addr" -> "mac_addr"

Reverting those attribute same as V2 to work with V2.1

Closes-Bug: #1368495
Partially implements blueprint v2-on-v3-api

Change-Id: I44902b0402115d1b6e833975e6c2f020ac5ab7c3
2014-09-26 10:02:34 +09:00
Jenkins
9a2e37ca7d Merge "Fix 'createImage' server actions for V2.1 API" 2014-09-24 20:01:15 +00:00
Jenkins
110addf6ba Merge "Fix integrated test cases for assisted-volume-snapshots" 2014-09-21 01:47:19 +00:00
kiwik-chenrui
cd1d9912ca Fix Broken links in devref/filter_scheduler.rst
There were broken links on the following class
'AggregateNumInstancesFilter', 'RamWeigher' in
document filter_scheduler.html. Fix these broken
links.

Change-Id: I3cac48a6ad466a32a88c23c9f128e66dae5889ee
Closes-Bug: #1363955
2014-09-20 04:15:21 +00:00
Jenkins
0aeb3da029 Merge "Fix sample files miss for os-aggregates" 2014-09-18 07:25:42 +00:00
Joe Gordon
bd7e62f796 Don't list entire module autoindex on docs index
Don't list entire api/autoindex under Developer Docs,  we already have a
model index link at the  bottom of the page, showing the entire
autoindex on the home page is makes the page overwhelming.

Change-Id: I25c5b50412881b55aa745ce3da2c22466e879fcf
2014-09-17 18:33:45 -07:00
Joe Gordon
f569f0a002 Add plan for kilo blueprints: project priorities
At the nova mid-cycle we agreed that while specs have made our blueprint
process significantly better, we think the current approach still leaves
much to be desired. This document is the outcome of the discussion at
the mid-cycle on how we want to manage blueprints in Kilo.

This proposal is being placed in devref, as we want to use gerrit's
workflow (two core reviews, inline comments, revisions etc) and this is
a document for developers.

Introduce the idea of project priorities.

Change-Id: I7075a130c01be22f3ee5315d4a65b8e524b5a1ad
2014-09-17 14:13:25 -07:00
Jenkins
ff78a03a91 Merge "Add sqlite dev packages to devref env setup doc" 2014-09-17 05:17:16 +00:00
Jenkins
10f36d78ec Merge "Add a policy for handling retrospective vetos" 2014-09-16 23:59:58 +00:00
Jenkins
cd8603b500 Merge "Update devref" 2014-09-16 21:25:16 +00:00
Jenkins
f28c5ff905 Merge "Fix 'os-start/os-stop' server actions for V2.1 API" 2014-09-16 12:18:45 +00:00
Joe Gordon
995c10f613 Update devref
* Devref mentioned 10.10 instead of 14.04 as the tested ubuntu
  environment
* Point to our official git mirror instead of github

Change-Id: I4514faeaebe200a2f616bc37fca02c2927edf599
2014-09-15 20:07:18 -07:00
Jenkins
f61c4a3f5a Merge "Add the NUMATopologyFilter" 2014-09-14 04:21:34 +00:00
Phil Day
9a4d7ab534 Add quotas for Server Groups (V2 API change)
This second change in a sequence that adds new quota values
for server groups.  This part adds the new V2 API extensions
to make the new quota values visible and changeable, and updates
the unit tests to check both V2 cases.

Note that Tempest changes https://review.openstack.org/#/c/112474/
is required to get a clean run as it checks for a specific
set of values.

The quota checks themselves are covered in a subsequent
dependent change.

Implements: blueprint server-group-quotas
DocImpact

Change-Id: I78974602d4be04deaf173b3e43f2dab92e8f4171
2014-09-13 08:43:26 +00:00
Nikola Dipanov
52bf71fa27 Add the NUMATopologyFilter
This patch adds the basic NUMA filter that will take the proposed
instance topology and try to match it against that of a host.

The matching will be done in the following manner:

 * Filter will try to match the exact NUMA cells of the instance to those
   of the host. It *will not* attempt to pack the instance onto the host.
 * It will consider the standard over-subscription limits for each cell,
   and provide limits to the compute host accordingly.
 * If instance has no topology defined, it will be considered for any host.
 * If instance has a topology defined, it will be considered only for NUMA
   capable hosts.

DocImpact

Change-Id: I8788dde69524c8a32a41ce31a96c89f9b09e91ce
Blueprint: virt-driver-numa-placement
2014-09-12 22:24:56 -07:00
Joe Gordon
93a7b48102 Add plan for kilo blueprints: when is a blueprint needed
At the nova mid-cycle we agreed that while specs have made our
process significantly better, we think the current approach still leaves
much to be desired. This document is the outcome of the discussion at
the mid-cycle on how we want to manage blueprints in kilo.

This proposal is being placed in devref, as we want to use gerrit's
workflow (two core reviews, inline comments, revisions etc) and this is
a document for developers.

It turns out adding the specs requirement to blueprints adds a
non-trivial amount of overhead, revisit when a blueprint and spec is
needed to minimize overhead in cases where it isn't helpful.

Change-Id: Iaaadc26f3f51ee091419beaa12e0508623eed99e
2014-09-12 15:13:38 -07:00
Andreas Jaeger
f5c3f6a953 Stop using intersphinx
Remove intersphinx from the docs build as it triggers network calls that
occasionally fail, and we don't really use intersphinx (links other
sphinx documents out on the internet)

This also removes the requirement for internet access during docs build.

This causes docs jobs to fail because we error out on warnings.

Change-Id: I71e941e2a639641a662a163c682eb86d51de42fb
Related-Bug: #1368910
2014-09-12 22:41:42 +02:00
Ghanshyam
61b2824a1f Fix "revertResize/confirmResize" for V2.1 API
"revertResize/confirmResize" server actions were missed for V2.1 API.

This patch converts "revertResize/confirmResize" server action
for V2.1 API

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

Change-Id: I24bdb5b28fafeb60ea7b4ff044b12a519498e592
Closes-Bug: #1367642
2014-09-11 10:22:13 +09:00
Phil Day
597c46fde1 Add quotas for Server Groups (V2 API compatibility & V2.1 support)
Server groups can be used to control the affinity and anti-affinity
scheduling policy for a group of servers (instances).  Whilst this is
a useful mechanism for users such scheduling decisions need to be
balanced by a deployers requirements to make effective use of the
available capacity.

This change adds quota values to constrain the number and size of
server groups a user can create.

Two new quota values are be introduced to limit the number of server
groups and the number of servers in a server group. These will follow
the existing pattern for quotas in that:

* They are defined by config values, which also include the default
  value

* They can be defined per project or per user within a project

* A value of -1 for either quota will be treated as unlimited

* Defaults can be set via the quota groups API

* Values may be changed at any time but will only take effect at the next
  server group or server create.   Reducing the quota will not affect any
  existing groups, but new servers will not be allowed into group
  that have become over quota.

This is part one of a linked sequences of changes that implement the
new quotas - split to make the reviews easier.

This part adds the definition of the new quota values, but leaves the
V2 API unchanged.  The V2.1 API is updated as it shows all quota values.

The second part adds the new V2 API extension to make the new quota
values visible and changeable.  At this point a Tempest change is
required to get a clean run as it checks for a specific set of
values.

The third part implements the quota checks themselves.

Thanks to Cyril Roelandt for supplying some of the unit tests.

Co-authored-by: Cyril Roelandt <cyril.roelandt@enovance.com>

Implements: blueprint server-group-quotas
DocImpact

Change-Id: Ib281e43eabfbd176454bde7f0622d46fb04fcb79
2014-09-10 16:29:22 +00:00
Ghanshyam
a5c9340130 Fix 'os-start/os-stop' server actions for V2.1 API
'os-start/os-stop' server actions were missed for V2.1 API.
This patch converts 'os-start/os-stop' server action for V2.1 API

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

Closes-Bug: #1367575

Change-Id: I8b0f27fb639034d368bcc1fc51d20daf9c2cdeb5
2014-09-10 19:39:46 +09:00
Ghanshyam
42cec80e6c Fix 'createImage' server actions for V2.1 API
'createImage' server actions was missed for V2.1 API.
This patch converts 'createImage' server action for V2.1 API

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

Change-Id: I5490365c72082b1652ddda2fed97c754fceeed22
Closes-Bug: #1367633
2014-09-10 17:21:18 +09:00
Eli Qiao
478bce9798 Fix integrated test cases for assisted-volume-snapshots
qcow is not a valid type of snapshot in real environment,
the require type should be qcow2 instead of qcow.
Change-Id: I0fc8e90913699074cd997f5c1e0693372436d14f
2014-09-10 00:55:05 +00:00
Jenkins
f0fca5e4dc Merge "Change v3 quota-sets API to v2.1" 2014-09-08 20:03:46 +00:00
Jenkins
8021b46c66 Merge "Change v3 flavor_manage API to v2.1" 2014-09-08 13:02:33 +00:00
Jenkins
a1fa42f2ad Merge "Change v3 security_groups API to v2.1" 2014-09-08 04:46:12 +00:00
Jenkins
a99f04dc2a Merge "Convert v3 ExtendedAvailabilityZone api to v2.1" 2014-09-07 13:24:26 +00:00
Jenkins
540e8ca5e6 Merge "api: add serial console API calls v2" 2014-09-07 12:59:15 +00:00
Jenkins
e4a3042bd9 Merge "Port image-size extension to work in v2.1/v3 framework" 2014-09-07 02:50:07 +00:00
Jenkins
badb75ea6d Merge "Port v2 image_metadata extension to work in v2.1(v3) framework" 2014-09-07 02:47:27 +00:00
Jenkins
57d5419975 Merge "Convert rescue v3 plugin to v2.1 API" 2014-09-06 09:16:14 +00:00
Matt Riedemann
e65a43837e Add sqlite dev packages to devref env setup doc
While setting up a new Ubuntu Trusty development
system without devstack I ran into an undocumented
native package dependency for sqlite, so add those
here.

Change-Id: Ib82ea58e85f6ccab6008f2d19a31d0e890136ca7
2014-09-05 12:09:29 -07:00