Use 'stable/queens' version python-zunclient with latest version of zun server, the --mount option doesn't work.
$ cd /opt/stack/python-zunclient $ git checkout stable/queens $ zun run --mount size=1,destination=/data nginx ERROR: Invalid input for field '0'.Value: '{u'source': u'', u'destination': u'/data', u'size': u'1'}'. {u'source': u'', u'destination': u'/data', u'size': u'1'} is valid under each of {'required': ['size', 'destination']}, {'required': ['source', 'destination']}
Failed validating 'oneOf' in schema['properties']['mounts']['items']: {'additionalProperties': False, 'oneOf': [{'required': ['source', 'destination']}, {'required': ['size', 'destination']}], 'properties': {'destination': {'type': ['string']}, 'size': {'type': ['string', 'integer']}, 'source': {'type': ['string']}}, 'type': 'object'}
On instance['mounts']: {u'destination': u'/data', u'size': u'1', u'source': u''} (HTTP 400) (Request-ID: req-a1cae2e4-4d97-4b34-bb4d-627d7ece376f)
Use 'stable/queens' version python-zunclient with latest version of zun server, the --mount option doesn't work.
$ cd /opt/stack/ python- zunclient destination= /data nginx
$ git checkout stable/queens
$ zun run --mount size=1,
ERROR: Invalid input for field '0'.Value: '{u'source': u'', u'destination': u'/data', u'size': u'1'}'. {u'source': u'', u'destination': u'/data', u'size': u'1'} is valid under each of {'required': ['size', 'destination']}, {'required': ['source', 'destination']}
Failed validating 'oneOf' in schema[ 'properties' ]['mounts' ]['items' ]: lProperties' : False,
{'required' : ['size', 'destination']}],
' size': {'type': ['string', 'integer']},
' source' : {'type': ['string']}},
{'additiona
'oneOf': [{'required': ['source', 'destination']},
'properties': {'destination': {'type': ['string']},
'type': 'object'}
On instance['mounts']: destination' : u'/data', u'size': u'1', u'source': u''} (HTTP 400) (Request-ID: req-a1cae2e4- 4d97-4b34- bb4d-627d7ece37 6f)
{u'