92 Commits

Author SHA1 Message Date
liusheng
7619e9f057 Normalize API samples json files
Some of the API sample json files include different indent spaces, it is
better to nomalize them with 4 spaces indent.

Change-Id: I7f22de6cef8998c7ae2d1d793b1fcad55334dca3
2017-09-18 20:14:08 +08:00
liusheng
185e6e9302 Drop the getting server state API
This API is redundant because all the status can be displayed in server
response.

Change-Id: I5013d6746d2f6c4380563f319b3bd1fba7671bd6
Closes-Bug: #1717406
2017-09-15 14:17:28 +08:00
liusheng
244f31f88c Add *locked* field in server response
Closes-Bug: #1717405
Change-Id: I946879f9505b0fc91e1726b61b5ee235427ac0e0
2017-09-15 14:17:24 +08:00
Jenkins
5164bc9c22 Merge "Revise some API docs" 2017-09-14 14:28:29 +00:00
Jenkins
766e41cfb7 Merge "Fix two issues in API sample files" 2017-09-14 10:31:04 +00:00
Zhenguo Niu
52e8f17990 Revise some API docs
Change-Id: I8a7f0a241614f2a31ebdcc304ff4143d33af5517
2017-09-14 13:21:46 +08:00
liusheng
f5e10b228b Fix two issues in API sample files
Change-Id: Ibd636ca79d6f8188b88f43280575f02cdd2142a1
Closes-Bug: #1717146
2017-09-14 11:56:27 +08:00
Jenkins
d88fd1008a Merge "Disable flavor traits on API side" 2017-09-13 10:11:44 +00:00
Zhenguo Niu
b55a988327 Disable flavor traits on API side
As we can't support traits now when talking to placement, so
disable it to avoid to confuse users.

Change-Id: Ib739f0cae03bf12b1c7ae1af7c3a9ec94b40cce1
2017-09-13 13:11:49 +08:00
Zhenguo Niu
6ef4231093 Correct typos on docs
Change-Id: I1ad352c7eec94b0c4a781f9d2dec8f4e18821ce6
2017-09-12 17:33:06 +08:00
Zhenguo Niu
a4b1ee741f Return node name with server API object
Currently we support to list compute nodes and aggregate nodes
with names, but server show will return the node uuid always,
which makes the admins have to go to ironic to get the relationship
between name and uuid, so this changes to return node name.

Change-Id: I6f1e5d0f9cfe277fe952d21b38ebfe68dde4f745
Closes-Bug: #1715036
2017-09-11 19:05:09 +08:00
Tao Li
26508fd131 Manage existing BMs: Part-2
Add the adopt baremetal node API.

Change-Id: I1897129930bface6a6c4a179e02d6107ff3811af
Implements: bp manage-existing-bms
2017-09-11 16:57:35 +08:00
Zhenguo Niu
93da16d88f Revert "Return node(name or uuid) with server instead of node_uuid"
This reverts commit 5124ae1d44429f246ce8687e8143d75dc75131d6.

Change-Id: I0ff6f7e22afbe8833bbc6044b8b7f5c768c9b940
2017-09-07 17:29:56 +08:00
Zhenguo Niu
028b28594f Add root disk partitions support
This adds root disk partitons support to allow users to specify
root, ephemeral, and swap size.

Implements: bp root-disk-partitions

Change-Id: I9562f39501c23579ba561f0cd4cbb8ef60674a6b
2017-09-06 17:30:25 +08:00
Zhenguo Niu
7d78b09a01 Add preserve_ephemeral support for rebuilding
Currently we don't support preserving ephemeral partition when
requesting to rebuild, we need to expose the ability to users.

Change-Id: Ia10ab6a8d6dd6beba8837e7d0414dc6984dd2426
Closes-Bug: #1714852
2017-09-06 09:12:40 +08:00
Zhenguo Niu
5124ae1d44 Return node(name or uuid) with server instead of node_uuid
Currently we support to list compute nodes and aggregate nodes
with names, but server show will return the node uuid always,
which make the admins have to go ironic to get the relationship
between name and uuid, so this changes to return node name.

Change-Id: Ia0e5122aa29c4de2e870c5b71c420de49530ba92
Closes-Bug: #1715036
2017-09-05 14:53:54 +08:00
Jenkins
5cd5e24a31 Merge "Return key name with server API" 2017-09-01 02:44:15 +00:00
Xinran
3b026239f9 Return key name with server API
Change-Id: Ia8d7c917afc3bae04997161f8bb55c30cd196d60
Closes-Bug: #1712234
2017-08-31 09:55:16 +00:00
Jenkins
e03982d000 Merge "support specifying port_id when attaching interface" 2017-08-30 09:58:03 +00:00
Xinran
817748c6b0 support specifying port_id when attaching interface
Change-Id: I5d3f18a32c357096f5a6090abed1d8d480a93c6f
2017-08-30 15:01:06 +08:00
Zhenguo Niu
dead07444c Add socat console support
This adds another serial console type socat support.

Change-Id: Ic443d050790aee2ea2e27daf165310f8e292fda7
Implements: bp socat-console
2017-08-29 17:07:23 +08:00
Jenkins
30a16bc608 Merge "Add support for scheduler_hints" 2017-08-28 04:39:26 +00:00
Jenkins
2a569c8533 Merge "Return addresses with server API object" 2017-08-28 04:34:48 +00:00
liusheng
6302f74832 Add support for scheduler_hints
Partially Implements: bp support-schedule-hints
Change-Id: I7c482ca0ac1031f0017c6bc832892111ecfb20dc
2017-08-26 18:04:57 +08:00
Zhenguo Niu
7bf7a776fd Return addresses with server API object
Replace server.nics with server.addresses to only return basic
addresses info with server API object, and we also provide an
API to get networks infomation.

Change-Id: If684252f8112e3879f096403d5b9daed2bd5951a
2017-08-26 10:17:12 +08:00
wanghao
d577c88d4a Manage existing BMs: Part-1
This patch introduce a new API:
'GET: /manageable_servers' to list the adoptable nodes
from drivers to operators.

As a reference, now we implement api in the Ironic driver.

APIImpact

Implements: bp manage-existing-bms

Change-Id: I56340ce534c3b8d4e855a4c753ecf90a07147d29
2017-08-25 19:42:58 +08:00
liusheng
0a7e49aacc Add affinity_zone field for server object
Partially Implements: bp server-group-api-extension
Change-Id: Id118e661cace434c5a08ed28c65da70fe5bda6b0
2017-08-25 11:47:14 +08:00
Jenkins
db41f26426 Merge "Replace server fault_info with fault" 2017-08-22 06:44:08 +00:00
Zhenguo Niu
2f376e39a6 Replace server fault_info with fault
There's no need to change the object field name in
API object.

Change-Id: I4c368d6a2ef9e0f28df8dec23a25dff8a621284c
2017-08-21 14:51:04 +08:00
Xinran
108348ad41 Specify image when do rebuilding
Implements: bp specify-image-during-rebuilding
APIImpact

Change-Id: I83104f4209eb4f67699ea9a721509f704d232af9
2017-08-18 15:55:34 +08:00
liusheng
2dc155534f Add ServerGroup API interfaces
This change adds ServerGroup interfaces

Partially Implements: bp server-group-api-extension

Change-Id: I56647ac7f871aee357b3cf05ab78d31548c96ee3
2017-08-09 17:01:38 +08:00
Jenkins
b69a5d5a94 Merge "Add resource aggregates filed to flavor" 2017-08-07 16:00:30 +00:00
liusheng
2b2419f15c Trival-fix: Correct the order of api-ref parameters
Change-Id: Ifdb44ffcbc111cc488ea2c3730af48d7aa2c397a
2017-08-02 18:40:47 +08:00
Xinran
12ddae115e Return node uuid with server for admins
Closes-Bug: #1696378
Change-Id: Iad874b8c1f641722a09c6d06691bb44ad390beef
2017-08-01 18:06:59 +08:00
Zhenguo Niu
902a9ac65b Add resource aggregates filed to flavor
This addes a new aggregates field to flavor including
aggregates metadata key/value pairs. Then we can extract
resources quantitive, qualative and group informations
from flavors.

Change-Id: Ia85ff44fa9aabf2ef172c65c9ba9a3f0ce611b50
2017-08-01 10:05:53 +00:00
Zhenguo Niu
a637bfd38a Add aggregate nodes API
* list nodes for the specified aggregates
* add node to an aggregate
* remove node from an aggregate

Change-Id: I78ce523c7ba26860e02dcde84bcb84a6cc0c60ee
2017-07-31 11:03:28 +08:00
Zhenguo Niu
8a8dc20660 Add node list support
This adds support for listing node names from resource providers,
which will only available for admins.

Partially Implements: bp node-aggregate

Change-Id: I414bf176302fc076288e6a6fbfd88a7090541622
2017-07-28 12:53:39 +08:00
Zhenguo Niu
27f3b1832a Add aggregate API
This addes the aggregate APIs and docs

Partially Implements: bp node-aggregate

Change-Id: Iaa8d1de301f09360f7aa36e3a8fe5829e65b55c9
2017-07-28 12:53:39 +08:00
Jenkins
041dafae06 Merge "Add filters to server list API" 2017-07-20 05:20:09 +00:00
Xinran
0563c48554 Add filters to server list API
APIImpact
DocImpact

Closes-Bug: #1697390
Change-Id: I1fd41d0e1897d0187e49cb54c7d4539ce64a70ff
2017-07-19 17:22:41 +08:00
liusheng
9792dc787d Get rid of node listing api of Mogan
Since we have switched to use placement service to manager nodes
resources, we cannot support this api.

Partially Implements: bp track-resources-using-placement
Change-Id: I2096e81c7491bac6e00fbe400e4993e6424eed20
2017-07-14 17:13:02 +08:00
Xinran WANG
bfecc061aa Detach interface for server
Partially Implements: bp attach-detach-interface

DocImpact
APIImpact

Co-Authored-By: Zhenguo Niu <Niu.ZGlinux@gmail.com>
Co-Authored-By: liusheng <liusheng2048@gmail.com>
Change-Id: Ib474e542a4d9c32bb15f91d0993e0f6dd990ca8a
2017-07-13 10:57:38 +00:00
ZhongLuyao
f9affb75f2 Update ironic.driver.plug_vif implementation
port.update is replaced by node.vif_attach

Co-Authored-By: Xinran <xin-ran.wang@intel.com>

Closes-Bug: #1694942
Change-Id: Ie0f9043a93da2b3b8dfbc660f7575c3235f751b9
2017-07-03 03:51:47 +00:00
Zhenguo Niu
4b6df25fd8 Adds resource_traits field for flavors
The `resource_traits` field is intended to be used to reference
the resource qualities.

Partially Implements: bp new-flavor

Change-Id: I5fa154dbf8bc96d15c3cdd3699c671e5eccc1cdd
2017-06-24 08:38:52 +00:00
Zhenguo Niu
fc005946a3 Adds resources field for flavors.
The `resources` field is intended to be used to reference baremetal
node resource classes and also other generic resources in the cloud
tracked by placement.

Partially Implements: bp new-flavor

Change-Id: I4e8fe15aed612e62cec96d1acad236cd0924d597
2017-06-24 16:38:34 +08:00
Zhenguo Niu
260361c5f4 Update api docs to add missing parameters
* Adds metadata to server create req body
* Adds extra_specs to flavor create req body
* Adds disabled to flavor create/list/get/patch req/resp body

Change-Id: I484461303e6b49e59f4f85ed73ac57e8557772dd
2017-06-20 20:03:09 +08:00
Jenkins
9f0b8ba520 Merge "Specify neutron port when creating servers" 2017-06-20 08:51:34 +00:00
wanghao
869f3f9f86 Change the parameter's order in api-ref
Fix the error of parameter's order quickly

Change-Id: Ifb4c4bbf95e9764d937ed5b0073f2535b2d0f703
2017-06-20 12:25:04 +08:00
wanghao
99abbe590a Specify neutron port when creating servers
Now Mogan can support network_ids in request of creation servers.

This feature introduces the support for specifying the port_ids
in request body too.

Change-Id: I7f25a97da6e45f06f9ef2def68eeaf294659a932
Implements: bp specify-neutron-port-when-creating-instances
2017-06-20 09:21:19 +08:00
Jenkins
066e47bca7 Merge "Change to use server metadata instead of extra" 2017-06-15 09:42:48 +00:00