07a8e30f76
This patch aims at support microversion in Cyborg API. The work items is the following: 1. remove old api_version_request.py to avoid the redundancy. 2. add a header in every API request and support to parse it and route to the correct API method. 3. depracate v1 API. 4. add related UT. For testing: CTYPE="Content-Type: application/json" AUTH="X-Auth-Token: $(openstack token issue -c id -f value)" curl -s -H "$CTYPE" -H "$AUTH" -H "OpenStack-API-Version: accelerator 2.0" http://localhost/accelerator/devices This will execute sucessfully because 2.0 microversion is supported. curl -s -H "$CTYPE" -H "$AUTH" -H "OpenStack-API-Version: accelerator latest" http://localhost/accelerator/devices This will execute sucessfully because "latest" will be parsed to 2.0. curl -s -H "$CTYPE" -H "$AUTH" -H "OpenStack-API-Version: accelerator 2.99" http://localhost/accelerator/devices This will failed because we don't support 2.99 microversion. Change-Id: Id9c34dc134d59b2332cefbcae5bbd7e6632e970d
34 lines
1.2 KiB
Plaintext
34 lines
1.2 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.
|
|
|
|
pbr>=0.11,!=2.1.0 # Apache-2.0
|
|
pecan>=1.0.0,!=1.0.2,!=1.0.3,!=1.0.4,!=1.2 # BSD
|
|
WSME>=0.8.0 # MIT
|
|
six>=1.8.0 # MIT
|
|
eventlet>=0.12.0,!=0.18.3,!=0.20.1,!=0.21.0,!=0.23.0,!=0.25.0 # MIT
|
|
oslo.i18n>=1.5.0 # Apache-2.0
|
|
oslo.config>=1.1.0,!=4.3.0,!=4.4.0 # Apache-2.0
|
|
oslo.log>=1.14.0 # Apache-2.0
|
|
oslo.context>=2.9.0 # Apache-2.0
|
|
oslo.messaging>=10.3.0 # Apache-2.0
|
|
oslo.concurrency>=3.26.0 # Apache-2.0
|
|
oslo.service>=1.0.0,!=1.28.1 # Apache-2.0
|
|
oslo.db>=4.1.0 # Apache-2.0
|
|
os-resource-classes>=0.5.0 # Apache-2.0
|
|
oslo.upgradecheck>=0.1.0 # Apache-2.0
|
|
oslo.utils>=3.33.0 # Apache-2.0
|
|
oslo.versionedobjects>=1.31.2 # Apache-2.0
|
|
oslo.policy>=0.5.0 # Apache-2.0
|
|
SQLAlchemy>=0.9.0,!=1.1.5,!=1.1.6,!=1.1.7,!=1.1.8 # MIT
|
|
alembic>=0.8.10 # MIT
|
|
stevedore>=1.5.0 # Apache-2.0
|
|
keystonemiddleware>=4.17.0 # Apache-2.0
|
|
jsonpatch>=1.16,!=1.20 # BSD
|
|
psutil>=3.2.2 # BSD
|
|
mock>=2.0.0 # BSD
|
|
python-glanceclient>=2.3.0 # Apache-2.0
|
|
oslo.privsep>=1.32.0 # Apache-2.0
|
|
cursive>=0.2.1 # Apache-2.0
|
|
microversion_parse>=0.2.1 # Apache-2.0
|