50 Commits

Author SHA1 Message Date
Zuul
631f591a85 Merge "Correct the response code of attach" 2018-02-13 10:01:34 +00:00
Hongbin Lu
f4f84de2a9 Correct the response code of attach
The attach operation will return the URL that can be used to attach
to the container. The success response code is 200 instead of 202.

Change-Id: Ia467d6521e96df9e0338e129c85c13ad72124718
2018-02-09 03:36:43 +00:00
Hongbin Lu
f873fb190b api-ref: remove query parameters from URL
By looking at the api-ref of other openstack projects, they don't
list the query parameters in the URL. Actually, the type of each
request's parameter has already been documented in the table so
it is necessary to list them in URL as well. Doing that will
make the API doc looks verbose.

Change-Id: I0e8601a5e8ec8d537bfafec6e59e16cf1c48aac3
2018-02-07 04:18:54 +00:00
Hongbin Lu
d16f128d43 Update our project definition
Clarify that we are the OpenStack Containers service as officially
defined in OpenStack governance [1].

[1] https://git.openstack.org/cgit/openstack/governance/plain/
    reference/projects.yaml

Change-Id: I86b1b1ff7815214bd39d3ba0ec4a9fce9216d44d
2018-02-04 17:56:32 +00:00
gaofei
d52b59aff0 Replace curly quotes with straight quotes
Change-Id: I3896bb9c44abc0c0c5585726cd1c21d97dbec8a7
2018-01-24 11:00:55 +08:00
melissaml
bae8f690d2 Remove the deprecated "giturl" option
From openstackdocstheme 1.18.0, valid Git URLs can be retrieved by
openstackdocstheme[1], we do not need giturl option anymore.

[1] https://review.openstack.org/532163

Change-Id: I8e90fb2e18a07e159b911406634ee578e5113cee
2018-01-18 17:13:26 +08:00
Feng Shengqin
961d5f92ee Fix api-ref for container execute
Change-Id: I7a912f99df3f303066334b9cf6b59ae75222b178
2017-11-24 01:04:25 +00:00
miaohb
f558707746 Add api-ref for container execute resize
This patch adds api-ref for container execute resize.

Change-Id: If037734d7e85412ac84ca061c391eaf44c8acb9f
Closes-Bug: #1720926
2017-11-06 23:32:57 -08:00
miaohb
4ba7d8ca5f Add api-ref for container execute
This patch adds api-ref for container execute.

Change-Id: I3b37e13e7e2990d61caabf6d5b455468529b70d8
Closes-Bug: #1720925
2017-11-02 15:28:11 +00:00
Zuul
761d1318b4 Merge "Add api-ref for container kill" 2017-10-31 02:35:56 +00:00
miaohb
257ee4c208 Support stop and delete container
This patch adds an option for user to stop container firstly when deleting
the container.

Change-Id: I5e5afb6a7a1b8850fc57cdae6e0e3553d56b1040
Closes-Bug: #1713520
2017-10-25 18:37:14 -07:00
miaohb
d3c9954506 Add api-ref for container kill
This patch adds api-ref for container kill.

Change-Id: Icd13077d10b44f9d6b3b56599de8c84922055f48
Closes-Bug: #1720927
2017-10-23 00:54:51 -07:00
miaohb
6b0b6d8b59 Add api-ref for container attach
This patch adds api-ref for container attach.

Change-Id: Ib7436fb59aa929cb6a745600b48edfea4f0b394c
Closes-Bug: #1720928
2017-10-22 17:42:09 -07:00
miaohb
1b1a787767 Add api-ref for container get/put archive
This patch adds api-ref for container get/put archive.

Change-Id: I4e6d5e6b5c22c01e0209e52bd50d531e7b335354
Partially-Implements: bp zun-api-doc
2017-10-16 21:12:57 -07:00
miaohb
df847cc140 Add api-ref for container top
This patch adds api-ref for container top.

Change-Id: I3f548a63afe15fe78ac07e9d61e0987b43677932
Closes-Bug: #1720929
2017-10-15 23:48:11 -07:00
miaohb
ef340fecb1 Add api-ref for container logs
This patch adds api-ref for container logs.

Closes-Bug: #1720924
Change-Id: I652a5a592ecfe0f06e8df594ba4074f285ab891c
2017-10-13 01:49:06 -07:00
Jenkins
c949ac65a8 Merge "Api-ref: Fix incorrect api params description" 2017-10-09 23:13:04 +00:00
junboli
f19f03f4e4 Api-ref: Fix incorrect api params description
It occurs in the following APIs:
 1. Commit a container
 2. Rename a container
 3. Add security group for specified container
 4. Show details of a host

Change-Id: I1c0e4f475bb02209ac18ae92d04899a670779907
Closes-bug: #1722150
2017-10-09 14:09:38 +08:00
miaohb
e657c7a142 Add example for container commit
This patch adds missing example for container commit.

Change-Id: Iac31e55882b66258aa201b17718d9889834b7766
Depends-on: I250b743d8adc6cd6b41039bb3431eff35c4c030c
2017-09-28 17:58:12 -07:00
Feng Shengqin
5a7a613548 Add auto_remove to api-ref
Change-Id: Icc81502bc6f1d7b65b7c47661f9e07ad65c649d3
2017-09-18 06:50:41 +00:00
Kien Nguyen
2057b668bf Bring hostname option back
Zun already had this option before, but had to remove due to the
Conflict Exception (relate to sandbox). At this time, we made sandbox
optional. Therefore, if use_sandbox option is False, we can use
hostname option. If it is True, raise the Exception to let user know.

This option will help us to implement the
blueprint internal-dns-resolution.

Change-Id: I2f8826fc66e94c0d4452ff32e3bc17700ef6b668
Closes-Bug: #1716849
2017-09-18 09:37:34 +07:00
Jenkins
7599299eb2 Merge "TrivialFix: Use recommended date time format" 2017-09-15 10:19:01 +00:00
Jenkins
fe28a063f3 Merge "Add attach a network to a container server side." 2017-09-14 02:59:05 +00:00
ShunliZhou
c60072ccb4 Add attach a network to a container server side.
Add support for attach a network to a container.

Change-Id: Ie05b6328449406769be3f5ce02448389bea11473
Partially-Implements: blueprint network-rest-api
2017-09-14 09:20:46 +08:00
junboli
54eb196577 TrivialFix: Use recommended date time format
update html_last_updated_fmt in api-ref/source/conf.py
use the recommended '%Y-%m-%d %H:%M' data time format.

Change-Id: I144d86c8a5e0228d2dddf58d7d8a98f453353ac5
2017-09-13 15:54:04 +08:00
Madhuri Kumari
aa3c5f1506 Change runtime to string type
The container create parameter `runtime` can be any string like
`runc`; `cor`, `clear` or any value configured in the docker
configuration file. So this patch changes its type from enum
to string.

Change-Id: Ia360f16edacf352e538a0056af0e3683a21c0053
Partial-Implements: blueprint support-secure-container
2017-09-08 12:30:16 +05:30
miaohb
f0632c5435 Add api-ref for container resize
This patch adds api-ref for container resize.

Change-Id: I04feb20ebee1dbd444a228b850551ce7efd45f66
Partially-Implements: bp zun-api-doc
2017-08-31 01:18:28 -07:00
miaohb
6487d22918 Fix error in api-ref about network-detach
This patch fixes error in api-ref about network-detach.

Change-Id: Ie8feb02ffba541817b9d97c3ecc50eec0110276b
Closes-Bug: #1714123
2017-08-30 18:48:56 -07:00
ShunliZhou
a1a7b7d624 Add detach network server side.
Add support for detach a network from a container.

Change-Id: I36d8829ae2c36751b4101d55ee621cb280eae4b7
Partially-Implements: blueprint network-rest-api
2017-08-30 14:42:30 +08:00
miaohb
f39ad3fbd2 Add api-ref for container commit
This patch adds api-ref for container commit.

Change-Id: Ibcb7846cd9d0c00c385196635d9b9b03c65dba82
Partially-Implements: bp zun-api-doc
2017-08-26 01:10:21 -07:00
Jenkins
3a39188b85 Merge "Add runtime parameter to container API" 2017-08-25 02:47:48 +00:00
Jenkins
9d95713752 Merge "Add api-ref for container add-security-group" 2017-08-25 02:47:37 +00:00
Madhuri Kumari
6522a75c51 Add runtime parameter to container API
This commit adds a new parameter `runtime` to
container create and run APIs so that Zun can
support passing multiple runtimes in future.
Currently Zun only supports `runc` tool.

Change-Id: I2795a4555032e52707e0344daa9dc97ad832650b
Partial-Implements: blueprint support-secure-container
2017-08-23 11:38:31 +00:00
miaohb
83f90c40b4 Add api-ref for container add-security-group
This patch adds api-ref for contaienr add-security-group

Change-Id: I5f9b75187f3cf6d15f1dfa840a685b5586fab8d1
Partially-Implements: bp zun-api-doc
2017-08-22 21:16:27 -07:00
miaohb
d8c66a8be3 Fix error in api-ref about host
This patch adds the missing parameter "host_list" in api-ref.

Change-Id: I9dab7333b386675a2d9ae80c17f21e1f970a28c2
Closes-Bug: #1712466
2017-08-22 21:12:25 -07:00
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