Commit Graph

204 Commits

Author SHA1 Message Date
OpenStack Proposal Bot 6e508dae2a Updated from global requirements
Change-Id: I13f759652f056978a242fc1a84508f5dfcc23082
2016-08-10 20:37:21 +00:00
OpenStack Proposal Bot 74526f8978 Updated from global requirements
Change-Id: I78a4bcd3056ebda8a6a495147f1637710c4b3738
2016-08-03 16:13:02 +00:00
Chris Dent 2ae10ce522 Add initial framing of placement API
The placement API will initially host resource provider
information and then will grow to provide a full placement
service. Eventually it will be fully extracted from Nova.

To facilitate that extraction, this service is being developed
with few ties to existing nova.wsgi structures. Instead it
uses relatively plain WSGI apps that are:

* uses the Routes library with declarative mapping defined in
  ROUTE_DECLARATIONS
* basic wsgi apps, with webob and the request class, for each handler
  define as functions
* does not use a paste-ini file to compose middleware, instead code
  which minimally inspects the oslo config to know how to adjust
  middleware (in the initial case choosing an auth_strategy)

Many of these "features" will be demonstrated in commits that
follow this one that enable specific behaviors for resource
providers and their inventories.

In order to ensure that this change can be merged in an atomic
fashion it includes microversion support that was previously in its
own commit.

The microversion_parse library is used in a WSGI middleware
to parse incoming microversion headers and place the
determined value into the WSGI environment at the
'placement.microversion' key. Response headers are adjusted to
add the required outgoing headers as described in:

http://specs.openstack.org/openstack/api-wg/guidelines/microversion_specification.html

If a client requests an invalid microversion, they will receive
a 400 response. If the microversion is of a valid form but not
available, they will received a 406 response. The format of that
response is dependent on the accept header of the request. If it
is JSON, the min and max available microversions are presented.

A request to '/' will return version discovery information.

Thus far nothing else is done with the microversion information.
It is there for when we need it in the future. For now everything
is version 1.0.

The groundwork for using gabbi to test the API is in place in
nova/tests/functional/api/openstack/placement. The gabbi tests
are included in the functional target. To run just the placement
tests it is possible to run 'tox -efunctional placement'.

Change-Id: Icb9c8f7a1fa8a9eac66c2d72f4b7e4efd4e1944f
Partially-Implements: blueprint generic-resource-pools
2016-07-29 10:31:36 +00:00
OpenStack Proposal Bot 0c3f0d91e3 Updated from global requirements
Change-Id: I29b117b895bfa3b91bfbb1e98a3050b3a8c1ad83
2016-07-26 23:32:00 +00:00
OpenStack Proposal Bot baaeec1b63 Updated from global requirements
Change-Id: Idb1d2c1c9844b40effd779fb400489c7c966dba5
2016-06-22 19:19:50 +00:00
OpenStack Proposal Bot 11e23346b5 Updated from global requirements
Change-Id: Icafeffb9bc6ea80615a0e04265e558f9537b302d
2016-06-02 21:09:44 +00:00
OpenStack Proposal Bot 028091d623 Updated from global requirements
Change-Id: Id0b421cc4341eb8a4980f162d73ace1a17eda992
2016-05-31 03:04:34 +00:00
OpenStack Proposal Bot 3e2d0c3743 Updated from global requirements
Change-Id: I1ca45a84decacc0669754aa8200fe1cc046425d5
2016-05-26 17:02:57 +00:00
Sean Dague 2b7d5dec67 migrate to os-api-ref
os-api-ref is released on pypi now, so we can move to using it instead
of our in tree version. All future extension fixes will happen over
there instead of here.

Change-Id: Iee4b9c94b8b66a5b0481dd0b15beda03328c4f31
Depends-On: I0e615d36a2e5a8fa0d83f20bdcc2c33ad868ebd5
2016-05-16 08:10:14 -04:00
OpenStack Proposal Bot 87e22e6128 Updated from global requirements
Change-Id: I92ca6d742a861bbbd1d9ff2906e9119ab16b7af8
2016-04-28 16:15:24 +00:00
OpenStack Proposal Bot e2140d23b7 Updated from global requirements
Change-Id: I15eb62743dfcfea3fdf99361f358ec06e25ffdf5
2016-04-08 00:31:05 +00:00
OpenStack Proposal Bot 5bdb602e79 Updated from global requirements
Change-Id: If1cb6e79b14a5378a9e8bbe97d934b34d3ed2d94
2016-02-08 02:42:24 +00:00
OpenStack Proposal Bot 15043e547e Updated from global requirements
Change-Id: Ib3f0d8dfae66f4692cab91932e285797f2d3dcc6
2016-02-05 05:11:04 +00:00
OpenStack Proposal Bot 0d8a3d90fb Updated from global requirements
Change-Id: I747855c76ddbe20567753aded6bf08310346af42
2016-02-01 22:45:56 +00:00
OpenStack Proposal Bot eefb744f7e Updated from global requirements
Change-Id: I31d15eb7f1a5b67ee9c82946efefc0c226b01114
2016-01-25 00:14:26 +00:00
OpenStack Proposal Bot 29c1deb681 Updated from global requirements
Change-Id: I591916e882b56eec790f169cf59a6ba771e24f39
2016-01-22 04:07:37 +00:00
OpenStack Proposal Bot f7bd718121 Updated from global requirements
Change-Id: Icbeef0538bcf3fc1c13e96c31917e87bae0a1a0b
2015-12-23 00:35:53 +00:00
OpenStack Proposal Bot b086a78007 Updated from global requirements
Change-Id: I756cc85316e269caed4eaa8a24ccd13361b60bfe
2015-12-10 12:45:13 +00:00
OpenStack Proposal Bot 63a846e096 Updated from global requirements
Change-Id: If8c9bd89358ca4eb0e7b4cec7029e231d06ebe18
2015-12-02 02:43:54 +00:00
OpenStack Proposal Bot 1734ce7101 Updated from global requirements
Change-Id: I335204a2455d47540e4ac0734251422e08e81db2
2015-11-19 22:56:58 +00:00
OpenStack Proposal Bot cb24a2aefc Updated from global requirements
Change-Id: Ib5f4f7fa2e4292a20cafbec38930cb533d2ca453
2015-11-18 00:21:54 +00:00
Jenkins 5e37254a91 Merge "Add reno for release notes management" 2015-11-13 16:24:51 +00:00
Sylvain Bauza 3a65e4848f Add reno for release notes management
Since reno is the new tool for Relnotes [1], we need to add it
to Nova and provide some Sphinx docs for Liberty and Mitaka.

Change-Id: Ibd74e62b6f36076dbec17dd146632fd42aad6eb2
2015-11-12 17:34:24 +01:00
Anne Gentle 17961c41a3 Rearranges to create new Compute API Guide
Uses openstackdocstheme to match other content

Has a dependent change in project-config also so that
file will build to developer.openstack.org/compute
at https://review.openstack.org/#/c/231000/

Change-Id: Ic060a1e79e4b2f8695cb788ff4df018e0cfd3286
2015-11-12 10:47:23 +00:00
OpenStack Proposal Bot dde319c037 Updated from global requirements
Change-Id: If15d4c3e88b9894be54c8db4234a0cbe8fb89cb6
2015-10-13 11:03:34 +00:00
Davanum Srinivas 4bcc264878 Add testresources used by oslo.db fixture
If we use oslo.db fixtures, we'll need the package or
the next version of oslo.db release will break us.

Closes-Bug: #1503501
Change-Id: I176c85551007d3d9e7de8896ad12e9b87ff278d8
2015-10-07 08:11:40 -07:00
Jenkins eb780454a0 Merge "remove sphinxcontrib-seqdiag" 2015-10-06 14:02:59 +00:00
Sean Dague f87fbc02b6 remove sphinxcontrib-seqdiag
This removes the one seqdiag that is in our docs which drops the whole
chain of sphinxcontrib-seqdiag which requires Pillow, which requires
that you have a C compiler and jpeg-dev package on your environment to
build documenation for a python project.

Change-Id: Ie7615d48b5524b5e5e1159a25c357f5b3f0eee0e
2015-10-05 15:00:20 -04:00
OpenStack Proposal Bot 52786bce2a Updated from global requirements
Change-Id: Ie49e4aae0d2ed64107cb4c74df002328b9dca2ac
2015-10-04 22:43:42 +00:00
Jenkins 75beb7ac80 Merge "Updated from global requirements" 2015-10-02 20:15:16 +00:00
Jenkins 915f03b26a Merge "Use os-testr for py34 tox target" 2015-10-02 20:14:32 +00:00
OpenStack Proposal Bot 04a6ebf605 Updated from global requirements
Change-Id: Idef385a8d4bc07570fcfa04e35016529c83e2350
2015-10-02 17:26:26 +00:00
Tony Breeds 03cae1c431 Add Pillow to test-requirements.txt
Pillow isn't directly used by nova but it is used by
sphinxcontrib-seqdiag.

Add it to test-requirements as a work around to:
http://lists.openstack.org/pipermail/openstack-dev/2015-October/076030.html

Change-Id: I4face1fdb56c30bfeffca8808f422565eb21de83
2015-10-02 12:28:42 +10:00
Davanum Srinivas 9537c85763 Use os-testr for py34 tox target
os-testr has a blacklist we can use to specify which
tests to avoid. It uses "testr run --parallel" so tests
are run in parallel as well. We also get rid of the
huge list of tests in tox.ini into a separate file.

<soap_box>
The reason for using a black list is that when new tests
are being added, they are automatically either fixed to
work under python34 or added to a well known list of
tests so whoever is working on python34 can try to fix
those tests over a period of time. Hoping really that
this black list shrinks over time quickly. This is also
a pool of low hanging tasks that folks when they have
some time to pull a few tests from here and fix them.
</soapbox>

Bumps number of tests executed from 5606 to 7206

Depends-On: Ib5e682d0380cf7bc5e288a1e4d125379b452fa92
Change-Id: Ib641bb0f7553eb7704b419b9d00f86174f6d831d
2015-09-30 19:53:53 -04:00
OpenStack Proposal Bot 320bb6418f Updated from global requirements
Change-Id: Ie0de37f40006e42df305f5c7dfaa1f123077acfa
2015-09-18 20:45:40 +00:00
OpenStack Proposal Bot c44f8ca5ab Updated from global requirements
Change-Id: Iedae83b1c4d6e53fc1f80fe30ed47766f83e64d5
2015-09-08 16:30:02 +00:00
Chandan Kumar a370bdb8e5 Removed unused dependency: discover
Change-Id: Iaf8368b997be7707500300ac7b312d16813c0afa
2015-08-28 19:50:54 +05:30
OpenStack Proposal Bot 241e009f07 Updated from global requirements
Change-Id: I41c3f48cd05c2fd3aeef7211d82c51ee6a7e4da1
2015-08-25 13:23:05 +00:00
OpenStack Proposal Bot 5cec767593 Updated from global requirements
Change-Id: I54433814635fce99904b6dfffd5a52a23177834c
2015-08-18 01:29:30 +00:00
OpenStack Proposal Bot d593d6950b Updated from global requirements
Change-Id: I71fe6e2d34ddb006da15f30c684262ff7047f9b8
2015-08-04 18:17:53 +00:00
OpenStack Proposal Bot fc5bf46319 Updated from global requirements
Change-Id: Iceb876e7e0087ca6f4ba4d87765d85dfd4c28933
2015-07-29 06:13:45 +00:00
OpenStack Proposal Bot 258073e5b3 Updated from global requirements
Change-Id: I3c565df2d133003b69d9be08cefb8c0888c380ea
2015-07-23 12:52:36 +00:00
Jenkins 8a7665b6ba Merge "Add bandit for security static analysis testing" 2015-07-23 09:40:08 +00:00
OpenStack Proposal Bot d7dece1942 Updated from global requirements
Change-Id: Ic319ea3d4c4065f63db176b53382f9b98a4e17a9
2015-07-18 16:07:43 +00:00
Jenkins 275c9ace5c Merge "Switch from MySQL-python to PyMySQL" 2015-07-15 15:53:35 +00:00
Jeremy Stanley 650c811cdf Switch from MySQL-python to PyMySQL
As discussed in the Liberty Design Summit "Moving apps to Python 3"
cross-project workshop, the way forward in the near future is to
switch to the pure-python PyMySQL library as a default.

https://etherpad.openstack.org/p/liberty-cross-project-python3

Change-Id: I590c26523f4dc8d14c45e61bb89555486629b64d
2015-07-03 22:09:36 +00:00
Markus Zoeller 7b352048bf devref: virtual machine states and transitions
The diagrams were hard to read and update. Replaced them with
simplified diagrams and tables. I used the content as is. I looks
inconsistent to me, but should now be easier to change.

Partially implements: blueprint devref-refresh-liberty

Change-Id: I707e1a6ab69ef44448b66e8be007307b5d73eb06
2015-07-03 11:10:41 +02:00
OpenStack Proposal Bot d01f500976 Updated from global requirements
Change-Id: Ia1b407613867f114bd16422a2abd92fbd26ed594
2015-07-02 18:56:07 +00:00
Eric Brown e025404e69 Add bandit for security static analysis testing
This change adds a basic bandit config for Nova. It can be invoked
by running the tox environment for bandit;
    tox -e bandit

This is intended as a starting point for using bandit with Nova
and it should be revisited to improve the testing as more is learned
about the specific needs of the Nova code base.

Tox is configured to only show results for high and medium severity
results.

https://wiki.openstack.org/wiki/Security/Projects/Bandit

Change-Id: I3026b81317f0a6322acfc94784899a7453af586f
2015-07-02 09:17:48 -07:00
Robert Collins e6333ef1ee Remove python3 specific test-requirements file.
With environment markers this is not needed, and it should fix
requirement syncing.

Change-Id: I9e32764417852ea65b28efe3c05d39865ebc5744
2015-07-02 08:14:24 +12:00