57 Commits

Author SHA1 Message Date
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
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
81f9d78d05 Following up patch of 6673dbb88fd35d8491248fc94bdc6365d352703a
This removes flavor extra specs table and related methods,
moving extra specs to flavor table to make things simple,
as we have already changed to use flavor PATCH method to
manage such things.

Change-Id: I1fb5445b7d194b50b052b77624a70e59af547911
2017-06-14 17:25:45 +08:00
Jenkins
4ae0b8032e Merge "Change the missing node_type to resource_class" 2017-06-13 12:59:51 +00:00
liusheng
b7408c1d99 Change the missing node_type to resource_class
Since we have change the node_type to resource_class to adapt the Ironic's
change. but we have missed the change in API model definition.

Change-Id: I129cefd9af02fbfdc20f1d66d382621931d709c2
Closes-Bug: #1697388
2017-06-12 17:11:38 +08:00
Zhenguo Niu
6673dbb88f Use PATCH method for flavor update
This gets rid of the flavor extraspec endpoint, and change to use
PATCH method for flavor update which also include flavor extra
specs update.

Change-Id: I86c291111ebdc1c8824031a590d3d5db4db294ed
Closes-Bug: #1696632
2017-06-08 17:22:48 +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
Jenkins
896ef30bf0 Merge "Attach interface for server" 2017-05-19 04:14:32 +00:00
Zhong Luyao
fea6689e74 Attach interface for server
Partially Implements: bp attach-detach-interface

Change-Id: I3c852428676c19ebaeee1954c1a78e77a61eb014
2017-05-18 09:11:48 +00:00
Zhenguo Niu
c9f1727dd7 Add create flavor json schema check
Change-Id: I02e6dbf65c4b08c71d48aa0d342ea2758c39f060
2017-05-10 09:48:50 +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
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
liusheng
ac0130bf0f Add keypair support
This change add keypair feature support.

Change-Id: I0ec5d625a2c5a8cc17f56fe3e2462127abb94000
2017-04-19 21:48:51 +08:00
Zhenguo Niu
24ef8d2793 Change to use /flavors in URI
Change-Id: I6a6a571e5485b9e64c34b1a551256c0bd3675ea5
Depends-On: I50358a289c58b827283c9c4c6e068eee17063bfd
2017-04-18 15:36:52 +08:00
Zhenguo Niu
80d8397bd4 Add injected files support
This addes the ability to inject files on instance launch. We follow
nova's way to use 'personality' to specify the files.

Change-Id: Ic74632b0922d2c7e2dd9b2907304e45ade7376c4
2017-04-14 15:45:38 +08:00
Zhenguo Niu
c610213199 Add user_data support
We should allow users to specify user data when creating an
instance.

Change-Id: I8fcd9aa4ca091ba3435292b519a999653a6d5b19
2017-04-12 10:26:19 +08:00
liusheng
ddf694a7c8 Expose the API of getting console info
Change-Id: I41c95d924b29885148077e418e0453e3ed001c9e
Partially-Implements: bp console-support
2017-04-01 11:44:32 +08:00
Tao Li
330795f293 Modify api-ref information
Add response instruction for methods with no content returned.

Change-Id: I7261a0b30f2d27bf29ca953a37e0ef4a9857f127
2017-03-09 16:42:30 +08:00
Zhenguo Niu
3036689e2d Add soft off/reboot support
As ironic has supported soft power off and reboot for a while, we
should add these as well.

Note: ssh driver does not support this.

Change-Id: I41fb159ca584ebe0ad23fe4a5fbd8be14295b9b8
2017-03-07 19:37:27 +08:00
Zhenguo Niu
9ade7bd59b Correct power target description in api-ref
Change-Id: I4343603ee670fa5efe45d89c2c5a796b38aa0b3a
2017-03-07 13:00:51 +08:00
Zhenguo Niu
aad98b0fa7 Add rebuild api ref
Change-Id: Ic43888d16066b3f93e29f178aa312863eaa19fac
2017-03-07 11:53:58 +08:00
Zhenguo Niu
50606e0b97 [api-ef]Add locked to states API
Change-Id: I6c2c2c77745496cdacd21ff4b3ce7fd65379b03c
2017-03-01 16:47:37 +08:00
Zhenguo Niu
611d32694a Move api samples to correct directories
Change-Id: I3dd4ddc50f92fd793303256487349c1bd5837279
2017-02-28 16:39:19 +08:00
Tao Li
80792f4df5 Adress some typo for multi-instance-create api-ref
Some syntax mistakes and typo in api-ref, rename 'server' to instance
and so on

Change-Id: I5f4b38658a17fd62531beac493a8d068a708087e
2017-02-17 15:48:00 +08:00
Tao Li
145adf1a14 Add api-ref documents for multi-instance-create
Add min_count and max_count parameters instruction.

Change-Id: Ie114b0670f7b3b3db494744fb349bea6a5480033
Implements: bp support-multiple-creation
2017-02-17 11:14:00 +08:00
zhangjl
36e4401103 Lock instances support in Mogan(part 2)
Adds lock/unlock api for mogan.
This commit finish the main flows and leave some lock state
check for another commit.

Change-Id: Ib4bb8b87384b6a3eba845b3ddcd8bd6f1d3dc6c9
Implements: bp lock-instances
2017-02-16 02:06:20 +00:00
Zhenguo Niu
d0683bb32a Update disassociate fip API
1. Remove DELETE request body
2. Add API doc

Change-Id: I2b86826427bd6d464f4da4c003ef6624a6a354a8
2017-02-15 19:45:13 +08:00
Zhenguo Niu
974540e456 Update associate fip API
1. Change to return 204 (No Content), as the POST method doesn't
result in a resource that can be identified by a URL
2. Add API docs for associate fip API.

Change-Id: I8b384dcd10c9c5f5f06ee55c3fa0a846ba7d3526
2017-02-15 13:15:07 +08:00
Zhenguo Niu
468428dcc0 [api-ref] Split instance management to states and networks
As we plan to add more sub-element to states and networks, it may
be more clear to split them from instance management in docs

Change-Id: I341bddf1dac81309e2dced16afc64d181e9e9008
2017-01-23 19:30:14 +08:00
Zhenguo Niu
fba37edee9 Replace Type with Instance Type in API docs
Change-Id: I07e70f292d6f9d905b41761f90b3ffbe41abfb01
2017-01-22 19:16:50 +08:00