dedicated option to specify default_volume_type via charm
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Cinder Charm |
Fix Released
|
Undecided
|
Nobuto Murata |
Bug Description
At this moment, default_volume_type cannot be set to cinder.conf through the charm. The default type is useful when there are multiple storage backends connected to Cinder and when there is a preferred backend over the other by admins.
Let's say there are two storage backends, one with cheaper / slower storage, the other is more expensive / faster storage. When one doesn't issue an API with VOLUME_TYPE like the following command, then the backend will be chosen randomly.
$ openstack volume create --type VOLUME_TYPE --size 1 my-volume
The behavior may not be desirable for admins and they may want to set the default storage backend in this case slower storage unless faster and more expensive storage is explicitly requested through API.
Another way of implementing this is to leverage a new scheme introduced in Train, and set a property into the __DEFAULT__ type.
https:/
$ openstack volume type show __DEFAULT__
+------
| Field | Value |
+------
| access_project_ids | None |
| description | Default Volume Type |
| id | 1bf252f4-
| is_public | True |
| name | __DEFAULT__ |
| properties | volume_
| qos_specs_id | None |
+------
However, it's not as flexible as cinder.conf because it doesn't allow to be changed later on.
$ openstack volume type set __DEFAULT__ --property volume_
Failed to set volume type property: Volume Type is currently in use. (HTTP 400) (Request-ID: req-f9730450-
Command Failed: One or more of the operations failed
So the config in cinder.conf is still valid and usable like it's mentioned in the commit log of the new scheme.
"Admins can override the default type in cinder.conf"
https:/
Please note that, there is a regression in upstream for Train and later releases, but it doesn't affect the scope of the work in charm.
https:/
description: | updated |
Changed in charm-cinder: | |
assignee: | nobody → Nobuto Murata (nobuto) |
Changed in charm-cinder: | |
milestone: | none → 20.10 |
Changed in charm-cinder: | |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. opendev. org/737288
Review: https:/