Containers Service for OpenStack
Go to file
Hongbin Lu 3438316954 Implement the sandbox proposal - Part 2
This commit extends the existing Docker driver to leverage Nova
to provision sandbox. In other words, there are two drivers:
1. docker.driver.DockerDriver (default)
2. docker.driver.NovaDockerDriver
Users can choose which driver they want to use. The major
difference is the second driver integrate with Neutron, Neutron
is used to provide networking for container.

The files under nova/* were copied from nova-docker with minor
modification (mainly for fixing bugs and removing unused codes).
In particular, nova/virt/docker/driver.py contains a DockerDriver
for Nova. It implements the Nova virt driver interface using docker.
This custom virt driver is used to create/delete/manage sandbox
containers.

At this commit, we hardcoded the flavor to m1.small and nics to
'auto' when creating sandbox instances. We might make them as
parameters and specified by end-users. The flavor will decide the
resource constraints of the container and nics will decide how the
networking of the container being configured. The docker image
kubernetes/pause is chosen to be the image of the sandbox container,
since its size is small and statisfies what we want (an empty
container that keeps running).

When creating the sandbox, we haven't specify the security group yet
so the default security group is used. Users need to open ports in
that security groups to access container from outside. Later, we
could create a custom security group for each container, and
automatically open ports that are exposed by the container.

For more details of the design, please refer:
https://review.openstack.org/#/c/365754/

Implements: blueprint neutron-integration
Depends-On: Ib8f193ea1edf1f148e9ba505205495170ebf6d67
Change-Id: I1543f386b6439d305b308d6c6ebe073225223c25
2016-11-21 20:48:36 -06:00
devstack Implement the sandbox proposal - Part 2 2016-11-21 20:48:36 -06:00
doc/source Document how to use zun devstack plugin 2016-09-09 15:04:38 -05:00
etc Implement the sandbox proposal - Part 2 2016-11-21 20:48:36 -06:00
nova Implement the sandbox proposal - Part 2 2016-11-21 20:48:36 -06:00
releasenotes Enable release notes translation 2016-10-06 20:57:26 +02:00
specs Zun container sandbox spec 2016-09-22 10:41:09 -05:00
tools Move all conf option to centralize conf directory 2016-11-02 07:42:43 +00:00
zun Implement the sandbox proposal - Part 2 2016-11-21 20:48:36 -06:00
.coveragerc Add coverage configuration 2016-11-02 05:15:29 +00:00
.gitignore Clean up etcd generated file 2016-09-12 12:30:17 +08:00
.gitreview Update after project rename 2016-09-03 16:03:04 -05:00
.testr.conf update higgins with zun 2016-06-08 22:21:34 -05:00
babel.cfg Initial commit 2016-05-12 14:59:56 -04:00
CONTRIBUTING.rst update higgins with zun 2016-06-08 22:21:34 -05:00
HACKING.rst update higgins with zun 2016-06-08 22:21:34 -05:00
LICENSE Initial commit 2016-05-12 14:59:56 -04:00
README.rst Document how to use zun devstack plugin 2016-09-09 15:04:38 -05:00
requirements.txt Implement the sandbox proposal - Part 2 2016-11-21 20:48:36 -06:00
setup.cfg Move all conf option to centralize conf directory 2016-11-02 07:42:43 +00:00
setup.py Fixed common comments in initial commit 2016-05-13 12:58:35 +00:00
test-requirements.txt Updated from global requirements 2016-11-02 15:42:55 +00:00
tox.ini Merge "Move all conf option to centralize conf directory" 2016-11-03 09:42:30 +00:00

Zun

Container Management service for OpenStack

Please fill here a long description which must be at least 3 lines wrapped on 80 cols, so that distribution package maintainers can use it in their packages. Note that this is a hard requirement.

Features

  • TODO