Browse Source

Merge "No need flavor and network in managing server"

Jenkins 1 year ago
parent
commit
054a78fe7c
1 changed files with 20 additions and 32 deletions
  1. 20
    32
      specs/pike/approved/manage-existing-bms.rst

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

@@ -48,10 +48,9 @@ Proposed change
48 48
    API. This needs to add a new workflow which will skip schduling comparing
49 49
    with server create workflow.
50 50
 
51
-*  We will collect the image, network information from the adoptable nodes, and
52
-   will check if the resource existing in glance and neutron. For images, it
53
-   will be None if we can't find it, but for neutron port, it should be a must
54
-   when determine wheter the node can be managed.
51
+*  We will collect the image, network information from the manageable nodes,
52
+   and will check if the resource existing in glance and neutron.
53
+   For images and neutron ports, it will be None if we can't find them.
55 54
 
56 55
 
57 56
 Alternatives
@@ -80,25 +79,17 @@ REST API impact
80 79
      "properties": {
81 80
          'name': {'type': 'string', 'minLength': 1, 'maxLength': 255},
82 81
          'description': {'type': 'string', 'minLength': 1, 'maxLength': 255},
83
-         'availability_zone': {'type': 'string', 'minLength': 1,
84
-                               'maxLength': 255},
82
+         'metadata': {'type': 'object',
83
+                      'patternProperties': {
84
+                          '^[a-zA-Z0-9-_:. ]{1,255}$': {
85
+                              'type': 'string', 'maxLength': 255
86
+                              }
87
+                         },
88
+                      'additionalProperties': False
89
+         }
85 90
          'node_uuid': {'type': 'string', 'format': 'uuid'},
86
-         'flavor_uuid': {'type': 'string', 'format': 'uuid'},
87
-         'networks': {
88
-             'type': 'array', 'minItems': 1,
89
-             'items': {
90
-                 'type': 'object',
91
-                 'properties': {
92
-                     'port_type': {'type': 'string', 'minLength': 1,
93
-                                   'maxLength': 255},
94
-                     'port_id': {'type': 'string', 'format': 'uuid'},
95
-                 },
96
-                 'required': ['port_id'],
97
-                 'additionalProperties': False,
98
-             },
99
-         },
100 91
      },
101
-     'required': ['name', 'node_uuid', 'flavor_uuid', 'networks'],
92
+     'required': ['name', 'node_uuid'],
102 93
      'additionalProperties': False,
103 94
     }
104 95
 
@@ -113,25 +104,22 @@ REST API impact
113 104
             "name": "test_server",
114 105
             "ports": [
115 106
                 {
116
-                    "uuid": "6d85703a-565d-469a-96ce-30b6de53079d",
117
-                    "vif_port_id": "12345678-1234-1234-1234-123456789012",
118
-                    "href": "http://127.0.0.1:6385/v1/nodes/6d85703a-565d-469a-96ce-30b6de53079d/ports",
119
-                    "rel": "self"
107
+                    "address": "a4:dc:be:0e:82:a5",
108
+                    "uuid": "1ec01153-685a-49b5-a6d3-45a4e7dddf53",
109
+                    "neutron_port_id": "a9b94592-1d8e-46bb-836b-c7ba935b0136"
120 110
                 },
121 111
                 {
122
-                    "uuid": "6d85703a-565d-469a-96ce-30b6de53079d",
123
-                    "vif_port_id": "12345678-1234-1234-1234-123456789013",
124
-                    "href": "http://127.0.0.1:6385/nodes/6d85703a-565d-469a-96ce-30b6de53079d/ports",
125
-                    "rel": "bookmark"
112
+                    "address": "a4:dc:be:0e:82:a6",
113
+                    "uuid": "1ec01153-685a-49b5-a6d3-45a4e7dddf54",
114
+                    "neutron_port_id": "a9b94592-1d8e-46bb-836b-c7ba935b0137"
126 115
                 }
127 116
                      ],
117
+            "portgroups": [],
128 118
             "power_state": "power on",
129 119
             "provision_state": "active",
130
-            "created_at": "2016-10-17T04:12:44+00:00",
131 120
             "uuid": "f978ef48-d4af-4dad-beec-e6174309bc71",
132
-            "properties": {},
133
-            "instance_info": {},
134 121
             "resource_class": 'gold',
122
+            "image_source": "03239419-e588-42b6-a70f-94f23ed0c9e2"
135 123
         }
136 124
     ]
137 125
    }

Loading…
Cancel
Save