TripleO should create Cinder default volume type

Bug #1782217 reported by Alan Bishop on 2018-07-17
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Alan Bishop

Bug Description

Cinder supports multiple volume types, and every Cinder volume is supposed to be associated with a volume type. Cinder does allow volumes to be created without a volume type, but this can lead to problems later in the volume's life cycle (for example, when retyping or migrating the volume to another backend).

Here is an example showing a volume created with no associated volume type (3rd row from bottom of the table).

(overcloud) [stack@undercloud ~]$ openstack volume create --size=1 vol
| Field | Value |
| attachments | [] |
| availability_zone | nova |
| bootable | false |
| consistencygroup_id | None |
| created_at | 2018-07-17T17:34:38.000000 |
| description | None |
| encrypted | False |
| id | cbf43df4-f9b9-47e2-9844-a80c70b08039 |
| migration_status | None |
| multiattach | False |
| name | vol |
| properties | |
| replication_status | None |
| size | 1 |
| snapshot_id | None |
| source_volid | None |
| status | creating |
| type | None |
| updated_at | None |
| user_id | 578ad27ca80e4b58ac38ff82b0de6c65 |

In order to avoid volume life cycle problems, TripleO should:

1) Configure the default_volume_type in /etc/cinder/cinder.conf
2) Ensure the default_volume_type is valid (i.e. the volume type exists)

Fix proposed to branch: master

Changed in tripleo:
status: Triaged → In Progress
Changed in tripleo:
milestone: rocky-3 → rocky-rc1
Changed in tripleo:
milestone: rocky-rc1 → stein-1

Submitter: Zuul
Branch: master

commit 5e87dffbeed15756c55c397fb5962c551822336f
Author: Alan Bishop <email address hidden>
Date: Mon Aug 6 10:21:53 2018 -0400

    Configure cinder's default volume type

    Add a resource that creates Cinder's default volume type. The
    cinder::type provider executes osc commands, so this is only done once
    on the bootstrap node, and at step 4 when the cinder_api service is

    Partial-Bug: #1782217
    Change-Id: Ia23996abefdd1410fb86f04ed84a314f4364339c

Submitter: Zuul
Branch: master

commit 1433d5819f01631314dd3ea93f02583d7d5ae3eb
Author: Alan Bishop <email address hidden>
Date: Tue Jul 17 14:44:26 2018 -0400

    Ensure Cinder has a default volume type

    This patch adds a CinderDefaultVolumeType parameter, and does two

    1. Configures the default_volume_type in /etc/cinder/cinder.conf
    2. Ensures the volume type exists

    The cinder::api puppet module supports configuring the default_volume_type,
    and this patch simply sets the corresponding hiera value.

    The cinder::type puppet resource is used to ensure the default volume
    type exists. This is done using docker_puppet_tasks so that it executes
    after the Cinder services are running. This is necessary because the
    cinder::type puppet provider executes osc commands.

    Closes-Bug: #1782217
    Depends-On: Ia23996abefdd1410fb86f04ed84a314f4364339c
    Change-Id: I99496aa82bb66eccd86f0e482f1fbdc656c07c5d

Changed in tripleo:
status: In Progress → Fix Released

This issue was fixed in the openstack/tripleo-heat-templates release candidate.

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

Other bug subscribers