1224 Commits

Author SHA1 Message Date
11e2434c81 Update reno for stable/pike
Change-Id: I5c6e3f9ba6cf95f624995304efaf6656e24005b9
2017-08-17 14:01:00 +00:00
Jenkins
ebfea16c70 Merge "Add new entrypoint 'experimental' for capsules" 0.2.0 2017-08-17 01:40:59 +00:00
Jenkins
71f46ec0ef Merge "Add capsule controller in API side and add create method" 2017-08-17 01:31:05 +00:00
Kevin Zhao
51f54b8e7b Add new entrypoint 'experimental' for capsules
According to the comment in https://review.openstack.org/#/c/484602/,
introduce the new api endpoint for capsules will reduce the API burden
when changing.

Change-Id: Ia686406449fdfa3ac4947fd997d9e2a8baf8f4b6
Signed-off-by: Kevin Zhao <kevin.zhao@arm.com>
2017-08-16 18:04:43 +08:00
ShunliZhou
5db86474fb port pci whitelist from nova to zun
Change-Id: I7a755d608428f61cf05b82f5ee9089b6fe16f1de
Partially-Implements: blueprint support-pcipassthroughfilter
2017-08-16 13:43:14 +08:00
Kevin Zhao
70020a9447 Add capsule controller in API side and add create method
1.Add new entrypoint 'experimental', devstack will be
modified to support this.
2.Add controller Capsule
3.Add capsule create method
4.Refactor the code for _do_container_create
5.Add one capsule template

All capsule method in the API level will use:
/experimental/capsules API, apart from v1 API.

Part of blueprint introduce-compose

Change-Id: Ia031ee5beb48ec70dab6bb371944140d025a499b
Signed-off-by: Kevin Zhao <kevin.zhao@arm.com>
2017-08-16 12:42:41 +08:00
ShunliZhou
127794e2dd port pci devspec from nova to zun
Change-Id: I7cb9644cf1655991c65bbcd73f146c76cae98297
Partially-Implements: blueprint support-pcipassthroughfilter
2017-08-16 09:31:03 +08:00
Jenkins
5979f39b86 Merge "port pci utils from nova to zun" 2017-08-15 09:47:28 +00:00
Jenkins
6efdfcad4f Merge "Implement create with specified neutron net" 2017-08-14 15:18:09 +00:00
Jenkins
449cb1c709 Merge "Fix the 'addresses' field of container" 2017-08-14 10:39:47 +00:00
ShunliZhou
47f4b30bc0 port pci utils from nova to zun
port pci utils from nova to zun

Change-Id: I82792d429f5203a810bdbb029c04ab7cc7a9da94
Partially-Implements: blueprint support-pcipassthroughfilter
2017-08-14 09:36:00 +08:00
Jenkins
5d123c45bb Merge "Fix parameter name error in HostController" 2017-08-12 05:14:01 +00:00
Jenkins
94fb2833b3 Merge "Removing LOG in hosts.py" 2017-08-11 19:55:58 +00:00
Jenkins
8f531af57b Merge "Switch from mode_wsgi to uwsgi" 2017-08-11 14:59:43 +00:00
Jenkins
97ab939858 Merge "Move all neutron calls to NeutronAPI" 2017-08-11 14:59:37 +00:00
Jenkins
55b1498358 Merge "Dump docker daemon logs before finish" 2017-08-11 14:51:25 +00:00
wangzhh
d080604593 Fix parameter name error in HostController
Change-Id: I83d635240b6438536e126ff33101c4b769c6f35e
2017-08-11 08:55:54 -04:00
Jenkins
8102f487a5 Merge "Needn't compute freecpu when unsetting container.cpu" 2017-08-11 09:40:53 +00:00
Jenkins
9c895f406b Merge "Using utils.get_resource for getting host" 2017-08-11 09:26:39 +00:00
00129207
0095b465e3 Removing LOG in hosts.py
Change-Id: Iea4c40e26f2fe17bf63e045ee50dbb680a93dbc9
2017-08-11 17:05:03 +08:00
Kien Nguyen
9b65448e9f Move all neutron calls to NeutronAPI
Change-Id: I7cf55f7ad29c6d6be751a5b77ae384fb121c4ecf
2017-08-11 14:38:31 +07:00
Jenkins
0d8b7208d4 Merge "Allow glance image name/id support" 2017-08-11 06:17:40 +00:00
OpenStack Proposal Bot
ac7e288052 Updated from global requirements
Change-Id: I7c868957f67ebb281fbdeef0365163e3438b1b90
2017-08-11 02:43:11 +00: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
Jenkins
c087960c27 Merge "Implement create with existing neutron port" 2017-08-10 13:57:45 +00:00
cooldharma06
9a953d35a4 Allow glance image name/id support
Change-Id: I5de7abd63defacca84f9f58cf1d3421ab4b1e868
Closes-Bug: #1703955
2017-08-10 15:30:05 +05:30
00129207
f8a9e453be Using utils.get_resource for getting host
Change-Id: I26a6d25204d9af9173bbc77acae0fbfb71e503c8
2017-08-10 04:15:10 +00:00
Jenkins
005f81971e Merge "Move get_available_network to API layer" 2017-08-10 02:49:47 +00:00
Hongbin Lu
cd9d2dbbce Implement create with specified neutron net
Support creating container with specified neutron net. Users
can pass the uuid/name of an existing neutron network via the 'nets'
parameter. If network is specified, Zun will use the specified network
instead of searching one.

NOTE: If both 'port' and 'network' is set via the 'nets' parameter,
the 'network' will be ignored since Zun will use the network of the
existing port.

Change-Id: I8a0f4f7461a99c1c3bafdfd2baa5b51800292230
Partial-Implements: blueprint multiple-networks
Closes-Bug: #1705154
2017-08-09 15:59:55 +00:00
Hongbin Lu
390e405eea Dump docker daemon logs before finish
There are a few intermittent failures in the gate. We need the docker
logs for trouble-shooting.

Change-Id: I8a3e26cde6ef8e354be9e7797ff5258f61388892
2017-08-09 15:08:10 +00:00
Jenkins
5c157aef3b Merge "Fix exception with wrong field." 2017-08-09 09:44:54 +00:00
00129207
eb21cd272d Needn't compute freecpu when unsetting container.cpu
Change-Id: If5d08569aca2aa077bca464aa92f22a2eaf0f865
2017-08-09 16:53:45 +08:00
Jenkins
02b7286126 Merge "container SR-IOV networking support" 2017-08-09 01:51:25 +00:00
ShunliZhou
88b8dbc47f Fix exception with wrong field.
Use message instead of msg_fmt in zun exception.

Change-Id: Ibbf4181bcca707c42a99e01708f2b420ff70aaf9
Closes-Bug: #1709267
2017-08-08 17:21:46 +08:00
Hongbin Lu
7aba2d5f8a Switch from mode_wsgi to uwsgi
When the wsgi community goal was first approved, the push was to
use mod_wsgi. mod_wsgi has many issues when being used in devstack
for development or testing (see [1]). This commit will switch the
deployment of zun-api to uwsgi.

[1] https://governance.openstack.org/tc/goals/pike/deploy-api-in-wsgi
    .html#uwsgi-vs-mod-wsgi

Change-Id: Iec05ccb8aceee6874e3c04280fe7596f8292e333
Closes-Bug: #1692382
2017-08-07 17:07:46 +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
Hongbin Lu
019055e56b Move get_available_network to API layer
In before, if there is no network available, users don't know what is
wrong until the container is scheduled to a compute node and fail.
This commit moves the searching of neutron net to zun-api so that
users will receive an error response earlier if the request is
invalid.

Change-Id: Ic9fd47c6e4aff4131ebaad73a3bed0f51eeb118c
Related-Bug: #1702581
2017-08-07 15:07:04 +00:00
Jenkins
a8a503c7d6 Merge "Allow add security group by uuid" 2017-08-07 06:41:58 +00:00
Jenkins
427646ffd7 Merge "Fix the broken add_security_group endpoint" 2017-08-07 06:41:53 +00:00
Jenkins
0a887b881c Merge "Updated from global requirements" 2017-08-07 06:36:55 +00:00
Jenkins
ef8be1f0ac Merge "Get python3 tempest tests job to pass" 2017-08-07 06:22:56 +00:00
Jenkins
768c63860e Merge "Improve the validation of environment field" 2017-08-07 05:54:14 +00:00
Jenkins
57b7fdbe95 Merge "Py3: Finish the python3 port" 2017-08-07 05:30:06 +00:00
Jenkins
2c4709e95e Merge "Imply compute node related Etcd API" 2017-08-07 04:15:31 +00:00
OpenStack Proposal Bot
472aa90d52 Updated from global requirements
Change-Id: I04c59652ff60829e52cff5d622fe637516ed714c
2017-08-07 00:56:29 +00:00
Hongbin Lu
8b62deeba4 Improve the validation of environment field
The environment field of container must be a map with a non-null
value.

Change-Id: I613c4120c2e3ba3b18c70cd27380d2ea0905330b
Closes-Bug: #1708937
2017-08-06 17:02:39 +00:00
wangzhh
0144447780 Allow add security group by uuid
Note:
1.Test case can be found in bug description.
2.For the bug https://bugs.launchpad.net/zun/+bug/1707069 has not
been fixed, added a dependency.

Change-Id: I82a34cfd6412f6a32a10d069c5c365ff7393cd61
Closes-Bug: #1707954
2017-08-06 01:38:45 -04:00
Hongbin Lu
a204254335 Fix the broken add_security_group endpoint
* Fix the broken add_security_group implementation in driver.
* Add tempest test case to verify this action.

Closes-Bug: #1707069
Change-Id: Iafc13bd75c5b924c3727fa1995f6a285ec794885
2017-08-06 01:38:45 -04:00
wangzhh
e7faccf7b4 Add missing 'command' attribute
Change-Id: I6a0193af544fe1a8b3abcc0b46137237a5f92d33
Closes-Bug:1708745
2017-08-05 02:58:25 -04:00
wangzhh
c41b899449 Imply compute node related Etcd API
Change-Id: Idc979865485d8b644e34d2078ed8a4704681e3db
Closes-Bug: 1691345
2017-08-05 02:10:25 -04:00