Zun

Add validation for duplicated mount point

Bug #1742520 reported by hongbin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zun
In Progress
Low
Durga Malleswari Varanasi

Bug Description

Description
===========
If users create two cinder volumes with the same mount point on the container, the container failed to create. We can do better by validating this case and failed earlier for duplicated mount points.

Reproduce
=========
$ zun run --mount size=1,destination=/data --mount size=2,destination=/data nginx
....
$ zun show 8eaa089d-7c71-4f34-8d07-eb01e7fd4773
...
| status_reason | Docker internal error: 400 Client Error: Bad Request ("Duplicate mount point: /data"). ...

Expected
========
The first command (zun run ...) failed with 400 response

Actual
======
The first command succeeded. The container failed to create

hongbin (hongbin034)
Changed in zun:
importance: Undecided → Low
status: New → Triaged
Changed in zun:
assignee: nobody → cooldharma06 (cooldharma06)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to zun (master)

Fix proposed to branch: master
Review: https://review.openstack.org/549299

Changed in zun:
status: Triaged → In Progress
Revision history for this message
Durga Malleswari Varanasi (durga1) wrote :

Hi Dharmalingam,

Hope you are doing well.
I would like to know If you are currently working on this bug?
Kindly let me know If I can take this up from here as I am interested on the same.

Best Regards,
Malleswari

Revision history for this message
Durga Malleswari Varanasi (durga1) wrote :

Hi Dharamalingam,

May I know If I can take this up?

Best Regards,
Malleswari

Changed in zun:
assignee: cooldharma06 (cooldharma06) → Durga Malleswari Varanasi (durga1)
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.