Commit Graph

25 Commits

Author SHA1 Message Date
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 244f31f88c Add *locked* field in server response
Closes-Bug: #1717405
Change-Id: I946879f9505b0fc91e1726b61b5ee235427ac0e0
2017-09-15 14:17:24 +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
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 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
Xinran 3b026239f9 Return key name with server API
Change-Id: Ia8d7c917afc3bae04997161f8bb55c30cd196d60
Closes-Bug: #1712234
2017-08-31 09:55:16 +00:00
Jenkins 30a16bc608 Merge "Add support for scheduler_hints" 2017-08-28 04:39:26 +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
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
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 12ddae115e Return node uuid with server for admins
Closes-Bug: #1696378
Change-Id: Iad874b8c1f641722a09c6d06691bb44ad390beef
2017-08-01 18:06:59 +08: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
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 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
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
Zhenguo Niu 58093495c1 Fix missing parameters import
Change-Id: I8e6b9dd7ac006cbda7261edb470018d753e04ffb
2017-05-05 09:48:04 +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
liusheng 7d0f8ab360 Rename instance to server and instance type to flavor
Change-Id: I35a7fb0b4f3fa9e09f2fc2c739c0a9b39a8576ab
2017-04-28 14:23:22 +08:00