Zun

The --mount options didn't work

Bug #1747280 reported by hongbin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zun
Fix Committed
Critical
hongbin

Bug Description

Use the latest version of python-zunclient and zun server, Cannot use the --mount option to create container with volumes. The commands below break:

  $ zun run --mount size=1,destination=/data nginx
  ERROR: Invalid mounts argument 'destination=/data'. mounts arguments must be of the form --mount type=<local|cinder>,source=<volume>,destination=<path>. Or use --mount type=<local|cinder>,size=<size>,destination=<path> to create a new volume and mount to the container

  $ zun run --mount type=cinder,size=1,destination=/data nginx
  ERROR: Invalid input for field '0'.Value: '{u'source': u'', u'destination': u'/data', u'type': u'cinder', u'size': u'1'}'. Additional properties are not allowed (u'type' was unexpected)

  Failed validating 'additionalProperties' 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'',
     u'type': u'cinder'} (HTTP 400) (Request-ID: req-ff8e4523-7e7a-4524-8f60-d734750107c7)

hongbin (hongbin034)
Changed in zun:
assignee: nobody → hongbin (hongbin034)
importance: Undecided → Critical
status: New → Triaged
Revision history for this message
hongbin (hongbin034) wrote :
Changed in zun:
status: Triaged → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-zunclient 1.2.0

This issue was fixed in the openstack/python-zunclient 1.2.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.