[zun] Can't specify Docker runtime when creating a container
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zun |
Invalid
|
Undecided
|
Unassigned | ||
kolla-ansible |
Fix Released
|
Low
|
Radosław Piliszek | ||
Stein |
Fix Released
|
Low
|
Radosław Piliszek | ||
Train |
Fix Released
|
Low
|
Radosław Piliszek | ||
Ussuri |
Fix Released
|
Low
|
Radosław Piliszek |
Bug Description
Detailed bug description:
When I specify Docker runtime in creating container via Zun (doesn't matter if it is kata-runtime, or runc/ using Horizon or CLI), status of container ends with error.
Steps to reproduce:
Create container with choose name, runtime and image, like e.g.:
zun run --name test-runc --runtime runc cirros
Expected results:
Create container in status running with choosen runtime.
Actual result:
Created container is in state error and following error occur in zun-compute:
2019-12-30 12:43:50.084 6 ERROR zun.compute.manager [req-ed76e156-
2019-12-30 12:43:50.084 6 ERROR zun.compute.manager Traceback (most recent call last):
2019-12-30 12:43:50.084 6 ERROR zun.compute.manager File "/var/lib/
2019-12-30 12:43:50.084 6 ERROR zun.compute.manager requested_volumes)
2019-12-30 12:43:50.084 6 ERROR zun.compute.manager File "/var/lib/
2019-12-30 12:43:50.084 6 ERROR zun.compute.manager 'Specifying runtime in Docker API is not supported'))
2019-12-30 12:43:50.084 6 ERROR zun.compute.manager ZunException: Specifying runtime in Docker API is not supported
Workaround:
You can create container via Zun only without specifying runtime. Creating kata or runc containers are functional only directly in Docker app.
Impact:
We need create environments for testing cyber attacks, easy to deploy with less consumption then VMs. For this purposes we need to use runtimes other then "runc".
Description of the environment:
Operation system: CentOS Linux release 7.6.1810 (Core)
Versions of components: Train
Reference architecture: all-in-one
Network model: Neutron + Kuryr + vxlan
Related projects installed: Zun
# openstack --version
openstack 4.0.0
# docker --version
Docker version 19.03.5, build 633a0ea
# docker info | grep Runtime
Runtimes: kata-runtime runc
Default Runtime: runc
no longer affects: | kolla-ansible |
Changed in zun: | |
status: | Confirmed → Invalid |
This is a limitation of Zun I presume, notifying Zun.