Zun is currently using a string representation of 'command', but Docker is returning 'Cmd' in string representation. This requires a conversion of commands between list and string, which is complicated and error-prone (it might causes bugs like https://review.openstack.org/#/c/551795/).
It is better to switch from string to list. In particular, this includes:
* DB model (zun/db/sqlalchemy/models.py): store 'command' as list instead of string
* API (zun/api/validation/parameter_types.py): convert the 'command' parameter from string to list (this requires a micro-version bump. see here: https://docs.openstack.org/zun/latest/contributor/api-microversion.html).
* Driver (zun/container/docker/driver.py): On creating container, pass the list representation of 'command' to docker (docker supports both list and string 'command' in container_create https://docker-py.readthedocs.io/en/stable/api.html#docker.api.container.ContainerApiMixin.create_container).
Hi, for microversion bump here you mean adding something like @base.Controlle r.api_version( "1.2", "1.3") to determine api modification .