VMDK driver picks invalid datastore

Bug #1220217 reported by Kartik Bommepally on 2013-09-03
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Undecided
Kartik Bommepally

Bug Description

VMwareVcVmdkDriver picks invalid datastore for e.g. inaccessible or readOnly for volume creation (create/clone) and the operation eventually fails.
The driver must ignore such datastores that are readOnly or which are not accessible or mounted to the ESX server.

Work around is to manually un-mount/re-mount the datastore on ESX that which are not accessible and to remove read-only datastores.
Fix is to have a filter for such datastores.

Changed in cinder:
assignee: nobody → Kartik Bommepally (kartikaditya)

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

Changed in cinder:
status: New → In Progress

Reviewed: https://review.openstack.org/44862
Committed: http://github.com/openstack/cinder/commit/564f8d140fd8a968e55b1aee57200b9f015bee6d
Submitter: Jenkins
Branch: master

commit 564f8d140fd8a968e55b1aee57200b9f015bee6d
Author: Kartik Bommepally <email address hidden>
Date: Tue Sep 3 05:12:33 2013 -0700

    VMware driver: Fix for invalid datastore selection

    Added filter to ignore datastores that are not mounted, in-accessible
    and read-only for volume creation. Without this VMware's VC/ESX driver can
    choose such datastore with higher invalid capacity value as returned by the
    server for volume creation.

    Also using parent's self.mox object in the test cases rather than creating
    a new mox.Mox obj everytime.

    Fixes bug: 1220217

    Change-Id: If8319562ddc11fc31eb928b3807aead2b11b94bc

Changed in cinder:
status: In Progress → Fix Committed
Thierry Carrez (ttx) on 2013-10-04
Changed in cinder:
milestone: none → havana-rc1
status: Fix Committed → Fix Released
Thierry Carrez (ttx) on 2013-10-17
Changed in cinder:
milestone: havana-rc1 → 2013.2
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers