Update document for worker cleanup API
Update API document for API 'workers/cleanup', also remove 'until' from allowed clean keys as its value is always assigned in code. Change-Id: Iea940d7c7e52718b8e5e8dcf706aa5d1126860ef
This commit is contained in:
parent
cf56cdd4da
commit
934675eca7
@ -2,6 +2,7 @@
|
|||||||
"cluster": "test",
|
"cluster": "test",
|
||||||
"disabled": "True",
|
"disabled": "True",
|
||||||
"host": "127.0.0.1",
|
"host": "127.0.0.1",
|
||||||
|
"service_id": "1",
|
||||||
"is_up": "True",
|
"is_up": "True",
|
||||||
"binary": "cinder-volume",
|
"binary": "cinder-volume",
|
||||||
"resource_id": "b122f668-d15a-40f8-af21-38d218796ab8",
|
"resource_id": "b122f668-d15a-40f8-af21-38d218796ab8",
|
||||||
|
@ -23,7 +23,8 @@ Request
|
|||||||
.. rest_parameters:: parameters.yaml
|
.. rest_parameters:: parameters.yaml
|
||||||
|
|
||||||
- project_id: project_id_path
|
- project_id: project_id_path
|
||||||
- cluster: cluster_mutex
|
- cluster_name: cluster_mutex
|
||||||
|
- service_id: service_id
|
||||||
- host: host_service
|
- host: host_service
|
||||||
- binary: binary
|
- binary: binary
|
||||||
- is-up: is_up
|
- is-up: is_up
|
||||||
|
@ -32,8 +32,7 @@ from cinder import utils
|
|||||||
|
|
||||||
class WorkerController(wsgi.Controller):
|
class WorkerController(wsgi.Controller):
|
||||||
allowed_clean_keys = {'service_id', 'cluster_name', 'host', 'binary',
|
allowed_clean_keys = {'service_id', 'cluster_name', 'host', 'binary',
|
||||||
'is_up', 'disabled', 'resource_id', 'resource_type',
|
'is_up', 'disabled', 'resource_id', 'resource_type'}
|
||||||
'until'}
|
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
self.sch_api = sch_rpc.SchedulerAPI()
|
self.sch_api = sch_rpc.SchedulerAPI()
|
||||||
|
Loading…
Reference in New Issue
Block a user