Enable magnum containers to easily use cinder volumes

Registered by Kai Qiang Wu(Kennan) on 2015-11-13

Right now, magnum not have a good intergration with cinder. As k8s, swarm, mesos was created. but user can not easily used in underly cinder service. We need enable cinder service to make end-users can easy use that with containers.

Docker 1.9 has near full capacity to operate with volume, it also support many plugins, (some plugins like rexray has support openstack cinder intergation ) for plugins check this: http://docs.docker.com/engine/extend/plugins/

For k8s, check this: this is a raw example, it is not good as docker ,
http://kubernetes.io/v1.1/examples/mysql-cinder-pd/

For mesos, we not dig it more details.

So this bp should focus to enable cinder block service to ge consumed by magnum. a simple like this.

magnum baymodel --volume-dirver <> swarmbaymodel
magnum baymodel --volume-dirver <> k8sbaymodel

magnum create a bay enable swarm or k8s backend work with cinder, then user can use that to make containers data volumes work

etc.

ALso one line about k8s https://github.com/kubernetes/kubernetes/blob/master/docs/user-guide/persistent-volumes.md

Blueprint information

Status:
Not started
Approver:
Adrian Otto
Priority:
High
Drafter:
Kai Qiang Wu(Kennan)
Direction:
Approved
Assignee:
Kai Qiang Wu(Kennan)
Definition:
Approved
Series goal:
Accepted for ocata
Implementation:
Unknown
Milestone target:
milestone icon ocata-1

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/magnum-integrate-with-cinder,n,z

Addressed by: https://review.openstack.org/265057
    Propose Magnum Volume Integration Model

Addressed by: https://review.openstack.org/266223
    Adds volume_driver Support of Container Persistent Storage

Addressed by: https://review.openstack.org/269405
    Validates baymodel volume_driver requests

Addressed by: https://review.openstack.org/273329
    Validates baymodel volume_driver patch requests

Addressed by: https://review.openstack.org/274123
    Get region_name that volume_driver rexray region_name needs

Addressed by: https://review.openstack.org/275034
    Add Container Volume Model into Swarm Heat Templates

Addressed by: https://review.openstack.org/282595
    Add Container Volume Model into Mesos Heat Templates

Addressed by: https://review.openstack.org/285954
    Add Container Volume Model into Kubernetes Heat Templates

Addressed by: https://review.openstack.org/287648
    Add the container volume integration document to help user to know how to use the container volume integration in kubernetes and mesos.

Addressed by: https://review.openstack.org/336594
    [WIP][PoC] Add rexray volume driver to Swarm

(?)

Work Items

Work items:
Add cinder support in Kubernetes CoreOS driver: TODO

This blueprint contains Public information 
Everyone can see this information.