Walk-through
In this section, we will walk you through how a container is created in Zun and how the request flows from the user to the Docker which creates the container. Zun interacts with multiple other OpenStack services for resources needed for the container.
The request flow for creating a container in Zun is as follows:
- The user sends a REST API call to the
zun-api
service for creating a cluster via a CLI or Horizon, with the authentication token received from KeyStone. zun-api
receives the request and sends the request for the validation of token and access permission to KeyStone.- KeyStone validates the token and sends updated authentications headers with roles and permissions.
zun-api
then parses some parameters from the request, such as the security group, memory, and runtime, and validates them.- The requested network is created by
zun-api
.zun-api
sends a request to Neutron to ensure the requested network or port is usable. If not,zun-api
sends another request to Neutron to search...