2ae10ce522
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
34 lines
1.0 KiB
Plaintext
34 lines
1.0 KiB
Plaintext
# The order of packages is significant, because pip processes them in the order
|
|
# of appearance. Changing the order has an impact on the overall integration
|
|
# process, which may cause wedges in the gate later.
|
|
|
|
hacking<0.11,>=0.10.0
|
|
coverage>=3.6 # Apache-2.0
|
|
fixtures>=3.0.0 # Apache-2.0/BSD
|
|
mock>=2.0 # BSD
|
|
mox3>=0.7.0 # Apache-2.0
|
|
psycopg2>=2.5 # LGPL/ZPL
|
|
PyMySQL>=0.6.2 # MIT License
|
|
python-barbicanclient>=4.0.0 # Apache-2.0
|
|
python-ironicclient>=1.1.0 # Apache-2.0
|
|
python-subunit>=0.0.18 # Apache-2.0/BSD
|
|
requests-mock>=1.0 # Apache-2.0
|
|
sphinx!=1.3b1,<1.3,>=1.2.1 # BSD
|
|
os-api-ref>=0.1.0 # Apache-2.0
|
|
oslosphinx!=3.4.0,>=2.5.0 # Apache-2.0
|
|
oslotest>=1.10.0 # Apache-2.0
|
|
os-testr>=0.7.0 # Apache-2.0
|
|
testrepository>=0.0.18 # Apache-2.0/BSD
|
|
testresources>=0.2.4 # Apache-2.0/BSD
|
|
testtools>=1.4.0 # MIT
|
|
tempest-lib>=0.14.0 # Apache-2.0
|
|
bandit>=1.0.1 # Apache-2.0
|
|
openstackdocstheme>=1.4.0 # Apache-2.0
|
|
gabbi>=1.24.0 # Apache-2.0
|
|
|
|
# vmwareapi driver specific dependencies
|
|
oslo.vmware>=2.11.0 # Apache-2.0
|
|
|
|
# releasenotes
|
|
reno>=1.8.0 # Apache2
|