"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "zun/container/cri/driver.py" between
zun-5.0.0.tar.gz and zun-5.0.1.tar.gz

About: OpenStack Zun is a Container Management service for OpenStack.
The "Ussuri" series (maintained release).

driver.py  (zun-5.0.0):driver.py  (zun-5.0.1)
skipping to change at line 58 skipping to change at line 58
requested_volumes): requested_volumes):
self._create_pod_sandbox(context, capsule, requested_networks) self._create_pod_sandbox(context, capsule, requested_networks)
# TODO(hongbin): handle init containers # TODO(hongbin): handle init containers
for container in capsule.init_containers: for container in capsule.init_containers:
self._create_container(context, capsule, container, self._create_container(context, capsule, container,
requested_networks, requested_networks,
requested_volumes) requested_volumes)
self._wait_for_init_container(context, container) self._wait_for_init_container(context, container)
container.save(context)
for container in capsule.containers: for container in capsule.containers:
self._create_container(context, capsule, container, self._create_container(context, capsule, container,
requested_networks, requested_networks,
requested_volumes) requested_volumes)
container.status = consts.RUNNING
container.save(context)
capsule.status = consts.RUNNING capsule.status = consts.RUNNING
return capsule return capsule
def _create_pod_sandbox(self, context, capsule, requested_networks): def _create_pod_sandbox(self, context, capsule, requested_networks):
sandbox_config = self._get_sandbox_config(capsule) sandbox_config = self._get_sandbox_config(capsule)
runtime = capsule.runtime or CONF.container_runtime runtime = capsule.runtime or CONF.container_runtime
if runtime == "runc": if runtime == "runc":
# pass "" to specify the default runtime which is runc # pass "" to specify the default runtime which is runc
runtime = "" runtime = ""
 End of changes. 2 change blocks. 
0 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)