Multi datastore support for provisioning of instances on ESX

Bug #1104994 reported by Sirisha Guduru
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
High
Sabari Murugesan
Grizzly
Fix Released
High
Gary Kotton
VMwareAPI-Team
Fix Released
Critical
Sabari Murugesan

Bug Description

Nova essex setup with ESXi hypervisor.

Instance provisioning on ESX is done only on a single datastore (first datastore of ESX) , even though there are multiple datastores present.

Currently, there is no way to specify the datastore to be used while provisioning an instance.

Tags: vmware
Changed in nova:
status: New → In Progress
assignee: nobody → Sirisha Guduru (guduru-sirisha)
tags: added: vmware
Revision history for this message
Shawn Hartsock (hartsock) wrote :

What's the progress on this?

Changed in nova:
importance: Undecided → High
Revision history for this message
Sabari Murugesan (smurugesan) wrote :

Working on this bug.

Currently, there is no way to specify the datastore on which instance has to be provisioned. The use of regex to choose a datastore will fix this issue. The fix proposed for bug 1171930 addresses the capacity issue with datastores, hence that will not be fixed here.

Changed in nova:
assignee: Sirisha Guduru (guduru-sirisha) → Sabari Kumar Murugesan (smurugesan)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

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

Revision history for this message
Sabari Murugesan (smurugesan) wrote :

Approach is as follows :-

1. The user may specify a regex as a parameter (vmwareapi_datastore_regex) in nova.conf
2. If specified, the regex is used to select a datastore from the cluster at the time of provisioning an instance
3. If not, the default behavior to choose the first datastore prevails.

This enables an user to whitelist or blacklist a set of datastores.

Changed in nova:
milestone: none → havana-2
tags: added: grizzly-backport-potential
Revision history for this message
Divakar Padiyar Nandavar (divakar-padiyar-nandavar) wrote :

Solution proposed is resolving only a part of the bug and not resolving the problem "If the utilization of datastore is complete, then the instance goes into error state". Should there be any dependency added on bug 1171930 solution to mark this complete? or Should we change the description of this bug?

Revision history for this message
Sabari Murugesan (smurugesan) wrote :

Updated the bug description.

description: updated
Changed in nova:
milestone: havana-2 → havana-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/30822
Committed: http://github.com/openstack/nova/commit/9579ece88962ec86bd54d7930c764105e38f5db6
Submitter: Jenkins
Branch: master

commit 9579ece88962ec86bd54d7930c764105e38f5db6
Author: Sabari Kumar Murugesan <email address hidden>
Date: Tue May 28 18:08:09 2013 -0700

    Fix VMwareVCDriver to support multi-datastore

    This fixes the issue of VCDriver selecting the first datastore of
    Cluster while provisioning instances. User can provide a regex to
    match with the desired datastores.

    Fixes: bug #1104994

    Change-Id: I319b0d8afd03e9fef00ea0c8c799790714685104

Changed in nova:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/grizzly)

Fix proposed to branch: stable/grizzly
Review: https://review.openstack.org/41657

Tracy Jones (tjones-i)
tags: added: vmware-co-preferred
Changed in openstack-vmwareapi-team:
status: New → In Progress
importance: Undecided → Critical
status: In Progress → Confirmed
tags: removed: vmware-co-preferred
Tracy Jones (tjones-i)
Changed in openstack-vmwareapi-team:
status: Confirmed → Fix Committed
Tracy Jones (tjones-i)
Changed in openstack-vmwareapi-team:
assignee: nobody → Sabari Kumar Murugesan (smurugesan)
no longer affects: openstack-vmwareapi-team/havana
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/grizzly)

Reviewed: https://review.openstack.org/41657
Committed: http://github.com/openstack/nova/commit/dbd2afb6193de2cdf1b80b9a56bb09f563b37686
Submitter: Jenkins
Branch: stable/grizzly

commit dbd2afb6193de2cdf1b80b9a56bb09f563b37686
Author: Sabari Kumar Murugesan <email address hidden>
Date: Tue May 28 18:08:09 2013 -0700

    Fix VMwareVCDriver to support multi-datastore

    This fixes the issue of VCDriver selecting the first datastore of
    Cluster while provisioning instances. User can provide a regex to
    match with the desired datastores.

    Fixes: bug #1104994

    (cherry picked from commit 9579ece88962ec86bd54d7930c764105e38f5db6)

    Conflicts:

            etc/nova/nova.conf.sample
            nova/tests/test_vmwareapi.py
            nova/tests/test_vmwareapi_vm_util.py
            nova/virt/vmwareapi/driver.py
            nova/virt/vmwareapi/vm_util.py
            nova/virt/vmwareapi/vmops.py

    Change-Id: I319b0d8afd03e9fef00ea0c8c799790714685104

tags: added: in-stable-grizzly
Tracy Jones (tjones-i)
Changed in openstack-vmwareapi-team:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: havana-3 → 2013.2
Tracy Jones (tjones-i)
tags: removed: grizzly-backport-potential
Alan Pevec (apevec)
tags: removed: in-stable-grizzly
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.