Remove pool group from zaqar for api-ref

Co-Authored-By: wanghao<sxmatch1986@gmail.com>
Change-Id: I81c0cc322e89260cb8803de9f3c0afb58ed75532
Implement: blueprint remove-pool-group-from-zaqar
This commit is contained in:
gengchc2 2017-12-04 00:29:40 -08:00 committed by wanghao
parent 07a2a5b288
commit 93bd4fed93
18 changed files with 242 additions and 0 deletions

View File

@ -42,9 +42,18 @@ Response Parameters
- flavors: flavors - flavors: flavors
- links: flavor_links - links: flavor_links
Response Example
----------------
NOTE: Suggest config pool_list in stead of pool_group from the
beginning of Queens.
.. literalinclude:: samples/flavor-list-response-new.json
:language: javascript
Response Example Response Example
---------------- ----------------
NOTE: Remove pool_group in Rocky release and use pool_list instead for pool
.. literalinclude:: samples/flavor-list-response.json .. literalinclude:: samples/flavor-list-response.json
:language: javascript :language: javascript
@ -80,9 +89,20 @@ Request Parameters
- flavor_name: flavor_name_path - flavor_name: flavor_name_path
- pool_group: flavor_pool_group - pool_group: flavor_pool_group
- pool_list: flavor_pool_list
Request Example Request Example
--------------- ---------------
NOTE: Suggest config pool_list in stead of pool_group from the
beginning of Queens.
.. literalinclude:: samples/flavor-create-request-new.json
:language: javascript
Request Example
---------------
NOTE: Remove pool_group in Rocky release and use pool_list instead for pool
.. literalinclude:: samples/flavor-create-request.json .. literalinclude:: samples/flavor-create-request.json
:language: javascript :language: javascript
@ -116,10 +136,29 @@ Request Parameters
- flavor_name: flavor_name_path - flavor_name: flavor_name_path
- pool_group: flavor_pool_group - pool_group: flavor_pool_group
- pool_list: flavor_pool_list
Request Example
---------------
NOTE: Suggest config pool_list in stead of pool_group from the
beginning of Queens.
.. literalinclude:: samples/flavor-update-request-new.json
:language: javascript
Response Example
----------------
NOTE: Suggest config pool_list in stead of pool_group from the
beginning of Queens.
.. literalinclude:: samples/flavor-update-response-new.json
:language: javascript
Request Example Request Example
--------------- ---------------
NOTE: Remove pool_group in Rocky release and use pool_list instead for pool
.. literalinclude:: samples/flavor-update-request.json .. literalinclude:: samples/flavor-update-request.json
:language: javascript :language: javascript
@ -127,6 +166,7 @@ Request Example
Response Example Response Example
---------------- ----------------
NOTE: Remove pool_group in Rocky release and use pool_list instead for pool
.. literalinclude:: samples/flavor-update-response.json .. literalinclude:: samples/flavor-update-response.json
:language: javascript :language: javascript
@ -164,10 +204,21 @@ Response Parameters
- name: flavor_name - name: flavor_name
- capabilities: capabilities - capabilities: capabilities
- pool_group: flavor_pool_group - pool_group: flavor_pool_group
- pool_list: flavor_pool_list
- href: flavor_href - href: flavor_href
Response Example Response Example
---------------- ----------------
NOTE: Suggest config pool_list in stead of pool_group from the
beginning of Queens.
.. literalinclude:: samples/flavor-show-response-new.json
:language: javascript
Response Example
----------------
NOTE: Remove pool_group in Rocky release and use pool_list instead for pool
.. literalinclude:: samples/flavor-show-response.json .. literalinclude:: samples/flavor-show-response.json
:language: javascript :language: javascript

View File

@ -265,6 +265,16 @@ flavor_pool_group:
description: | description: |
The ``pool_group`` attribute specifies the name of the pool group The ``pool_group`` attribute specifies the name of the pool group
this flavor sits on top of. this flavor sits on top of.
NOTE: Remove pool_group in Rocky release and use pool_list instead
for flavor.
flavor_pool_list:
type: list
in: body
description: |
A list of pools in the flavor.
NOTE: Suggest config pool_list in stead of pool_group from the
beginning of Queens.
flavors: flavors:
type: list type: list
@ -305,6 +315,16 @@ operation_status:
indicate if the actions was successful or not. Ref may contain the indicate if the actions was successful or not. Ref may contain the
information if the succeeded is False, otherwise it's null. information if the succeeded is False, otherwise it's null.
pool_flavor:
type: string
in: body
required: false
description: |
The ``flavor`` attribute specifies a tag to given to more than one pool
so that it keeps user remind the purpose/capabilities of all pools that
falls under that flavor.
NOTE: Suggest config flavor in stead of group from the beginning of queen.
pool_group: pool_group:
type: string type: string
in: body in: body
@ -313,6 +333,7 @@ pool_group:
The ``group`` attribute specifies a tag to given to more than one pool The ``group`` attribute specifies a tag to given to more than one pool
so that it keeps user remind the purpose/capabilities of all pools that so that it keeps user remind the purpose/capabilities of all pools that
falls under that group. falls under that group.
NOTE: Remove group in Rocky release and use flavor instead for pool.
pool_href: pool_href:
type: string type: string

View File

@ -43,9 +43,17 @@ Response Parameters
- pools: pools - pools: pools
- links: pool_links - links: pool_links
Response Example
----------------
NOTE: Suggest config flavor in stead of group from the beginning of Queens.
.. literalinclude:: samples/pool-list-response-new.json
:language: javascript
Response Example Response Example
---------------- ----------------
NOTE: Remove group in Rocky release and use flavor instead for pool
.. literalinclude:: samples/pool-list-response.json .. literalinclude:: samples/pool-list-response.json
:language: javascript :language: javascript
@ -83,10 +91,20 @@ Request Parameters
- weight: pool_weight - weight: pool_weight
- uri: pool_uri - uri: pool_uri
- group: pool_group - group: pool_group
- flavor: pool_flavor
- options: pool_options - options: pool_options
Request Example Request Example
--------------- ---------------
NOTE: Suggest config flavor in stead of group from the beginning of Queens.
.. literalinclude:: samples/pool-create-request-new.json
:language: javascript
Request Example
---------------
NOTE: Remove group in Rocky release and use flavor instead for pool
.. literalinclude:: samples/pool-create-request.json .. literalinclude:: samples/pool-create-request.json
:language: javascript :language: javascript
@ -121,11 +139,28 @@ Request Parameters
- weight: pool_weight - weight: pool_weight
- uri: pool_uri - uri: pool_uri
- group: pool_group - group: pool_group
- flavor: pool_flavor
- options: pool_options - options: pool_options
Request Example
---------------
NOTE: Suggest config flavor in stead of group from the beginning of Queens.
.. literalinclude:: samples/pool-update-request-new.json
:language: javascript
Response Example
----------------
NOTE: Suggest config flavor in stead of group from the beginning of Queens.
.. literalinclude:: samples/pool-update-response-new.json
:language: javascript
Request Example Request Example
--------------- ---------------
NOTE: Remove group in Rocky release and use flavor instead for pool
.. literalinclude:: samples/pool-update-request.json .. literalinclude:: samples/pool-update-request.json
:language: javascript :language: javascript
@ -133,6 +168,7 @@ Request Example
Response Example Response Example
---------------- ----------------
NOTE: Remove group in Rocky release and use flavor instead for pool
.. literalinclude:: samples/pool-update-response.json .. literalinclude:: samples/pool-update-response.json
:language: javascript :language: javascript
@ -169,10 +205,20 @@ Response Parameters
- weight: pool_weight - weight: pool_weight
- uri: pool_uri - uri: pool_uri
- group: pool_group - group: pool_group
- flavor: pool_flavor
- href: pool_href - href: pool_href
Response Example Response Example
---------------- ----------------
NOTE: Suggest config flavor in stead of group from the beginning of Queens.
.. literalinclude:: samples/pool-show-response-new.json
:language: javascript
Response Example
----------------
NOTE: Remove group in Rocky release and use flavor instead for pool
.. literalinclude:: samples/pool-show-response.json .. literalinclude:: samples/pool-show-response.json
:language: javascript :language: javascript

View File

@ -0,0 +1,3 @@
{
"pool_list": "[testpool1, testpool2]"
}

View File

@ -0,0 +1,24 @@
{
"flavors": [
{
"href": "/v2/flavors/test_flavor1",
"pool_group": "",
"pool_list": "[testpool1, testpool2]",
"name": "test_flavor1",
"pool": "testgroup"
},
{
"href": "/v2/flavors/test_flavor2",
"pool_group": "",
"pool_list": "[testpool3, testpool4]",
"name": "test_flavor2",
"pool": "testgroup"
}
],
"links": [
{
"href": "/v2/flavors?marker=test_flavor2",
"rel": "next"
}
]
}

View File

@ -3,12 +3,14 @@
{ {
"href": "/v2/flavors/test_flavor1", "href": "/v2/flavors/test_flavor1",
"pool_group": "testgroup", "pool_group": "testgroup",
"pool_list": "",
"name": "test_flavor1", "name": "test_flavor1",
"pool": "testgroup" "pool": "testgroup"
}, },
{ {
"href": "/v2/flavors/test_flavor2", "href": "/v2/flavors/test_flavor2",
"pool_group": "testgroup", "pool_group": "testgroup",
"pool_list": "",
"name": "test_flavor2", "name": "test_flavor2",
"pool": "testgroup" "pool": "testgroup"
} }

View File

@ -0,0 +1,13 @@
{
"href": "/v2/flavors/testflavor",
"capabilities": [
"FIFO",
"CLAIMS",
"DURABILITY",
"AOD",
"HIGH_THROUGHPUT"
],
"pool_group": "",
"pool_list": "[testpool1, testpool2]"
"name": "testflavor"
}

View File

@ -8,5 +8,6 @@
"HIGH_THROUGHPUT" "HIGH_THROUGHPUT"
], ],
"pool_group": "testgroup", "pool_group": "testgroup",
"pool_list": ""
"name": "testflavor" "name": "testflavor"
} }

View File

@ -0,0 +1,3 @@
{
"pool_list": "[testpool1, testpool3]"
}

View File

@ -0,0 +1,12 @@
{
"href": "/v2/flavors/testflavor",
"pool_list": "[testpool1, testpool3]",
"name": "testflavor",
"capabilities": [
"FIFO",
"CLAIMS",
"DURABILITY",
"AOD",
"HIGH_THROUGHPUT"
]
}

View File

@ -0,0 +1,8 @@
{
"weight": 100,
"uri": "mongodb://127.0.0.1:27017",
"options":{
"max_retry_sleep": 1
},
"flavor": "poolflavor"
}

View File

@ -0,0 +1,26 @@
{
"pools": [
{
"href": "/v2/pools/test_pool1",
"group": "",
"flavor": "poolflavor",
"name": "test_pool1",
"weight": 60,
"uri": "mongodb://192.168.1.10:27017"
},
{
"href": "/v2/pools/test_pool2",
"group": "",
"flavor": "poolflavor",
"name": "test_pool2",
"weight": 40,
"uri": "mongodb://192.168.1.20:27017"
}
],
"links": [
{
"href": "/v2/pools?marker=test_pool2",
"rel": "next"
}
]
}

View File

@ -3,6 +3,7 @@
{ {
"href": "/v2/pools/test_pool1", "href": "/v2/pools/test_pool1",
"group": "poolgroup", "group": "poolgroup",
"flavor": "",
"name": "test_pool1", "name": "test_pool1",
"weight": 60, "weight": 60,
"uri": "mongodb://192.168.1.10:27017" "uri": "mongodb://192.168.1.10:27017"
@ -10,6 +11,7 @@
{ {
"href": "/v2/pools/test_pool2", "href": "/v2/pools/test_pool2",
"group": "poolgroup", "group": "poolgroup",
"flavor": "",
"name": "test_pool2", "name": "test_pool2",
"weight": 40, "weight": 40,
"uri": "mongodb://192.168.1.20:27017" "uri": "mongodb://192.168.1.20:27017"

View File

@ -0,0 +1,8 @@
{
"href": "/v2/pools/test_pool",
"group": "",
"flavor": "testpoolflavor",
"name": "test_pool",
"weight": 100,
"uri": "mongodb://127.0.0.1:27017"
}

View File

@ -1,6 +1,7 @@
{ {
"href": "/v2/pools/test_pool", "href": "/v2/pools/test_pool",
"group": "testpoolgroup", "group": "testpoolgroup",
"flavor": "",
"name": "test_pool", "name": "test_pool",
"weight": 100, "weight": 100,
"uri": "mongodb://127.0.0.1:27017" "uri": "mongodb://127.0.0.1:27017"

View File

@ -0,0 +1,8 @@
{
"weight": 60,
"uri": "mongodb://127.0.0.1:27017",
"options":{
"max_retry_sleep": 1
},
"flavor": "newpoolflavor"
}

View File

@ -0,0 +1,8 @@
{
"href": "/v2/pools/test_pool",
"group": "",
"flavor": "newpoolflavor",
"name": "test_pool",
"weight": 60,
"uri": "mongodb://127.0.0.1:27017"
}

View File

@ -0,0 +1,5 @@
---
features:
- |
Since we have introduced the 'pool_list' instead of pool_group in Queens,
Now we will update the APIs to suggest users use new argument.