Bug 1477606

Summary: Director doesn't create a default volume type by default
Product: Red Hat OpenStack Reporter: Chen <cchen>
Component: openstack-tripleo-heat-templatesAssignee: Alan Bishop <abishop>
Status: CLOSED ERRATA QA Contact: Avi Avraham <aavraham>
Severity: medium Docs Contact:
Priority: medium    
Version: 10.0 (Newton)CC: aschultz, cchen, cmedeiro, dbecker, eharney, jamsmith, lmarsh, mburns, morazi, pgrist, rhel-osp-director-maint, scohen, srevivo, tshefi, yprokule, yrabl
Target Milestone: betaKeywords: Improvement, Triaged
Target Release: 14.0 (Rocky)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-heat-templates-9.0.0-0.20180823010420.792c26e.el7ost Doc Type: Bug Fix
Doc Text:
With this update, TripleO assigns the default volume type 'tripleo' when creating cinder volumes. Prior to this update, the lack of a volume type caused errors during volume retype and migration operations. You can change a cinder volume type by overriding the CinderDefaultVolumeType parameter. NOTE: If a cinder default volume type was manually configured (i.e. outside of the Tripleo director), set the CinderDefaultVolumeType parameter to the manually configured value when updating the overcloud nodes. This ensures the name of the default volume type doesn't change to the 'tripleo' default value.
Story Points: ---
Clone Of:
: 1720666 (view as bug list) Environment:
Last Closed: 2019-01-11 11:48:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1720666    
Attachments:
Description Flags
Screenshot shows the error Unable to retrieve the default volume type none

Description Chen 2017-08-02 12:53:44 UTC
Created attachment 1308212 [details]
Screenshot shows the error Unable to retrieve the default volume type

Description of problem:

Director doesn't create a default volume type by default.

# cinder type-list
+----+------+-------------+-----------+
| ID | Name | Description | Is_Public |
+----+------+-------------+-----------+
+----+------+-------------+-----------+

And cinder type-default will return an error

This will result in an error when creating volume from image via Horizon and the error message is

Error: Unable to retrieve the default volume type.

Version-Release number of selected component (if applicable):

OSP10

How reproducible:

100%

Steps to Reproduce:
1. Create an overcloud stack
2. Login to Horizon and create volume from image
3. You will notice the error message shown as in the attachment

Actual results:

No volume types are created after the successful installation

Expected results:

Director should create a default volume type by default

Additional info:

Comment 2 Alan Bishop 2017-09-22 13:58:18 UTC
There are two issues here. First is the customer issue, which is described in
the customer portal [1] and observed in the attachment [2]. The attachment
shows the Horizon UI displaying an error message ("Unable to retrieve the
default volume type.") on the screen where the user is trying to create a
volume from an image. The second issue is the fact that the Director does not
create a default volume type when deploying the overcloud. The premise is that
addressing the second issue will resolve the customer's issue. However, I
don't think this is true.

Cinder does not require the user define a default volume type, even when
multiple volume types have been defined. In fact, cinder doesn't require _any_
volume types be defined. In other words, the Director is not required to
define a default volume type because cinder does not require one.

Regarding the customer's issue, I was not able to reproduce the problem. I did
a fresh deployment of OSP-10, uploaded an image, and then used the Horizon UI
to create a volume from the image. The first thing I noted is "Type" widget
(which lets the user choose the volume type) offers only one option, and that
is "No volume type". I experimented by creating additional volume types, and
observed they would appear as options in the UI widget. But, compare this with
the customer's screenshot [2], where the "Type" widget appears to be blank. I
could not reproduce this behavior, nor did I ever see the "Unable to retrieve
the default volume type" error message.

I do not doubt the customer is experiencing a problem, but it seems related to
the Horizon UI rather than the underlying cinder behavior. I suggest another BZ
be opened that focuses on the customer's issue with Horizon. I think this BZ
should be closed NOTABUG. It simply is not necessary for the Director to
define a default volume type.

[1] https://access.redhat.com/support/cases/01902709
[2] https://bugzilla.redhat.com/attachment.cgi?id=1308212

Comment 3 Alan Bishop 2017-10-13 16:22:08 UTC
Please ACK if this can be closed per my comment #2.

Comment 4 Alan Bishop 2017-11-10 17:29:54 UTC
Update: While I was not able to reproduce the Horizon behavior, I am informed that a default cinder volume type really should be assigned.

I'll work on that issue with this BZ, but consider opening another bug if there's a separate problem related to Horizon's behavior.

Comment 7 Christian Schwede (cschwede) 2018-01-24 14:20:23 UTC
*** Bug 1537471 has been marked as a duplicate of this bug. ***

Comment 9 Thiago da Silva 2018-03-09 14:50:44 UTC
*** Bug 1537471 has been marked as a duplicate of this bug. ***

Comment 12 Eric Harney 2018-03-09 14:55:12 UTC
*** Bug 1241442 has been marked as a duplicate of this bug. ***

Comment 13 Alan Bishop 2018-07-17 19:08:47 UTC
I'll update the target release based on how soon the upstream patch merges.

Comment 15 Alan Bishop 2018-08-21 12:02:03 UTC
Upstream patches have merged.

Comment 18 Tzach Shefi 2018-09-23 19:36:58 UTC
Verified on:
openstack-tripleo-heat-templates-9.0.0-0.20180831204457.17bb71e.0rc1.el7ost.noarch

Basic OSPD deployment Cinder with LVM backend, now has a default Cinder volume type:

(overcloud) [stack@undercloud-0 ~]$ cinder type-list
+--------------------------------------+---------+-------------+-----------+
| ID                                   | Name    | Description | Is_Public |
+--------------------------------------+---------+-------------+-----------+
| babdcdd7-e5f8-438b-8551-1bf9d6df8a71 | tripleo | -           | True      |
+--------------------------------------+---------+-------------+-----------+
(overcloud) [stack@undercloud-0 ~]$ cinder type-default 
+--------------------------------------+---------+-------------+-----------+
| ID                                   | Name    | Description | Is_Public |
+--------------------------------------+---------+-------------+-----------+
| babdcdd7-e5f8-438b-8551-1bf9d6df8a71 | tripleo | -           | True      |
+--------------------------------------+---------+-------------+-----------+
 
From Horizon successfully created a new image (cirros) backed volume.

Comment 22 errata-xmlrpc 2019-01-11 11:48:07 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2019:0045