62 Commits

Author SHA1 Message Date
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
Jenkins
550bf01b38 Merge "Change to use /flavors in URI" 2017-04-18 09:52:08 +00:00
Zhenguo Niu
24ef8d2793 Change to use /flavors in URI
Change-Id: I6a6a571e5485b9e64c34b1a551256c0bd3675ea5
Depends-On: I50358a289c58b827283c9c4c6e068eee17063bfd
2017-04-18 15:36:52 +08:00
M V P Nitesh
2737bef5f0 Fix doc generation for Python3
Fix the Sphinx html_last_updated_fmt for Python3.
The html_last_updated_fmt option is interpeted as a
byte string in python3, causing Sphinx build to break.
This patch makes it utf-8 string.

Change-Id: I1a9aaa23fbc283b75c78f3332031f59e1ed87551
2017-04-17 16:27:04 +05:30
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
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
Zhenguo Niu
7575d1b96e Rename nimble to mogan (4)
This changes devstack plugin some other related things

Change-Id: I60913691a89b767f34a04192244eee7ce4af7996
2017-01-05 00:49:39 +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
liusheng
61b0b97bf5 Add support for updating instance type
Change-Id: Idc83c40fc46e571ba83cb83405b7860445385b2c
2017-01-03 11:24:13 +00:00
liusheng
b622c198a2 Change "uuid" in instance post request body to "net_id"
Change-Id: I1b5999afef7fbe9a4c0b310d9b28ac31eb51c968
2016-12-27 12:49:46 +00:00
liusheng
81a725c813 Correct the api samples of type extra APIs
The instance type extra only support get_all, patch, delete method, the
api samples are wrong.

Change-Id: Ibf708a39d155b2d31589bf187f81ac3426bea3c6
2016-12-20 20:30:22 +08:00
Zhenguo Niu
b2b241f085 Add update instance support
Change-Id: I931243ed1278ee89d7bc75c061ad9919fb0bc1e8
2016-12-08 15:37:12 +08:00
Zhenguo Niu
44ac91540f Add availability zones API
Users should have the ability of listing all availability
zones, so they can specify which az they want the instance
to be built.

Change-Id: Id04f2e0fb64d6e88c4860e695d258239d2349dea
Implements: blueprint availability-zone
2016-11-26 18:05:38 +08:00
Jenkins
5e485bf2ed Merge "update api-ref for admin tenant filter." 2016-11-22 02:20:50 +00:00
Shaohe Feng
6a2144c9cb update api-ref for admin tenant filter.
Now our api has support this feature, just update the docs.

Change-Id: Ie8dc75b74bc46f1290a15143e6906065d0368a9e
2016-11-21 04:27:37 +08:00
Shaohe Feng
efd1b134c0 fix some api-ref error
The tox can not build api-ref successfully for some errors.
Fix them.

Change-Id: I34a43ad497deb842fd662f4991bb4b00f59ce81e
2016-11-21 04:13:06 +08:00
Jenkins
510146f5e5 Merge "Correct some Error response codes in api-ref" 2016-11-17 10:06:56 +00:00
Zhenguo Niu
604016439a Correct some Error response codes in api-ref
Change-Id: I3b8ad665491a53150d43bbcfb6f412c74f412ad0
2016-11-17 13:28:02 +08:00