20 Commits

Author SHA1 Message Date
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
Zhenguo Niu
e41e36dac7 Add instance networks get API
Change-Id: I478451dfc30c5dae516592f9f309cfd5b114be85
2017-01-22 14:37:29 +08:00
Zhenguo Niu
c0124c5421 Remove ironic node states request for instance
As we have changed to save power_state to instance now, no need
to call ironic for that, and for states, it should also include
instance status field

Change-Id: Ic73d5724bf50f97ac697657d90ea46160fa01ce3
2017-01-20 00:23:58 +08:00
Zhenguo Niu
0dfb378480 Save power_state to instance and sync with ironic
1. add power_state to instance
2. add a periodic task to sync power state

Change-Id: Id51927bf8d72884d67a73c6370458222dc061210
2017-01-19 00:25:17 +08:00
zhangjl
3ddadc49e0 API-REF: Fix the typo in docs and ensure the consistency of instance_uuid
There is some typo in api-ref, it`s better to fix it.
And in [1], we use instance_ident, while in [2], we use instance_uuid,
in [3], we use instances_uuid. For consistency, it`s better to use
instance_uuid only.

[1]: https://github.com/openstack/nimble/blob/master/api-ref/source/v1/instances.inc#L163
[2]: https://github.com/openstack/nimble/blob/master/api-ref/source/v1/instances.inc#L213
[3]: https://github.com/openstack/nimble/blob/master/api-ref/source/v1/instances.inc#L267
Close-Bug: #1655205

Change-Id: I8489301467713f8391804c6f392e83283fb30a9a
2017-01-10 03:22:22 +00:00
Zhenguo Niu
ed9c19d02c Remove target_power_state
Maybe this is useful for tracking power transition, but seems we
should expose task_state or something else to users instead of
just using ironic's feild, this is the first step of refactoring.

Change-Id: Ibe83f3bfd534e2600769f39045da4d2812ebf5e1
2017-01-09 15:45:11 +08:00
sxmatch
ec9b48ad61 Rename nimble to mogan(part one)
Today we decided to rename Nimble project
since it's same as a Cinder driver name.

The new name of this project is called Mogan.

For convenience of reviewing, this is a part one
which includes api-ref folder.

Change-Id: Ie1f5bc9d29efcdf77c2b981d6102c56490e70022
Partially-Implements: bp rename-nimble-to-mogan
2017-01-04 16:11:13 +08:00
sxmatch
02a6f560f0 Reorganized api-ref folder
Now Mogan has his own V1 api-ref folder, but
the documents in here are not be organized
very well like other projects.

So this patch wants to improve it better.

Change-Id: Ia2cd8dd99b617c64550e50c96c49aa1e323862bd
Closes-Bug: #1653616
2017-01-04 09:24:50 +08:00