Commit Graph

65 Commits

Author SHA1 Message Date
inspurericzhang 1c9b721b5c Replace Chinese punctuation with English punctuation
Curly quotes(Chinese punctuation) usually input from Chinese input method.
When read from english context, it makes some confusion.

Change-Id: Ibca2c0a6236de383097267272f151f30aa4afe74
2018-06-01 16:55:41 +08:00
Zuul 2cee9e9107 Merge "Add admin_password support" 2017-11-20 09:29:01 +00:00
Xinran eeabfedc54 Add admin_password support
Mogan should support to inject an admin password into a bare metal server.

DocImpact
APIImpact

Change-Id: Id3487b7aea699353aedd49a51d9a5a2e250943b9
Implements: bp admin-password-support
2017-10-31 16:50:08 +08:00
Xinran 05cc14d399 Pagination support for server list API
We should support to return a list of servers according to users' requirements.
In this patch, marker, limit, sort_key and sort_dir were added in server list
API.
- marker is used to display a list of servers after marker
- limit is used to determinate the maximum number of servers to display
- sort_key is used to sort the returned server list by specified key value
- sort_dir is used to select a sort direction

DocImpact
APIImpact

Change-Id: Id70e965794c82a0a29e53d4364f65b0f39042c7c
Closes-Bug: #1726665
2017-10-26 07:40:05 +00: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
Zhenguo Niu 52e8f17990 Revise some API docs
Change-Id: I8a7f0a241614f2a31ebdcc304ff4143d33af5517
2017-09-14 13:21:46 +08: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 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
Zhenguo Niu 93da16d88f Revert "Return node(name or uuid) with server instead of node_uuid"
This reverts commit 5124ae1d44.

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
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
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
Zhenguo Niu ed5993efce Change to use server metadata instead of extra
Use server metadata to be user friendly.

Change-Id: Ib396fba305d6138c2436a40559c267de5bb4e7f9
Closes-Bug: #1696899
2017-06-14 17:45:49 +08:00
wanghao 73fbe73df5 Fix some typos in Mogan doc
fix some typos in Mogan doc

Closes-Bug: #1696070
Change-Id: I18f865ca257365fdf7306bc1749026a3b25ab771
2017-06-06 15:56:11 +08:00
Zhenguo Niu 23871c345b Add compute node list API for admin
Admin should be able to list the compute nodes in order to divide
them into aggregate groups.

Change-Id: I33760d06607d0816c73f806b529d1729c211e793
2017-06-02 18:05:47 +08:00
Zhenguo Niu c9f1727dd7 Add create flavor json schema check
Change-Id: I02e6dbf65c4b08c71d48aa0d342ea2758c39f060
2017-05-10 09:48:50 +08:00
liusheng e9e3db6149 Refactor the network_info field in API layer
This change use a list of nic dict to replace the old "network_info" field
in instance body.

Change-Id: Ie38e50287a2a602e030d19c8b45196ed8337d677
2017-05-04 09:13:57 +08:00
ZhongLuyao 829e95b3f9 bug fix: return fault_info correctly
return fault_info (code, message, detail included) to user
when server status is error.

Change-Id: I57d8711d15e8014da29622e25b595bedff6c65f8
2017-05-03 03:30:03 +00:00
Zhenguo Niu 330e7e9c69 Add server console to api-ref index
Change-Id: Ifc96c271f6d2baad0c40446ab563cd3724a7a19d
2017-04-28 15:54:43 +08:00
liusheng 7d0f8ab360 Rename instance to server and instance type to flavor
Change-Id: I35a7fb0b4f3fa9e09f2fc2c739c0a9b39a8576ab
2017-04-28 14:23:22 +08:00
Zhenguo Niu e0ca68c562 Add flavor access management support
Change-Id: I1ffd0cbcc4b34393fd0186ccc17496c6adf1ee93
2017-04-27 16:58:24 +08:00
Zhenguo Niu a7224e4ba9 Add support for injecting keypairs
Change-Id: I6aa4f8ca970ca70e7e2279e2436e94939e065e1f
2017-04-22 11:21:06 +08:00