Commit Graph

34 Commits

Author SHA1 Message Date
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
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 6673dbb88f
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
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
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
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
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
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
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
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
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
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