Invalid field for 'command'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zun UI |
Fix Released
|
Undecided
|
hongbin |
Bug Description
Use latest version of zun and zun-ui. Specify the 'command' field on creating container. The UI showed it failed to create the container. The following error in the horizon log:
2018-10-11 02:39:31.349242 ERROR openstack_
2018-10-11 02:39:31.349258 Traceback (most recent call last):
2018-10-11 02:39:31.349261 File "/opt/stack/
2018-10-11 02:39:31.349264 data = function(self, request, *args, **kw)
2018-10-11 02:39:31.349266 File "/opt/stack/
2018-10-11 02:39:31.349269 new_container = client.
2018-10-11 02:39:31.349271 File "/opt/stack/
2018-10-11 02:39:31.349274 response = zunclient(
2018-10-11 02:39:31.349276 File "/opt/stack/
2018-10-11 02:39:31.349279 return self._create(
2018-10-11 02:39:31.349281 File "/opt/stack/
2018-10-11 02:39:31.349283 resp, body = self.api.
2018-10-11 02:39:31.349286 File "/opt/stack/
2018-10-11 02:39:31.349288 resp = self._http_
2018-10-11 02:39:31.349291 File "/opt/stack/
2018-10-11 02:39:31.349293 error_json.
2018-10-11 02:39:31.349296 BadRequest: Invalid input for field 'command'.Value: 'sleep 1000'. u'sleep 1000' is not of type 'array', 'null'
2018-10-11 02:39:31.349298
2018-10-11 02:39:31.349301 Failed validating 'type' in schema[
2018-10-11 02:39:31.349303 {'type': ['array', 'null']}
2018-10-11 02:39:31.349305
2018-10-11 02:39:31.349307 On instance:
2018-10-11 02:39:31.349310 u'sleep 1000' (HTTP 400) (Request-ID: req-fd24512e-
Fix proposed to branch: master /review. openstack. org/609580
Review: https:/