187 Commits

Author SHA1 Message Date
OpenStack Proposal Bot
48c92f0141 Updated from global requirements
Change-Id: I9367dd73194ebc3b2501aabfd2eab535e6e02101
2017-05-17 13:45:31 +00:00
OpenStack Proposal Bot
2350dab129 Updated from global requirements
Change-Id: If0738d04f132fa12413f4b5aa64ddb1b901f5ed7
2017-05-15 00:50:30 +00:00
OpenStack Proposal Bot
d5561c6ed3 Updated from global requirements
Change-Id: Iee9790e4b86cc74c14fdc99c4a9a6f294898e86d
2017-05-03 12:19:07 +00:00
Jenkins
f8939f76e9 Merge "remove flake8-import-order for test requirements" 2017-03-21 17:55:02 +00:00
Jenkins
e3eac21382 Merge "More usage of ostestr and cleanup an unused dependency" 2017-03-20 16:04:47 +00:00
Sean Mooney
a5d4adbd60 remove flake8-import-order for test requirements
- When flake8-import-order is installed the additional
  ordering tests it provides are enabled by default.
- When devstack installs python projects from source
  such as nova, the pip_install function installs both the
  requirements.txt and test-requiremets.txt dependencies systemwide.
  As a result, any python project that runs pep8 tests without a
  python virtual environment will also have import ordering enforced
  which may fail.
- This change removes flake8-import-order from the
  test-requirements.txt to prevent failures in projects other
  than nova that don't enforce pep8 import ordering.

Change-Id: I994df178f0000a0840f6658ccc2f277d5503f826
2017-03-16 17:36:54 +00:00
John L. Villalovos
66866b3ce6 Use flake8-import-order
Use the flake8 plugin flake8-import-order to check import ordering. It
can do it automatically and don't need reviewers to check it.

Change-Id: Ia3d81bbbb44b40804b3268c0e648276a36cb4805
2017-03-06 06:50:23 -08:00
Luigi Toscano
8e34aece1a More usage of ostestr and cleanup an unused dependency
Use ostestr as runner instead of the custome pretty_tox.sh script
(pretty much removed everywhere). pretty_tox3.sh is just a wrapper
for ostestr but it could be probably removed as well going forward.
Also remove the tempest-lib dependency, which originally provided
subunit-trace (now from os-testr).

Change-Id: I4390964ce83167d634b80f696e82a0e199582ce6
2017-02-23 18:25:08 +01:00
Jenkins
9778a6cee8 Merge "Update hacking version" 2017-02-16 04:43:46 +00:00
OpenStack Proposal Bot
9548cc854f Updated from global requirements
Change-Id: Id75e2f6372d9a9c8af03bb2a4231127e5559c0e0
2017-02-15 20:50:34 +00:00
Ken'ichi Ohmichi
d02d4b3f1b Update hacking version
hacking version is managed in test-requirements.txt and the latest
version is 0.13.0 now.
However 0.13.0 is in very sorry shape as the Change-Id of hacking
I714caa085fa35cb4aac3b65c73a7de6d4807d04d .
So this patch updates our test-requirements.txt to avoid using
0.13.0.

Change-Id: If94186a74a022bc689d7c9c7f56f4bdb9376e8a7
2017-02-10 15:07:22 +01:00
OpenStack Proposal Bot
a43a463859 Updated from global requirements
Change-Id: I07267ab144ef3851dfd716ecb3809d3bfa133e06
2017-01-26 18:48:41 +00:00
OpenStack Proposal Bot
9385eaff09 Updated from global requirements
Change-Id: I740a7d5e9f1740e2b1d1fbd9cff110fa83741e29
2017-01-20 19:43:54 +00:00
Dina Belova
ecc8de8d6c Integrate OSProfiler and Nova
* Add osprofiler wsgi middleware. This middleware is used for 2 things:
  1) It checks that person who want to trace is trusted and knows
     secret HMAC key.
  2) It starts tracing in case of proper trace headers
     and adds the first wsgi trace point with info about the HTTP request

* Add initialization of osprofiler on start of a service
  Currently that includes oslo.messaging notifier instance creation
  to send Ceilometer backend notifications.

oslo-spec: https://review.openstack.org/#/c/103825/
python-novaclient change: https://review.openstack.org/#/c/254699/
based on: https://review.openstack.org/#/c/105096/

Co-Authored-By: Boris Pavlovic <boris@pavlovic.me>
Co-Authored-By: Munoz, Obed N <obed.n.munoz@intel.com>
Co-Authored-By: Roman Podoliaka <rpodolyaka@mirantis.com>
Co-Authored-By: Tovin Seven <vinhnt@vn.fujitsu.com>

Implements: blueprint osprofiler-support-in-nova
Change-Id: I82d2badc8c1fcec27c3fce7c3c20e0f3b76414f1
2017-01-18 15:00:14 +07:00
OpenStack Proposal Bot
3f0b023825 Updated from global requirements
Change-Id: I0df44a42a2484b1394c45f0173dfbe13300a1851
2017-01-15 09:25:44 +00:00
OpenStack Proposal Bot
71c4360de8 Updated from global requirements
Change-Id: I222d94326ced3bd90d329971e1c6673c0a6f055a
2016-12-23 03:16:27 +00:00
OpenStack Proposal Bot
b212b9f496 Updated from global requirements
Change-Id: Id3962e728234970b4c8e43b569e55a6aa507a3cc
2016-12-05 09:57:19 +00:00
Matthew Booth
2d886ec913 libvirt: Cleanup test_create_configdrive
This test made a tortured trip into _create_image_helper without using
much of its functionality. We pull this out and have it call
_create_configdrive directly.

This leaves _create_image_helper with only a single caller:
test_create_image_with_flavor_swap. This test is almost identical in
purpose to the much better test_create_image_with_swap and
test_create_image_with_legacy_swap_resizing. We refactor
test_create_image_with_swap to use ddt to cover all 3 cases, and
remove _create_image_helper.

This introduces the first use of ddt in Nova tests. It is already in
global-requirements. It was approved for use in Nova tests during the
Ocata contributor meetup:

  https://etherpad.openstack.org/p/ocata-nova-summit-meetup

Change-Id: I9d26ae3c26bab20ae60c2db011194ac0b2ead555
2016-12-01 16:58:05 +00:00
OpenStack Proposal Bot
5f137dfe70 Updated from global requirements
Change-Id: I56f82972fe87410d5d4e2d222fdeaec632fbbea1
2016-11-16 21:59:09 +00:00
OpenStack Proposal Bot
ad2ea369fe Updated from global requirements
Change-Id: I04217182c7d8216120e254de3bace8a639973f9c
2016-11-10 10:19:39 +00:00
Dirk Mueller
dfa2b6221b Add explicit dependency on testscenarios
With the update to oslotest 2.11.0, we're missing testscenarios
now in the unit test environment[1], so depend on it.

1: https://review.openstack.org/#/c/385274/

Change-Id: I57da89ade9eb3fcf920ec6d333db7577ee3ef138
2016-11-06 16:03:07 +01:00
OpenStack Proposal Bot
74fadb4bcf Updated from global requirements
Change-Id: I0704601ca7ba9a84ffbb9d25ae0b0c7a51032d35
2016-11-02 15:36:54 +00:00
OpenStack Proposal Bot
e875f24ff7 Updated from global requirements
Change-Id: I0c74d6fb97ca8b887a2eaba5eed8398c9b135e1d
2016-10-22 01:24:04 +00:00
OpenStack Proposal Bot
1f0d3e0524 Updated from global requirements
Change-Id: I6563d3d3a42882ad02239448d3b09aa85c0a0c13
2016-09-30 10:21:30 +00:00
Jenkins
3d6d719d14 Merge "Use gabbi inner_fixtures for better error capture" 2016-09-29 22:25:07 +00:00
Chris Dent
f6b72255a6 Use gabbi inner_fixtures for better error capture
Upgrade to gabbi 1.26.1 to use the new inner_fixtures feature to
capture log and stdout/stderr per individual test request. The
existing nova fixtures are used for the capture.

Depends-On: Ic13dc14f62334aefbcced93872ec564cab157898
Change-Id: Ic6f5a50df37b4680a60c4aa94f7587aec232c367
2016-09-29 11:53:18 +00:00
OpenStack Proposal Bot
cd997580f8 Updated from global requirements
Change-Id: I76fbd2fd7164ad837fa782161a3e9a8f84ac0e79
2016-09-29 00:08:21 +00:00
OpenStack Proposal Bot
c5c24f16c9 Updated from global requirements
Change-Id: I791c1957289f9a934661ba13f9d6c4ad657074a3
2016-09-27 10:04:27 +00:00
OpenStack Proposal Bot
2ddcb5829c Updated from global requirements
Change-Id: Ie9882234a54f83a7707c52b25c876b7e5a1b1ab0
2016-09-22 20:30:27 +00:00
Matt Riedemann
d3dfeb44d6 Move wsgi-intercept to test-requirements.txt
The wsgi-intercept dependency is only used in the functional
tests for the placement API, so we should move it to the
test-requirements.txt file so people don't try to package
it for runtime installs.

Change-Id: I0d8325e12ed7d5d022877782d6aa4ba4055c30db
Closes-Bug: #1625653
2016-09-20 14:17:54 -04:00
OpenStack Proposal Bot
7f69d0d1c7 Updated from global requirements
Change-Id: I1bfb88ea51f046e4c4b793cbf20ce7644a350b3f
2016-09-03 01:59:32 +00:00
OpenStack Proposal Bot
719b5ab9f0 Updated from global requirements
Change-Id: I313dfaeaccb48f9aa9733a8a2d88a7eed1cecc46
2016-08-29 16:51:55 +00:00
OpenStack Proposal Bot
1285a02646 Updated from global requirements
Change-Id: Ic0dd5e1788bb44925c768884c6002a3a80e92e60
2016-08-21 00:07:54 +00:00
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