Zun

Comment 0 for bug 1747282

Revision history for this message
hongbin (hongbin034) wrote :

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)