15 Commits

Author SHA1 Message Date
Hongbin Lu
95a7b806c6 Fix the 'addresses' field of container
The 'addresses' field is a map of ip addresses. In before, it
used docker network name as key, which is hard to be interpreted
by users, since docker network is hiden from end-users. This commit
switches to use neutron network uuid as key. A use case is from our
Heat plugin, which requires neutron network information to do
orchestration.

Change-Id: Ic3e4ee80962cdd777543e5c9c988fc0cdc623dad
2017-08-10 14:08:04 +00:00
Hongbin Lu
648a9cdaaa Implement create with existing neutron port
Support creating container with existing neutron port. Users
can pass the uuid/name of an existing neutron port via the 'nets'
parameter. If port is specified, Zun will use the existing port
instead of creating a new port.

If a container is deleted, its neutron port will be deleted regardless
of existing or not. A future work is to determine if the port is
pre-existing and avoid deleting existing port.

Closes-Bug: #1702581
Change-Id: I204b4bbe3de9e275690c4a64acdfe557f134b7ee
2017-08-07 15:09:09 +00:00
ShunliZhou
1304e0aec5 Add host show api
Add host show api.
I cannot bump the api version to 1.5 as the unit test fail. seem
pecan check the request version to all controller function which
lead to unit test fail.

Change-Id: I4b6afbe3f8126fea5323e5905366955e5b106b93
Partially-Implements: blueprint show-container-engine-info
2017-07-26 15:07:47 +08:00
ShunliZhou
1b5bb285e5 Add host list api
Add host list api

Change-Id: I0511f3d0608043a709249052aa29a76ba9ded166
Partially-Implements: blueprint show-container-engine-info
2017-07-21 09:19:15 +08:00
miaohb
e9afac04c5 Fix error in containers.inc
This patch updates some return code in containers.inc according to
the current version.

Change-Id: I50a672295835e8d07b2cf78c5dfb6fd04b70b474
2017-07-17 08:53:09 +08:00
miaohb
bcca3b9f8c Add api-ref for container stats
This patch adds api-ref for container stats.

Change-Id: I6bdd9973a98983042202b222a2139a03301a8bbb
Partially-Implements: bp zun-api-doc
2017-07-14 08:58:15 +08:00
Jenkins
d0557921ab Merge "Add api-ref for more container operations" 2017-07-12 04:20:39 +00:00
miaohb
7816f21b98 Add api-ref for more container operations
This patch adds api-ref for container start, stop, pause,
unpause, restart, rename.

Co-Authored-By: Kien Nguyen <kiennt@vn.fujitsu.com>
Co-Authored-By: miaohb <miao.hongbao@zte.com.cn>
Change-Id: Ie761f3332c3650d43515c65b4bc6ed327d90bb80
Partially-Implements: bp zun-api-doc
2017-07-11 06:12:15 +00:00
Hongbin Lu
718d5d051e Fix the sample responses in API docs
Change-Id: Ia6f9dc20f37ac7f7ffafc952c5e93c4e74f96c06
2017-07-06 15:45:25 +00:00
Madhuri Kumari
cbcad3b982 Add api-ref for container operations
This patch adds api-ref for list, show, delete, update container.

Change-Id: Ic736b55bc8e71636b63d56e2984ece8301384a99
Partially-Implements: bp zun-api-doc
2017-07-04 14:59:56 +05:30
Madhuri Kumari
4c524572af Add api-ref for container create
Change-Id: Ib6df2694bff69cb18cb37f42e7aa7f4809b6ae6f
Partial-Implements: bp zun-api-doc
2017-06-14 14:10:14 +05:30
pallavi
c6861fa915 Fix html_last_updated_fmt for Python3.
html_last_updated_fmt option is interpreted as a
byte string in python3, causing Sphinx build to break.
This patch makes it utf-8 string.

Change-Id: Ie954a0fb0a0eaf6e23a1bf9a846c4fd665606acc
Closes-Bug:#1693670
2017-06-08 18:01:34 +05:30
miaohb
16f83bd01d Add the description about service api to api-ref
This patch adds the decription about service api to api-ref.

Change-Id: I9b5d765fdf9f627b73556e9799bd188e3d9b8505
Partially-Implements: blueprint zun-api-doc
2017-05-31 10:06:35 +08:00
melissaml
ec816aa64a Use https instead of http for git.openstack.org
Change-Id: I94db681139eb7fb7a6482a61967687e31c56e594
2017-02-09 01:37:40 +08:00
Madhuri Kumari
bd5e2cd32c Add initial Zun API documentation
This patch adds the initial Zun API reference
documents and also add the /v1/services API documents.

Change-Id: I5ae6e313bce7d44fc1e42b982b4446123281c8d8
Partial-Implement: blueprint zun-api-doc
2017-02-03 05:10:20 +00:00