Zun

Support to deploy zun to multiple compute hosts

Registered by hongbin

Currently, Zun supports a devstack deployment, which assume all-in-one host. However, in reality, it is necessary to deploy multiple zun-compute to multiple compute hosts. This needs an re-design of the sandbox creation and container creation:
1. Zun-api cast a request to zun-compute to create a sandbox
2. Zun-compute return the host where the sandbox was created in (either by calling Nova (nova-docker driver) or creating locally (docker driver))
3. Zun-api cast a request to the sandbox host to create container(s).
4. Zun-compute return after container creation.

Blueprint information

Status:
Complete
Approver:
hongbin
Priority:
High
Drafter:
hongbin
Direction:
Approved
Assignee:
hongbin
Definition:
Approved
Series goal:
None
Implementation:
Implemented
Milestone target:
None
Started by
hongbin
Completed by
hongbin

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/support-multiple-hosts,n,z

Addressed by: https://review.openstack.org/415554
    [WIP][NOT_READY_FOR_REVIEW] Support multiple compute hosts

Addressed by: https://review.openstack.org/416075
    Rename compute/api.py to compute/rpcapi.py

Addressed by: https://review.openstack.org/416081
    Add 'host' field to container

Addressed by: https://review.openstack.org/417539
    Fix incorrect filtering at ZunService dbapi

Addressed by: https://review.openstack.org/417648
    Fix the incorrect initialization of context roles

Addressed by: https://review.openstack.org/419302
    Add etcd DB backend support for multiple compute env

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.