Browse Source

Merge "Change adopt to manage in managing-existing-node spec"

Jenkins 1 year ago
parent
commit
7281d4457c
1 changed files with 10 additions and 10 deletions
  1. 10
    10
      specs/pike/approved/manage-existing-bms.rst

+ 10
- 10
specs/pike/approved/manage-existing-bms.rst View File

@@ -39,7 +39,7 @@ Proposed change
39 39
 
40 40
 *  Introduce a new admin only API, which supports to query nodes that could
41 41
    be managed by mogan. This API will pass down the request to drivers, which
42
-   needs to add a new driver interface `list_adoptable_nodes`, there will be
42
+   needs to add a new driver interface `get_manageable_nodes`, there will be
43 43
    driver specified criterias of which nodes are manageable. For ironic, it
44 44
    should be nodes in active state but without instance_uuid associated, and
45 45
    the resource class field should be well set.
@@ -68,12 +68,10 @@ None
68 68
 REST API impact
69 69
 ---------------
70 70
 
71
-#. Add a new custom action named 'manage' in ServerController, of course
72
-   it is a admin only API::
71
+#. Add a new URI named 'manageable_servers' with ManageableServersController,
72
+   of course it is a admin only API::
73 73
 
74
-    _custom_actions = {
75
-         'manage': ['POST']
76
-    }
74
+    POST v1/manageable_servers
77 75
 
78 76
 #. The management API schema is like this::
79 77
 
@@ -104,11 +102,13 @@ REST API impact
104 102
      'additionalProperties': False,
105 103
     }
106 104
 
107
-#. Add a new API that will list adoptable nodes which will include all needed
108
-   informations when calling manage API. It may look like this::
105
+#. Add a new API that will list manageable servers which will include all
106
+   needed informations when calling manage API. It may look like this::
107
+
108
+   GET v1/manageable_servers
109 109
 
110 110
    {
111
-    "adoptable_nodes": [
111
+    "manageable_servers": [
112 112
         {
113 113
             "name": "test_server",
114 114
             "ports": [
@@ -196,7 +196,7 @@ Unit Testing will be added.
196 196
 Documentation Impact
197 197
 ====================
198 198
 
199
-Docs about adopt/manage servers will be added, including the preparation work
199
+Docs about manage servers will be added, including the preparation work
200 200
 for operator.
201 201
 
202 202
 References

Loading…
Cancel
Save