Volume type needs to be provided when creating a consistency group

Bug #1366371 reported by Xing Yang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Medium
Xing Yang

Bug Description

When creating a consistency group, the scheduler will find a backend that
supports all input volume types. If volume types are not provided, the
default_volume_type in cinder.conf will be used, however, this could cause
inconsistent behavior in a user environment where the default_volume_type
is defined in some places but not in others. This fix removed the use of
default_volume_type for CG creation, added a check to verify that
volume types are provided when creating a CG.

When creating a volume and adding it to a CG, we need to make sure a
volume type is provided as well.

Xing Yang (xing-yang)
Changed in cinder:
assignee: nobody → Xing Yang (xing-yang)
status: New → In Progress
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

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

Jay Bryant (jsbryant)
Changed in cinder:
milestone: none → juno-rc1
Xing Yang (xing-yang)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/119564
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=9082273305b0b9c117eb677a0e34c2ffde4e66f0
Submitter: Jenkins
Branch: master

commit 9082273305b0b9c117eb677a0e34c2ffde4e66f0
Author: Xing Yang <email address hidden>
Date: Sat Sep 6 13:32:02 2014 -0400

    Volume types need to be specified when creating CG

    When creating a consistency group, the scheduler will find a backend that
    supports all input volume types. If volume types are not provided, the
    default_volume_type in cinder.conf will be used, however, this could cause
    inconsistent behavior in a user environment where the default_volume_type
    is defined in some places but not in others. This fix removed the use of
    default_volume_type for CG creation, added a check to verify that volume
    types are provided when creating a CG.

    When creating a volume and adding it to a CG, we need to make sure a
    volume type is provided as well.

    Change-Id: I078d4fdd8d92529e853be16272ad74d1e130f712
    Closes-Bug: #1366371

Changed in cinder:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in cinder:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in cinder:
milestone: juno-rc1 → 2014.2
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.